Skip to content
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

09 - Product Collections #489

Merged
merged 15 commits into from
Oct 12, 2023

Conversation

weronika-kurczyna
Copy link
Contributor

@weronika-kurczyna weronika-kurczyna commented Oct 12, 2023

20231012

New models

  • product_collections_get_response_body
  • product_collections_list_products_response_body
  • product_collections_sku_in_collection
  • product_collections_product_in_collection
  • product_collections_collection_item
  • product_collections_collection_item_base
  • product_collections_static_collection
  • product_collections_dynamic_collection
  • product_collections_list_response_body
  • product_collections_create_request_body
  • product_collections_create_static_request_body
  • product_collections_create_dynamic_request_body

Endpoint changes

  • Added missing method for endpoint: POST /v1/product-collections
    • Request body schema: product_collections_create_request_body
    • Response body schema: product_collections_collection
  • GET /v1/product-collections
    • New response schema: product_collections_list_response_body (old one: 12_res_product-collections)
  • GET /v1/product-collections/{productCollectionId}
    • New response schema: product_collections_get_response_body (old one: 12_obj_product_collection_object)
  • GET /v1/product-collections/{productCollectionId}/products
    • New response schema: product_collections_list_products_response_body (old one: 11_res_product-collections_productCollectionID_products)
  • /v1/product-collection-object
    • New response schema: product_collections_collection_item (old one: 12_obj_product_collection_object)

For results please visit:
https://docs.voucherify.io/v2018-08-01-wk-484/docs

@weronika-kurczyna weronika-kurczyna changed the title Wk/types 009 new 09 - Product Collections Oct 12, 2023
@weronika-kurczyna
Copy link
Contributor Author

Make it similar to export:

  • product collection base AND (product collection static OR product collection dynamic)
  • use enum for "type" and "object" attributes

@weronika-kurczyna weronika-kurczyna marked this pull request as ready for review October 12, 2023 12:16
@marcin-slezak marcin-slezak merged commit ac601a8 into voucherifyio:master Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants