Class: VoucherifySdk::ProductCollectionsApi
- Inherits:
-
Object
- Object
- VoucherifySdk::ProductCollectionsApi
- Defined in:
- lib/VoucherifySdk/api/product_collections_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#create_product_collection(opts = {}) ⇒ ProductCollectionsCreateResponseBody
Create Product Collection This method creates a new product collection.
-
#delete_product_collection(product_collection_id, opts = {}) ⇒ nil
Delete Product Collection This method deletes a product collection.
-
#get_product_collection(product_collection_id, opts = {}) ⇒ ProductCollectionsGetResponseBody
Get Product Collection Retrieves the product collection.
-
#initialize(api_client = ApiClient.default) ⇒ ProductCollectionsApi
constructor
A new instance of ProductCollectionsApi.
-
#list_product_collections(opts = {}) ⇒ ProductCollectionsListResponseBody
List Product Collections This method returns a list of product collections.
-
#list_products_in_collection(product_collection_id, opts = {}) ⇒ ProductCollectionsProductsListResponseBody
List Products in Collection Retrieves list of products from a product collection; works for both dynamic and static product collections.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ ProductCollectionsApi
Returns a new instance of ProductCollectionsApi.
19 20 21 |
# File 'lib/VoucherifySdk/api/product_collections_api.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/VoucherifySdk/api/product_collections_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#create_product_collection(opts = {}) ⇒ ProductCollectionsCreateResponseBody
Create Product Collection This method creates a new product collection.
27 28 29 30 |
# File 'lib/VoucherifySdk/api/product_collections_api.rb', line 27 def create_product_collection(opts = {}) data, _status_code, _headers = create_product_collection_with_http_info(opts) data end |
#delete_product_collection(product_collection_id, opts = {}) ⇒ nil
Delete Product Collection This method deletes a product collection.
91 92 93 94 |
# File 'lib/VoucherifySdk/api/product_collections_api.rb', line 91 def delete_product_collection(product_collection_id, opts = {}) delete_product_collection_with_http_info(product_collection_id, opts) nil end |
#get_product_collection(product_collection_id, opts = {}) ⇒ ProductCollectionsGetResponseBody
Get Product Collection Retrieves the product collection.
152 153 154 155 |
# File 'lib/VoucherifySdk/api/product_collections_api.rb', line 152 def get_product_collection(product_collection_id, opts = {}) data, _status_code, _headers = get_product_collection_with_http_info(product_collection_id, opts) data end |
#list_product_collections(opts = {}) ⇒ ProductCollectionsListResponseBody
List Product Collections This method returns a list of product collections.
217 218 219 220 |
# File 'lib/VoucherifySdk/api/product_collections_api.rb', line 217 def list_product_collections(opts = {}) data, _status_code, _headers = list_product_collections_with_http_info(opts) data end |
#list_products_in_collection(product_collection_id, opts = {}) ⇒ ProductCollectionsProductsListResponseBody
List Products in Collection Retrieves list of products from a product collection; works for both dynamic and static product collections.
297 298 299 300 |
# File 'lib/VoucherifySdk/api/product_collections_api.rb', line 297 def list_products_in_collection(product_collection_id, opts = {}) data, _status_code, _headers = list_products_in_collection_with_http_info(product_collection_id, opts) data end |