-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internalize-pagination #6
base: develop
Are you sure you want to change the base?
Conversation
…a products request
GetCategories and getCategoriesAsTree
Add options for getProducts
Change type of customFieldId to String
… additions * 'additions' of github.com:brachetti/bigcommerce-sdk: Create response for custom field creation Change customFieldId to int Replace product with product id Add create product custom field id method Change type of customFieldId to String
Fix CustomFieldResponse
Additional metadata for categories
Additional metadata for categories
sortOrder, metaKeywords, searchKeywords and customURL
additions
Most important for this PR is actually this commit 63b9cd3 |
@ryankazokas please take note that the visibility of page size has been changed to private in this PR |
Sorry @brachetti for the delay, we have been super busy here. Thanks for doing this! I think the overloaded method without the pagination arguments like you have here, is the way to go. We should do this for all of our public methods where applicable. If you can clean this up and add the tests, we can merge this into our develop branch. |
Resolves #5
Internalizing of Pagination into API
Changes:
Added public methods
getProducts()
andgetProducts(String... includes)
intoBigCommerceSdk
class.Added private method to end-recursively resolve and return paginated resources
Possible Drawbacks:
Depends on Java8
Still needs tests
Based off #4 , since it has need of
PaginatedModel<T>
class