diff --git a/lib/authorization-api-model.rb b/lib/authorization-api-model.rb index 66e5deb82..ff46fb7fd 100644 --- a/lib/authorization-api-model.rb +++ b/lib/authorization-api-model.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # Common files diff --git a/lib/authorization-api-model/.swagger-codegen/VERSION b/lib/authorization-api-model/.swagger-codegen/VERSION index b39b0b9e0..161761765 100644 --- a/lib/authorization-api-model/.swagger-codegen/VERSION +++ b/lib/authorization-api-model/.swagger-codegen/VERSION @@ -1 +1 @@ -3.0.24 \ No newline at end of file +3.0.46 \ No newline at end of file diff --git a/lib/authorization-api-model/api/authorization_api.rb b/lib/authorization-api-model/api/authorization_api.rb index 8afb0ab89..c1698d104 100644 --- a/lib/authorization-api-model/api/authorization_api.rb +++ b/lib/authorization-api-model/api/authorization_api.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::AuthorizationApiModel diff --git a/lib/authorization-api-model/api_client.rb b/lib/authorization-api-model/api_client.rb index 3d38968cc..f8dd7a359 100644 --- a/lib/authorization-api-model/api_client.rb +++ b/lib/authorization-api-model/api_client.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/authorization-api-model/api_error.rb b/lib/authorization-api-model/api_error.rb index 33ee33149..1092afb69 100644 --- a/lib/authorization-api-model/api_error.rb +++ b/lib/authorization-api-model/api_error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::AuthorizationApiModel diff --git a/lib/authorization-api-model/configuration.rb b/lib/authorization-api-model/configuration.rb index 59889cd94..fa7f954f6 100644 --- a/lib/authorization-api-model/configuration.rb +++ b/lib/authorization-api-model/configuration.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::AuthorizationApiModel diff --git a/lib/authorization-api-model/models/authorization_code.rb b/lib/authorization-api-model/models/authorization_code.rb index 6b3dd91ea..1af071eda 100644 --- a/lib/authorization-api-model/models/authorization_code.rb +++ b/lib/authorization-api-model/models/authorization_code.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/authorization-api-model/models/error.rb b/lib/authorization-api-model/models/error.rb index b4129a6f1..8cd405e50 100644 --- a/lib/authorization-api-model/models/error.rb +++ b/lib/authorization-api-model/models/error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/authorization-api-model/models/error_list.rb b/lib/authorization-api-model/models/error_list.rb index 59e4f1f34..662a7d88f 100644 --- a/lib/authorization-api-model/models/error_list.rb +++ b/lib/authorization-api-model/models/error_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/authorization-api-model/models/get_authorization_code_response.rb b/lib/authorization-api-model/models/get_authorization_code_response.rb index 10f23ed92..f79e2763e 100644 --- a/lib/authorization-api-model/models/get_authorization_code_response.rb +++ b/lib/authorization-api-model/models/get_authorization_code_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/authorization-api-model/spec/api/authorization_api_spec.rb b/lib/authorization-api-model/spec/api/authorization_api_spec.rb index d65190f73..081e074c1 100644 --- a/lib/authorization-api-model/spec/api/authorization_api_spec.rb +++ b/lib/authorization-api-model/spec/api/authorization_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/authorization-api-model/spec/api_client_spec.rb b/lib/authorization-api-model/spec/api_client_spec.rb index 8118c82ed..7f7cab3ce 100644 --- a/lib/authorization-api-model/spec/api_client_spec.rb +++ b/lib/authorization-api-model/spec/api_client_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/authorization-api-model/spec/configuration_spec.rb b/lib/authorization-api-model/spec/configuration_spec.rb index 350a37f6a..48fdfe355 100644 --- a/lib/authorization-api-model/spec/configuration_spec.rb +++ b/lib/authorization-api-model/spec/configuration_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/authorization-api-model/spec/models/authorization_code_spec.rb b/lib/authorization-api-model/spec/models/authorization_code_spec.rb index 7907b8d9c..02c973594 100644 --- a/lib/authorization-api-model/spec/models/authorization_code_spec.rb +++ b/lib/authorization-api-model/spec/models/authorization_code_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/authorization-api-model/spec/models/error_list_spec.rb b/lib/authorization-api-model/spec/models/error_list_spec.rb index 70cf4eda6..536f5efdd 100644 --- a/lib/authorization-api-model/spec/models/error_list_spec.rb +++ b/lib/authorization-api-model/spec/models/error_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/authorization-api-model/spec/models/error_spec.rb b/lib/authorization-api-model/spec/models/error_spec.rb index e827838c3..d78771955 100644 --- a/lib/authorization-api-model/spec/models/error_spec.rb +++ b/lib/authorization-api-model/spec/models/error_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/authorization-api-model/spec/models/get_authorization_code_response_spec.rb b/lib/authorization-api-model/spec/models/get_authorization_code_response_spec.rb index 440d3717d..978e08850 100644 --- a/lib/authorization-api-model/spec/models/get_authorization_code_response_spec.rb +++ b/lib/authorization-api-model/spec/models/get_authorization_code_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/authorization-api-model/spec/spec_helper.rb b/lib/authorization-api-model/spec/spec_helper.rb index 4ac758b28..5944603a2 100644 --- a/lib/authorization-api-model/spec/spec_helper.rb +++ b/lib/authorization-api-model/spec/spec_helper.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # load the gem diff --git a/lib/authorization-api-model/version.rb b/lib/authorization-api-model/version.rb index 16d39dd26..e48329469 100644 --- a/lib/authorization-api-model/version.rb +++ b/lib/authorization-api-model/version.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::AuthorizationApiModel diff --git a/lib/easy-ship-model.rb b/lib/easy-ship-model.rb index 2063fe66c..0329914fe 100644 --- a/lib/easy-ship-model.rb +++ b/lib/easy-ship-model.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # Common files diff --git a/lib/easy-ship-model/.swagger-codegen/VERSION b/lib/easy-ship-model/.swagger-codegen/VERSION index b39b0b9e0..161761765 100644 --- a/lib/easy-ship-model/.swagger-codegen/VERSION +++ b/lib/easy-ship-model/.swagger-codegen/VERSION @@ -1 +1 @@ -3.0.24 \ No newline at end of file +3.0.46 \ No newline at end of file diff --git a/lib/easy-ship-model/README.md b/lib/easy-ship-model/README.md index 00ae57aef..d7d684d60 100644 --- a/lib/easy-ship-model/README.md +++ b/lib/easy-ship-model/README.md @@ -9,7 +9,7 @@ This SDK is automatically generated by the [Swagger Codegen](https://github.com/ - API version: 2022-03-23 - Package version: 0.1.0 - Build package: io.swagger.codegen.v3.generators.ruby.RubyClientCodegen -For more information, please visit [https://github.com/amzn/amazon-marketplace-api-sdk/issues](https://github.com/amzn/amazon-marketplace-api-sdk/issues) +For more information, please visit [https://sellercentral.amazon.com/gp/mws/contactus.html](https://sellercentral.amazon.com/gp/mws/contactus.html) ## Installation diff --git a/lib/easy-ship-model/api/easy_ship_api.rb b/lib/easy-ship-model/api/easy_ship_api.rb index ca9db29cb..b64a058fb 100644 --- a/lib/easy-ship-model/api/easy_ship_api.rb +++ b/lib/easy-ship-model/api/easy_ship_api.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::EasyShipModel @@ -16,7 +16,7 @@ class EasyShipApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Schedules an Easy Ship order and returns the scheduled package information. This operation does the following: * Specifies the time slot and handover method for the order to be scheduled for delivery. * Updates the Easy Ship order status. * Generates a shipping label and an invoice. Calling `createScheduledPackage` also generates a warranty document if you specify a `SerialNumber` value. To get these documents, see [How to get invoice, shipping label, and warranty documents](doc:easy-ship-api-v2022-03-23-use-case-guide). * Shows the status of Easy Ship orders when you call the `getOrders` operation of the Selling Partner API for Orders and examine the `EasyShipShipmentStatus` property in the response body. See the **Shipping Label**, **Invoice**, and **Warranty** columns in the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) to see which documents are supported in each marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Schedules an Easy Ship order and returns the scheduled package information. This operation does the following: * Specifies the time slot and handover method for the order to be scheduled for delivery. * Updates the Easy Ship order status. * Generates a shipping label and an invoice. Calling `createScheduledPackage` also generates a warranty document if you specify a `SerialNumber` value. To get these documents, see [How to get invoice, shipping label, and warranty documents](doc:easyship-api-v2022-03-23-use-case-guide). * Shows the status of Easy Ship orders when you call the `getOrders` operation of the Selling Partner API for Orders and examine the `EasyShipShipmentStatus` property in the response body. See the **Shipping Label**, **Invoice**, and **Warranty** columns in the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) to see which documents are supported in each marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [Package] @@ -25,7 +25,7 @@ def create_scheduled_package(body, opts = {}) data end - # Schedules an Easy Ship order and returns the scheduled package information. This operation does the following: * Specifies the time slot and handover method for the order to be scheduled for delivery. * Updates the Easy Ship order status. * Generates a shipping label and an invoice. Calling `createScheduledPackage` also generates a warranty document if you specify a `SerialNumber` value. To get these documents, see [How to get invoice, shipping label, and warranty documents](doc:easy-ship-api-v2022-03-23-use-case-guide). * Shows the status of Easy Ship orders when you call the `getOrders` operation of the Selling Partner API for Orders and examine the `EasyShipShipmentStatus` property in the response body. See the **Shipping Label**, **Invoice**, and **Warranty** columns in the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) to see which documents are supported in each marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Schedules an Easy Ship order and returns the scheduled package information. This operation does the following: * Specifies the time slot and handover method for the order to be scheduled for delivery. * Updates the Easy Ship order status. * Generates a shipping label and an invoice. Calling `createScheduledPackage` also generates a warranty document if you specify a `SerialNumber` value. To get these documents, see [How to get invoice, shipping label, and warranty documents](doc:easyship-api-v2022-03-23-use-case-guide). * Shows the status of Easy Ship orders when you call the `getOrders` operation of the Selling Partner API for Orders and examine the `EasyShipShipmentStatus` property in the response body. See the **Shipping Label**, **Invoice**, and **Warranty** columns in the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) to see which documents are supported in each marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [Array<(Package, Integer, Hash)>] Package data, response status code and response headers @@ -72,7 +72,7 @@ def create_scheduled_package_with_http_info(body, opts = {}) end return data, status_code, headers end - # This operation automatically schedules a time slot for all the `amazonOrderId`s given as input, generating the associated shipping labels, along with other compliance documents according to the marketplace (refer to the [marketplace document support table](doc:easy-ship-api-v2022-03-23-marketplace-document-support-table)). Developers calling this operation may optionally assign a `packageDetails` object, allowing them to input a preferred time slot for each order in ther request. In this case, Amazon will try to schedule the respective packages using their optional settings. On the other hand, *i.e.*, if the time slot is not provided, Amazon will then pick the earliest time slot possible. Regarding the shipping label's file format, external developers are able to choose between PDF or ZPL, and Amazon will create the label accordingly. This operation returns an array composed of the scheduled packages, and a short-lived URL pointing to a zip file containing the generated shipping labels and the other documents enabled for your marketplace. If at least an order couldn't be scheduled, then Amazon adds the `rejectedOrders` list into the response, which contains an entry for each order we couldn't process. Each entry is composed of an error message describing the reason of the failure, so that sellers can take action. The table below displays the supported request and burst maximum rates: | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # This operation automatically schedules a time slot for all the `amazonOrderId`s given as input, generating the associated shipping labels, along with other compliance documents according to the marketplace (refer to the [marketplace document support table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table)). Developers calling this operation may optionally assign a `packageDetails` object, allowing them to input a preferred time slot for each order in ther request. In this case, Amazon will try to schedule the respective packages using their optional settings. On the other hand, *i.e.*, if the time slot is not provided, Amazon will then pick the earliest time slot possible. Regarding the shipping label's file format, external developers are able to choose between PDF or ZPL, and Amazon will create the label accordingly. This operation returns an array composed of the scheduled packages, and a short-lived URL pointing to a zip file containing the generated shipping labels and the other documents enabled for your marketplace. If at least an order couldn't be scheduled, then Amazon adds the `rejectedOrders` list into the response, which contains an entry for each order we couldn't process. Each entry is composed of an error message describing the reason of the failure, so that sellers can take action. The table below displays the supported request and burst maximum rates: **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [CreateScheduledPackagesResponse] @@ -81,7 +81,7 @@ def create_scheduled_package_bulk(body, opts = {}) data end - # This operation automatically schedules a time slot for all the `amazonOrderId`s given as input, generating the associated shipping labels, along with other compliance documents according to the marketplace (refer to the [marketplace document support table](doc:easy-ship-api-v2022-03-23-marketplace-document-support-table)). Developers calling this operation may optionally assign a `packageDetails` object, allowing them to input a preferred time slot for each order in ther request. In this case, Amazon will try to schedule the respective packages using their optional settings. On the other hand, *i.e.*, if the time slot is not provided, Amazon will then pick the earliest time slot possible. Regarding the shipping label's file format, external developers are able to choose between PDF or ZPL, and Amazon will create the label accordingly. This operation returns an array composed of the scheduled packages, and a short-lived URL pointing to a zip file containing the generated shipping labels and the other documents enabled for your marketplace. If at least an order couldn't be scheduled, then Amazon adds the `rejectedOrders` list into the response, which contains an entry for each order we couldn't process. Each entry is composed of an error message describing the reason of the failure, so that sellers can take action. The table below displays the supported request and burst maximum rates: | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # This operation automatically schedules a time slot for all the `amazonOrderId`s given as input, generating the associated shipping labels, along with other compliance documents according to the marketplace (refer to the [marketplace document support table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table)). Developers calling this operation may optionally assign a `packageDetails` object, allowing them to input a preferred time slot for each order in ther request. In this case, Amazon will try to schedule the respective packages using their optional settings. On the other hand, *i.e.*, if the time slot is not provided, Amazon will then pick the earliest time slot possible. Regarding the shipping label's file format, external developers are able to choose between PDF or ZPL, and Amazon will create the label accordingly. This operation returns an array composed of the scheduled packages, and a short-lived URL pointing to a zip file containing the generated shipping labels and the other documents enabled for your marketplace. If at least an order couldn't be scheduled, then Amazon adds the `rejectedOrders` list into the response, which contains an entry for each order we couldn't process. Each entry is composed of an error message describing the reason of the failure, so that sellers can take action. The table below displays the supported request and burst maximum rates: **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [Array<(CreateScheduledPackagesResponse, Integer, Hash)>] CreateScheduledPackagesResponse data, response status code and response headers diff --git a/lib/easy-ship-model/api_client.rb b/lib/easy-ship-model/api_client.rb index 77c637aad..1032d9013 100644 --- a/lib/easy-ship-model/api_client.rb +++ b/lib/easy-ship-model/api_client.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/api_error.rb b/lib/easy-ship-model/api_error.rb index 509c750c6..385cba451 100644 --- a/lib/easy-ship-model/api_error.rb +++ b/lib/easy-ship-model/api_error.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::EasyShipModel diff --git a/lib/easy-ship-model/configuration.rb b/lib/easy-ship-model/configuration.rb index 992c7e13e..b681f3231 100644 --- a/lib/easy-ship-model/configuration.rb +++ b/lib/easy-ship-model/configuration.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::EasyShipModel diff --git a/lib/easy-ship-model/docs/EasyShipApi.md b/lib/easy-ship-model/docs/EasyShipApi.md index 34eccd2c9..1315afa95 100644 --- a/lib/easy-ship-model/docs/EasyShipApi.md +++ b/lib/easy-ship-model/docs/EasyShipApi.md @@ -15,7 +15,7 @@ Method | HTTP request | Description -Schedules an Easy Ship order and returns the scheduled package information. This operation does the following: * Specifies the time slot and handover method for the order to be scheduled for delivery. * Updates the Easy Ship order status. * Generates a shipping label and an invoice. Calling `createScheduledPackage` also generates a warranty document if you specify a `SerialNumber` value. To get these documents, see [How to get invoice, shipping label, and warranty documents](doc:easy-ship-api-v2022-03-23-use-case-guide). * Shows the status of Easy Ship orders when you call the `getOrders` operation of the Selling Partner API for Orders and examine the `EasyShipShipmentStatus` property in the response body. See the **Shipping Label**, **Invoice**, and **Warranty** columns in the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) to see which documents are supported in each marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). +Schedules an Easy Ship order and returns the scheduled package information. This operation does the following: * Specifies the time slot and handover method for the order to be scheduled for delivery. * Updates the Easy Ship order status. * Generates a shipping label and an invoice. Calling `createScheduledPackage` also generates a warranty document if you specify a `SerialNumber` value. To get these documents, see [How to get invoice, shipping label, and warranty documents](doc:easyship-api-v2022-03-23-use-case-guide). * Shows the status of Easy Ship orders when you call the `getOrders` operation of the Selling Partner API for Orders and examine the `EasyShipShipmentStatus` property in the response body. See the **Shipping Label**, **Invoice**, and **Warranty** columns in the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) to see which documents are supported in each marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -60,7 +60,7 @@ No authorization required -This operation automatically schedules a time slot for all the `amazonOrderId`s given as input, generating the associated shipping labels, along with other compliance documents according to the marketplace (refer to the [marketplace document support table](doc:easy-ship-api-v2022-03-23-marketplace-document-support-table)). Developers calling this operation may optionally assign a `packageDetails` object, allowing them to input a preferred time slot for each order in ther request. In this case, Amazon will try to schedule the respective packages using their optional settings. On the other hand, *i.e.*, if the time slot is not provided, Amazon will then pick the earliest time slot possible. Regarding the shipping label's file format, external developers are able to choose between PDF or ZPL, and Amazon will create the label accordingly. This operation returns an array composed of the scheduled packages, and a short-lived URL pointing to a zip file containing the generated shipping labels and the other documents enabled for your marketplace. If at least an order couldn't be scheduled, then Amazon adds the `rejectedOrders` list into the response, which contains an entry for each order we couldn't process. Each entry is composed of an error message describing the reason of the failure, so that sellers can take action. The table below displays the supported request and burst maximum rates: | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). +This operation automatically schedules a time slot for all the `amazonOrderId`s given as input, generating the associated shipping labels, along with other compliance documents according to the marketplace (refer to the [marketplace document support table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table)). Developers calling this operation may optionally assign a `packageDetails` object, allowing them to input a preferred time slot for each order in ther request. In this case, Amazon will try to schedule the respective packages using their optional settings. On the other hand, *i.e.*, if the time slot is not provided, Amazon will then pick the earliest time slot possible. Regarding the shipping label's file format, external developers are able to choose between PDF or ZPL, and Amazon will create the label accordingly. This operation returns an array composed of the scheduled packages, and a short-lived URL pointing to a zip file containing the generated shipping labels and the other documents enabled for your marketplace. If at least an order couldn't be scheduled, then Amazon adds the `rejectedOrders` list into the response, which contains an entry for each order we couldn't process. Each entry is composed of an error message describing the reason of the failure, so that sellers can take action. The table below displays the supported request and burst maximum rates: **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby diff --git a/lib/easy-ship-model/models/amazon_order_id.rb b/lib/easy-ship-model/models/amazon_order_id.rb index 6e83bcc45..6b1f6fe90 100644 --- a/lib/easy-ship-model/models/amazon_order_id.rb +++ b/lib/easy-ship-model/models/amazon_order_id.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/code.rb b/lib/easy-ship-model/models/code.rb index 8c93e4ff7..b39f16a17 100644 --- a/lib/easy-ship-model/models/code.rb +++ b/lib/easy-ship-model/models/code.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/create_scheduled_package_request.rb b/lib/easy-ship-model/models/create_scheduled_package_request.rb index baa0d98c4..ec1461366 100644 --- a/lib/easy-ship-model/models/create_scheduled_package_request.rb +++ b/lib/easy-ship-model/models/create_scheduled_package_request.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/create_scheduled_packages_request.rb b/lib/easy-ship-model/models/create_scheduled_packages_request.rb index 01128b941..a8c073924 100644 --- a/lib/easy-ship-model/models/create_scheduled_packages_request.rb +++ b/lib/easy-ship-model/models/create_scheduled_packages_request.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/create_scheduled_packages_response.rb b/lib/easy-ship-model/models/create_scheduled_packages_response.rb index 1a301b5dc..7e7b0e70f 100644 --- a/lib/easy-ship-model/models/create_scheduled_packages_response.rb +++ b/lib/easy-ship-model/models/create_scheduled_packages_response.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/date_time.rb b/lib/easy-ship-model/models/date_time.rb index 9a3b34261..a36f89f48 100644 --- a/lib/easy-ship-model/models/date_time.rb +++ b/lib/easy-ship-model/models/date_time.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/dimension.rb b/lib/easy-ship-model/models/dimension.rb index a5c4d80aa..13b394c35 100644 --- a/lib/easy-ship-model/models/dimension.rb +++ b/lib/easy-ship-model/models/dimension.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/dimensions.rb b/lib/easy-ship-model/models/dimensions.rb index 83f5b62b5..fcd678a0b 100644 --- a/lib/easy-ship-model/models/dimensions.rb +++ b/lib/easy-ship-model/models/dimensions.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/error.rb b/lib/easy-ship-model/models/error.rb index d2df2f480..13a32d614 100644 --- a/lib/easy-ship-model/models/error.rb +++ b/lib/easy-ship-model/models/error.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/error_list.rb b/lib/easy-ship-model/models/error_list.rb index 7708eaf95..0a91b55c0 100644 --- a/lib/easy-ship-model/models/error_list.rb +++ b/lib/easy-ship-model/models/error_list.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/handover_method.rb b/lib/easy-ship-model/models/handover_method.rb index 946b0044a..69a5f4119 100644 --- a/lib/easy-ship-model/models/handover_method.rb +++ b/lib/easy-ship-model/models/handover_method.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/invoice_data.rb b/lib/easy-ship-model/models/invoice_data.rb index d6445eb63..1f908aaef 100644 --- a/lib/easy-ship-model/models/invoice_data.rb +++ b/lib/easy-ship-model/models/invoice_data.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/item.rb b/lib/easy-ship-model/models/item.rb index 40d5096f3..be6d2e6b1 100644 --- a/lib/easy-ship-model/models/item.rb +++ b/lib/easy-ship-model/models/item.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/items.rb b/lib/easy-ship-model/models/items.rb index 9705a6fa4..65a562c9a 100644 --- a/lib/easy-ship-model/models/items.rb +++ b/lib/easy-ship-model/models/items.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/label_format.rb b/lib/easy-ship-model/models/label_format.rb index 4a1ccd15d..d58359451 100644 --- a/lib/easy-ship-model/models/label_format.rb +++ b/lib/easy-ship-model/models/label_format.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/list_handover_slots_request.rb b/lib/easy-ship-model/models/list_handover_slots_request.rb index 2644e5ffe..d5458e069 100644 --- a/lib/easy-ship-model/models/list_handover_slots_request.rb +++ b/lib/easy-ship-model/models/list_handover_slots_request.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/list_handover_slots_response.rb b/lib/easy-ship-model/models/list_handover_slots_response.rb index 680d7e8e1..ac618bb13 100644 --- a/lib/easy-ship-model/models/list_handover_slots_response.rb +++ b/lib/easy-ship-model/models/list_handover_slots_response.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/order_item_id.rb b/lib/easy-ship-model/models/order_item_id.rb index d49a4fd50..938e39d20 100644 --- a/lib/easy-ship-model/models/order_item_id.rb +++ b/lib/easy-ship-model/models/order_item_id.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/order_item_serial_number.rb b/lib/easy-ship-model/models/order_item_serial_number.rb index e97c3efb1..cbf61dad6 100644 --- a/lib/easy-ship-model/models/order_item_serial_number.rb +++ b/lib/easy-ship-model/models/order_item_serial_number.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/order_item_serial_numbers.rb b/lib/easy-ship-model/models/order_item_serial_numbers.rb index e8adea787..7cbaa50c4 100644 --- a/lib/easy-ship-model/models/order_item_serial_numbers.rb +++ b/lib/easy-ship-model/models/order_item_serial_numbers.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/order_schedule_details.rb b/lib/easy-ship-model/models/order_schedule_details.rb index b2d17b0f0..61c764506 100644 --- a/lib/easy-ship-model/models/order_schedule_details.rb +++ b/lib/easy-ship-model/models/order_schedule_details.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/package.rb b/lib/easy-ship-model/models/package.rb index 0521e7c99..ba1796744 100644 --- a/lib/easy-ship-model/models/package.rb +++ b/lib/easy-ship-model/models/package.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/package_details.rb b/lib/easy-ship-model/models/package_details.rb index 218020b3f..926951fe7 100644 --- a/lib/easy-ship-model/models/package_details.rb +++ b/lib/easy-ship-model/models/package_details.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/package_id.rb b/lib/easy-ship-model/models/package_id.rb index c02b975a4..74e5989dc 100644 --- a/lib/easy-ship-model/models/package_id.rb +++ b/lib/easy-ship-model/models/package_id.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/package_identifier.rb b/lib/easy-ship-model/models/package_identifier.rb index 4f3bfbd1c..47ad216d1 100644 --- a/lib/easy-ship-model/models/package_identifier.rb +++ b/lib/easy-ship-model/models/package_identifier.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/package_status.rb b/lib/easy-ship-model/models/package_status.rb index 5b1db7486..a94f1cc18 100644 --- a/lib/easy-ship-model/models/package_status.rb +++ b/lib/easy-ship-model/models/package_status.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/packages.rb b/lib/easy-ship-model/models/packages.rb index 57c1456b7..a7a034fbe 100644 --- a/lib/easy-ship-model/models/packages.rb +++ b/lib/easy-ship-model/models/packages.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/rejected_order.rb b/lib/easy-ship-model/models/rejected_order.rb index 3d9148c70..953d883e1 100644 --- a/lib/easy-ship-model/models/rejected_order.rb +++ b/lib/easy-ship-model/models/rejected_order.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/scheduled_package_id.rb b/lib/easy-ship-model/models/scheduled_package_id.rb index dbd2c19b9..b27038b5c 100644 --- a/lib/easy-ship-model/models/scheduled_package_id.rb +++ b/lib/easy-ship-model/models/scheduled_package_id.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/string.rb b/lib/easy-ship-model/models/string.rb index 120115af8..3e5972b02 100644 --- a/lib/easy-ship-model/models/string.rb +++ b/lib/easy-ship-model/models/string.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/time_slot.rb b/lib/easy-ship-model/models/time_slot.rb index f9d4af7c2..56e248367 100644 --- a/lib/easy-ship-model/models/time_slot.rb +++ b/lib/easy-ship-model/models/time_slot.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/time_slots.rb b/lib/easy-ship-model/models/time_slots.rb index 14e2cb746..c24ded7d6 100644 --- a/lib/easy-ship-model/models/time_slots.rb +++ b/lib/easy-ship-model/models/time_slots.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/tracking_details.rb b/lib/easy-ship-model/models/tracking_details.rb index f6902cb52..77b9cca09 100644 --- a/lib/easy-ship-model/models/tracking_details.rb +++ b/lib/easy-ship-model/models/tracking_details.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/unit_of_length.rb b/lib/easy-ship-model/models/unit_of_length.rb index 110cdab10..88e4b11d9 100644 --- a/lib/easy-ship-model/models/unit_of_length.rb +++ b/lib/easy-ship-model/models/unit_of_length.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/unit_of_weight.rb b/lib/easy-ship-model/models/unit_of_weight.rb index a1bc13366..a636246c4 100644 --- a/lib/easy-ship-model/models/unit_of_weight.rb +++ b/lib/easy-ship-model/models/unit_of_weight.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/update_package_details.rb b/lib/easy-ship-model/models/update_package_details.rb index 068f0ada0..9ec516644 100644 --- a/lib/easy-ship-model/models/update_package_details.rb +++ b/lib/easy-ship-model/models/update_package_details.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/update_package_details_list.rb b/lib/easy-ship-model/models/update_package_details_list.rb index e10e3775d..14874b65e 100644 --- a/lib/easy-ship-model/models/update_package_details_list.rb +++ b/lib/easy-ship-model/models/update_package_details_list.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/update_scheduled_packages_request.rb b/lib/easy-ship-model/models/update_scheduled_packages_request.rb index dfb119254..4647d9d9d 100644 --- a/lib/easy-ship-model/models/update_scheduled_packages_request.rb +++ b/lib/easy-ship-model/models/update_scheduled_packages_request.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/url.rb b/lib/easy-ship-model/models/url.rb index 553b213bf..231f5efc3 100644 --- a/lib/easy-ship-model/models/url.rb +++ b/lib/easy-ship-model/models/url.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/weight.rb b/lib/easy-ship-model/models/weight.rb index 2d3783949..64554b50a 100644 --- a/lib/easy-ship-model/models/weight.rb +++ b/lib/easy-ship-model/models/weight.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/models/weight_value.rb b/lib/easy-ship-model/models/weight_value.rb index 43f41284b..7d8a03a28 100644 --- a/lib/easy-ship-model/models/weight_value.rb +++ b/lib/easy-ship-model/models/weight_value.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/easy-ship-model/spec/api/easy_ship_api_spec.rb b/lib/easy-ship-model/spec/api/easy_ship_api_spec.rb index 10075c128..7d1705518 100644 --- a/lib/easy-ship-model/spec/api/easy_ship_api_spec.rb +++ b/lib/easy-ship-model/spec/api/easy_ship_api_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -32,7 +32,7 @@ end # unit tests for create_scheduled_package - # Schedules an Easy Ship order and returns the scheduled package information. This operation does the following: * Specifies the time slot and handover method for the order to be scheduled for delivery. * Updates the Easy Ship order status. * Generates a shipping label and an invoice. Calling `createScheduledPackage` also generates a warranty document if you specify a `SerialNumber` value. To get these documents, see [How to get invoice, shipping label, and warranty documents](doc:easy-ship-api-v2022-03-23-use-case-guide). * Shows the status of Easy Ship orders when you call the `getOrders` operation of the Selling Partner API for Orders and examine the `EasyShipShipmentStatus` property in the response body. See the **Shipping Label**, **Invoice**, and **Warranty** columns in the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) to see which documents are supported in each marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Schedules an Easy Ship order and returns the scheduled package information. This operation does the following: * Specifies the time slot and handover method for the order to be scheduled for delivery. * Updates the Easy Ship order status. * Generates a shipping label and an invoice. Calling `createScheduledPackage` also generates a warranty document if you specify a `SerialNumber` value. To get these documents, see [How to get invoice, shipping label, and warranty documents](doc:easyship-api-v2022-03-23-use-case-guide). * Shows the status of Easy Ship orders when you call the `getOrders` operation of the Selling Partner API for Orders and examine the `EasyShipShipmentStatus` property in the response body. See the **Shipping Label**, **Invoice**, and **Warranty** columns in the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) to see which documents are supported in each marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [Package] @@ -43,7 +43,7 @@ end # unit tests for create_scheduled_package_bulk - # This operation automatically schedules a time slot for all the `amazonOrderId`s given as input, generating the associated shipping labels, along with other compliance documents according to the marketplace (refer to the [marketplace document support table](doc:easy-ship-api-v2022-03-23-marketplace-document-support-table)). Developers calling this operation may optionally assign a `packageDetails` object, allowing them to input a preferred time slot for each order in ther request. In this case, Amazon will try to schedule the respective packages using their optional settings. On the other hand, *i.e.*, if the time slot is not provided, Amazon will then pick the earliest time slot possible. Regarding the shipping label's file format, external developers are able to choose between PDF or ZPL, and Amazon will create the label accordingly. This operation returns an array composed of the scheduled packages, and a short-lived URL pointing to a zip file containing the generated shipping labels and the other documents enabled for your marketplace. If at least an order couldn't be scheduled, then Amazon adds the `rejectedOrders` list into the response, which contains an entry for each order we couldn't process. Each entry is composed of an error message describing the reason of the failure, so that sellers can take action. The table below displays the supported request and burst maximum rates: | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # This operation automatically schedules a time slot for all the `amazonOrderId`s given as input, generating the associated shipping labels, along with other compliance documents according to the marketplace (refer to the [marketplace document support table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table)). Developers calling this operation may optionally assign a `packageDetails` object, allowing them to input a preferred time slot for each order in ther request. In this case, Amazon will try to schedule the respective packages using their optional settings. On the other hand, *i.e.*, if the time slot is not provided, Amazon will then pick the earliest time slot possible. Regarding the shipping label's file format, external developers are able to choose between PDF or ZPL, and Amazon will create the label accordingly. This operation returns an array composed of the scheduled packages, and a short-lived URL pointing to a zip file containing the generated shipping labels and the other documents enabled for your marketplace. If at least an order couldn't be scheduled, then Amazon adds the `rejectedOrders` list into the response, which contains an entry for each order we couldn't process. Each entry is composed of an error message describing the reason of the failure, so that sellers can take action. The table below displays the supported request and burst maximum rates: **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [CreateScheduledPackagesResponse] diff --git a/lib/easy-ship-model/spec/api_client_spec.rb b/lib/easy-ship-model/spec/api_client_spec.rb index a3d083177..05ba9784e 100644 --- a/lib/easy-ship-model/spec/api_client_spec.rb +++ b/lib/easy-ship-model/spec/api_client_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/configuration_spec.rb b/lib/easy-ship-model/spec/configuration_spec.rb index ef326e77e..bbd2429c9 100644 --- a/lib/easy-ship-model/spec/configuration_spec.rb +++ b/lib/easy-ship-model/spec/configuration_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/amazon_order_id_spec.rb b/lib/easy-ship-model/spec/models/amazon_order_id_spec.rb index cfd865904..99f5fad1a 100644 --- a/lib/easy-ship-model/spec/models/amazon_order_id_spec.rb +++ b/lib/easy-ship-model/spec/models/amazon_order_id_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/code_spec.rb b/lib/easy-ship-model/spec/models/code_spec.rb index 9c9ef9140..0ff4d6a79 100644 --- a/lib/easy-ship-model/spec/models/code_spec.rb +++ b/lib/easy-ship-model/spec/models/code_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/create_scheduled_package_request_spec.rb b/lib/easy-ship-model/spec/models/create_scheduled_package_request_spec.rb index 8015d6e83..f0b57b24a 100644 --- a/lib/easy-ship-model/spec/models/create_scheduled_package_request_spec.rb +++ b/lib/easy-ship-model/spec/models/create_scheduled_package_request_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/create_scheduled_packages_request_spec.rb b/lib/easy-ship-model/spec/models/create_scheduled_packages_request_spec.rb index b230ad5a7..fdd974219 100644 --- a/lib/easy-ship-model/spec/models/create_scheduled_packages_request_spec.rb +++ b/lib/easy-ship-model/spec/models/create_scheduled_packages_request_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/create_scheduled_packages_response_spec.rb b/lib/easy-ship-model/spec/models/create_scheduled_packages_response_spec.rb index fccd665a7..267db055f 100644 --- a/lib/easy-ship-model/spec/models/create_scheduled_packages_response_spec.rb +++ b/lib/easy-ship-model/spec/models/create_scheduled_packages_response_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/date_time_spec.rb b/lib/easy-ship-model/spec/models/date_time_spec.rb index 1c5dd1cbe..3c8d47c19 100644 --- a/lib/easy-ship-model/spec/models/date_time_spec.rb +++ b/lib/easy-ship-model/spec/models/date_time_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/dimension_spec.rb b/lib/easy-ship-model/spec/models/dimension_spec.rb index 2a5b805ca..5f1f4a950 100644 --- a/lib/easy-ship-model/spec/models/dimension_spec.rb +++ b/lib/easy-ship-model/spec/models/dimension_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/dimensions_spec.rb b/lib/easy-ship-model/spec/models/dimensions_spec.rb index 81779b3ae..86a414f15 100644 --- a/lib/easy-ship-model/spec/models/dimensions_spec.rb +++ b/lib/easy-ship-model/spec/models/dimensions_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/error_list_spec.rb b/lib/easy-ship-model/spec/models/error_list_spec.rb index 4b33ea6e4..2579e3b17 100644 --- a/lib/easy-ship-model/spec/models/error_list_spec.rb +++ b/lib/easy-ship-model/spec/models/error_list_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/error_spec.rb b/lib/easy-ship-model/spec/models/error_spec.rb index 817bc1dc4..84d71c969 100644 --- a/lib/easy-ship-model/spec/models/error_spec.rb +++ b/lib/easy-ship-model/spec/models/error_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/handover_method_spec.rb b/lib/easy-ship-model/spec/models/handover_method_spec.rb index 28632102e..075258db0 100644 --- a/lib/easy-ship-model/spec/models/handover_method_spec.rb +++ b/lib/easy-ship-model/spec/models/handover_method_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/invoice_data_spec.rb b/lib/easy-ship-model/spec/models/invoice_data_spec.rb index 8b9866141..9a3874d8e 100644 --- a/lib/easy-ship-model/spec/models/invoice_data_spec.rb +++ b/lib/easy-ship-model/spec/models/invoice_data_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/item_spec.rb b/lib/easy-ship-model/spec/models/item_spec.rb index a74d8845d..cf43961ad 100644 --- a/lib/easy-ship-model/spec/models/item_spec.rb +++ b/lib/easy-ship-model/spec/models/item_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/items_spec.rb b/lib/easy-ship-model/spec/models/items_spec.rb index 42f804aea..cb5227ac5 100644 --- a/lib/easy-ship-model/spec/models/items_spec.rb +++ b/lib/easy-ship-model/spec/models/items_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/label_format_spec.rb b/lib/easy-ship-model/spec/models/label_format_spec.rb index 73351313f..76e22bd90 100644 --- a/lib/easy-ship-model/spec/models/label_format_spec.rb +++ b/lib/easy-ship-model/spec/models/label_format_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/list_handover_slots_request_spec.rb b/lib/easy-ship-model/spec/models/list_handover_slots_request_spec.rb index 1c1cb8b64..ed352d25c 100644 --- a/lib/easy-ship-model/spec/models/list_handover_slots_request_spec.rb +++ b/lib/easy-ship-model/spec/models/list_handover_slots_request_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/list_handover_slots_response_spec.rb b/lib/easy-ship-model/spec/models/list_handover_slots_response_spec.rb index b14a6d2a3..e90c7b375 100644 --- a/lib/easy-ship-model/spec/models/list_handover_slots_response_spec.rb +++ b/lib/easy-ship-model/spec/models/list_handover_slots_response_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/order_item_id_spec.rb b/lib/easy-ship-model/spec/models/order_item_id_spec.rb index 314905e86..9747f95a6 100644 --- a/lib/easy-ship-model/spec/models/order_item_id_spec.rb +++ b/lib/easy-ship-model/spec/models/order_item_id_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/order_item_serial_number_spec.rb b/lib/easy-ship-model/spec/models/order_item_serial_number_spec.rb index cbd1fb613..4b0b41a98 100644 --- a/lib/easy-ship-model/spec/models/order_item_serial_number_spec.rb +++ b/lib/easy-ship-model/spec/models/order_item_serial_number_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/order_item_serial_numbers_spec.rb b/lib/easy-ship-model/spec/models/order_item_serial_numbers_spec.rb index 4444447fe..18ea400aa 100644 --- a/lib/easy-ship-model/spec/models/order_item_serial_numbers_spec.rb +++ b/lib/easy-ship-model/spec/models/order_item_serial_numbers_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/order_schedule_details_spec.rb b/lib/easy-ship-model/spec/models/order_schedule_details_spec.rb index 10de1707f..5493844f4 100644 --- a/lib/easy-ship-model/spec/models/order_schedule_details_spec.rb +++ b/lib/easy-ship-model/spec/models/order_schedule_details_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/package_details_spec.rb b/lib/easy-ship-model/spec/models/package_details_spec.rb index 4324e1e03..0f08c6e03 100644 --- a/lib/easy-ship-model/spec/models/package_details_spec.rb +++ b/lib/easy-ship-model/spec/models/package_details_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/package_id_spec.rb b/lib/easy-ship-model/spec/models/package_id_spec.rb index c47b645b7..80f9fb29c 100644 --- a/lib/easy-ship-model/spec/models/package_id_spec.rb +++ b/lib/easy-ship-model/spec/models/package_id_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/package_identifier_spec.rb b/lib/easy-ship-model/spec/models/package_identifier_spec.rb index e28e6d4bb..9202edd2c 100644 --- a/lib/easy-ship-model/spec/models/package_identifier_spec.rb +++ b/lib/easy-ship-model/spec/models/package_identifier_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/package_spec.rb b/lib/easy-ship-model/spec/models/package_spec.rb index 44447e74d..a46c01119 100644 --- a/lib/easy-ship-model/spec/models/package_spec.rb +++ b/lib/easy-ship-model/spec/models/package_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/package_status_spec.rb b/lib/easy-ship-model/spec/models/package_status_spec.rb index 3bc6e161e..e7a328a95 100644 --- a/lib/easy-ship-model/spec/models/package_status_spec.rb +++ b/lib/easy-ship-model/spec/models/package_status_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/packages_spec.rb b/lib/easy-ship-model/spec/models/packages_spec.rb index d85372f80..41303618e 100644 --- a/lib/easy-ship-model/spec/models/packages_spec.rb +++ b/lib/easy-ship-model/spec/models/packages_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/rejected_order_spec.rb b/lib/easy-ship-model/spec/models/rejected_order_spec.rb index a25fe7c98..fd8087f95 100644 --- a/lib/easy-ship-model/spec/models/rejected_order_spec.rb +++ b/lib/easy-ship-model/spec/models/rejected_order_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/scheduled_package_id_spec.rb b/lib/easy-ship-model/spec/models/scheduled_package_id_spec.rb index 6e7e5265c..2cbf4d7fb 100644 --- a/lib/easy-ship-model/spec/models/scheduled_package_id_spec.rb +++ b/lib/easy-ship-model/spec/models/scheduled_package_id_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/string_spec.rb b/lib/easy-ship-model/spec/models/string_spec.rb index 1151dbd17..afa035b31 100644 --- a/lib/easy-ship-model/spec/models/string_spec.rb +++ b/lib/easy-ship-model/spec/models/string_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/time_slot_spec.rb b/lib/easy-ship-model/spec/models/time_slot_spec.rb index b746ce5d7..6d3fd35e9 100644 --- a/lib/easy-ship-model/spec/models/time_slot_spec.rb +++ b/lib/easy-ship-model/spec/models/time_slot_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/time_slots_spec.rb b/lib/easy-ship-model/spec/models/time_slots_spec.rb index 94826a6b1..db0855378 100644 --- a/lib/easy-ship-model/spec/models/time_slots_spec.rb +++ b/lib/easy-ship-model/spec/models/time_slots_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/tracking_details_spec.rb b/lib/easy-ship-model/spec/models/tracking_details_spec.rb index 8efb8cd51..2f9a1ec81 100644 --- a/lib/easy-ship-model/spec/models/tracking_details_spec.rb +++ b/lib/easy-ship-model/spec/models/tracking_details_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/unit_of_length_spec.rb b/lib/easy-ship-model/spec/models/unit_of_length_spec.rb index 49be25e09..4d0485004 100644 --- a/lib/easy-ship-model/spec/models/unit_of_length_spec.rb +++ b/lib/easy-ship-model/spec/models/unit_of_length_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/unit_of_weight_spec.rb b/lib/easy-ship-model/spec/models/unit_of_weight_spec.rb index 7e20461ed..60afff176 100644 --- a/lib/easy-ship-model/spec/models/unit_of_weight_spec.rb +++ b/lib/easy-ship-model/spec/models/unit_of_weight_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/update_package_details_list_spec.rb b/lib/easy-ship-model/spec/models/update_package_details_list_spec.rb index 16ed49e66..c69bb8ea7 100644 --- a/lib/easy-ship-model/spec/models/update_package_details_list_spec.rb +++ b/lib/easy-ship-model/spec/models/update_package_details_list_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/update_package_details_spec.rb b/lib/easy-ship-model/spec/models/update_package_details_spec.rb index 62a7f0c94..526d0b9b7 100644 --- a/lib/easy-ship-model/spec/models/update_package_details_spec.rb +++ b/lib/easy-ship-model/spec/models/update_package_details_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/update_scheduled_packages_request_spec.rb b/lib/easy-ship-model/spec/models/update_scheduled_packages_request_spec.rb index c6e76d0a9..31bc30ee2 100644 --- a/lib/easy-ship-model/spec/models/update_scheduled_packages_request_spec.rb +++ b/lib/easy-ship-model/spec/models/update_scheduled_packages_request_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/url_spec.rb b/lib/easy-ship-model/spec/models/url_spec.rb index 2afdb56ef..baef3ec99 100644 --- a/lib/easy-ship-model/spec/models/url_spec.rb +++ b/lib/easy-ship-model/spec/models/url_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/weight_spec.rb b/lib/easy-ship-model/spec/models/weight_spec.rb index 74ac9d112..2f749910c 100644 --- a/lib/easy-ship-model/spec/models/weight_spec.rb +++ b/lib/easy-ship-model/spec/models/weight_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/models/weight_value_spec.rb b/lib/easy-ship-model/spec/models/weight_value_spec.rb index ddc175d15..ba824c368 100644 --- a/lib/easy-ship-model/spec/models/weight_value_spec.rb +++ b/lib/easy-ship-model/spec/models/weight_value_spec.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/easy-ship-model/spec/spec_helper.rb b/lib/easy-ship-model/spec/spec_helper.rb index e2b9a7868..57fbbc7f3 100644 --- a/lib/easy-ship-model/spec/spec_helper.rb +++ b/lib/easy-ship-model/spec/spec_helper.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # load the gem diff --git a/lib/easy-ship-model/version.rb b/lib/easy-ship-model/version.rb index f50ec54b9..fd759b1c8 100644 --- a/lib/easy-ship-model/version.rb +++ b/lib/easy-ship-model/version.rb @@ -4,9 +4,9 @@ #The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders. Your Easy Ship applications can: * Get available time slots for packages to be scheduled for delivery. * Schedule, reschedule, and cancel Easy Ship orders. * Print labels, invoices, and warranties. See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace. OpenAPI spec version: 2022-03-23 -Contact: marketplaceapitest@amazon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::EasyShipModel diff --git a/lib/fba-inbound-eligibility-api-model.rb b/lib/fba-inbound-eligibility-api-model.rb index 27ad99c04..638466c9e 100644 --- a/lib/fba-inbound-eligibility-api-model.rb +++ b/lib/fba-inbound-eligibility-api-model.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # Common files diff --git a/lib/fba-inbound-eligibility-api-model/.swagger-codegen/VERSION b/lib/fba-inbound-eligibility-api-model/.swagger-codegen/VERSION index b39b0b9e0..161761765 100644 --- a/lib/fba-inbound-eligibility-api-model/.swagger-codegen/VERSION +++ b/lib/fba-inbound-eligibility-api-model/.swagger-codegen/VERSION @@ -1 +1 @@ -3.0.24 \ No newline at end of file +3.0.46 \ No newline at end of file diff --git a/lib/fba-inbound-eligibility-api-model/api/fba_inbound_api.rb b/lib/fba-inbound-eligibility-api-model/api/fba_inbound_api.rb index 7f30eefb7..15716c288 100644 --- a/lib/fba-inbound-eligibility-api-model/api/fba_inbound_api.rb +++ b/lib/fba-inbound-eligibility-api-model/api/fba_inbound_api.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::FbaInboundEligibilityApiModel @@ -16,7 +16,7 @@ class FbaInboundApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # This operation gets an eligibility preview for an item that you specify. You can specify the type of eligibility preview that you want (INBOUND or COMMINGLING). For INBOUND previews, you can specify the marketplace in which you want to determine the item's eligibility. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # This operation gets an eligibility preview for an item that you specify. You can specify the type of eligibility preview that you want (INBOUND or COMMINGLING). For INBOUND previews, you can specify the marketplace in which you want to determine the item's eligibility. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param asin The ASIN of the item for which you want an eligibility preview. # @param program The program that you want to check eligibility against. # @param [Hash] opts the optional parameters @@ -27,7 +27,7 @@ def get_item_eligibility_preview(asin, program, opts = {}) data end - # This operation gets an eligibility preview for an item that you specify. You can specify the type of eligibility preview that you want (INBOUND or COMMINGLING). For INBOUND previews, you can specify the marketplace in which you want to determine the item's eligibility. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # This operation gets an eligibility preview for an item that you specify. You can specify the type of eligibility preview that you want (INBOUND or COMMINGLING). For INBOUND previews, you can specify the marketplace in which you want to determine the item's eligibility. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param asin The ASIN of the item for which you want an eligibility preview. # @param program The program that you want to check eligibility against. # @param [Hash] opts the optional parameters diff --git a/lib/fba-inbound-eligibility-api-model/api_client.rb b/lib/fba-inbound-eligibility-api-model/api_client.rb index ff674fd8a..66a75621c 100644 --- a/lib/fba-inbound-eligibility-api-model/api_client.rb +++ b/lib/fba-inbound-eligibility-api-model/api_client.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-inbound-eligibility-api-model/api_error.rb b/lib/fba-inbound-eligibility-api-model/api_error.rb index b35eb42ad..4236fca5f 100644 --- a/lib/fba-inbound-eligibility-api-model/api_error.rb +++ b/lib/fba-inbound-eligibility-api-model/api_error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::FbaInboundEligibilityApiModel diff --git a/lib/fba-inbound-eligibility-api-model/configuration.rb b/lib/fba-inbound-eligibility-api-model/configuration.rb index bc72efdcb..f71542a3f 100644 --- a/lib/fba-inbound-eligibility-api-model/configuration.rb +++ b/lib/fba-inbound-eligibility-api-model/configuration.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::FbaInboundEligibilityApiModel diff --git a/lib/fba-inbound-eligibility-api-model/docs/FbaInboundApi.md b/lib/fba-inbound-eligibility-api-model/docs/FbaInboundApi.md index b385629c0..f29bd2746 100644 --- a/lib/fba-inbound-eligibility-api-model/docs/FbaInboundApi.md +++ b/lib/fba-inbound-eligibility-api-model/docs/FbaInboundApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description -This operation gets an eligibility preview for an item that you specify. You can specify the type of eligibility preview that you want (INBOUND or COMMINGLING). For INBOUND previews, you can specify the marketplace in which you want to determine the item's eligibility. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +This operation gets an eligibility preview for an item that you specify. You can specify the type of eligibility preview that you want (INBOUND or COMMINGLING). For INBOUND previews, you can specify the marketplace in which you want to determine the item's eligibility. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby diff --git a/lib/fba-inbound-eligibility-api-model/models/error.rb b/lib/fba-inbound-eligibility-api-model/models/error.rb index 5cd628771..801fb770b 100644 --- a/lib/fba-inbound-eligibility-api-model/models/error.rb +++ b/lib/fba-inbound-eligibility-api-model/models/error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-inbound-eligibility-api-model/models/error_list.rb b/lib/fba-inbound-eligibility-api-model/models/error_list.rb index 5a3e9686f..23ba53a70 100644 --- a/lib/fba-inbound-eligibility-api-model/models/error_list.rb +++ b/lib/fba-inbound-eligibility-api-model/models/error_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-inbound-eligibility-api-model/models/get_item_eligibility_preview_response.rb b/lib/fba-inbound-eligibility-api-model/models/get_item_eligibility_preview_response.rb index 2ba20639d..4ba5f2856 100644 --- a/lib/fba-inbound-eligibility-api-model/models/get_item_eligibility_preview_response.rb +++ b/lib/fba-inbound-eligibility-api-model/models/get_item_eligibility_preview_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-inbound-eligibility-api-model/models/item_eligibility_preview.rb b/lib/fba-inbound-eligibility-api-model/models/item_eligibility_preview.rb index 5ac3e9ba7..6bfa22891 100644 --- a/lib/fba-inbound-eligibility-api-model/models/item_eligibility_preview.rb +++ b/lib/fba-inbound-eligibility-api-model/models/item_eligibility_preview.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-inbound-eligibility-api-model/spec/api/fba_inbound_api_spec.rb b/lib/fba-inbound-eligibility-api-model/spec/api/fba_inbound_api_spec.rb index 3e0209d98..e3bf322fe 100644 --- a/lib/fba-inbound-eligibility-api-model/spec/api/fba_inbound_api_spec.rb +++ b/lib/fba-inbound-eligibility-api-model/spec/api/fba_inbound_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -32,7 +32,7 @@ end # unit tests for get_item_eligibility_preview - # This operation gets an eligibility preview for an item that you specify. You can specify the type of eligibility preview that you want (INBOUND or COMMINGLING). For INBOUND previews, you can specify the marketplace in which you want to determine the item's eligibility. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # This operation gets an eligibility preview for an item that you specify. You can specify the type of eligibility preview that you want (INBOUND or COMMINGLING). For INBOUND previews, you can specify the marketplace in which you want to determine the item's eligibility. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param asin The ASIN of the item for which you want an eligibility preview. # @param program The program that you want to check eligibility against. # @param [Hash] opts the optional parameters diff --git a/lib/fba-inbound-eligibility-api-model/spec/api_client_spec.rb b/lib/fba-inbound-eligibility-api-model/spec/api_client_spec.rb index e296a530e..1560df23c 100644 --- a/lib/fba-inbound-eligibility-api-model/spec/api_client_spec.rb +++ b/lib/fba-inbound-eligibility-api-model/spec/api_client_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-inbound-eligibility-api-model/spec/configuration_spec.rb b/lib/fba-inbound-eligibility-api-model/spec/configuration_spec.rb index 5328d2001..3f5ac33ee 100644 --- a/lib/fba-inbound-eligibility-api-model/spec/configuration_spec.rb +++ b/lib/fba-inbound-eligibility-api-model/spec/configuration_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-inbound-eligibility-api-model/spec/models/error_list_spec.rb b/lib/fba-inbound-eligibility-api-model/spec/models/error_list_spec.rb index dd1bc3858..b4c356113 100644 --- a/lib/fba-inbound-eligibility-api-model/spec/models/error_list_spec.rb +++ b/lib/fba-inbound-eligibility-api-model/spec/models/error_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-inbound-eligibility-api-model/spec/models/error_spec.rb b/lib/fba-inbound-eligibility-api-model/spec/models/error_spec.rb index 83ba4bdb6..6957f404e 100644 --- a/lib/fba-inbound-eligibility-api-model/spec/models/error_spec.rb +++ b/lib/fba-inbound-eligibility-api-model/spec/models/error_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-inbound-eligibility-api-model/spec/models/get_item_eligibility_preview_response_spec.rb b/lib/fba-inbound-eligibility-api-model/spec/models/get_item_eligibility_preview_response_spec.rb index ac0439110..f29d0619f 100644 --- a/lib/fba-inbound-eligibility-api-model/spec/models/get_item_eligibility_preview_response_spec.rb +++ b/lib/fba-inbound-eligibility-api-model/spec/models/get_item_eligibility_preview_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-inbound-eligibility-api-model/spec/models/item_eligibility_preview_spec.rb b/lib/fba-inbound-eligibility-api-model/spec/models/item_eligibility_preview_spec.rb index 8c7eb1c3e..92587a5be 100644 --- a/lib/fba-inbound-eligibility-api-model/spec/models/item_eligibility_preview_spec.rb +++ b/lib/fba-inbound-eligibility-api-model/spec/models/item_eligibility_preview_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-inbound-eligibility-api-model/spec/spec_helper.rb b/lib/fba-inbound-eligibility-api-model/spec/spec_helper.rb index 84859b157..ed7e1abc1 100644 --- a/lib/fba-inbound-eligibility-api-model/spec/spec_helper.rb +++ b/lib/fba-inbound-eligibility-api-model/spec/spec_helper.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # load the gem diff --git a/lib/fba-inbound-eligibility-api-model/version.rb b/lib/fba-inbound-eligibility-api-model/version.rb index df401fd27..12f1a1f39 100644 --- a/lib/fba-inbound-eligibility-api-model/version.rb +++ b/lib/fba-inbound-eligibility-api-model/version.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::FbaInboundEligibilityApiModel diff --git a/lib/fba-inventory-api-model.rb b/lib/fba-inventory-api-model.rb index a0c3c4c1d..edbda3731 100644 --- a/lib/fba-inventory-api-model.rb +++ b/lib/fba-inventory-api-model.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # Common files diff --git a/lib/fba-inventory-api-model/.swagger-codegen/VERSION b/lib/fba-inventory-api-model/.swagger-codegen/VERSION index b39b0b9e0..161761765 100644 --- a/lib/fba-inventory-api-model/.swagger-codegen/VERSION +++ b/lib/fba-inventory-api-model/.swagger-codegen/VERSION @@ -1 +1 @@ -3.0.24 \ No newline at end of file +3.0.46 \ No newline at end of file diff --git a/lib/fba-inventory-api-model/README.md b/lib/fba-inventory-api-model/README.md index 51e9d516f..7e1600821 100644 --- a/lib/fba-inventory-api-model/README.md +++ b/lib/fba-inventory-api-model/README.md @@ -63,7 +63,8 @@ opts = { details: false, # BOOLEAN | true to return inventory summaries with additional summarized inventory details and quantities. Otherwise, returns inventory summaries only (default value). start_date_time: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | A start date and time in ISO8601 format. If specified, all inventory summaries that have changed since then are returned. You must specify a date and time that is no earlier than 18 months prior to the date and time when you call the API. Note: Changes in inboundWorkingQuantity, inboundShippedQuantity and inboundReceivingQuantity are not detected. seller_skus: ['seller_skus_example'], # Array | A list of seller SKUs for which to return inventory summaries. You may specify up to 50 SKUs. - next_token: 'next_token_example' # String | String token returned in the response of your previous request. + seller_sku: 'seller_sku_example', # String | A single seller SKU used for querying the specified seller SKU inventory summaries. + next_token: 'next_token_example' # String | String token returned in the response of your previous request. The string token will expire 30 seconds after being created. } begin diff --git a/lib/fba-inventory-api-model/api/fba_inventory_api.rb b/lib/fba-inventory-api-model/api/fba_inventory_api.rb index 8ccbc83ca..97ea5f6f2 100644 --- a/lib/fba-inventory-api-model/api/fba_inventory_api.rb +++ b/lib/fba-inventory-api-model/api/fba_inventory_api.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::FbaInventoryApiModel @@ -16,7 +16,7 @@ class FbaInventoryApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Returns a list of inventory summaries. The summaries returned depend on the presence or absence of the startDateTime and sellerSkus parameters: - All inventory summaries with available details are returned when the startDateTime and sellerSkus parameters are omitted. - When startDateTime is provided, the operation returns inventory summaries that have had changes after the date and time specified. The sellerSkus parameter is ignored. - When the sellerSkus parameter is provided, the operation returns inventory summaries for only the specified sellerSkus. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of inventory summaries. The summaries returned depend on the presence or absence of the `startDateTime`, `sellerSkus` and `sellerSku` parameters: - All inventory summaries with available details are returned when the `startDateTime`, `sellerSkus` and `sellerSku` parameters are omitted. - When `startDateTime` is provided, the operation returns inventory summaries that have had changes after the date and time specified. The `sellerSkus` and `sellerSku` parameters are ignored. **Important:** To avoid errors, use both `startDateTime` and `nextToken` to get the next page of inventory summaries that have changed after the date and time specified. - When the `sellerSkus` parameter is provided, the operation returns inventory summaries for only the specified `sellerSkus`. The `sellerSku` parameter is ignored. - When the `sellerSku` parameter is provided, the operation returns inventory summaries for only the specified `sellerSku`. **Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). # @param granularity_type The granularity type for the inventory aggregation level. # @param granularity_id The granularity ID for the inventory aggregation level. # @param marketplace_ids The marketplace ID for the marketplace for which to return inventory summaries. @@ -24,14 +24,15 @@ def initialize(api_client = ApiClient.default) # @option opts [BOOLEAN] :details true to return inventory summaries with additional summarized inventory details and quantities. Otherwise, returns inventory summaries only (default value). (default to false) # @option opts [DateTime] :start_date_time A start date and time in ISO8601 format. If specified, all inventory summaries that have changed since then are returned. You must specify a date and time that is no earlier than 18 months prior to the date and time when you call the API. Note: Changes in inboundWorkingQuantity, inboundShippedQuantity and inboundReceivingQuantity are not detected. # @option opts [Array] :seller_skus A list of seller SKUs for which to return inventory summaries. You may specify up to 50 SKUs. - # @option opts [String] :next_token String token returned in the response of your previous request. + # @option opts [String] :seller_sku A single seller SKU used for querying the specified seller SKU inventory summaries. + # @option opts [String] :next_token String token returned in the response of your previous request. The string token will expire 30 seconds after being created. # @return [GetInventorySummariesResponse] def get_inventory_summaries(granularity_type, granularity_id, marketplace_ids, opts = {}) data, _status_code, _headers = get_inventory_summaries_with_http_info(granularity_type, granularity_id, marketplace_ids, opts) data end - # Returns a list of inventory summaries. The summaries returned depend on the presence or absence of the startDateTime and sellerSkus parameters: - All inventory summaries with available details are returned when the startDateTime and sellerSkus parameters are omitted. - When startDateTime is provided, the operation returns inventory summaries that have had changes after the date and time specified. The sellerSkus parameter is ignored. - When the sellerSkus parameter is provided, the operation returns inventory summaries for only the specified sellerSkus. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of inventory summaries. The summaries returned depend on the presence or absence of the `startDateTime`, `sellerSkus` and `sellerSku` parameters: - All inventory summaries with available details are returned when the `startDateTime`, `sellerSkus` and `sellerSku` parameters are omitted. - When `startDateTime` is provided, the operation returns inventory summaries that have had changes after the date and time specified. The `sellerSkus` and `sellerSku` parameters are ignored. **Important:** To avoid errors, use both `startDateTime` and `nextToken` to get the next page of inventory summaries that have changed after the date and time specified. - When the `sellerSkus` parameter is provided, the operation returns inventory summaries for only the specified `sellerSkus`. The `sellerSku` parameter is ignored. - When the `sellerSku` parameter is provided, the operation returns inventory summaries for only the specified `sellerSku`. **Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). # @param granularity_type The granularity type for the inventory aggregation level. # @param granularity_id The granularity ID for the inventory aggregation level. # @param marketplace_ids The marketplace ID for the marketplace for which to return inventory summaries. @@ -39,7 +40,8 @@ def get_inventory_summaries(granularity_type, granularity_id, marketplace_ids, o # @option opts [BOOLEAN] :details true to return inventory summaries with additional summarized inventory details and quantities. Otherwise, returns inventory summaries only (default value). # @option opts [DateTime] :start_date_time A start date and time in ISO8601 format. If specified, all inventory summaries that have changed since then are returned. You must specify a date and time that is no earlier than 18 months prior to the date and time when you call the API. Note: Changes in inboundWorkingQuantity, inboundShippedQuantity and inboundReceivingQuantity are not detected. # @option opts [Array] :seller_skus A list of seller SKUs for which to return inventory summaries. You may specify up to 50 SKUs. - # @option opts [String] :next_token String token returned in the response of your previous request. + # @option opts [String] :seller_sku A single seller SKU used for querying the specified seller SKU inventory summaries. + # @option opts [String] :next_token String token returned in the response of your previous request. The string token will expire 30 seconds after being created. # @return [Array<(GetInventorySummariesResponse, Integer, Hash)>] GetInventorySummariesResponse data, response status code and response headers def get_inventory_summaries_with_http_info(granularity_type, granularity_id, marketplace_ids, opts = {}) if @api_client.config.debugging @@ -72,6 +74,7 @@ def get_inventory_summaries_with_http_info(granularity_type, granularity_id, mar query_params[:'details'] = opts[:'details'] if !opts[:'details'].nil? query_params[:'startDateTime'] = opts[:'start_date_time'] if !opts[:'start_date_time'].nil? query_params[:'sellerSkus'] = @api_client.build_collection_param(opts[:'seller_skus'], :csv) if !opts[:'seller_skus'].nil? + query_params[:'sellerSku'] = opts[:'seller_sku'] if !opts[:'seller_sku'].nil? query_params[:'nextToken'] = opts[:'next_token'] if !opts[:'next_token'].nil? # header parameters diff --git a/lib/fba-inventory-api-model/api_client.rb b/lib/fba-inventory-api-model/api_client.rb index 75b7bab1c..bf23c4ebb 100644 --- a/lib/fba-inventory-api-model/api_client.rb +++ b/lib/fba-inventory-api-model/api_client.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-inventory-api-model/api_error.rb b/lib/fba-inventory-api-model/api_error.rb index 6df2c4119..b9581cea7 100644 --- a/lib/fba-inventory-api-model/api_error.rb +++ b/lib/fba-inventory-api-model/api_error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::FbaInventoryApiModel diff --git a/lib/fba-inventory-api-model/configuration.rb b/lib/fba-inventory-api-model/configuration.rb index 8f1fd54a8..9e1f5d7e1 100644 --- a/lib/fba-inventory-api-model/configuration.rb +++ b/lib/fba-inventory-api-model/configuration.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::FbaInventoryApiModel diff --git a/lib/fba-inventory-api-model/docs/FbaInventoryApi.md b/lib/fba-inventory-api-model/docs/FbaInventoryApi.md index 27c2fede4..e673a700c 100644 --- a/lib/fba-inventory-api-model/docs/FbaInventoryApi.md +++ b/lib/fba-inventory-api-model/docs/FbaInventoryApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description -Returns a list of inventory summaries. The summaries returned depend on the presence or absence of the startDateTime and sellerSkus parameters: - All inventory summaries with available details are returned when the startDateTime and sellerSkus parameters are omitted. - When startDateTime is provided, the operation returns inventory summaries that have had changes after the date and time specified. The sellerSkus parameter is ignored. - When the sellerSkus parameter is provided, the operation returns inventory summaries for only the specified sellerSkus. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns a list of inventory summaries. The summaries returned depend on the presence or absence of the `startDateTime`, `sellerSkus` and `sellerSku` parameters: - All inventory summaries with available details are returned when the `startDateTime`, `sellerSkus` and `sellerSku` parameters are omitted. - When `startDateTime` is provided, the operation returns inventory summaries that have had changes after the date and time specified. The `sellerSkus` and `sellerSku` parameters are ignored. **Important:** To avoid errors, use both `startDateTime` and `nextToken` to get the next page of inventory summaries that have changed after the date and time specified. - When the `sellerSkus` parameter is provided, the operation returns inventory summaries for only the specified `sellerSkus`. The `sellerSku` parameter is ignored. - When the `sellerSku` parameter is provided, the operation returns inventory summaries for only the specified `sellerSku`. **Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -26,7 +26,8 @@ opts = { details: false, # BOOLEAN | true to return inventory summaries with additional summarized inventory details and quantities. Otherwise, returns inventory summaries only (default value). start_date_time: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | A start date and time in ISO8601 format. If specified, all inventory summaries that have changed since then are returned. You must specify a date and time that is no earlier than 18 months prior to the date and time when you call the API. Note: Changes in inboundWorkingQuantity, inboundShippedQuantity and inboundReceivingQuantity are not detected. seller_skus: ['seller_skus_example'], # Array | A list of seller SKUs for which to return inventory summaries. You may specify up to 50 SKUs. - next_token: 'next_token_example' # String | String token returned in the response of your previous request. + seller_sku: 'seller_sku_example', # String | A single seller SKU used for querying the specified seller SKU inventory summaries. + next_token: 'next_token_example' # String | String token returned in the response of your previous request. The string token will expire 30 seconds after being created. } begin @@ -47,7 +48,8 @@ Name | Type | Description | Notes **details** | **BOOLEAN**| true to return inventory summaries with additional summarized inventory details and quantities. Otherwise, returns inventory summaries only (default value). | [optional] [default to false] **start_date_time** | **DateTime**| A start date and time in ISO8601 format. If specified, all inventory summaries that have changed since then are returned. You must specify a date and time that is no earlier than 18 months prior to the date and time when you call the API. Note: Changes in inboundWorkingQuantity, inboundShippedQuantity and inboundReceivingQuantity are not detected. | [optional] **seller_skus** | [**Array<String>**](String.md)| A list of seller SKUs for which to return inventory summaries. You may specify up to 50 SKUs. | [optional] - **next_token** | **String**| String token returned in the response of your previous request. | [optional] + **seller_sku** | **String**| A single seller SKU used for querying the specified seller SKU inventory summaries. | [optional] + **next_token** | **String**| String token returned in the response of your previous request. The string token will expire 30 seconds after being created. | [optional] ### Return type diff --git a/lib/fba-inventory-api-model/models/error.rb b/lib/fba-inventory-api-model/models/error.rb index 43453766c..614eb8915 100644 --- a/lib/fba-inventory-api-model/models/error.rb +++ b/lib/fba-inventory-api-model/models/error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-inventory-api-model/models/error_list.rb b/lib/fba-inventory-api-model/models/error_list.rb index 340fb37d6..73219f41e 100644 --- a/lib/fba-inventory-api-model/models/error_list.rb +++ b/lib/fba-inventory-api-model/models/error_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-inventory-api-model/models/get_inventory_summaries_response.rb b/lib/fba-inventory-api-model/models/get_inventory_summaries_response.rb index 429dfea70..deccb8233 100644 --- a/lib/fba-inventory-api-model/models/get_inventory_summaries_response.rb +++ b/lib/fba-inventory-api-model/models/get_inventory_summaries_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-inventory-api-model/models/get_inventory_summaries_result.rb b/lib/fba-inventory-api-model/models/get_inventory_summaries_result.rb index e6a2d646c..80f055ce8 100644 --- a/lib/fba-inventory-api-model/models/get_inventory_summaries_result.rb +++ b/lib/fba-inventory-api-model/models/get_inventory_summaries_result.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-inventory-api-model/models/granularity.rb b/lib/fba-inventory-api-model/models/granularity.rb index ef999d4e0..2cb71a9fc 100644 --- a/lib/fba-inventory-api-model/models/granularity.rb +++ b/lib/fba-inventory-api-model/models/granularity.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-inventory-api-model/models/inventory_details.rb b/lib/fba-inventory-api-model/models/inventory_details.rb index e39556eee..80d7e1d62 100644 --- a/lib/fba-inventory-api-model/models/inventory_details.rb +++ b/lib/fba-inventory-api-model/models/inventory_details.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-inventory-api-model/models/inventory_summaries.rb b/lib/fba-inventory-api-model/models/inventory_summaries.rb index 0dadd314d..6ce1dbd7f 100644 --- a/lib/fba-inventory-api-model/models/inventory_summaries.rb +++ b/lib/fba-inventory-api-model/models/inventory_summaries.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-inventory-api-model/models/inventory_summary.rb b/lib/fba-inventory-api-model/models/inventory_summary.rb index bcc907c40..9ff1ad469 100644 --- a/lib/fba-inventory-api-model/models/inventory_summary.rb +++ b/lib/fba-inventory-api-model/models/inventory_summary.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-inventory-api-model/models/pagination.rb b/lib/fba-inventory-api-model/models/pagination.rb index 9ac3cf858..3752c9ec3 100644 --- a/lib/fba-inventory-api-model/models/pagination.rb +++ b/lib/fba-inventory-api-model/models/pagination.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-inventory-api-model/models/researching_quantity.rb b/lib/fba-inventory-api-model/models/researching_quantity.rb index 70cc229a5..790a0987e 100644 --- a/lib/fba-inventory-api-model/models/researching_quantity.rb +++ b/lib/fba-inventory-api-model/models/researching_quantity.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-inventory-api-model/models/researching_quantity_entry.rb b/lib/fba-inventory-api-model/models/researching_quantity_entry.rb index dd18fce1f..05d4850c4 100644 --- a/lib/fba-inventory-api-model/models/researching_quantity_entry.rb +++ b/lib/fba-inventory-api-model/models/researching_quantity_entry.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-inventory-api-model/models/reserved_quantity.rb b/lib/fba-inventory-api-model/models/reserved_quantity.rb index 50add6a81..9cb689088 100644 --- a/lib/fba-inventory-api-model/models/reserved_quantity.rb +++ b/lib/fba-inventory-api-model/models/reserved_quantity.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-inventory-api-model/models/unfulfillable_quantity.rb b/lib/fba-inventory-api-model/models/unfulfillable_quantity.rb index 5770ad67e..bef75ac48 100644 --- a/lib/fba-inventory-api-model/models/unfulfillable_quantity.rb +++ b/lib/fba-inventory-api-model/models/unfulfillable_quantity.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-inventory-api-model/spec/api/fba_inventory_api_spec.rb b/lib/fba-inventory-api-model/spec/api/fba_inventory_api_spec.rb index d32000d89..bb54defd0 100644 --- a/lib/fba-inventory-api-model/spec/api/fba_inventory_api_spec.rb +++ b/lib/fba-inventory-api-model/spec/api/fba_inventory_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -32,7 +32,7 @@ end # unit tests for get_inventory_summaries - # Returns a list of inventory summaries. The summaries returned depend on the presence or absence of the startDateTime and sellerSkus parameters: - All inventory summaries with available details are returned when the startDateTime and sellerSkus parameters are omitted. - When startDateTime is provided, the operation returns inventory summaries that have had changes after the date and time specified. The sellerSkus parameter is ignored. - When the sellerSkus parameter is provided, the operation returns inventory summaries for only the specified sellerSkus. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of inventory summaries. The summaries returned depend on the presence or absence of the `startDateTime`, `sellerSkus` and `sellerSku` parameters: - All inventory summaries with available details are returned when the `startDateTime`, `sellerSkus` and `sellerSku` parameters are omitted. - When `startDateTime` is provided, the operation returns inventory summaries that have had changes after the date and time specified. The `sellerSkus` and `sellerSku` parameters are ignored. **Important:** To avoid errors, use both `startDateTime` and `nextToken` to get the next page of inventory summaries that have changed after the date and time specified. - When the `sellerSkus` parameter is provided, the operation returns inventory summaries for only the specified `sellerSkus`. The `sellerSku` parameter is ignored. - When the `sellerSku` parameter is provided, the operation returns inventory summaries for only the specified `sellerSku`. **Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). # @param granularity_type The granularity type for the inventory aggregation level. # @param granularity_id The granularity ID for the inventory aggregation level. # @param marketplace_ids The marketplace ID for the marketplace for which to return inventory summaries. @@ -40,7 +40,8 @@ # @option opts [BOOLEAN] :details true to return inventory summaries with additional summarized inventory details and quantities. Otherwise, returns inventory summaries only (default value). # @option opts [DateTime] :start_date_time A start date and time in ISO8601 format. If specified, all inventory summaries that have changed since then are returned. You must specify a date and time that is no earlier than 18 months prior to the date and time when you call the API. Note: Changes in inboundWorkingQuantity, inboundShippedQuantity and inboundReceivingQuantity are not detected. # @option opts [Array] :seller_skus A list of seller SKUs for which to return inventory summaries. You may specify up to 50 SKUs. - # @option opts [String] :next_token String token returned in the response of your previous request. + # @option opts [String] :seller_sku A single seller SKU used for querying the specified seller SKU inventory summaries. + # @option opts [String] :next_token String token returned in the response of your previous request. The string token will expire 30 seconds after being created. # @return [GetInventorySummariesResponse] describe 'get_inventory_summaries test' do it 'should work' do diff --git a/lib/fba-inventory-api-model/spec/api_client_spec.rb b/lib/fba-inventory-api-model/spec/api_client_spec.rb index 928ea46e6..e74cd6936 100644 --- a/lib/fba-inventory-api-model/spec/api_client_spec.rb +++ b/lib/fba-inventory-api-model/spec/api_client_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-inventory-api-model/spec/configuration_spec.rb b/lib/fba-inventory-api-model/spec/configuration_spec.rb index 5b1f38b47..bdb400738 100644 --- a/lib/fba-inventory-api-model/spec/configuration_spec.rb +++ b/lib/fba-inventory-api-model/spec/configuration_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-inventory-api-model/spec/models/error_list_spec.rb b/lib/fba-inventory-api-model/spec/models/error_list_spec.rb index 08bb86432..217a99843 100644 --- a/lib/fba-inventory-api-model/spec/models/error_list_spec.rb +++ b/lib/fba-inventory-api-model/spec/models/error_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-inventory-api-model/spec/models/error_spec.rb b/lib/fba-inventory-api-model/spec/models/error_spec.rb index b26d3c0ff..47d2ee186 100644 --- a/lib/fba-inventory-api-model/spec/models/error_spec.rb +++ b/lib/fba-inventory-api-model/spec/models/error_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-inventory-api-model/spec/models/get_inventory_summaries_response_spec.rb b/lib/fba-inventory-api-model/spec/models/get_inventory_summaries_response_spec.rb index dea14fcb9..890237ea6 100644 --- a/lib/fba-inventory-api-model/spec/models/get_inventory_summaries_response_spec.rb +++ b/lib/fba-inventory-api-model/spec/models/get_inventory_summaries_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-inventory-api-model/spec/models/get_inventory_summaries_result_spec.rb b/lib/fba-inventory-api-model/spec/models/get_inventory_summaries_result_spec.rb index 53449b03a..ecca109f3 100644 --- a/lib/fba-inventory-api-model/spec/models/get_inventory_summaries_result_spec.rb +++ b/lib/fba-inventory-api-model/spec/models/get_inventory_summaries_result_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-inventory-api-model/spec/models/granularity_spec.rb b/lib/fba-inventory-api-model/spec/models/granularity_spec.rb index d165b2793..5c6a5377b 100644 --- a/lib/fba-inventory-api-model/spec/models/granularity_spec.rb +++ b/lib/fba-inventory-api-model/spec/models/granularity_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-inventory-api-model/spec/models/inventory_details_spec.rb b/lib/fba-inventory-api-model/spec/models/inventory_details_spec.rb index 554ad0749..a3f2efc5d 100644 --- a/lib/fba-inventory-api-model/spec/models/inventory_details_spec.rb +++ b/lib/fba-inventory-api-model/spec/models/inventory_details_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-inventory-api-model/spec/models/inventory_summaries_spec.rb b/lib/fba-inventory-api-model/spec/models/inventory_summaries_spec.rb index 71ea78698..842a0a34e 100644 --- a/lib/fba-inventory-api-model/spec/models/inventory_summaries_spec.rb +++ b/lib/fba-inventory-api-model/spec/models/inventory_summaries_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-inventory-api-model/spec/models/inventory_summary_spec.rb b/lib/fba-inventory-api-model/spec/models/inventory_summary_spec.rb index 6513f6aff..0c2cb5be8 100644 --- a/lib/fba-inventory-api-model/spec/models/inventory_summary_spec.rb +++ b/lib/fba-inventory-api-model/spec/models/inventory_summary_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-inventory-api-model/spec/models/pagination_spec.rb b/lib/fba-inventory-api-model/spec/models/pagination_spec.rb index 29b864f02..e991d3453 100644 --- a/lib/fba-inventory-api-model/spec/models/pagination_spec.rb +++ b/lib/fba-inventory-api-model/spec/models/pagination_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-inventory-api-model/spec/models/researching_quantity_entry_spec.rb b/lib/fba-inventory-api-model/spec/models/researching_quantity_entry_spec.rb index 4fdb3cf13..8301e5782 100644 --- a/lib/fba-inventory-api-model/spec/models/researching_quantity_entry_spec.rb +++ b/lib/fba-inventory-api-model/spec/models/researching_quantity_entry_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-inventory-api-model/spec/models/researching_quantity_spec.rb b/lib/fba-inventory-api-model/spec/models/researching_quantity_spec.rb index 06bbfeadc..bb4af86e7 100644 --- a/lib/fba-inventory-api-model/spec/models/researching_quantity_spec.rb +++ b/lib/fba-inventory-api-model/spec/models/researching_quantity_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-inventory-api-model/spec/models/reserved_quantity_spec.rb b/lib/fba-inventory-api-model/spec/models/reserved_quantity_spec.rb index 6e913611e..3e599e8ae 100644 --- a/lib/fba-inventory-api-model/spec/models/reserved_quantity_spec.rb +++ b/lib/fba-inventory-api-model/spec/models/reserved_quantity_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-inventory-api-model/spec/models/unfulfillable_quantity_spec.rb b/lib/fba-inventory-api-model/spec/models/unfulfillable_quantity_spec.rb index 07171416a..375480129 100644 --- a/lib/fba-inventory-api-model/spec/models/unfulfillable_quantity_spec.rb +++ b/lib/fba-inventory-api-model/spec/models/unfulfillable_quantity_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-inventory-api-model/spec/spec_helper.rb b/lib/fba-inventory-api-model/spec/spec_helper.rb index ac2a595da..bfe1b4395 100644 --- a/lib/fba-inventory-api-model/spec/spec_helper.rb +++ b/lib/fba-inventory-api-model/spec/spec_helper.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # load the gem diff --git a/lib/fba-inventory-api-model/version.rb b/lib/fba-inventory-api-model/version.rb index 2416115d1..82c5ac508 100644 --- a/lib/fba-inventory-api-model/version.rb +++ b/lib/fba-inventory-api-model/version.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::FbaInventoryApiModel diff --git a/lib/fba-small-and-light-api-model.rb b/lib/fba-small-and-light-api-model.rb index 20d1a8857..e33106c1d 100644 --- a/lib/fba-small-and-light-api-model.rb +++ b/lib/fba-small-and-light-api-model.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # Common files diff --git a/lib/fba-small-and-light-api-model/.swagger-codegen/VERSION b/lib/fba-small-and-light-api-model/.swagger-codegen/VERSION index b39b0b9e0..161761765 100644 --- a/lib/fba-small-and-light-api-model/.swagger-codegen/VERSION +++ b/lib/fba-small-and-light-api-model/.swagger-codegen/VERSION @@ -1 +1 @@ -3.0.24 \ No newline at end of file +3.0.46 \ No newline at end of file diff --git a/lib/fba-small-and-light-api-model/api/small_and_light_api.rb b/lib/fba-small-and-light-api-model/api/small_and_light_api.rb index 49e14005a..3210386c1 100644 --- a/lib/fba-small-and-light-api-model/api/small_and_light_api.rb +++ b/lib/fba-small-and-light-api-model/api/small_and_light_api.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::FbaSmallAndLightApiModel @@ -16,7 +16,7 @@ class SmallAndLightApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Removes the item indicated by the specified seller SKU from the Small and Light program in the specified marketplace. If the item is not eligible for disenrollment, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Removes the item indicated by the specified seller SKU from the Small and Light program in the specified marketplace. If the item is not eligible for disenrollment, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param seller_sku The seller SKU that identifies the item. # @param marketplace_ids The marketplace in which to remove the item from the Small and Light program. Note: Accepts a single marketplace only. # @param [Hash] opts the optional parameters @@ -26,7 +26,7 @@ def delete_small_and_light_enrollment_by_seller_sku(seller_sku, marketplace_ids, nil end - # Removes the item indicated by the specified seller SKU from the Small and Light program in the specified marketplace. If the item is not eligible for disenrollment, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Removes the item indicated by the specified seller SKU from the Small and Light program in the specified marketplace. If the item is not eligible for disenrollment, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param seller_sku The seller SKU that identifies the item. # @param marketplace_ids The marketplace in which to remove the item from the Small and Light program. Note: Accepts a single marketplace only. # @param [Hash] opts the optional parameters @@ -77,7 +77,7 @@ def delete_small_and_light_enrollment_by_seller_sku_with_http_info(seller_sku, m end return data, status_code, headers end - # Returns the Small and Light program eligibility status of the item indicated by the specified seller SKU in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns the Small and Light program eligibility status of the item indicated by the specified seller SKU in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param seller_sku The seller SKU that identifies the item. # @param marketplace_ids The marketplace for which the eligibility status is retrieved. NOTE: Accepts a single marketplace only. # @param [Hash] opts the optional parameters @@ -87,7 +87,7 @@ def get_small_and_light_eligibility_by_seller_sku(seller_sku, marketplace_ids, o data end - # Returns the Small and Light program eligibility status of the item indicated by the specified seller SKU in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns the Small and Light program eligibility status of the item indicated by the specified seller SKU in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param seller_sku The seller SKU that identifies the item. # @param marketplace_ids The marketplace for which the eligibility status is retrieved. NOTE: Accepts a single marketplace only. # @param [Hash] opts the optional parameters @@ -138,7 +138,7 @@ def get_small_and_light_eligibility_by_seller_sku_with_http_info(seller_sku, mar end return data, status_code, headers end - # Returns the Small and Light enrollment status for the item indicated by the specified seller SKU in the specified marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns the Small and Light enrollment status for the item indicated by the specified seller SKU in the specified marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param seller_sku The seller SKU that identifies the item. # @param marketplace_ids The marketplace for which the enrollment status is retrieved. Note: Accepts a single marketplace only. # @param [Hash] opts the optional parameters @@ -148,7 +148,7 @@ def get_small_and_light_enrollment_by_seller_sku(seller_sku, marketplace_ids, op data end - # Returns the Small and Light enrollment status for the item indicated by the specified seller SKU in the specified marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns the Small and Light enrollment status for the item indicated by the specified seller SKU in the specified marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param seller_sku The seller SKU that identifies the item. # @param marketplace_ids The marketplace for which the enrollment status is retrieved. Note: Accepts a single marketplace only. # @param [Hash] opts the optional parameters @@ -199,7 +199,7 @@ def get_small_and_light_enrollment_by_seller_sku_with_http_info(seller_sku, mark end return data, status_code, headers end - # Returns the Small and Light fee estimates for the specified items. You must include a marketplaceId parameter to retrieve the proper fee estimates for items to be sold in that marketplace. The ordering of items in the response will mirror the order of the items in the request. Duplicate ASIN/price combinations are removed. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 3 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns the Small and Light fee estimates for the specified items. You must include a marketplaceId parameter to retrieve the proper fee estimates for items to be sold in that marketplace. The ordering of items in the response will mirror the order of the items in the request. Duplicate ASIN/price combinations are removed. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 3 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [SmallAndLightFeePreviews] @@ -208,7 +208,7 @@ def get_small_and_light_fee_preview(body, opts = {}) data end - # Returns the Small and Light fee estimates for the specified items. You must include a marketplaceId parameter to retrieve the proper fee estimates for items to be sold in that marketplace. The ordering of items in the response will mirror the order of the items in the request. Duplicate ASIN/price combinations are removed. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 3 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns the Small and Light fee estimates for the specified items. You must include a marketplaceId parameter to retrieve the proper fee estimates for items to be sold in that marketplace. The ordering of items in the response will mirror the order of the items in the request. Duplicate ASIN/price combinations are removed. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 3 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [Array<(SmallAndLightFeePreviews, Integer, Hash)>] SmallAndLightFeePreviews data, response status code and response headers @@ -255,7 +255,7 @@ def get_small_and_light_fee_preview_with_http_info(body, opts = {}) end return data, status_code, headers end - # Enrolls the item indicated by the specified seller SKU in the Small and Light program in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Enrolls the item indicated by the specified seller SKU in the Small and Light program in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param seller_sku The seller SKU that identifies the item. # @param marketplace_ids The marketplace in which to enroll the item. Note: Accepts a single marketplace only. # @param [Hash] opts the optional parameters @@ -265,7 +265,7 @@ def put_small_and_light_enrollment_by_seller_sku(seller_sku, marketplace_ids, op data end - # Enrolls the item indicated by the specified seller SKU in the Small and Light program in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Enrolls the item indicated by the specified seller SKU in the Small and Light program in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param seller_sku The seller SKU that identifies the item. # @param marketplace_ids The marketplace in which to enroll the item. Note: Accepts a single marketplace only. # @param [Hash] opts the optional parameters diff --git a/lib/fba-small-and-light-api-model/api_client.rb b/lib/fba-small-and-light-api-model/api_client.rb index a80199b8a..e84d4b4aa 100644 --- a/lib/fba-small-and-light-api-model/api_client.rb +++ b/lib/fba-small-and-light-api-model/api_client.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-small-and-light-api-model/api_error.rb b/lib/fba-small-and-light-api-model/api_error.rb index ee0a40094..be33607a7 100644 --- a/lib/fba-small-and-light-api-model/api_error.rb +++ b/lib/fba-small-and-light-api-model/api_error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::FbaSmallAndLightApiModel diff --git a/lib/fba-small-and-light-api-model/configuration.rb b/lib/fba-small-and-light-api-model/configuration.rb index a5a4c553f..8874b1c4b 100644 --- a/lib/fba-small-and-light-api-model/configuration.rb +++ b/lib/fba-small-and-light-api-model/configuration.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::FbaSmallAndLightApiModel diff --git a/lib/fba-small-and-light-api-model/docs/SmallAndLightApi.md b/lib/fba-small-and-light-api-model/docs/SmallAndLightApi.md index 88d7a31a0..63118c9cf 100644 --- a/lib/fba-small-and-light-api-model/docs/SmallAndLightApi.md +++ b/lib/fba-small-and-light-api-model/docs/SmallAndLightApi.md @@ -15,7 +15,7 @@ Method | HTTP request | Description -Removes the item indicated by the specified seller SKU from the Small and Light program in the specified marketplace. If the item is not eligible for disenrollment, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Removes the item indicated by the specified seller SKU from the Small and Light program in the specified marketplace. If the item is not eligible for disenrollment, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -61,7 +61,7 @@ No authorization required -Returns the Small and Light program eligibility status of the item indicated by the specified seller SKU in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns the Small and Light program eligibility status of the item indicated by the specified seller SKU in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -108,7 +108,7 @@ No authorization required -Returns the Small and Light enrollment status for the item indicated by the specified seller SKU in the specified marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns the Small and Light enrollment status for the item indicated by the specified seller SKU in the specified marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -155,7 +155,7 @@ No authorization required -Returns the Small and Light fee estimates for the specified items. You must include a marketplaceId parameter to retrieve the proper fee estimates for items to be sold in that marketplace. The ordering of items in the response will mirror the order of the items in the request. Duplicate ASIN/price combinations are removed. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 3 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns the Small and Light fee estimates for the specified items. You must include a marketplaceId parameter to retrieve the proper fee estimates for items to be sold in that marketplace. The ordering of items in the response will mirror the order of the items in the request. Duplicate ASIN/price combinations are removed. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 3 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -200,7 +200,7 @@ No authorization required -Enrolls the item indicated by the specified seller SKU in the Small and Light program in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Enrolls the item indicated by the specified seller SKU in the Small and Light program in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby diff --git a/lib/fba-small-and-light-api-model/models/error.rb b/lib/fba-small-and-light-api-model/models/error.rb index 87a8a6051..5ee5fc447 100644 --- a/lib/fba-small-and-light-api-model/models/error.rb +++ b/lib/fba-small-and-light-api-model/models/error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-small-and-light-api-model/models/error_list.rb b/lib/fba-small-and-light-api-model/models/error_list.rb index 0934cf295..7c0010756 100644 --- a/lib/fba-small-and-light-api-model/models/error_list.rb +++ b/lib/fba-small-and-light-api-model/models/error_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-small-and-light-api-model/models/fee_line_item.rb b/lib/fba-small-and-light-api-model/models/fee_line_item.rb index e8aaf46e4..d91875cf6 100644 --- a/lib/fba-small-and-light-api-model/models/fee_line_item.rb +++ b/lib/fba-small-and-light-api-model/models/fee_line_item.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-small-and-light-api-model/models/fee_preview.rb b/lib/fba-small-and-light-api-model/models/fee_preview.rb index cf31b6dc3..eadc4d489 100644 --- a/lib/fba-small-and-light-api-model/models/fee_preview.rb +++ b/lib/fba-small-and-light-api-model/models/fee_preview.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-small-and-light-api-model/models/item.rb b/lib/fba-small-and-light-api-model/models/item.rb index 3c25e4b6c..1ffa2709f 100644 --- a/lib/fba-small-and-light-api-model/models/item.rb +++ b/lib/fba-small-and-light-api-model/models/item.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-small-and-light-api-model/models/marketplace_id.rb b/lib/fba-small-and-light-api-model/models/marketplace_id.rb index e822d3a1e..3be81e714 100644 --- a/lib/fba-small-and-light-api-model/models/marketplace_id.rb +++ b/lib/fba-small-and-light-api-model/models/marketplace_id.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-small-and-light-api-model/models/money_type.rb b/lib/fba-small-and-light-api-model/models/money_type.rb index f99f66282..9e755f75d 100644 --- a/lib/fba-small-and-light-api-model/models/money_type.rb +++ b/lib/fba-small-and-light-api-model/models/money_type.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-small-and-light-api-model/models/seller_sku.rb b/lib/fba-small-and-light-api-model/models/seller_sku.rb index 72d01ef97..19a2e4197 100644 --- a/lib/fba-small-and-light-api-model/models/seller_sku.rb +++ b/lib/fba-small-and-light-api-model/models/seller_sku.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-small-and-light-api-model/models/small_and_light_eligibility.rb b/lib/fba-small-and-light-api-model/models/small_and_light_eligibility.rb index a71976839..9b3d63586 100644 --- a/lib/fba-small-and-light-api-model/models/small_and_light_eligibility.rb +++ b/lib/fba-small-and-light-api-model/models/small_and_light_eligibility.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-small-and-light-api-model/models/small_and_light_eligibility_status.rb b/lib/fba-small-and-light-api-model/models/small_and_light_eligibility_status.rb index 4f5040610..8dfcae64b 100644 --- a/lib/fba-small-and-light-api-model/models/small_and_light_eligibility_status.rb +++ b/lib/fba-small-and-light-api-model/models/small_and_light_eligibility_status.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-small-and-light-api-model/models/small_and_light_enrollment.rb b/lib/fba-small-and-light-api-model/models/small_and_light_enrollment.rb index 545a9e2bc..398836d4d 100644 --- a/lib/fba-small-and-light-api-model/models/small_and_light_enrollment.rb +++ b/lib/fba-small-and-light-api-model/models/small_and_light_enrollment.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-small-and-light-api-model/models/small_and_light_enrollment_status.rb b/lib/fba-small-and-light-api-model/models/small_and_light_enrollment_status.rb index 53a30fffd..a62904c80 100644 --- a/lib/fba-small-and-light-api-model/models/small_and_light_enrollment_status.rb +++ b/lib/fba-small-and-light-api-model/models/small_and_light_enrollment_status.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-small-and-light-api-model/models/small_and_light_fee_preview_request.rb b/lib/fba-small-and-light-api-model/models/small_and_light_fee_preview_request.rb index 681c52a25..29a8c98f1 100644 --- a/lib/fba-small-and-light-api-model/models/small_and_light_fee_preview_request.rb +++ b/lib/fba-small-and-light-api-model/models/small_and_light_fee_preview_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-small-and-light-api-model/models/small_and_light_fee_previews.rb b/lib/fba-small-and-light-api-model/models/small_and_light_fee_previews.rb index 651e9b109..bb1f69554 100644 --- a/lib/fba-small-and-light-api-model/models/small_and_light_fee_previews.rb +++ b/lib/fba-small-and-light-api-model/models/small_and_light_fee_previews.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fba-small-and-light-api-model/spec/api/small_and_light_api_spec.rb b/lib/fba-small-and-light-api-model/spec/api/small_and_light_api_spec.rb index c1d638b06..c7ad68fc0 100644 --- a/lib/fba-small-and-light-api-model/spec/api/small_and_light_api_spec.rb +++ b/lib/fba-small-and-light-api-model/spec/api/small_and_light_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -32,7 +32,7 @@ end # unit tests for delete_small_and_light_enrollment_by_seller_sku - # Removes the item indicated by the specified seller SKU from the Small and Light program in the specified marketplace. If the item is not eligible for disenrollment, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Removes the item indicated by the specified seller SKU from the Small and Light program in the specified marketplace. If the item is not eligible for disenrollment, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param seller_sku The seller SKU that identifies the item. # @param marketplace_ids The marketplace in which to remove the item from the Small and Light program. Note: Accepts a single marketplace only. # @param [Hash] opts the optional parameters @@ -44,7 +44,7 @@ end # unit tests for get_small_and_light_eligibility_by_seller_sku - # Returns the Small and Light program eligibility status of the item indicated by the specified seller SKU in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns the Small and Light program eligibility status of the item indicated by the specified seller SKU in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param seller_sku The seller SKU that identifies the item. # @param marketplace_ids The marketplace for which the eligibility status is retrieved. NOTE: Accepts a single marketplace only. # @param [Hash] opts the optional parameters @@ -56,7 +56,7 @@ end # unit tests for get_small_and_light_enrollment_by_seller_sku - # Returns the Small and Light enrollment status for the item indicated by the specified seller SKU in the specified marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns the Small and Light enrollment status for the item indicated by the specified seller SKU in the specified marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param seller_sku The seller SKU that identifies the item. # @param marketplace_ids The marketplace for which the enrollment status is retrieved. Note: Accepts a single marketplace only. # @param [Hash] opts the optional parameters @@ -68,7 +68,7 @@ end # unit tests for get_small_and_light_fee_preview - # Returns the Small and Light fee estimates for the specified items. You must include a marketplaceId parameter to retrieve the proper fee estimates for items to be sold in that marketplace. The ordering of items in the response will mirror the order of the items in the request. Duplicate ASIN/price combinations are removed. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 3 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns the Small and Light fee estimates for the specified items. You must include a marketplaceId parameter to retrieve the proper fee estimates for items to be sold in that marketplace. The ordering of items in the response will mirror the order of the items in the request. Duplicate ASIN/price combinations are removed. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 3 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [SmallAndLightFeePreviews] @@ -79,7 +79,7 @@ end # unit tests for put_small_and_light_enrollment_by_seller_sku - # Enrolls the item indicated by the specified seller SKU in the Small and Light program in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Enrolls the item indicated by the specified seller SKU in the Small and Light program in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param seller_sku The seller SKU that identifies the item. # @param marketplace_ids The marketplace in which to enroll the item. Note: Accepts a single marketplace only. # @param [Hash] opts the optional parameters diff --git a/lib/fba-small-and-light-api-model/spec/api_client_spec.rb b/lib/fba-small-and-light-api-model/spec/api_client_spec.rb index 8971bed79..ec16cebe3 100644 --- a/lib/fba-small-and-light-api-model/spec/api_client_spec.rb +++ b/lib/fba-small-and-light-api-model/spec/api_client_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-small-and-light-api-model/spec/configuration_spec.rb b/lib/fba-small-and-light-api-model/spec/configuration_spec.rb index cd71e9c67..766c0e0fe 100644 --- a/lib/fba-small-and-light-api-model/spec/configuration_spec.rb +++ b/lib/fba-small-and-light-api-model/spec/configuration_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-small-and-light-api-model/spec/models/error_list_spec.rb b/lib/fba-small-and-light-api-model/spec/models/error_list_spec.rb index 55530c18e..f02786a39 100644 --- a/lib/fba-small-and-light-api-model/spec/models/error_list_spec.rb +++ b/lib/fba-small-and-light-api-model/spec/models/error_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-small-and-light-api-model/spec/models/error_spec.rb b/lib/fba-small-and-light-api-model/spec/models/error_spec.rb index 3bb3e9eb2..a202d483b 100644 --- a/lib/fba-small-and-light-api-model/spec/models/error_spec.rb +++ b/lib/fba-small-and-light-api-model/spec/models/error_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-small-and-light-api-model/spec/models/fee_line_item_spec.rb b/lib/fba-small-and-light-api-model/spec/models/fee_line_item_spec.rb index c6a0610e4..a6ba6058e 100644 --- a/lib/fba-small-and-light-api-model/spec/models/fee_line_item_spec.rb +++ b/lib/fba-small-and-light-api-model/spec/models/fee_line_item_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-small-and-light-api-model/spec/models/fee_preview_spec.rb b/lib/fba-small-and-light-api-model/spec/models/fee_preview_spec.rb index f1ea9fe08..c8444984f 100644 --- a/lib/fba-small-and-light-api-model/spec/models/fee_preview_spec.rb +++ b/lib/fba-small-and-light-api-model/spec/models/fee_preview_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-small-and-light-api-model/spec/models/item_spec.rb b/lib/fba-small-and-light-api-model/spec/models/item_spec.rb index 080fb248d..42c8a517a 100644 --- a/lib/fba-small-and-light-api-model/spec/models/item_spec.rb +++ b/lib/fba-small-and-light-api-model/spec/models/item_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-small-and-light-api-model/spec/models/marketplace_id_spec.rb b/lib/fba-small-and-light-api-model/spec/models/marketplace_id_spec.rb index 799dc8146..82de3da0b 100644 --- a/lib/fba-small-and-light-api-model/spec/models/marketplace_id_spec.rb +++ b/lib/fba-small-and-light-api-model/spec/models/marketplace_id_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-small-and-light-api-model/spec/models/money_type_spec.rb b/lib/fba-small-and-light-api-model/spec/models/money_type_spec.rb index 16bb3c49b..5ef58254c 100644 --- a/lib/fba-small-and-light-api-model/spec/models/money_type_spec.rb +++ b/lib/fba-small-and-light-api-model/spec/models/money_type_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-small-and-light-api-model/spec/models/seller_sku_spec.rb b/lib/fba-small-and-light-api-model/spec/models/seller_sku_spec.rb index f484527a1..1303caff5 100644 --- a/lib/fba-small-and-light-api-model/spec/models/seller_sku_spec.rb +++ b/lib/fba-small-and-light-api-model/spec/models/seller_sku_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-small-and-light-api-model/spec/models/small_and_light_eligibility_spec.rb b/lib/fba-small-and-light-api-model/spec/models/small_and_light_eligibility_spec.rb index 3382316f2..9bc1d5160 100644 --- a/lib/fba-small-and-light-api-model/spec/models/small_and_light_eligibility_spec.rb +++ b/lib/fba-small-and-light-api-model/spec/models/small_and_light_eligibility_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-small-and-light-api-model/spec/models/small_and_light_eligibility_status_spec.rb b/lib/fba-small-and-light-api-model/spec/models/small_and_light_eligibility_status_spec.rb index 5a233ec61..8fdef386f 100644 --- a/lib/fba-small-and-light-api-model/spec/models/small_and_light_eligibility_status_spec.rb +++ b/lib/fba-small-and-light-api-model/spec/models/small_and_light_eligibility_status_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-small-and-light-api-model/spec/models/small_and_light_enrollment_spec.rb b/lib/fba-small-and-light-api-model/spec/models/small_and_light_enrollment_spec.rb index 28b22c11b..2c77ef3b9 100644 --- a/lib/fba-small-and-light-api-model/spec/models/small_and_light_enrollment_spec.rb +++ b/lib/fba-small-and-light-api-model/spec/models/small_and_light_enrollment_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-small-and-light-api-model/spec/models/small_and_light_enrollment_status_spec.rb b/lib/fba-small-and-light-api-model/spec/models/small_and_light_enrollment_status_spec.rb index 3fb60015d..17f493147 100644 --- a/lib/fba-small-and-light-api-model/spec/models/small_and_light_enrollment_status_spec.rb +++ b/lib/fba-small-and-light-api-model/spec/models/small_and_light_enrollment_status_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-small-and-light-api-model/spec/models/small_and_light_fee_preview_request_spec.rb b/lib/fba-small-and-light-api-model/spec/models/small_and_light_fee_preview_request_spec.rb index c24dc7c1b..08bef85c3 100644 --- a/lib/fba-small-and-light-api-model/spec/models/small_and_light_fee_preview_request_spec.rb +++ b/lib/fba-small-and-light-api-model/spec/models/small_and_light_fee_preview_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-small-and-light-api-model/spec/models/small_and_light_fee_previews_spec.rb b/lib/fba-small-and-light-api-model/spec/models/small_and_light_fee_previews_spec.rb index 20d2437e5..f5d2a547a 100644 --- a/lib/fba-small-and-light-api-model/spec/models/small_and_light_fee_previews_spec.rb +++ b/lib/fba-small-and-light-api-model/spec/models/small_and_light_fee_previews_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fba-small-and-light-api-model/spec/spec_helper.rb b/lib/fba-small-and-light-api-model/spec/spec_helper.rb index 581071ca4..ceee0d41d 100644 --- a/lib/fba-small-and-light-api-model/spec/spec_helper.rb +++ b/lib/fba-small-and-light-api-model/spec/spec_helper.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # load the gem diff --git a/lib/fba-small-and-light-api-model/version.rb b/lib/fba-small-and-light-api-model/version.rb index 7051e4f35..5f2f6aa6b 100644 --- a/lib/fba-small-and-light-api-model/version.rb +++ b/lib/fba-small-and-light-api-model/version.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::FbaSmallAndLightApiModel diff --git a/lib/feeds-api-model.rb b/lib/feeds-api-model.rb index bc4b7555c..650a0bd62 100644 --- a/lib/feeds-api-model.rb +++ b/lib/feeds-api-model.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # Common files @@ -16,16 +16,22 @@ require 'feeds-api-model/configuration' # Models +require 'feeds-api-model/models/cancel_feed_response' require 'feeds-api-model/models/create_feed_document_response' +require 'feeds-api-model/models/create_feed_document_result' require 'feeds-api-model/models/create_feed_document_specification' require 'feeds-api-model/models/create_feed_response' +require 'feeds-api-model/models/create_feed_result' require 'feeds-api-model/models/create_feed_specification' require 'feeds-api-model/models/error' require 'feeds-api-model/models/error_list' require 'feeds-api-model/models/feed' require 'feeds-api-model/models/feed_document' +require 'feeds-api-model/models/feed_document_encryption_details' require 'feeds-api-model/models/feed_list' require 'feeds-api-model/models/feed_options' +require 'feeds-api-model/models/get_feed_document_response' +require 'feeds-api-model/models/get_feed_response' require 'feeds-api-model/models/get_feeds_response' # APIs diff --git a/lib/feeds-api-model/.swagger-codegen/VERSION b/lib/feeds-api-model/.swagger-codegen/VERSION index b39b0b9e0..161761765 100644 --- a/lib/feeds-api-model/.swagger-codegen/VERSION +++ b/lib/feeds-api-model/.swagger-codegen/VERSION @@ -1 +1 @@ -3.0.24 \ No newline at end of file +3.0.46 \ No newline at end of file diff --git a/lib/feeds-api-model/README.md b/lib/feeds-api-model/README.md index 34dfca0c4..3f82f23c2 100644 --- a/lib/feeds-api-model/README.md +++ b/lib/feeds-api-model/README.md @@ -2,11 +2,11 @@ AmzSpApi::FeedsApiModel - the Ruby gem for the Selling Partner API for Feeds -The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: -- API version: 2021-06-30 +- API version: 2020-09-04 - Package version: 0.1.0 - Build package: io.swagger.codegen.v3.generators.ruby.RubyClientCodegen For more information, please visit [https://sellercentral.amazon.com/gp/mws/contactus.html](https://sellercentral.amazon.com/gp/mws/contactus.html) @@ -60,7 +60,8 @@ feed_id = 'feed_id_example' # String | The identifier for the feed. This identif begin - api_instance.cancel_feed(feed_id) + result = api_instance.cancel_feed(feed_id) + p result rescue AmzSpApi::FeedsApiModel::ApiError => e puts "Exception when calling FeedsApi->cancel_feed: #{e}" end @@ -134,25 +135,31 @@ All URIs are relative to *https://sellingpartnerapi-na.amazon.com/* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*AmzSpApi::FeedsApiModel::FeedsApi* | [**cancel_feed**](docs/FeedsApi.md#cancel_feed) | **DELETE** /feeds/2021-06-30/feeds/{feedId} | -*AmzSpApi::FeedsApiModel::FeedsApi* | [**create_feed**](docs/FeedsApi.md#create_feed) | **POST** /feeds/2021-06-30/feeds | -*AmzSpApi::FeedsApiModel::FeedsApi* | [**create_feed_document**](docs/FeedsApi.md#create_feed_document) | **POST** /feeds/2021-06-30/documents | -*AmzSpApi::FeedsApiModel::FeedsApi* | [**get_feed**](docs/FeedsApi.md#get_feed) | **GET** /feeds/2021-06-30/feeds/{feedId} | -*AmzSpApi::FeedsApiModel::FeedsApi* | [**get_feed_document**](docs/FeedsApi.md#get_feed_document) | **GET** /feeds/2021-06-30/documents/{feedDocumentId} | -*AmzSpApi::FeedsApiModel::FeedsApi* | [**get_feeds**](docs/FeedsApi.md#get_feeds) | **GET** /feeds/2021-06-30/feeds | +*AmzSpApi::FeedsApiModel::FeedsApi* | [**cancel_feed**](docs/FeedsApi.md#cancel_feed) | **DELETE** /feeds/2020-09-04/feeds/{feedId} | +*AmzSpApi::FeedsApiModel::FeedsApi* | [**create_feed**](docs/FeedsApi.md#create_feed) | **POST** /feeds/2020-09-04/feeds | +*AmzSpApi::FeedsApiModel::FeedsApi* | [**create_feed_document**](docs/FeedsApi.md#create_feed_document) | **POST** /feeds/2020-09-04/documents | +*AmzSpApi::FeedsApiModel::FeedsApi* | [**get_feed**](docs/FeedsApi.md#get_feed) | **GET** /feeds/2020-09-04/feeds/{feedId} | +*AmzSpApi::FeedsApiModel::FeedsApi* | [**get_feed_document**](docs/FeedsApi.md#get_feed_document) | **GET** /feeds/2020-09-04/documents/{feedDocumentId} | +*AmzSpApi::FeedsApiModel::FeedsApi* | [**get_feeds**](docs/FeedsApi.md#get_feeds) | **GET** /feeds/2020-09-04/feeds | ## Documentation for Models + - [AmzSpApi::FeedsApiModel::CancelFeedResponse](docs/CancelFeedResponse.md) - [AmzSpApi::FeedsApiModel::CreateFeedDocumentResponse](docs/CreateFeedDocumentResponse.md) + - [AmzSpApi::FeedsApiModel::CreateFeedDocumentResult](docs/CreateFeedDocumentResult.md) - [AmzSpApi::FeedsApiModel::CreateFeedDocumentSpecification](docs/CreateFeedDocumentSpecification.md) - [AmzSpApi::FeedsApiModel::CreateFeedResponse](docs/CreateFeedResponse.md) + - [AmzSpApi::FeedsApiModel::CreateFeedResult](docs/CreateFeedResult.md) - [AmzSpApi::FeedsApiModel::CreateFeedSpecification](docs/CreateFeedSpecification.md) - [AmzSpApi::FeedsApiModel::Error](docs/Error.md) - [AmzSpApi::FeedsApiModel::ErrorList](docs/ErrorList.md) - [AmzSpApi::FeedsApiModel::Feed](docs/Feed.md) - [AmzSpApi::FeedsApiModel::FeedDocument](docs/FeedDocument.md) + - [AmzSpApi::FeedsApiModel::FeedDocumentEncryptionDetails](docs/FeedDocumentEncryptionDetails.md) - [AmzSpApi::FeedsApiModel::FeedList](docs/FeedList.md) - [AmzSpApi::FeedsApiModel::FeedOptions](docs/FeedOptions.md) + - [AmzSpApi::FeedsApiModel::GetFeedDocumentResponse](docs/GetFeedDocumentResponse.md) + - [AmzSpApi::FeedsApiModel::GetFeedResponse](docs/GetFeedResponse.md) - [AmzSpApi::FeedsApiModel::GetFeedsResponse](docs/GetFeedsResponse.md) ## Documentation for Authorization diff --git a/lib/feeds-api-model/api/feeds_api.rb b/lib/feeds-api-model/api/feeds_api.rb index d662e28e1..f769d1900 100644 --- a/lib/feeds-api-model/api/feeds_api.rb +++ b/lib/feeds-api-model/api/feeds_api.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::FeedsApiModel @@ -16,19 +16,19 @@ class FeedsApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Cancels the feed that you specify. Only feeds with processingStatus=IN_QUEUE can be cancelled. Cancelled feeds are returned in subsequent calls to the getFeed and getFeeds operations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Effective June 27, 2023, the `cancelFeed` operation will no longer be available in the Selling Partner API for Feeds v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. # @param feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. # @param [Hash] opts the optional parameters - # @return [nil] + # @return [CancelFeedResponse] def cancel_feed(feed_id, opts = {}) - cancel_feed_with_http_info(feed_id, opts) - nil + data, _status_code, _headers = cancel_feed_with_http_info(feed_id, opts) + data end - # Cancels the feed that you specify. Only feeds with processingStatus=IN_QUEUE can be cancelled. Cancelled feeds are returned in subsequent calls to the getFeed and getFeeds operations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Effective June 27, 2023, the `cancelFeed` operation will no longer be available in the Selling Partner API for Feeds v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. # @param feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. # @param [Hash] opts the optional parameters - # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers + # @return [Array<(CancelFeedResponse, Integer, Hash)>] CancelFeedResponse data, response status code and response headers def cancel_feed_with_http_info(feed_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FeedsApi.cancel_feed ...' @@ -38,7 +38,7 @@ def cancel_feed_with_http_info(feed_id, opts = {}) fail ArgumentError, "Missing the required parameter 'feed_id' when calling FeedsApi.cancel_feed" end # resource path - local_var_path = '/feeds/2021-06-30/feeds/{feedId}'.sub('{' + 'feedId' + '}', feed_id.to_s) + local_var_path = '/feeds/2020-09-04/feeds/{feedId}'.sub('{' + 'feedId' + '}', feed_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -54,7 +54,7 @@ def cancel_feed_with_http_info(feed_id, opts = {}) # http body (model) post_body = opts[:body] - return_type = opts[:return_type] + return_type = opts[:return_type] || 'CancelFeedResponse' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, @@ -70,7 +70,7 @@ def cancel_feed_with_http_info(feed_id, opts = {}) end return data, status_code, headers end - # Creates a feed. Upload the contents of the feed document before calling this operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0083 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Effective June 27, 2023, the `createFeed` operation will no longer be available in the Selling Partner API for Feeds v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. # @param body # @param [Hash] opts the optional parameters # @return [CreateFeedResponse] @@ -79,7 +79,7 @@ def create_feed(body, opts = {}) data end - # Creates a feed. Upload the contents of the feed document before calling this operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0083 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Effective June 27, 2023, the `createFeed` operation will no longer be available in the Selling Partner API for Feeds v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. # @param body # @param [Hash] opts the optional parameters # @return [Array<(CreateFeedResponse, Integer, Hash)>] CreateFeedResponse data, response status code and response headers @@ -92,7 +92,7 @@ def create_feed_with_http_info(body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling FeedsApi.create_feed" end # resource path - local_var_path = '/feeds/2021-06-30/feeds' + local_var_path = '/feeds/2020-09-04/feeds' # query parameters query_params = opts[:query_params] || {} @@ -126,7 +126,7 @@ def create_feed_with_http_info(body, opts = {}) end return data, status_code, headers end - # Creates a feed document for the feed type that you specify. This operation returns a presigned URL for uploading the feed document contents. It also returns a feedDocumentId value that you can pass in with a subsequent call to the createFeed operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0083 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Effective June 27, 2023, the `createFeedDocument` operation will no longer be available in the Selling Partner API for Feeds v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. # @param body # @param [Hash] opts the optional parameters # @return [CreateFeedDocumentResponse] @@ -135,7 +135,7 @@ def create_feed_document(body, opts = {}) data end - # Creates a feed document for the feed type that you specify. This operation returns a presigned URL for uploading the feed document contents. It also returns a feedDocumentId value that you can pass in with a subsequent call to the createFeed operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0083 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Effective June 27, 2023, the `createFeedDocument` operation will no longer be available in the Selling Partner API for Feeds v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. # @param body # @param [Hash] opts the optional parameters # @return [Array<(CreateFeedDocumentResponse, Integer, Hash)>] CreateFeedDocumentResponse data, response status code and response headers @@ -148,7 +148,7 @@ def create_feed_document_with_http_info(body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling FeedsApi.create_feed_document" end # resource path - local_var_path = '/feeds/2021-06-30/documents' + local_var_path = '/feeds/2020-09-04/documents' # query parameters query_params = opts[:query_params] || {} @@ -182,19 +182,19 @@ def create_feed_document_with_http_info(body, opts = {}) end return data, status_code, headers end - # Returns feed details (including the resultDocumentId, if available) for the feed that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2.0 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Effective June 27, 2023, the `getFeed` operation will no longer be available in the Selling Partner API for Feeds v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. # @param feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. # @param [Hash] opts the optional parameters - # @return [Feed] + # @return [GetFeedResponse] def get_feed(feed_id, opts = {}) data, _status_code, _headers = get_feed_with_http_info(feed_id, opts) data end - # Returns feed details (including the resultDocumentId, if available) for the feed that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2.0 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Effective June 27, 2023, the `getFeed` operation will no longer be available in the Selling Partner API for Feeds v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. # @param feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. # @param [Hash] opts the optional parameters - # @return [Array<(Feed, Integer, Hash)>] Feed data, response status code and response headers + # @return [Array<(GetFeedResponse, Integer, Hash)>] GetFeedResponse data, response status code and response headers def get_feed_with_http_info(feed_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FeedsApi.get_feed ...' @@ -204,7 +204,7 @@ def get_feed_with_http_info(feed_id, opts = {}) fail ArgumentError, "Missing the required parameter 'feed_id' when calling FeedsApi.get_feed" end # resource path - local_var_path = '/feeds/2021-06-30/feeds/{feedId}'.sub('{' + 'feedId' + '}', feed_id.to_s) + local_var_path = '/feeds/2020-09-04/feeds/{feedId}'.sub('{' + 'feedId' + '}', feed_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -220,7 +220,7 @@ def get_feed_with_http_info(feed_id, opts = {}) # http body (model) post_body = opts[:body] - return_type = opts[:return_type] || 'Feed' + return_type = opts[:return_type] || 'GetFeedResponse' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -236,19 +236,19 @@ def get_feed_with_http_info(feed_id, opts = {}) end return data, status_code, headers end - # Returns the information required for retrieving a feed document's contents. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Effective June 27, 2023, the `getFeedDocument` operation will no longer be available in the Selling Partner API for Feeds v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. # @param feed_document_id The identifier of the feed document. # @param [Hash] opts the optional parameters - # @return [FeedDocument] + # @return [GetFeedDocumentResponse] def get_feed_document(feed_document_id, opts = {}) data, _status_code, _headers = get_feed_document_with_http_info(feed_document_id, opts) data end - # Returns the information required for retrieving a feed document's contents. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Effective June 27, 2023, the `getFeedDocument` operation will no longer be available in the Selling Partner API for Feeds v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. # @param feed_document_id The identifier of the feed document. # @param [Hash] opts the optional parameters - # @return [Array<(FeedDocument, Integer, Hash)>] FeedDocument data, response status code and response headers + # @return [Array<(GetFeedDocumentResponse, Integer, Hash)>] GetFeedDocumentResponse data, response status code and response headers def get_feed_document_with_http_info(feed_document_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FeedsApi.get_feed_document ...' @@ -258,7 +258,7 @@ def get_feed_document_with_http_info(feed_document_id, opts = {}) fail ArgumentError, "Missing the required parameter 'feed_document_id' when calling FeedsApi.get_feed_document" end # resource path - local_var_path = '/feeds/2021-06-30/documents/{feedDocumentId}'.sub('{' + 'feedDocumentId' + '}', feed_document_id.to_s) + local_var_path = '/feeds/2020-09-04/documents/{feedDocumentId}'.sub('{' + 'feedDocumentId' + '}', feed_document_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -274,7 +274,7 @@ def get_feed_document_with_http_info(feed_document_id, opts = {}) # http body (model) post_body = opts[:body] - return_type = opts[:return_type] || 'FeedDocument' + return_type = opts[:return_type] || 'GetFeedDocumentResponse' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -290,7 +290,7 @@ def get_feed_document_with_http_info(feed_document_id, opts = {}) end return data, status_code, headers end - # Returns feed details for the feeds that match the filters that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Effective June 27, 2023, the `getFeeds` operation will no longer be available in the Selling Partner API for Feeds v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. # @param [Hash] opts the optional parameters # @option opts [Array] :feed_types A list of feed types used to filter feeds. When feedTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either feedTypes or nextToken is required. # @option opts [Array] :marketplace_ids A list of marketplace identifiers used to filter feeds. The feeds returned will match at least one of the marketplaces that you specify. @@ -305,7 +305,7 @@ def get_feeds(opts = {}) data end - # Returns feed details for the feeds that match the filters that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Effective June 27, 2023, the `getFeeds` operation will no longer be available in the Selling Partner API for Feeds v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. # @param [Hash] opts the optional parameters # @option opts [Array] :feed_types A list of feed types used to filter feeds. When feedTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either feedTypes or nextToken is required. # @option opts [Array] :marketplace_ids A list of marketplace identifiers used to filter feeds. The feeds returned will match at least one of the marketplaces that you specify. @@ -323,7 +323,7 @@ def get_feeds_with_http_info(opts = {}) fail ArgumentError, 'invalid value for "processing_statuses", must include one of CANCELLED, DONE, FATAL, IN_PROGRESS, IN_QUEUE' end # resource path - local_var_path = '/feeds/2021-06-30/feeds' + local_var_path = '/feeds/2020-09-04/feeds' # query parameters query_params = opts[:query_params] || {} diff --git a/lib/feeds-api-model/api_client.rb b/lib/feeds-api-model/api_client.rb index ed993390b..266b74ca5 100644 --- a/lib/feeds-api-model/api_client.rb +++ b/lib/feeds-api-model/api_client.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/feeds-api-model/api_error.rb b/lib/feeds-api-model/api_error.rb index 5d42345d8..934063da0 100644 --- a/lib/feeds-api-model/api_error.rb +++ b/lib/feeds-api-model/api_error.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::FeedsApiModel diff --git a/lib/feeds-api-model/configuration.rb b/lib/feeds-api-model/configuration.rb index f250c44f7..620e40888 100644 --- a/lib/feeds-api-model/configuration.rb +++ b/lib/feeds-api-model/configuration.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::FeedsApiModel diff --git a/lib/product-pricing-api-model/docs/GetPricingResponse.md b/lib/feeds-api-model/docs/CancelFeedResponse.md similarity index 59% rename from lib/product-pricing-api-model/docs/GetPricingResponse.md rename to lib/feeds-api-model/docs/CancelFeedResponse.md index 458c676ae..978c94d94 100644 --- a/lib/product-pricing-api-model/docs/GetPricingResponse.md +++ b/lib/feeds-api-model/docs/CancelFeedResponse.md @@ -1,8 +1,7 @@ -# AmzSpApi::ProductPricingApiModel::GetPricingResponse +# AmzSpApi::FeedsApiModel::CancelFeedResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**payload** | [**PriceList**](PriceList.md) | | [optional] **errors** | [**ErrorList**](ErrorList.md) | | [optional] diff --git a/lib/feeds-api-model/docs/CreateFeedDocumentResponse.md b/lib/feeds-api-model/docs/CreateFeedDocumentResponse.md index 19af7bcb4..5e5b941c5 100644 --- a/lib/feeds-api-model/docs/CreateFeedDocumentResponse.md +++ b/lib/feeds-api-model/docs/CreateFeedDocumentResponse.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**feed_document_id** | **String** | The identifier of the feed document. | -**url** | **String** | The presigned URL for uploading the feed contents. This URL expires after 5 minutes. | +**payload** | [**CreateFeedDocumentResult**](CreateFeedDocumentResult.md) | | [optional] +**errors** | [**ErrorList**](ErrorList.md) | | [optional] diff --git a/lib/feeds-api-model/docs/CreateFeedDocumentResult.md b/lib/feeds-api-model/docs/CreateFeedDocumentResult.md new file mode 100644 index 000000000..d4d8be545 --- /dev/null +++ b/lib/feeds-api-model/docs/CreateFeedDocumentResult.md @@ -0,0 +1,9 @@ +# AmzSpApi::FeedsApiModel::CreateFeedDocumentResult + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**feed_document_id** | **String** | The identifier of the feed document. | +**url** | **String** | The presigned URL for uploading the feed contents. This URL expires after 5 minutes. | +**encryption_details** | [**FeedDocumentEncryptionDetails**](FeedDocumentEncryptionDetails.md) | | + diff --git a/lib/feeds-api-model/docs/CreateFeedResponse.md b/lib/feeds-api-model/docs/CreateFeedResponse.md index d55ed6fe2..753bc8aee 100644 --- a/lib/feeds-api-model/docs/CreateFeedResponse.md +++ b/lib/feeds-api-model/docs/CreateFeedResponse.md @@ -3,5 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**feed_id** | **String** | The identifier for the feed. This identifier is unique only in combination with a seller ID. | +**payload** | [**CreateFeedResult**](CreateFeedResult.md) | | [optional] +**errors** | [**ErrorList**](ErrorList.md) | | [optional] diff --git a/lib/feeds-api-model/docs/CreateFeedResult.md b/lib/feeds-api-model/docs/CreateFeedResult.md new file mode 100644 index 000000000..18851811d --- /dev/null +++ b/lib/feeds-api-model/docs/CreateFeedResult.md @@ -0,0 +1,7 @@ +# AmzSpApi::FeedsApiModel::CreateFeedResult + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**feed_id** | **String** | The identifier for the feed. This identifier is unique only in combination with a seller ID. | + diff --git a/lib/feeds-api-model/docs/CreateFeedSpecification.md b/lib/feeds-api-model/docs/CreateFeedSpecification.md index 08d73fbff..b4946bef6 100644 --- a/lib/feeds-api-model/docs/CreateFeedSpecification.md +++ b/lib/feeds-api-model/docs/CreateFeedSpecification.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **feed_type** | **String** | The feed type. | **marketplace_ids** | **Array<String>** | A list of identifiers for marketplaces that you want the feed to be applied to. | -**input_feed_document_id** | **String** | The document identifier returned by the createFeedDocument operation. Upload the feed document contents before calling the createFeed operation. | +**input_feed_document_id** | **String** | The document identifier returned by the createFeedDocument operation. Encrypt and upload the feed document contents before calling the createFeed operation. | **feed_options** | [**FeedOptions**](FeedOptions.md) | | [optional] diff --git a/lib/feeds-api-model/docs/ErrorList.md b/lib/feeds-api-model/docs/ErrorList.md index aefcd9876..58ff4d138 100644 --- a/lib/feeds-api-model/docs/ErrorList.md +++ b/lib/feeds-api-model/docs/ErrorList.md @@ -3,5 +3,4 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**errors** | [**Array<Error>**](Error.md) | | diff --git a/lib/feeds-api-model/docs/FeedDocument.md b/lib/feeds-api-model/docs/FeedDocument.md index 2d73d9fab..12b03be66 100644 --- a/lib/feeds-api-model/docs/FeedDocument.md +++ b/lib/feeds-api-model/docs/FeedDocument.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **feed_document_id** | **String** | The identifier for the feed document. This identifier is unique only in combination with a seller ID. | -**url** | **String** | A presigned URL for the feed document. This URL expires after 5 minutes. | -**compression_algorithm** | **String** | If present, the feed document contents are compressed using the indicated algorithm. | [optional] +**url** | **String** | A presigned URL for the feed document. If `compressionAlgorithm` is not returned, you can download the feed directly from this URL. This URL expires after 5 minutes. | +**encryption_details** | [**FeedDocumentEncryptionDetails**](FeedDocumentEncryptionDetails.md) | | +**compression_algorithm** | **String** | If the feed document contents have been compressed, the compression algorithm used is returned in this property and you must decompress the feed when you download. Otherwise, you can download the feed directly. Refer to [Step 6. Download and decrypt the feed processing report](doc:feeds-api-v2020-09-04-use-case-guide#step-6-download-and-decrypt-the-feed-processing-report) in the use case guide, where sample code is provided. | [optional] diff --git a/lib/feeds-api-model/docs/FeedDocumentEncryptionDetails.md b/lib/feeds-api-model/docs/FeedDocumentEncryptionDetails.md new file mode 100644 index 000000000..2609ad037 --- /dev/null +++ b/lib/feeds-api-model/docs/FeedDocumentEncryptionDetails.md @@ -0,0 +1,9 @@ +# AmzSpApi::FeedsApiModel::FeedDocumentEncryptionDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**standard** | **String** | The encryption standard required to encrypt or decrypt the document contents. | +**initialization_vector** | **String** | The vector to encrypt or decrypt the document contents using Cipher Block Chaining (CBC). | +**key** | **String** | The encryption key used to encrypt or decrypt the document contents. | + diff --git a/lib/feeds-api-model/docs/FeedsApi.md b/lib/feeds-api-model/docs/FeedsApi.md index 68102076c..461027ee5 100644 --- a/lib/feeds-api-model/docs/FeedsApi.md +++ b/lib/feeds-api-model/docs/FeedsApi.md @@ -4,19 +4,19 @@ All URIs are relative to *https://sellingpartnerapi-na.amazon.com/* Method | HTTP request | Description ------------- | ------------- | ------------- -[**cancel_feed**](FeedsApi.md#cancel_feed) | **DELETE** /feeds/2021-06-30/feeds/{feedId} | -[**create_feed**](FeedsApi.md#create_feed) | **POST** /feeds/2021-06-30/feeds | -[**create_feed_document**](FeedsApi.md#create_feed_document) | **POST** /feeds/2021-06-30/documents | -[**get_feed**](FeedsApi.md#get_feed) | **GET** /feeds/2021-06-30/feeds/{feedId} | -[**get_feed_document**](FeedsApi.md#get_feed_document) | **GET** /feeds/2021-06-30/documents/{feedDocumentId} | -[**get_feeds**](FeedsApi.md#get_feeds) | **GET** /feeds/2021-06-30/feeds | +[**cancel_feed**](FeedsApi.md#cancel_feed) | **DELETE** /feeds/2020-09-04/feeds/{feedId} | +[**create_feed**](FeedsApi.md#create_feed) | **POST** /feeds/2020-09-04/feeds | +[**create_feed_document**](FeedsApi.md#create_feed_document) | **POST** /feeds/2020-09-04/documents | +[**get_feed**](FeedsApi.md#get_feed) | **GET** /feeds/2020-09-04/feeds/{feedId} | +[**get_feed_document**](FeedsApi.md#get_feed_document) | **GET** /feeds/2020-09-04/documents/{feedDocumentId} | +[**get_feeds**](FeedsApi.md#get_feeds) | **GET** /feeds/2020-09-04/feeds | # **cancel_feed** -> cancel_feed(feed_id) +> CancelFeedResponse cancel_feed(feed_id) -Cancels the feed that you specify. Only feeds with processingStatus=IN_QUEUE can be cancelled. Cancelled feeds are returned in subsequent calls to the getFeed and getFeeds operations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Effective June 27, 2023, the `cancelFeed` operation will no longer be available in the Selling Partner API for Feeds v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. ### Example ```ruby @@ -28,7 +28,8 @@ feed_id = 'feed_id_example' # String | The identifier for the feed. This identif begin - api_instance.cancel_feed(feed_id) + result = api_instance.cancel_feed(feed_id) + p result rescue AmzSpApi::FeedsApiModel::ApiError => e puts "Exception when calling FeedsApi->cancel_feed: #{e}" end @@ -42,7 +43,7 @@ Name | Type | Description | Notes ### Return type -nil (empty response body) +[**CancelFeedResponse**](CancelFeedResponse.md) ### Authorization @@ -60,7 +61,7 @@ No authorization required -Creates a feed. Upload the contents of the feed document before calling this operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0083 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Effective June 27, 2023, the `createFeed` operation will no longer be available in the Selling Partner API for Feeds v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. ### Example ```ruby @@ -105,7 +106,7 @@ No authorization required -Creates a feed document for the feed type that you specify. This operation returns a presigned URL for uploading the feed document contents. It also returns a feedDocumentId value that you can pass in with a subsequent call to the createFeed operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0083 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Effective June 27, 2023, the `createFeedDocument` operation will no longer be available in the Selling Partner API for Feeds v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. ### Example ```ruby @@ -146,11 +147,11 @@ No authorization required # **get_feed** -> Feed get_feed(feed_id) +> GetFeedResponse get_feed(feed_id) -Returns feed details (including the resultDocumentId, if available) for the feed that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2.0 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Effective June 27, 2023, the `getFeed` operation will no longer be available in the Selling Partner API for Feeds v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. ### Example ```ruby @@ -177,7 +178,7 @@ Name | Type | Description | Notes ### Return type -[**Feed**](Feed.md) +[**GetFeedResponse**](GetFeedResponse.md) ### Authorization @@ -191,11 +192,11 @@ No authorization required # **get_feed_document** -> FeedDocument get_feed_document(feed_document_id) +> GetFeedDocumentResponse get_feed_document(feed_document_id) -Returns the information required for retrieving a feed document's contents. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Effective June 27, 2023, the `getFeedDocument` operation will no longer be available in the Selling Partner API for Feeds v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. ### Example ```ruby @@ -222,7 +223,7 @@ Name | Type | Description | Notes ### Return type -[**FeedDocument**](FeedDocument.md) +[**GetFeedDocumentResponse**](GetFeedDocumentResponse.md) ### Authorization @@ -240,7 +241,7 @@ No authorization required -Returns feed details for the feeds that match the filters that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Effective June 27, 2023, the `getFeeds` operation will no longer be available in the Selling Partner API for Feeds v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. ### Example ```ruby diff --git a/lib/feeds-api-model/docs/GetFeedDocumentResponse.md b/lib/feeds-api-model/docs/GetFeedDocumentResponse.md new file mode 100644 index 000000000..29a840fb3 --- /dev/null +++ b/lib/feeds-api-model/docs/GetFeedDocumentResponse.md @@ -0,0 +1,8 @@ +# AmzSpApi::FeedsApiModel::GetFeedDocumentResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payload** | [**FeedDocument**](FeedDocument.md) | | [optional] +**errors** | [**ErrorList**](ErrorList.md) | | [optional] + diff --git a/lib/feeds-api-model/docs/GetFeedResponse.md b/lib/feeds-api-model/docs/GetFeedResponse.md new file mode 100644 index 000000000..99b224267 --- /dev/null +++ b/lib/feeds-api-model/docs/GetFeedResponse.md @@ -0,0 +1,8 @@ +# AmzSpApi::FeedsApiModel::GetFeedResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payload** | [**Feed**](Feed.md) | | [optional] +**errors** | [**ErrorList**](ErrorList.md) | | [optional] + diff --git a/lib/feeds-api-model/docs/GetFeedsResponse.md b/lib/feeds-api-model/docs/GetFeedsResponse.md index 4bc1ad6a1..ea333f925 100644 --- a/lib/feeds-api-model/docs/GetFeedsResponse.md +++ b/lib/feeds-api-model/docs/GetFeedsResponse.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**feeds** | [**FeedList**](FeedList.md) | | +**payload** | [**FeedList**](FeedList.md) | | [optional] **next_token** | **String** | Returned when the number of results exceeds pageSize. To get the next page of results, call the getFeeds operation with this token as the only parameter. | [optional] +**errors** | [**ErrorList**](ErrorList.md) | | [optional] diff --git a/lib/product-pricing-api-model/models/price_list.rb b/lib/feeds-api-model/models/cancel_feed_response.rb similarity index 84% rename from lib/product-pricing-api-model/models/price_list.rb rename to lib/feeds-api-model/models/cancel_feed_response.rb index bc13780d7..b6758e135 100644 --- a/lib/product-pricing-api-model/models/price_list.rb +++ b/lib/feeds-api-model/models/cancel_feed_response.rb @@ -1,27 +1,32 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Feeds -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: v0 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - class PriceList +module AmzSpApi::FeedsApiModel + # Response schema. + class CancelFeedResponse + attr_accessor :errors + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'errors' => :'errors' } end # Attribute type mapping. def self.openapi_types { + :'errors' => :'Object' } end @@ -35,25 +40,26 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::PriceList` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::FeedsApiModel::CancelFeedResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::PriceList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::FeedsApiModel::CancelFeedResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - # call parent's initialize - super(attributes) + if attributes.key?(:'errors') + self.errors = attributes[:'errors'] + end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties - invalid_properties = super + invalid_properties = Array.new invalid_properties end @@ -67,7 +73,8 @@ def valid? # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) - self.class == o.class && super(o) + self.class == o.class && + errors == o.errors end # @see the `==` method @@ -79,7 +86,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [].hash + [errors].hash end # Builds the object from hash @@ -94,7 +101,6 @@ def self.build_from_hash(attributes) # @return [Object] Returns the model itself def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) - super(attributes) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute @@ -149,7 +155,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::FeedsApiModel.const_get(type).build_from_hash(value) end end @@ -168,7 +174,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash - hash = super + hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? diff --git a/lib/feeds-api-model/models/create_feed_document_response.rb b/lib/feeds-api-model/models/create_feed_document_response.rb index 7202645db..4c6e374df 100644 --- a/lib/feeds-api-model/models/create_feed_document_response.rb +++ b/lib/feeds-api-model/models/create_feed_document_response.rb @@ -1,38 +1,36 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::FeedsApiModel - # Information required to upload a feed document's contents. + # The response for the createFeedDocument operation. class CreateFeedDocumentResponse - # The identifier of the feed document. - attr_accessor :feed_document_id + attr_accessor :payload - # The presigned URL for uploading the feed contents. This URL expires after 5 minutes. - attr_accessor :url + attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'feed_document_id' => :'feedDocumentId', - :'url' => :'url' + :'payload' => :'payload', + :'errors' => :'errors' } end # Attribute type mapping. def self.openapi_types { - :'feed_document_id' => :'Object', - :'url' => :'Object' + :'payload' => :'Object', + :'errors' => :'Object' } end @@ -57,12 +55,12 @@ def initialize(attributes = {}) h[k.to_sym] = v } - if attributes.key?(:'feed_document_id') - self.feed_document_id = attributes[:'feed_document_id'] + if attributes.key?(:'payload') + self.payload = attributes[:'payload'] end - if attributes.key?(:'url') - self.url = attributes[:'url'] + if attributes.key?(:'errors') + self.errors = attributes[:'errors'] end end @@ -70,22 +68,12 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @feed_document_id.nil? - invalid_properties.push('invalid value for "feed_document_id", feed_document_id cannot be nil.') - end - - if @url.nil? - invalid_properties.push('invalid value for "url", url cannot be nil.') - end - invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @feed_document_id.nil? - return false if @url.nil? true end @@ -94,8 +82,8 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - feed_document_id == o.feed_document_id && - url == o.url + payload == o.payload && + errors == o.errors end # @see the `==` method @@ -107,7 +95,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [feed_document_id, url].hash + [payload, errors].hash end # Builds the object from hash diff --git a/lib/feeds-api-model/models/create_feed_document_result.rb b/lib/feeds-api-model/models/create_feed_document_result.rb new file mode 100644 index 000000000..8df3aca8c --- /dev/null +++ b/lib/feeds-api-model/models/create_feed_document_result.rb @@ -0,0 +1,242 @@ +=begin +#Selling Partner API for Feeds + +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. + +OpenAPI spec version: 2020-09-04 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::FeedsApiModel + # Information required to encrypt and upload a feed document's contents. + class CreateFeedDocumentResult + # The identifier of the feed document. + attr_accessor :feed_document_id + + # The presigned URL for uploading the feed contents. This URL expires after 5 minutes. + attr_accessor :url + + attr_accessor :encryption_details + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'feed_document_id' => :'feedDocumentId', + :'url' => :'url', + :'encryption_details' => :'encryptionDetails' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'feed_document_id' => :'Object', + :'url' => :'Object', + :'encryption_details' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::FeedsApiModel::CreateFeedDocumentResult` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::FeedsApiModel::CreateFeedDocumentResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'feed_document_id') + self.feed_document_id = attributes[:'feed_document_id'] + end + + if attributes.key?(:'url') + self.url = attributes[:'url'] + end + + if attributes.key?(:'encryption_details') + self.encryption_details = attributes[:'encryption_details'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @feed_document_id.nil? + invalid_properties.push('invalid value for "feed_document_id", feed_document_id cannot be nil.') + end + + if @url.nil? + invalid_properties.push('invalid value for "url", url cannot be nil.') + end + + if @encryption_details.nil? + invalid_properties.push('invalid value for "encryption_details", encryption_details cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return false if @feed_document_id.nil? + return false if @url.nil? + return false if @encryption_details.nil? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + feed_document_id == o.feed_document_id && + url == o.url && + encryption_details == o.encryption_details + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [feed_document_id, url, encryption_details].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::FeedsApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/feeds-api-model/models/create_feed_document_specification.rb b/lib/feeds-api-model/models/create_feed_document_specification.rb index b7c2949ff..02e69e96b 100644 --- a/lib/feeds-api-model/models/create_feed_document_specification.rb +++ b/lib/feeds-api-model/models/create_feed_document_specification.rb @@ -1,18 +1,17 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::FeedsApiModel - # Specifies the content type for the createFeedDocument operation. class CreateFeedDocumentSpecification # The content type of the feed. attr_accessor :content_type diff --git a/lib/feeds-api-model/models/create_feed_response.rb b/lib/feeds-api-model/models/create_feed_response.rb index aa3d782f0..164a40713 100644 --- a/lib/feeds-api-model/models/create_feed_response.rb +++ b/lib/feeds-api-model/models/create_feed_response.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' @@ -14,20 +14,23 @@ module AmzSpApi::FeedsApiModel # Response schema. class CreateFeedResponse - # The identifier for the feed. This identifier is unique only in combination with a seller ID. - attr_accessor :feed_id + attr_accessor :payload + + attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'feed_id' => :'feedId' + :'payload' => :'payload', + :'errors' => :'errors' } end # Attribute type mapping. def self.openapi_types { - :'feed_id' => :'Object' + :'payload' => :'Object', + :'errors' => :'Object' } end @@ -52,8 +55,12 @@ def initialize(attributes = {}) h[k.to_sym] = v } - if attributes.key?(:'feed_id') - self.feed_id = attributes[:'feed_id'] + if attributes.key?(:'payload') + self.payload = attributes[:'payload'] + end + + if attributes.key?(:'errors') + self.errors = attributes[:'errors'] end end @@ -61,17 +68,12 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @feed_id.nil? - invalid_properties.push('invalid value for "feed_id", feed_id cannot be nil.') - end - invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @feed_id.nil? true end @@ -80,7 +82,8 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - feed_id == o.feed_id + payload == o.payload && + errors == o.errors end # @see the `==` method @@ -92,7 +95,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [feed_id].hash + [payload, errors].hash end # Builds the object from hash diff --git a/lib/feeds-api-model/models/create_feed_result.rb b/lib/feeds-api-model/models/create_feed_result.rb new file mode 100644 index 000000000..a6816caf7 --- /dev/null +++ b/lib/feeds-api-model/models/create_feed_result.rb @@ -0,0 +1,212 @@ +=begin +#Selling Partner API for Feeds + +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. + +OpenAPI spec version: 2020-09-04 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::FeedsApiModel + class CreateFeedResult + # The identifier for the feed. This identifier is unique only in combination with a seller ID. + attr_accessor :feed_id + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'feed_id' => :'feedId' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'feed_id' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::FeedsApiModel::CreateFeedResult` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::FeedsApiModel::CreateFeedResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'feed_id') + self.feed_id = attributes[:'feed_id'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @feed_id.nil? + invalid_properties.push('invalid value for "feed_id", feed_id cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return false if @feed_id.nil? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + feed_id == o.feed_id + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [feed_id].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::FeedsApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/feeds-api-model/models/create_feed_specification.rb b/lib/feeds-api-model/models/create_feed_specification.rb index 355505eda..d48fae1b8 100644 --- a/lib/feeds-api-model/models/create_feed_specification.rb +++ b/lib/feeds-api-model/models/create_feed_specification.rb @@ -1,18 +1,17 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::FeedsApiModel - # Information required to create the feed. class CreateFeedSpecification # The feed type. attr_accessor :feed_type @@ -20,7 +19,7 @@ class CreateFeedSpecification # A list of identifiers for marketplaces that you want the feed to be applied to. attr_accessor :marketplace_ids - # The document identifier returned by the createFeedDocument operation. Upload the feed document contents before calling the createFeed operation. + # The document identifier returned by the createFeedDocument operation. Encrypt and upload the feed document contents before calling the createFeed operation. attr_accessor :input_feed_document_id attr_accessor :feed_options diff --git a/lib/feeds-api-model/models/error.rb b/lib/feeds-api-model/models/error.rb index fca35f5bc..41298e672 100644 --- a/lib/feeds-api-model/models/error.rb +++ b/lib/feeds-api-model/models/error.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/feeds-api-model/models/error_list.rb b/lib/feeds-api-model/models/error_list.rb index 6ed4d014d..956839c56 100644 --- a/lib/feeds-api-model/models/error_list.rb +++ b/lib/feeds-api-model/models/error_list.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' @@ -14,19 +14,15 @@ module AmzSpApi::FeedsApiModel # A list of error responses returned when a request is unsuccessful. class ErrorList - attr_accessor :errors - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'errors' => :'errors' } end # Attribute type mapping. def self.openapi_types { - :'errors' => :'Object' } end @@ -51,28 +47,20 @@ def initialize(attributes = {}) h[k.to_sym] = v } - if attributes.key?(:'errors') - if (value = attributes[:'errors']).is_a?(Array) - self.errors = value - end - end + # call parent's initialize + super(attributes) end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties - invalid_properties = Array.new - if @errors.nil? - invalid_properties.push('invalid value for "errors", errors cannot be nil.') - end - + invalid_properties = super invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @errors.nil? true end @@ -80,8 +68,7 @@ def valid? # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) - self.class == o.class && - errors == o.errors + self.class == o.class && super(o) end # @see the `==` method @@ -93,7 +80,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [errors].hash + [].hash end # Builds the object from hash @@ -108,6 +95,7 @@ def self.build_from_hash(attributes) # @return [Object] Returns the model itself def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) + super(attributes) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute @@ -181,7 +169,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash - hash = {} + hash = super self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? diff --git a/lib/feeds-api-model/models/feed.rb b/lib/feeds-api-model/models/feed.rb index fb0e72198..2f0ba52ea 100644 --- a/lib/feeds-api-model/models/feed.rb +++ b/lib/feeds-api-model/models/feed.rb @@ -1,18 +1,17 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::FeedsApiModel - # Detailed information about the feed. class Feed # The identifier for the feed. This identifier is unique only in combination with a seller ID. attr_accessor :feed_id diff --git a/lib/feeds-api-model/models/feed_document.rb b/lib/feeds-api-model/models/feed_document.rb index e13d1b105..63bcad4e1 100644 --- a/lib/feeds-api-model/models/feed_document.rb +++ b/lib/feeds-api-model/models/feed_document.rb @@ -1,26 +1,27 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::FeedsApiModel - # Information required for the feed document. class FeedDocument # The identifier for the feed document. This identifier is unique only in combination with a seller ID. attr_accessor :feed_document_id - # A presigned URL for the feed document. This URL expires after 5 minutes. + # A presigned URL for the feed document. If `compressionAlgorithm` is not returned, you can download the feed directly from this URL. This URL expires after 5 minutes. attr_accessor :url - # If present, the feed document contents are compressed using the indicated algorithm. + attr_accessor :encryption_details + + # If the feed document contents have been compressed, the compression algorithm used is returned in this property and you must decompress the feed when you download. Otherwise, you can download the feed directly. Refer to [Step 6. Download and decrypt the feed processing report](doc:feeds-api-v2020-09-04-use-case-guide#step-6-download-and-decrypt-the-feed-processing-report) in the use case guide, where sample code is provided. attr_accessor :compression_algorithm class EnumAttributeValidator @@ -50,6 +51,7 @@ def self.attribute_map { :'feed_document_id' => :'feedDocumentId', :'url' => :'url', + :'encryption_details' => :'encryptionDetails', :'compression_algorithm' => :'compressionAlgorithm' } end @@ -59,6 +61,7 @@ def self.openapi_types { :'feed_document_id' => :'Object', :'url' => :'Object', + :'encryption_details' => :'Object', :'compression_algorithm' => :'Object' } end @@ -92,6 +95,10 @@ def initialize(attributes = {}) self.url = attributes[:'url'] end + if attributes.key?(:'encryption_details') + self.encryption_details = attributes[:'encryption_details'] + end + if attributes.key?(:'compression_algorithm') self.compression_algorithm = attributes[:'compression_algorithm'] end @@ -109,6 +116,10 @@ def list_invalid_properties invalid_properties.push('invalid value for "url", url cannot be nil.') end + if @encryption_details.nil? + invalid_properties.push('invalid value for "encryption_details", encryption_details cannot be nil.') + end + invalid_properties end @@ -117,6 +128,7 @@ def list_invalid_properties def valid? return false if @feed_document_id.nil? return false if @url.nil? + return false if @encryption_details.nil? compression_algorithm_validator = EnumAttributeValidator.new('Object', ['GZIP']) return false unless compression_algorithm_validator.valid?(@compression_algorithm) true @@ -139,6 +151,7 @@ def ==(o) self.class == o.class && feed_document_id == o.feed_document_id && url == o.url && + encryption_details == o.encryption_details && compression_algorithm == o.compression_algorithm end @@ -151,7 +164,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [feed_document_id, url, compression_algorithm].hash + [feed_document_id, url, encryption_details, compression_algorithm].hash end # Builds the object from hash diff --git a/lib/feeds-api-model/models/feed_document_encryption_details.rb b/lib/feeds-api-model/models/feed_document_encryption_details.rb new file mode 100644 index 000000000..1072fe6b0 --- /dev/null +++ b/lib/feeds-api-model/models/feed_document_encryption_details.rb @@ -0,0 +1,277 @@ +=begin +#Selling Partner API for Feeds + +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. + +OpenAPI spec version: 2020-09-04 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::FeedsApiModel + # Encryption details for required client-side encryption and decryption of document contents. + class FeedDocumentEncryptionDetails + # The encryption standard required to encrypt or decrypt the document contents. + attr_accessor :standard + + # The vector to encrypt or decrypt the document contents using Cipher Block Chaining (CBC). + attr_accessor :initialization_vector + + # The encryption key used to encrypt or decrypt the document contents. + attr_accessor :key + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'standard' => :'standard', + :'initialization_vector' => :'initializationVector', + :'key' => :'key' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'standard' => :'Object', + :'initialization_vector' => :'Object', + :'key' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::FeedsApiModel::FeedDocumentEncryptionDetails` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::FeedsApiModel::FeedDocumentEncryptionDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'standard') + self.standard = attributes[:'standard'] + end + + if attributes.key?(:'initialization_vector') + self.initialization_vector = attributes[:'initialization_vector'] + end + + if attributes.key?(:'key') + self.key = attributes[:'key'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @standard.nil? + invalid_properties.push('invalid value for "standard", standard cannot be nil.') + end + + if @initialization_vector.nil? + invalid_properties.push('invalid value for "initialization_vector", initialization_vector cannot be nil.') + end + + if @key.nil? + invalid_properties.push('invalid value for "key", key cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return false if @standard.nil? + standard_validator = EnumAttributeValidator.new('Object', ['AES']) + return false unless standard_validator.valid?(@standard) + return false if @initialization_vector.nil? + return false if @key.nil? + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] standard Object to be assigned + def standard=(standard) + validator = EnumAttributeValidator.new('Object', ['AES']) + unless validator.valid?(standard) + fail ArgumentError, "invalid value for \"standard\", must be one of #{validator.allowable_values}." + end + @standard = standard + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + standard == o.standard && + initialization_vector == o.initialization_vector && + key == o.key + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [standard, initialization_vector, key].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::FeedsApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/feeds-api-model/models/feed_list.rb b/lib/feeds-api-model/models/feed_list.rb index 1d717761e..4c696906b 100644 --- a/lib/feeds-api-model/models/feed_list.rb +++ b/lib/feeds-api-model/models/feed_list.rb @@ -1,18 +1,17 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::FeedsApiModel - # A list of feeds. class FeedList # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map diff --git a/lib/feeds-api-model/models/feed_options.rb b/lib/feeds-api-model/models/feed_options.rb index 02ed46627..dc27dcf08 100644 --- a/lib/feeds-api-model/models/feed_options.rb +++ b/lib/feeds-api-model/models/feed_options.rb @@ -1,18 +1,18 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::FeedsApiModel - # Additional options to control the feed. These vary by feed type. + # Additional options to control the feed. For feeds that use the feedOptions parameter, you can find the parameter values in the feed description in [feedType values](https://github.com/amzn/selling-partner-api-docs/blob/main/references/feeds-api/feedtype-values.md). class FeedOptions # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map diff --git a/lib/product-pricing-api-model/models/number_of_offers.rb b/lib/feeds-api-model/models/get_feed_document_response.rb similarity index 81% rename from lib/product-pricing-api-model/models/number_of_offers.rb rename to lib/feeds-api-model/models/get_feed_document_response.rb index a2e63fc00..eedb10188 100644 --- a/lib/product-pricing-api-model/models/number_of_offers.rb +++ b/lib/feeds-api-model/models/get_feed_document_response.rb @@ -1,27 +1,36 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Feeds -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: v0 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - class NumberOfOffers +module AmzSpApi::FeedsApiModel + # Response schema. + class GetFeedDocumentResponse + attr_accessor :payload + + attr_accessor :errors + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'payload' => :'payload', + :'errors' => :'errors' } end # Attribute type mapping. def self.openapi_types { + :'payload' => :'Object', + :'errors' => :'Object' } end @@ -35,25 +44,30 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::NumberOfOffers` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::FeedsApiModel::GetFeedDocumentResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::NumberOfOffers`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::FeedsApiModel::GetFeedDocumentResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - # call parent's initialize - super(attributes) + if attributes.key?(:'payload') + self.payload = attributes[:'payload'] + end + + if attributes.key?(:'errors') + self.errors = attributes[:'errors'] + end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties - invalid_properties = super + invalid_properties = Array.new invalid_properties end @@ -67,7 +81,9 @@ def valid? # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) - self.class == o.class && super(o) + self.class == o.class && + payload == o.payload && + errors == o.errors end # @see the `==` method @@ -79,7 +95,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [].hash + [payload, errors].hash end # Builds the object from hash @@ -94,7 +110,6 @@ def self.build_from_hash(attributes) # @return [Object] Returns the model itself def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) - super(attributes) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute @@ -149,7 +164,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::FeedsApiModel.const_get(type).build_from_hash(value) end end @@ -168,7 +183,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash - hash = super + hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? diff --git a/lib/product-pricing-api-model/models/ships_from_type.rb b/lib/feeds-api-model/models/get_feed_response.rb similarity index 81% rename from lib/product-pricing-api-model/models/ships_from_type.rb rename to lib/feeds-api-model/models/get_feed_response.rb index 4475836b2..c99d2f23d 100644 --- a/lib/product-pricing-api-model/models/ships_from_type.rb +++ b/lib/feeds-api-model/models/get_feed_response.rb @@ -1,38 +1,36 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Feeds -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: v0 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - # The state and country from where the item is shipped. - class ShipsFromType - # The state from where the item is shipped. - attr_accessor :state +module AmzSpApi::FeedsApiModel + # Response schema. + class GetFeedResponse + attr_accessor :payload - # The country from where the item is shipped. - attr_accessor :country + attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'state' => :'State', - :'country' => :'Country' + :'payload' => :'payload', + :'errors' => :'errors' } end # Attribute type mapping. def self.openapi_types { - :'state' => :'Object', - :'country' => :'Object' + :'payload' => :'Object', + :'errors' => :'Object' } end @@ -46,23 +44,23 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::ShipsFromType` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::FeedsApiModel::GetFeedResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::ShipsFromType`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::FeedsApiModel::GetFeedResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - if attributes.key?(:'state') - self.state = attributes[:'state'] + if attributes.key?(:'payload') + self.payload = attributes[:'payload'] end - if attributes.key?(:'country') - self.country = attributes[:'country'] + if attributes.key?(:'errors') + self.errors = attributes[:'errors'] end end @@ -84,8 +82,8 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - state == o.state && - country == o.country + payload == o.payload && + errors == o.errors end # @see the `==` method @@ -97,7 +95,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [state, country].hash + [payload, errors].hash end # Builds the object from hash @@ -166,7 +164,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::FeedsApiModel.const_get(type).build_from_hash(value) end end diff --git a/lib/feeds-api-model/models/get_feeds_response.rb b/lib/feeds-api-model/models/get_feeds_response.rb index 0746b1c4f..f6b8c9fa3 100644 --- a/lib/feeds-api-model/models/get_feeds_response.rb +++ b/lib/feeds-api-model/models/get_feeds_response.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' @@ -14,24 +14,28 @@ module AmzSpApi::FeedsApiModel # Response schema. class GetFeedsResponse - attr_accessor :feeds + attr_accessor :payload # Returned when the number of results exceeds pageSize. To get the next page of results, call the getFeeds operation with this token as the only parameter. attr_accessor :next_token + attr_accessor :errors + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'feeds' => :'feeds', - :'next_token' => :'nextToken' + :'payload' => :'payload', + :'next_token' => :'nextToken', + :'errors' => :'errors' } end # Attribute type mapping. def self.openapi_types { - :'feeds' => :'Object', - :'next_token' => :'Object' + :'payload' => :'Object', + :'next_token' => :'Object', + :'errors' => :'Object' } end @@ -56,30 +60,29 @@ def initialize(attributes = {}) h[k.to_sym] = v } - if attributes.key?(:'feeds') - self.feeds = attributes[:'feeds'] + if attributes.key?(:'payload') + self.payload = attributes[:'payload'] end if attributes.key?(:'next_token') self.next_token = attributes[:'next_token'] end + + if attributes.key?(:'errors') + self.errors = attributes[:'errors'] + end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @feeds.nil? - invalid_properties.push('invalid value for "feeds", feeds cannot be nil.') - end - invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @feeds.nil? true end @@ -88,8 +91,9 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - feeds == o.feeds && - next_token == o.next_token + payload == o.payload && + next_token == o.next_token && + errors == o.errors end # @see the `==` method @@ -101,7 +105,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [feeds, next_token].hash + [payload, next_token, errors].hash end # Builds the object from hash diff --git a/lib/feeds-api-model/spec/api/feeds_api_spec.rb b/lib/feeds-api-model/spec/api/feeds_api_spec.rb index 5cfb32cc6..13f3f5ceb 100644 --- a/lib/feeds-api-model/spec/api/feeds_api_spec.rb +++ b/lib/feeds-api-model/spec/api/feeds_api_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -32,10 +32,10 @@ end # unit tests for cancel_feed - # Cancels the feed that you specify. Only feeds with processingStatus=IN_QUEUE can be cancelled. Cancelled feeds are returned in subsequent calls to the getFeed and getFeeds operations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Effective June 27, 2023, the `cancelFeed` operation will no longer be available in the Selling Partner API for Feeds v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. # @param feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. # @param [Hash] opts the optional parameters - # @return [nil] + # @return [CancelFeedResponse] describe 'cancel_feed test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -43,7 +43,7 @@ end # unit tests for create_feed - # Creates a feed. Upload the contents of the feed document before calling this operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0083 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Effective June 27, 2023, the `createFeed` operation will no longer be available in the Selling Partner API for Feeds v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. # @param body # @param [Hash] opts the optional parameters # @return [CreateFeedResponse] @@ -54,7 +54,7 @@ end # unit tests for create_feed_document - # Creates a feed document for the feed type that you specify. This operation returns a presigned URL for uploading the feed document contents. It also returns a feedDocumentId value that you can pass in with a subsequent call to the createFeed operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0083 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Effective June 27, 2023, the `createFeedDocument` operation will no longer be available in the Selling Partner API for Feeds v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. # @param body # @param [Hash] opts the optional parameters # @return [CreateFeedDocumentResponse] @@ -65,10 +65,10 @@ end # unit tests for get_feed - # Returns feed details (including the resultDocumentId, if available) for the feed that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2.0 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Effective June 27, 2023, the `getFeed` operation will no longer be available in the Selling Partner API for Feeds v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. # @param feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. # @param [Hash] opts the optional parameters - # @return [Feed] + # @return [GetFeedResponse] describe 'get_feed test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -76,10 +76,10 @@ end # unit tests for get_feed_document - # Returns the information required for retrieving a feed document's contents. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Effective June 27, 2023, the `getFeedDocument` operation will no longer be available in the Selling Partner API for Feeds v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. # @param feed_document_id The identifier of the feed document. # @param [Hash] opts the optional parameters - # @return [FeedDocument] + # @return [GetFeedDocumentResponse] describe 'get_feed_document test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -87,7 +87,7 @@ end # unit tests for get_feeds - # Returns feed details for the feeds that match the filters that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Effective June 27, 2023, the `getFeeds` operation will no longer be available in the Selling Partner API for Feeds v2020-09-04 and all calls to it will fail. Integrations that rely on this operation should migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. # @param [Hash] opts the optional parameters # @option opts [Array] :feed_types A list of feed types used to filter feeds. When feedTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either feedTypes or nextToken is required. # @option opts [Array] :marketplace_ids A list of marketplace identifiers used to filter feeds. The feeds returned will match at least one of the marketplaces that you specify. diff --git a/lib/feeds-api-model/spec/api_client_spec.rb b/lib/feeds-api-model/spec/api_client_spec.rb index b2d550b6d..1b26290f7 100644 --- a/lib/feeds-api-model/spec/api_client_spec.rb +++ b/lib/feeds-api-model/spec/api_client_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/feeds-api-model/spec/configuration_spec.rb b/lib/feeds-api-model/spec/configuration_spec.rb index 95401afdc..3e7e6d9c4 100644 --- a/lib/feeds-api-model/spec/configuration_spec.rb +++ b/lib/feeds-api-model/spec/configuration_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/feeds-api-model/spec/models/cancel_feed_response_spec.rb b/lib/feeds-api-model/spec/models/cancel_feed_response_spec.rb new file mode 100644 index 000000000..e12f437a0 --- /dev/null +++ b/lib/feeds-api-model/spec/models/cancel_feed_response_spec.rb @@ -0,0 +1,40 @@ +=begin +#Selling Partner API for Feeds + +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. + +OpenAPI spec version: 2020-09-04 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::FeedsApiModel::CancelFeedResponse +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'CancelFeedResponse' do + before do + # run before each test + @instance = AmzSpApi::FeedsApiModel::CancelFeedResponse.new + end + + after do + # run after each test + end + + describe 'test an instance of CancelFeedResponse' do + it 'should create an instance of CancelFeedResponse' do + expect(@instance).to be_instance_of(AmzSpApi::FeedsApiModel::CancelFeedResponse) + end + end + describe 'test attribute "errors"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/feeds-api-model/spec/models/create_feed_document_response_spec.rb b/lib/feeds-api-model/spec/models/create_feed_document_response_spec.rb index 8cf525dd9..cec590a11 100644 --- a/lib/feeds-api-model/spec/models/create_feed_document_response_spec.rb +++ b/lib/feeds-api-model/spec/models/create_feed_document_response_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -31,13 +31,13 @@ expect(@instance).to be_instance_of(AmzSpApi::FeedsApiModel::CreateFeedDocumentResponse) end end - describe 'test attribute "feed_document_id"' do + describe 'test attribute "payload"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "url"' do + describe 'test attribute "errors"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/lib/feeds-api-model/spec/models/create_feed_document_result_spec.rb b/lib/feeds-api-model/spec/models/create_feed_document_result_spec.rb new file mode 100644 index 000000000..46b496a69 --- /dev/null +++ b/lib/feeds-api-model/spec/models/create_feed_document_result_spec.rb @@ -0,0 +1,52 @@ +=begin +#Selling Partner API for Feeds + +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. + +OpenAPI spec version: 2020-09-04 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::FeedsApiModel::CreateFeedDocumentResult +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'CreateFeedDocumentResult' do + before do + # run before each test + @instance = AmzSpApi::FeedsApiModel::CreateFeedDocumentResult.new + end + + after do + # run after each test + end + + describe 'test an instance of CreateFeedDocumentResult' do + it 'should create an instance of CreateFeedDocumentResult' do + expect(@instance).to be_instance_of(AmzSpApi::FeedsApiModel::CreateFeedDocumentResult) + end + end + describe 'test attribute "feed_document_id"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "url"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "encryption_details"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/feeds-api-model/spec/models/create_feed_document_specification_spec.rb b/lib/feeds-api-model/spec/models/create_feed_document_specification_spec.rb index 13a663ac8..0fa7dd1e7 100644 --- a/lib/feeds-api-model/spec/models/create_feed_document_specification_spec.rb +++ b/lib/feeds-api-model/spec/models/create_feed_document_specification_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/feeds-api-model/spec/models/create_feed_response_spec.rb b/lib/feeds-api-model/spec/models/create_feed_response_spec.rb index 12e05323d..654144301 100644 --- a/lib/feeds-api-model/spec/models/create_feed_response_spec.rb +++ b/lib/feeds-api-model/spec/models/create_feed_response_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -31,7 +31,13 @@ expect(@instance).to be_instance_of(AmzSpApi::FeedsApiModel::CreateFeedResponse) end end - describe 'test attribute "feed_id"' do + describe 'test attribute "payload"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "errors"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/lib/feeds-api-model/spec/models/create_feed_result_spec.rb b/lib/feeds-api-model/spec/models/create_feed_result_spec.rb new file mode 100644 index 000000000..69854763a --- /dev/null +++ b/lib/feeds-api-model/spec/models/create_feed_result_spec.rb @@ -0,0 +1,40 @@ +=begin +#Selling Partner API for Feeds + +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. + +OpenAPI spec version: 2020-09-04 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::FeedsApiModel::CreateFeedResult +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'CreateFeedResult' do + before do + # run before each test + @instance = AmzSpApi::FeedsApiModel::CreateFeedResult.new + end + + after do + # run after each test + end + + describe 'test an instance of CreateFeedResult' do + it 'should create an instance of CreateFeedResult' do + expect(@instance).to be_instance_of(AmzSpApi::FeedsApiModel::CreateFeedResult) + end + end + describe 'test attribute "feed_id"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/feeds-api-model/spec/models/create_feed_specification_spec.rb b/lib/feeds-api-model/spec/models/create_feed_specification_spec.rb index 75254a450..bd0ede0ea 100644 --- a/lib/feeds-api-model/spec/models/create_feed_specification_spec.rb +++ b/lib/feeds-api-model/spec/models/create_feed_specification_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/feeds-api-model/spec/models/error_list_spec.rb b/lib/feeds-api-model/spec/models/error_list_spec.rb index e6743ee1d..48da63c59 100644 --- a/lib/feeds-api-model/spec/models/error_list_spec.rb +++ b/lib/feeds-api-model/spec/models/error_list_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -31,10 +31,4 @@ expect(@instance).to be_instance_of(AmzSpApi::FeedsApiModel::ErrorList) end end - describe 'test attribute "errors"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - end diff --git a/lib/feeds-api-model/spec/models/error_spec.rb b/lib/feeds-api-model/spec/models/error_spec.rb index 678778417..72c857b48 100644 --- a/lib/feeds-api-model/spec/models/error_spec.rb +++ b/lib/feeds-api-model/spec/models/error_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/feeds-api-model/spec/models/feed_document_encryption_details_spec.rb b/lib/feeds-api-model/spec/models/feed_document_encryption_details_spec.rb new file mode 100644 index 000000000..a3b2a114c --- /dev/null +++ b/lib/feeds-api-model/spec/models/feed_document_encryption_details_spec.rb @@ -0,0 +1,56 @@ +=begin +#Selling Partner API for Feeds + +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. + +OpenAPI spec version: 2020-09-04 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::FeedsApiModel::FeedDocumentEncryptionDetails +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'FeedDocumentEncryptionDetails' do + before do + # run before each test + @instance = AmzSpApi::FeedsApiModel::FeedDocumentEncryptionDetails.new + end + + after do + # run after each test + end + + describe 'test an instance of FeedDocumentEncryptionDetails' do + it 'should create an instance of FeedDocumentEncryptionDetails' do + expect(@instance).to be_instance_of(AmzSpApi::FeedsApiModel::FeedDocumentEncryptionDetails) + end + end + describe 'test attribute "standard"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["AES"]) + # validator.allowable_values.each do |value| + # expect { @instance.standard = value }.not_to raise_error + # end + end + end + + describe 'test attribute "initialization_vector"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "key"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/feeds-api-model/spec/models/feed_document_spec.rb b/lib/feeds-api-model/spec/models/feed_document_spec.rb index 9e381d44f..192173ab9 100644 --- a/lib/feeds-api-model/spec/models/feed_document_spec.rb +++ b/lib/feeds-api-model/spec/models/feed_document_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -43,6 +43,12 @@ end end + describe 'test attribute "encryption_details"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "compression_algorithm"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/lib/feeds-api-model/spec/models/feed_list_spec.rb b/lib/feeds-api-model/spec/models/feed_list_spec.rb index d5a0a4861..701729fc9 100644 --- a/lib/feeds-api-model/spec/models/feed_list_spec.rb +++ b/lib/feeds-api-model/spec/models/feed_list_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/feeds-api-model/spec/models/feed_options_spec.rb b/lib/feeds-api-model/spec/models/feed_options_spec.rb index 6fcdcc322..ef7f5267c 100644 --- a/lib/feeds-api-model/spec/models/feed_options_spec.rb +++ b/lib/feeds-api-model/spec/models/feed_options_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/feeds-api-model/spec/models/feed_spec.rb b/lib/feeds-api-model/spec/models/feed_spec.rb index 8aebae65f..f29154409 100644 --- a/lib/feeds-api-model/spec/models/feed_spec.rb +++ b/lib/feeds-api-model/spec/models/feed_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/feeds-api-model/spec/models/get_feed_document_response_spec.rb b/lib/feeds-api-model/spec/models/get_feed_document_response_spec.rb new file mode 100644 index 000000000..1570527dd --- /dev/null +++ b/lib/feeds-api-model/spec/models/get_feed_document_response_spec.rb @@ -0,0 +1,46 @@ +=begin +#Selling Partner API for Feeds + +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. + +OpenAPI spec version: 2020-09-04 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::FeedsApiModel::GetFeedDocumentResponse +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'GetFeedDocumentResponse' do + before do + # run before each test + @instance = AmzSpApi::FeedsApiModel::GetFeedDocumentResponse.new + end + + after do + # run after each test + end + + describe 'test an instance of GetFeedDocumentResponse' do + it 'should create an instance of GetFeedDocumentResponse' do + expect(@instance).to be_instance_of(AmzSpApi::FeedsApiModel::GetFeedDocumentResponse) + end + end + describe 'test attribute "payload"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "errors"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/feeds-api-model/spec/models/get_feed_response_spec.rb b/lib/feeds-api-model/spec/models/get_feed_response_spec.rb new file mode 100644 index 000000000..6cfef76dc --- /dev/null +++ b/lib/feeds-api-model/spec/models/get_feed_response_spec.rb @@ -0,0 +1,46 @@ +=begin +#Selling Partner API for Feeds + +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. + +OpenAPI spec version: 2020-09-04 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::FeedsApiModel::GetFeedResponse +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'GetFeedResponse' do + before do + # run before each test + @instance = AmzSpApi::FeedsApiModel::GetFeedResponse.new + end + + after do + # run after each test + end + + describe 'test an instance of GetFeedResponse' do + it 'should create an instance of GetFeedResponse' do + expect(@instance).to be_instance_of(AmzSpApi::FeedsApiModel::GetFeedResponse) + end + end + describe 'test attribute "payload"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "errors"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/feeds-api-model/spec/models/get_feeds_response_spec.rb b/lib/feeds-api-model/spec/models/get_feeds_response_spec.rb index 7186bb132..a5a277945 100644 --- a/lib/feeds-api-model/spec/models/get_feeds_response_spec.rb +++ b/lib/feeds-api-model/spec/models/get_feeds_response_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -31,7 +31,7 @@ expect(@instance).to be_instance_of(AmzSpApi::FeedsApiModel::GetFeedsResponse) end end - describe 'test attribute "feeds"' do + describe 'test attribute "payload"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end @@ -43,4 +43,10 @@ end end + describe 'test attribute "errors"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/lib/feeds-api-model/spec/spec_helper.rb b/lib/feeds-api-model/spec/spec_helper.rb index e03f5fa05..a55472dc1 100644 --- a/lib/feeds-api-model/spec/spec_helper.rb +++ b/lib/feeds-api-model/spec/spec_helper.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # load the gem diff --git a/lib/feeds-api-model/version.rb b/lib/feeds-api-model/version.rb index 40f9df147..78953b58a 100644 --- a/lib/feeds-api-model/version.rb +++ b/lib/feeds-api-model/version.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Feeds -#The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. +#Effective **June 27, 2023**, the Selling Partner API for Feeds v2020-09-04 will no longer be available and all calls to it will fail. Integrations that rely on the Feeds API must migrate to [Feeds v2021-06-30](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference) to avoid service disruption. -OpenAPI spec version: 2021-06-30 +OpenAPI spec version: 2020-09-04 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::FeedsApiModel diff --git a/lib/finances-api-model.rb b/lib/finances-api-model.rb index c6d0e0472..2c09fa1d9 100644 --- a/lib/finances-api-model.rb +++ b/lib/finances-api-model.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # Common files @@ -16,6 +16,8 @@ require 'finances-api-model/configuration' # Models +require 'finances-api-model/models/adhoc_disbursement_event' +require 'finances-api-model/models/adhoc_disbursement_event_list' require 'finances-api-model/models/adjustment_event' require 'finances-api-model/models/adjustment_event_list' require 'finances-api-model/models/adjustment_item' @@ -23,10 +25,15 @@ require 'finances-api-model/models/affordability_expense_event' require 'finances-api-model/models/affordability_expense_event_list' require 'finances-api-model/models/big_decimal' +require 'finances-api-model/models/capacity_reservation_billing_event' +require 'finances-api-model/models/capacity_reservation_billing_event_list' require 'finances-api-model/models/charge_component' require 'finances-api-model/models/charge_component_list' require 'finances-api-model/models/charge_instrument' require 'finances-api-model/models/charge_instrument_list' +require 'finances-api-model/models/charge_refund_event' +require 'finances-api-model/models/charge_refund_event_list' +require 'finances-api-model/models/charge_refund_transaction' require 'finances-api-model/models/coupon_payment_event' require 'finances-api-model/models/coupon_payment_event_list' require 'finances-api-model/models/currency' @@ -41,6 +48,7 @@ require 'finances-api-model/models/error_list' require 'finances-api-model/models/fba_liquidation_event' require 'finances-api-model/models/fba_liquidation_event_list' +require 'finances-api-model/models/failed_adhoc_disbursement_event_list' require 'finances-api-model/models/fee_component' require 'finances-api-model/models/fee_component_list' require 'finances-api-model/models/financial_event_group' @@ -90,6 +98,8 @@ require 'finances-api-model/models/shipment_settle_event_list' require 'finances-api-model/models/solution_provider_credit_event' require 'finances-api-model/models/solution_provider_credit_event_list' +require 'finances-api-model/models/tds_reimbursement_event' +require 'finances-api-model/models/tds_reimbursement_event_list' require 'finances-api-model/models/tax_withheld_component' require 'finances-api-model/models/tax_withheld_component_list' require 'finances-api-model/models/tax_withholding_event' @@ -97,6 +107,7 @@ require 'finances-api-model/models/tax_withholding_period' require 'finances-api-model/models/trial_shipment_event' require 'finances-api-model/models/trial_shipment_event_list' +require 'finances-api-model/models/value_added_service_charge_event_list' # APIs require 'finances-api-model/api/default_api' diff --git a/lib/finances-api-model/.swagger-codegen/VERSION b/lib/finances-api-model/.swagger-codegen/VERSION index b39b0b9e0..161761765 100644 --- a/lib/finances-api-model/.swagger-codegen/VERSION +++ b/lib/finances-api-model/.swagger-codegen/VERSION @@ -1 +1 @@ -3.0.24 \ No newline at end of file +3.0.46 \ No newline at end of file diff --git a/lib/finances-api-model/README.md b/lib/finances-api-model/README.md index b1460a9cd..fcbf1b425 100644 --- a/lib/finances-api-model/README.md +++ b/lib/finances-api-model/README.md @@ -57,7 +57,7 @@ require 'finances-api-model' api_instance = AmzSpApi::FinancesApiModel::DefaultApi.new opts = { - max_results_per_page: 100, # Integer | The maximum number of results to return per page. + max_results_per_page: 100, # Integer | The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. financial_event_group_started_before: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | A date used for selecting financial event groups that opened before (but not at) a specified date and time, in ISO 8601 format. The date-time must be later than FinancialEventGroupStartedAfter and no later than two minutes before the request was submitted. If FinancialEventGroupStartedAfter and FinancialEventGroupStartedBefore are more than 180 days apart, no financial event groups are returned. financial_event_group_started_after: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | A date used for selecting financial event groups that opened after (or at) a specified date and time, in ISO 8601 format. The date-time must be no later than two minutes before the request was submitted. next_token: 'next_token_example' # String | A string token returned in the response of your previous request. @@ -72,7 +72,7 @@ end api_instance = AmzSpApi::FinancesApiModel::DefaultApi.new opts = { - max_results_per_page: 100, # Integer | The maximum number of results to return per page. + max_results_per_page: 100, # Integer | The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. posted_after: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | A date used for selecting financial events posted after (or at) a specified time. The date-time must be no later than two minutes before the request was submitted, in ISO 8601 date time format. posted_before: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than PostedAfter and no later than two minutes before the request was submitted, in ISO 8601 date time format. If PostedAfter and PostedBefore are more than 180 days apart, no financial events are returned. You must specify the PostedAfter parameter if you specify the PostedBefore parameter. Default: Now minus two minutes. next_token: 'next_token_example' # String | A string token returned in the response of your previous request. @@ -88,7 +88,9 @@ end api_instance = AmzSpApi::FinancesApiModel::DefaultApi.new event_group_id = 'event_group_id_example' # String | The identifier of the financial event group to which the events belong. opts = { - max_results_per_page: 100, # Integer | The maximum number of results to return per page. + max_results_per_page: 100, # Integer | The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. + posted_after: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | A date used for selecting financial events posted after (or at) a specified time. The date-time **must** be more than two minutes before the time of the request, in ISO 8601 date time format. + posted_before: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than `PostedAfter` and no later than two minutes before the request was submitted, in ISO 8601 date time format. If `PostedAfter` and `PostedBefore` are more than 180 days apart, no financial events are returned. You must specify the `PostedAfter` parameter if you specify the `PostedBefore` parameter. Default: Now minus two minutes. next_token: 'next_token_example' # String | A string token returned in the response of your previous request. } @@ -102,7 +104,7 @@ end api_instance = AmzSpApi::FinancesApiModel::DefaultApi.new order_id = 'order_id_example' # String | An Amazon-defined order identifier, in 3-7-7 format. opts = { - max_results_per_page: 100, # Integer | The maximum number of results to return per page. + max_results_per_page: 100, # Integer | The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. next_token: 'next_token_example' # String | A string token returned in the response of your previous request. } @@ -127,6 +129,8 @@ Class | Method | HTTP request | Description ## Documentation for Models + - [AmzSpApi::FinancesApiModel::AdhocDisbursementEvent](docs/AdhocDisbursementEvent.md) + - [AmzSpApi::FinancesApiModel::AdhocDisbursementEventList](docs/AdhocDisbursementEventList.md) - [AmzSpApi::FinancesApiModel::AdjustmentEvent](docs/AdjustmentEvent.md) - [AmzSpApi::FinancesApiModel::AdjustmentEventList](docs/AdjustmentEventList.md) - [AmzSpApi::FinancesApiModel::AdjustmentItem](docs/AdjustmentItem.md) @@ -134,10 +138,15 @@ Class | Method | HTTP request | Description - [AmzSpApi::FinancesApiModel::AffordabilityExpenseEvent](docs/AffordabilityExpenseEvent.md) - [AmzSpApi::FinancesApiModel::AffordabilityExpenseEventList](docs/AffordabilityExpenseEventList.md) - [AmzSpApi::FinancesApiModel::BigDecimal](docs/BigDecimal.md) + - [AmzSpApi::FinancesApiModel::CapacityReservationBillingEvent](docs/CapacityReservationBillingEvent.md) + - [AmzSpApi::FinancesApiModel::CapacityReservationBillingEventList](docs/CapacityReservationBillingEventList.md) - [AmzSpApi::FinancesApiModel::ChargeComponent](docs/ChargeComponent.md) - [AmzSpApi::FinancesApiModel::ChargeComponentList](docs/ChargeComponentList.md) - [AmzSpApi::FinancesApiModel::ChargeInstrument](docs/ChargeInstrument.md) - [AmzSpApi::FinancesApiModel::ChargeInstrumentList](docs/ChargeInstrumentList.md) + - [AmzSpApi::FinancesApiModel::ChargeRefundEvent](docs/ChargeRefundEvent.md) + - [AmzSpApi::FinancesApiModel::ChargeRefundEventList](docs/ChargeRefundEventList.md) + - [AmzSpApi::FinancesApiModel::ChargeRefundTransaction](docs/ChargeRefundTransaction.md) - [AmzSpApi::FinancesApiModel::CouponPaymentEvent](docs/CouponPaymentEvent.md) - [AmzSpApi::FinancesApiModel::CouponPaymentEventList](docs/CouponPaymentEventList.md) - [AmzSpApi::FinancesApiModel::Currency](docs/Currency.md) @@ -152,6 +161,7 @@ Class | Method | HTTP request | Description - [AmzSpApi::FinancesApiModel::ErrorList](docs/ErrorList.md) - [AmzSpApi::FinancesApiModel::FBALiquidationEvent](docs/FBALiquidationEvent.md) - [AmzSpApi::FinancesApiModel::FBALiquidationEventList](docs/FBALiquidationEventList.md) + - [AmzSpApi::FinancesApiModel::FailedAdhocDisbursementEventList](docs/FailedAdhocDisbursementEventList.md) - [AmzSpApi::FinancesApiModel::FeeComponent](docs/FeeComponent.md) - [AmzSpApi::FinancesApiModel::FeeComponentList](docs/FeeComponentList.md) - [AmzSpApi::FinancesApiModel::FinancialEventGroup](docs/FinancialEventGroup.md) @@ -201,6 +211,8 @@ Class | Method | HTTP request | Description - [AmzSpApi::FinancesApiModel::ShipmentSettleEventList](docs/ShipmentSettleEventList.md) - [AmzSpApi::FinancesApiModel::SolutionProviderCreditEvent](docs/SolutionProviderCreditEvent.md) - [AmzSpApi::FinancesApiModel::SolutionProviderCreditEventList](docs/SolutionProviderCreditEventList.md) + - [AmzSpApi::FinancesApiModel::TDSReimbursementEvent](docs/TDSReimbursementEvent.md) + - [AmzSpApi::FinancesApiModel::TDSReimbursementEventList](docs/TDSReimbursementEventList.md) - [AmzSpApi::FinancesApiModel::TaxWithheldComponent](docs/TaxWithheldComponent.md) - [AmzSpApi::FinancesApiModel::TaxWithheldComponentList](docs/TaxWithheldComponentList.md) - [AmzSpApi::FinancesApiModel::TaxWithholdingEvent](docs/TaxWithholdingEvent.md) @@ -208,6 +220,7 @@ Class | Method | HTTP request | Description - [AmzSpApi::FinancesApiModel::TaxWithholdingPeriod](docs/TaxWithholdingPeriod.md) - [AmzSpApi::FinancesApiModel::TrialShipmentEvent](docs/TrialShipmentEvent.md) - [AmzSpApi::FinancesApiModel::TrialShipmentEventList](docs/TrialShipmentEventList.md) + - [AmzSpApi::FinancesApiModel::ValueAddedServiceChargeEventList](docs/ValueAddedServiceChargeEventList.md) ## Documentation for Authorization diff --git a/lib/finances-api-model/api/default_api.rb b/lib/finances-api-model/api/default_api.rb index 8e430584c..975161b3e 100644 --- a/lib/finances-api-model/api/default_api.rb +++ b/lib/finances-api-model/api/default_api.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::FinancesApiModel @@ -16,9 +16,9 @@ class DefaultApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Returns financial event groups for a given date range. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns financial event groups for a given date range. It may take up to 48 hours for orders to appear in your financial events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param [Hash] opts the optional parameters - # @option opts [Integer] :max_results_per_page The maximum number of results to return per page. (default to 100) + # @option opts [Integer] :max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. (default to 100) # @option opts [DateTime] :financial_event_group_started_before A date used for selecting financial event groups that opened before (but not at) a specified date and time, in ISO 8601 format. The date-time must be later than FinancialEventGroupStartedAfter and no later than two minutes before the request was submitted. If FinancialEventGroupStartedAfter and FinancialEventGroupStartedBefore are more than 180 days apart, no financial event groups are returned. # @option opts [DateTime] :financial_event_group_started_after A date used for selecting financial event groups that opened after (or at) a specified date and time, in ISO 8601 format. The date-time must be no later than two minutes before the request was submitted. # @option opts [String] :next_token A string token returned in the response of your previous request. @@ -28,9 +28,9 @@ def list_financial_event_groups(opts = {}) data end - # Returns financial event groups for a given date range. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns financial event groups for a given date range. It may take up to 48 hours for orders to appear in your financial events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param [Hash] opts the optional parameters - # @option opts [Integer] :max_results_per_page The maximum number of results to return per page. + # @option opts [Integer] :max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. # @option opts [DateTime] :financial_event_group_started_before A date used for selecting financial event groups that opened before (but not at) a specified date and time, in ISO 8601 format. The date-time must be later than FinancialEventGroupStartedAfter and no later than two minutes before the request was submitted. If FinancialEventGroupStartedAfter and FinancialEventGroupStartedBefore are more than 180 days apart, no financial event groups are returned. # @option opts [DateTime] :financial_event_group_started_after A date used for selecting financial event groups that opened after (or at) a specified date and time, in ISO 8601 format. The date-time must be no later than two minutes before the request was submitted. # @option opts [String] :next_token A string token returned in the response of your previous request. @@ -76,9 +76,9 @@ def list_financial_event_groups_with_http_info(opts = {}) end return data, status_code, headers end - # Returns financial events for the specified data range. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns financial events for the specified data range. It may take up to 48 hours for orders to appear in your financial events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param [Hash] opts the optional parameters - # @option opts [Integer] :max_results_per_page The maximum number of results to return per page. (default to 100) + # @option opts [Integer] :max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. (default to 100) # @option opts [DateTime] :posted_after A date used for selecting financial events posted after (or at) a specified time. The date-time must be no later than two minutes before the request was submitted, in ISO 8601 date time format. # @option opts [DateTime] :posted_before A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than PostedAfter and no later than two minutes before the request was submitted, in ISO 8601 date time format. If PostedAfter and PostedBefore are more than 180 days apart, no financial events are returned. You must specify the PostedAfter parameter if you specify the PostedBefore parameter. Default: Now minus two minutes. # @option opts [String] :next_token A string token returned in the response of your previous request. @@ -88,9 +88,9 @@ def list_financial_events(opts = {}) data end - # Returns financial events for the specified data range. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns financial events for the specified data range. It may take up to 48 hours for orders to appear in your financial events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param [Hash] opts the optional parameters - # @option opts [Integer] :max_results_per_page The maximum number of results to return per page. + # @option opts [Integer] :max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. # @option opts [DateTime] :posted_after A date used for selecting financial events posted after (or at) a specified time. The date-time must be no later than two minutes before the request was submitted, in ISO 8601 date time format. # @option opts [DateTime] :posted_before A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than PostedAfter and no later than two minutes before the request was submitted, in ISO 8601 date time format. If PostedAfter and PostedBefore are more than 180 days apart, no financial events are returned. You must specify the PostedAfter parameter if you specify the PostedBefore parameter. Default: Now minus two minutes. # @option opts [String] :next_token A string token returned in the response of your previous request. @@ -136,10 +136,12 @@ def list_financial_events_with_http_info(opts = {}) end return data, status_code, headers end - # Returns all financial events for the specified financial event group. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns all financial events for the specified financial event group. It may take up to 48 hours for orders to appear in your financial events. **Note:** This operation will only retrieve group's data for the past two years. If a request is submitted for data spanning more than two years, an empty response is returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param event_group_id The identifier of the financial event group to which the events belong. # @param [Hash] opts the optional parameters - # @option opts [Integer] :max_results_per_page The maximum number of results to return per page. (default to 100) + # @option opts [Integer] :max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. (default to 100) + # @option opts [DateTime] :posted_after A date used for selecting financial events posted after (or at) a specified time. The date-time **must** be more than two minutes before the time of the request, in ISO 8601 date time format. + # @option opts [DateTime] :posted_before A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than `PostedAfter` and no later than two minutes before the request was submitted, in ISO 8601 date time format. If `PostedAfter` and `PostedBefore` are more than 180 days apart, no financial events are returned. You must specify the `PostedAfter` parameter if you specify the `PostedBefore` parameter. Default: Now minus two minutes. # @option opts [String] :next_token A string token returned in the response of your previous request. # @return [ListFinancialEventsResponse] def list_financial_events_by_group_id(event_group_id, opts = {}) @@ -147,10 +149,12 @@ def list_financial_events_by_group_id(event_group_id, opts = {}) data end - # Returns all financial events for the specified financial event group. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns all financial events for the specified financial event group. It may take up to 48 hours for orders to appear in your financial events. **Note:** This operation will only retrieve group's data for the past two years. If a request is submitted for data spanning more than two years, an empty response is returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param event_group_id The identifier of the financial event group to which the events belong. # @param [Hash] opts the optional parameters - # @option opts [Integer] :max_results_per_page The maximum number of results to return per page. + # @option opts [Integer] :max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. + # @option opts [DateTime] :posted_after A date used for selecting financial events posted after (or at) a specified time. The date-time **must** be more than two minutes before the time of the request, in ISO 8601 date time format. + # @option opts [DateTime] :posted_before A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than `PostedAfter` and no later than two minutes before the request was submitted, in ISO 8601 date time format. If `PostedAfter` and `PostedBefore` are more than 180 days apart, no financial events are returned. You must specify the `PostedAfter` parameter if you specify the `PostedBefore` parameter. Default: Now minus two minutes. # @option opts [String] :next_token A string token returned in the response of your previous request. # @return [Array<(ListFinancialEventsResponse, Integer, Hash)>] ListFinancialEventsResponse data, response status code and response headers def list_financial_events_by_group_id_with_http_info(event_group_id, opts = {}) @@ -167,6 +171,8 @@ def list_financial_events_by_group_id_with_http_info(event_group_id, opts = {}) # query parameters query_params = opts[:query_params] || {} query_params[:'MaxResultsPerPage'] = opts[:'max_results_per_page'] if !opts[:'max_results_per_page'].nil? + query_params[:'PostedAfter'] = opts[:'posted_after'] if !opts[:'posted_after'].nil? + query_params[:'PostedBefore'] = opts[:'posted_before'] if !opts[:'posted_before'].nil? query_params[:'NextToken'] = opts[:'next_token'] if !opts[:'next_token'].nil? # header parameters @@ -196,10 +202,10 @@ def list_financial_events_by_group_id_with_http_info(event_group_id, opts = {}) end return data, status_code, headers end - # Returns all financial events for the specified order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns all financial events for the specified order. It may take up to 48 hours for orders to appear in your financial events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param order_id An Amazon-defined order identifier, in 3-7-7 format. # @param [Hash] opts the optional parameters - # @option opts [Integer] :max_results_per_page The maximum number of results to return per page. (default to 100) + # @option opts [Integer] :max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. (default to 100) # @option opts [String] :next_token A string token returned in the response of your previous request. # @return [ListFinancialEventsResponse] def list_financial_events_by_order_id(order_id, opts = {}) @@ -207,10 +213,10 @@ def list_financial_events_by_order_id(order_id, opts = {}) data end - # Returns all financial events for the specified order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns all financial events for the specified order. It may take up to 48 hours for orders to appear in your financial events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param order_id An Amazon-defined order identifier, in 3-7-7 format. # @param [Hash] opts the optional parameters - # @option opts [Integer] :max_results_per_page The maximum number of results to return per page. + # @option opts [Integer] :max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. # @option opts [String] :next_token A string token returned in the response of your previous request. # @return [Array<(ListFinancialEventsResponse, Integer, Hash)>] ListFinancialEventsResponse data, response status code and response headers def list_financial_events_by_order_id_with_http_info(order_id, opts = {}) diff --git a/lib/finances-api-model/api_client.rb b/lib/finances-api-model/api_client.rb index 59ab39f73..39667b1ef 100644 --- a/lib/finances-api-model/api_client.rb +++ b/lib/finances-api-model/api_client.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/api_error.rb b/lib/finances-api-model/api_error.rb index e9205eb50..8190fba55 100644 --- a/lib/finances-api-model/api_error.rb +++ b/lib/finances-api-model/api_error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::FinancesApiModel diff --git a/lib/finances-api-model/configuration.rb b/lib/finances-api-model/configuration.rb index 10fb4c0ad..ebe5d7f94 100644 --- a/lib/finances-api-model/configuration.rb +++ b/lib/finances-api-model/configuration.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::FinancesApiModel diff --git a/lib/finances-api-model/docs/AdhocDisbursementEvent.md b/lib/finances-api-model/docs/AdhocDisbursementEvent.md new file mode 100644 index 000000000..95dc58ddf --- /dev/null +++ b/lib/finances-api-model/docs/AdhocDisbursementEvent.md @@ -0,0 +1,10 @@ +# AmzSpApi::FinancesApiModel::AdhocDisbursementEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transaction_type** | **String** | Indicates the type of transaction. Example: \"Disbursed to Amazon Gift Card balance\" | [optional] +**posted_date** | **Date** | | [optional] +**transaction_id** | **String** | The identifier for the transaction. | [optional] +**transaction_amount** | [**Currency**](Currency.md) | | [optional] + diff --git a/lib/product-pricing-api-model/docs/CompetitivePriceList.md b/lib/finances-api-model/docs/AdhocDisbursementEventList.md similarity index 66% rename from lib/product-pricing-api-model/docs/CompetitivePriceList.md rename to lib/finances-api-model/docs/AdhocDisbursementEventList.md index 4a72e0389..e925509f8 100644 --- a/lib/product-pricing-api-model/docs/CompetitivePriceList.md +++ b/lib/finances-api-model/docs/AdhocDisbursementEventList.md @@ -1,4 +1,4 @@ -# AmzSpApi::ProductPricingApiModel::CompetitivePriceList +# AmzSpApi::FinancesApiModel::AdhocDisbursementEventList ## Properties Name | Type | Description | Notes diff --git a/lib/finances-api-model/docs/CapacityReservationBillingEvent.md b/lib/finances-api-model/docs/CapacityReservationBillingEvent.md new file mode 100644 index 000000000..2a7b36cf1 --- /dev/null +++ b/lib/finances-api-model/docs/CapacityReservationBillingEvent.md @@ -0,0 +1,10 @@ +# AmzSpApi::FinancesApiModel::CapacityReservationBillingEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transaction_type** | **String** | Indicates the type of transaction. For example, FBA Inventory Fee | [optional] +**posted_date** | **Date** | | [optional] +**description** | **String** | A short description of the capacity reservation billing event. | [optional] +**transaction_amount** | [**Currency**](Currency.md) | | [optional] + diff --git a/lib/finances-api-model/docs/CapacityReservationBillingEventList.md b/lib/finances-api-model/docs/CapacityReservationBillingEventList.md new file mode 100644 index 000000000..7207794df --- /dev/null +++ b/lib/finances-api-model/docs/CapacityReservationBillingEventList.md @@ -0,0 +1,6 @@ +# AmzSpApi::FinancesApiModel::CapacityReservationBillingEventList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + diff --git a/lib/finances-api-model/docs/ChargeRefundEvent.md b/lib/finances-api-model/docs/ChargeRefundEvent.md new file mode 100644 index 000000000..fdcb626db --- /dev/null +++ b/lib/finances-api-model/docs/ChargeRefundEvent.md @@ -0,0 +1,10 @@ +# AmzSpApi::FinancesApiModel::ChargeRefundEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**posted_date** | **Date** | | [optional] +**reason_code** | **String** | The reason given for a charge refund. Example: `SubscriptionFeeCorrection` | [optional] +**reason_code_description** | **String** | A description of the Reason Code. Example: `SubscriptionFeeCorrection` | [optional] +**charge_refund_transactions** | [**ChargeRefundTransaction**](ChargeRefundTransaction.md) | | [optional] + diff --git a/lib/product-pricing-api-model/docs/ConditionType.md b/lib/finances-api-model/docs/ChargeRefundEventList.md similarity index 68% rename from lib/product-pricing-api-model/docs/ConditionType.md rename to lib/finances-api-model/docs/ChargeRefundEventList.md index e245a2361..c76b7afa2 100644 --- a/lib/product-pricing-api-model/docs/ConditionType.md +++ b/lib/finances-api-model/docs/ChargeRefundEventList.md @@ -1,4 +1,4 @@ -# AmzSpApi::ProductPricingApiModel::ConditionType +# AmzSpApi::FinancesApiModel::ChargeRefundEventList ## Properties Name | Type | Description | Notes diff --git a/lib/finances-api-model/docs/ChargeRefundTransaction.md b/lib/finances-api-model/docs/ChargeRefundTransaction.md new file mode 100644 index 000000000..0846cf88c --- /dev/null +++ b/lib/finances-api-model/docs/ChargeRefundTransaction.md @@ -0,0 +1,8 @@ +# AmzSpApi::FinancesApiModel::ChargeRefundTransaction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**charge_amount** | [**Currency**](Currency.md) | | [optional] +**charge_type** | **String** | The type of charge. | [optional] + diff --git a/lib/finances-api-model/docs/DefaultApi.md b/lib/finances-api-model/docs/DefaultApi.md index 4ffc746d6..408094d67 100644 --- a/lib/finances-api-model/docs/DefaultApi.md +++ b/lib/finances-api-model/docs/DefaultApi.md @@ -14,7 +14,7 @@ Method | HTTP request | Description -Returns financial event groups for a given date range. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns financial event groups for a given date range. It may take up to 48 hours for orders to appear in your financial events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -23,7 +23,7 @@ require 'finances-api-model' api_instance = AmzSpApi::FinancesApiModel::DefaultApi.new opts = { - max_results_per_page: 100, # Integer | The maximum number of results to return per page. + max_results_per_page: 100, # Integer | The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. financial_event_group_started_before: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | A date used for selecting financial event groups that opened before (but not at) a specified date and time, in ISO 8601 format. The date-time must be later than FinancialEventGroupStartedAfter and no later than two minutes before the request was submitted. If FinancialEventGroupStartedAfter and FinancialEventGroupStartedBefore are more than 180 days apart, no financial event groups are returned. financial_event_group_started_after: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | A date used for selecting financial event groups that opened after (or at) a specified date and time, in ISO 8601 format. The date-time must be no later than two minutes before the request was submitted. next_token: 'next_token_example' # String | A string token returned in the response of your previous request. @@ -41,7 +41,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **max_results_per_page** | **Integer**| The maximum number of results to return per page. | [optional] [default to 100] + **max_results_per_page** | **Integer**| The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. | [optional] [default to 100] **financial_event_group_started_before** | **DateTime**| A date used for selecting financial event groups that opened before (but not at) a specified date and time, in ISO 8601 format. The date-time must be later than FinancialEventGroupStartedAfter and no later than two minutes before the request was submitted. If FinancialEventGroupStartedAfter and FinancialEventGroupStartedBefore are more than 180 days apart, no financial event groups are returned. | [optional] **financial_event_group_started_after** | **DateTime**| A date used for selecting financial event groups that opened after (or at) a specified date and time, in ISO 8601 format. The date-time must be no later than two minutes before the request was submitted. | [optional] **next_token** | **String**| A string token returned in the response of your previous request. | [optional] @@ -66,7 +66,7 @@ No authorization required -Returns financial events for the specified data range. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns financial events for the specified data range. It may take up to 48 hours for orders to appear in your financial events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -75,7 +75,7 @@ require 'finances-api-model' api_instance = AmzSpApi::FinancesApiModel::DefaultApi.new opts = { - max_results_per_page: 100, # Integer | The maximum number of results to return per page. + max_results_per_page: 100, # Integer | The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. posted_after: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | A date used for selecting financial events posted after (or at) a specified time. The date-time must be no later than two minutes before the request was submitted, in ISO 8601 date time format. posted_before: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than PostedAfter and no later than two minutes before the request was submitted, in ISO 8601 date time format. If PostedAfter and PostedBefore are more than 180 days apart, no financial events are returned. You must specify the PostedAfter parameter if you specify the PostedBefore parameter. Default: Now minus two minutes. next_token: 'next_token_example' # String | A string token returned in the response of your previous request. @@ -93,7 +93,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **max_results_per_page** | **Integer**| The maximum number of results to return per page. | [optional] [default to 100] + **max_results_per_page** | **Integer**| The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. | [optional] [default to 100] **posted_after** | **DateTime**| A date used for selecting financial events posted after (or at) a specified time. The date-time must be no later than two minutes before the request was submitted, in ISO 8601 date time format. | [optional] **posted_before** | **DateTime**| A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than PostedAfter and no later than two minutes before the request was submitted, in ISO 8601 date time format. If PostedAfter and PostedBefore are more than 180 days apart, no financial events are returned. You must specify the PostedAfter parameter if you specify the PostedBefore parameter. Default: Now minus two minutes. | [optional] **next_token** | **String**| A string token returned in the response of your previous request. | [optional] @@ -118,7 +118,7 @@ No authorization required -Returns all financial events for the specified financial event group. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns all financial events for the specified financial event group. It may take up to 48 hours for orders to appear in your financial events. **Note:** This operation will only retrieve group's data for the past two years. If a request is submitted for data spanning more than two years, an empty response is returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -128,7 +128,9 @@ require 'finances-api-model' api_instance = AmzSpApi::FinancesApiModel::DefaultApi.new event_group_id = 'event_group_id_example' # String | The identifier of the financial event group to which the events belong. opts = { - max_results_per_page: 100, # Integer | The maximum number of results to return per page. + max_results_per_page: 100, # Integer | The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. + posted_after: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | A date used for selecting financial events posted after (or at) a specified time. The date-time **must** be more than two minutes before the time of the request, in ISO 8601 date time format. + posted_before: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than `PostedAfter` and no later than two minutes before the request was submitted, in ISO 8601 date time format. If `PostedAfter` and `PostedBefore` are more than 180 days apart, no financial events are returned. You must specify the `PostedAfter` parameter if you specify the `PostedBefore` parameter. Default: Now minus two minutes. next_token: 'next_token_example' # String | A string token returned in the response of your previous request. } @@ -145,7 +147,9 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **event_group_id** | **String**| The identifier of the financial event group to which the events belong. | - **max_results_per_page** | **Integer**| The maximum number of results to return per page. | [optional] [default to 100] + **max_results_per_page** | **Integer**| The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. | [optional] [default to 100] + **posted_after** | **DateTime**| A date used for selecting financial events posted after (or at) a specified time. The date-time **must** be more than two minutes before the time of the request, in ISO 8601 date time format. | [optional] + **posted_before** | **DateTime**| A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than `PostedAfter` and no later than two minutes before the request was submitted, in ISO 8601 date time format. If `PostedAfter` and `PostedBefore` are more than 180 days apart, no financial events are returned. You must specify the `PostedAfter` parameter if you specify the `PostedBefore` parameter. Default: Now minus two minutes. | [optional] **next_token** | **String**| A string token returned in the response of your previous request. | [optional] ### Return type @@ -168,7 +172,7 @@ No authorization required -Returns all financial events for the specified order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns all financial events for the specified order. It may take up to 48 hours for orders to appear in your financial events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -178,7 +182,7 @@ require 'finances-api-model' api_instance = AmzSpApi::FinancesApiModel::DefaultApi.new order_id = 'order_id_example' # String | An Amazon-defined order identifier, in 3-7-7 format. opts = { - max_results_per_page: 100, # Integer | The maximum number of results to return per page. + max_results_per_page: 100, # Integer | The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. next_token: 'next_token_example' # String | A string token returned in the response of your previous request. } @@ -195,7 +199,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **order_id** | **String**| An Amazon-defined order identifier, in 3-7-7 format. | - **max_results_per_page** | **Integer**| The maximum number of results to return per page. | [optional] [default to 100] + **max_results_per_page** | **Integer**| The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. | [optional] [default to 100] **next_token** | **String**| A string token returned in the response of your previous request. | [optional] ### Return type diff --git a/lib/finances-api-model/docs/FailedAdhocDisbursementEventList.md b/lib/finances-api-model/docs/FailedAdhocDisbursementEventList.md new file mode 100644 index 000000000..917dfdace --- /dev/null +++ b/lib/finances-api-model/docs/FailedAdhocDisbursementEventList.md @@ -0,0 +1,13 @@ +# AmzSpApi::FinancesApiModel::FailedAdhocDisbursementEventList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**funds_transfers_type** | **String** | The type of fund transfer. Example \"Refund\" | [optional] +**transfer_id** | **String** | The transfer identifier. | [optional] +**disbursement_id** | **String** | The disbursement identifier. | [optional] +**payment_disbursement_type** | **String** | The type of payment for disbursement. Example `CREDIT_CARD` | [optional] +**status** | **String** | The status of the failed `AdhocDisbursement`. Example `HARD_DECLINED` | [optional] +**transfer_amount** | [**Currency**](Currency.md) | | [optional] +**posted_date** | **Date** | | [optional] + diff --git a/lib/finances-api-model/docs/FinancialEvents.md b/lib/finances-api-model/docs/FinancialEvents.md index fc3c3eade..4cf5c893b 100644 --- a/lib/finances-api-model/docs/FinancialEvents.md +++ b/lib/finances-api-model/docs/FinancialEvents.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **shipment_event_list** | [**ShipmentEventList**](ShipmentEventList.md) | | [optional] +**shipment_settle_event_list** | [**ShipmentSettleEventList**](ShipmentSettleEventList.md) | | [optional] **refund_event_list** | [**ShipmentEventList**](ShipmentEventList.md) | | [optional] **guarantee_claim_event_list** | [**ShipmentEventList**](ShipmentEventList.md) | | [optional] **chargeback_event_list** | [**ShipmentEventList**](ShipmentEventList.md) | | [optional] @@ -25,9 +26,14 @@ Name | Type | Description | Notes **network_commingling_transaction_event_list** | [**NetworkComminglingTransactionEventList**](NetworkComminglingTransactionEventList.md) | | [optional] **affordability_expense_event_list** | [**AffordabilityExpenseEventList**](AffordabilityExpenseEventList.md) | | [optional] **affordability_expense_reversal_event_list** | [**AffordabilityExpenseEventList**](AffordabilityExpenseEventList.md) | | [optional] -**trial_shipment_event_list** | [**TrialShipmentEventList**](TrialShipmentEventList.md) | | [optional] -**shipment_settle_event_list** | [**ShipmentSettleEventList**](ShipmentSettleEventList.md) | | [optional] -**tax_withholding_event_list** | [**TaxWithholdingEventList**](TaxWithholdingEventList.md) | | [optional] **removal_shipment_event_list** | [**RemovalShipmentEventList**](RemovalShipmentEventList.md) | | [optional] **removal_shipment_adjustment_event_list** | [**RemovalShipmentAdjustmentEventList**](RemovalShipmentAdjustmentEventList.md) | | [optional] +**trial_shipment_event_list** | [**TrialShipmentEventList**](TrialShipmentEventList.md) | | [optional] +**tds_reimbursement_event_list** | [**TDSReimbursementEventList**](TDSReimbursementEventList.md) | | [optional] +**adhoc_disbursement_event_list** | [**AdhocDisbursementEventList**](AdhocDisbursementEventList.md) | | [optional] +**tax_withholding_event_list** | [**TaxWithholdingEventList**](TaxWithholdingEventList.md) | | [optional] +**charge_refund_event_list** | [**ChargeRefundEventList**](ChargeRefundEventList.md) | | [optional] +**failed_adhoc_disbursement_event_list** | [**FailedAdhocDisbursementEventList**](FailedAdhocDisbursementEventList.md) | | [optional] +**value_added_service_charge_event_list** | [**ValueAddedServiceChargeEventList**](ValueAddedServiceChargeEventList.md) | | [optional] +**capacity_reservation_billing_event_list** | [**CapacityReservationBillingEventList**](CapacityReservationBillingEventList.md) | | [optional] diff --git a/lib/finances-api-model/docs/TDSReimbursementEvent.md b/lib/finances-api-model/docs/TDSReimbursementEvent.md new file mode 100644 index 000000000..c50c8f049 --- /dev/null +++ b/lib/finances-api-model/docs/TDSReimbursementEvent.md @@ -0,0 +1,9 @@ +# AmzSpApi::FinancesApiModel::TDSReimbursementEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**posted_date** | **Date** | | [optional] +**tds_order_id** | **String** | The Tax-Deducted-at-Source (TDS) identifier. | [optional] +**reimbursed_amount** | [**Currency**](Currency.md) | | [optional] + diff --git a/lib/finances-api-model/docs/TDSReimbursementEventList.md b/lib/finances-api-model/docs/TDSReimbursementEventList.md new file mode 100644 index 000000000..0e1564af8 --- /dev/null +++ b/lib/finances-api-model/docs/TDSReimbursementEventList.md @@ -0,0 +1,6 @@ +# AmzSpApi::FinancesApiModel::TDSReimbursementEventList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + diff --git a/lib/finances-api-model/docs/ValueAddedServiceChargeEventList.md b/lib/finances-api-model/docs/ValueAddedServiceChargeEventList.md new file mode 100644 index 000000000..e8662c039 --- /dev/null +++ b/lib/finances-api-model/docs/ValueAddedServiceChargeEventList.md @@ -0,0 +1,10 @@ +# AmzSpApi::FinancesApiModel::ValueAddedServiceChargeEventList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transaction_type** | **String** | Indicates the type of transaction. Example: 'Other Support Service fees' | [optional] +**posted_date** | **Date** | | [optional] +**description** | **String** | A short description of the service charge event. | [optional] +**transaction_amount** | [**Currency**](Currency.md) | | [optional] + diff --git a/lib/finances-api-model/models/adhoc_disbursement_event.rb b/lib/finances-api-model/models/adhoc_disbursement_event.rb new file mode 100644 index 000000000..8a265f59a --- /dev/null +++ b/lib/finances-api-model/models/adhoc_disbursement_event.rb @@ -0,0 +1,236 @@ +=begin +#Selling Partner API for Finances + +#The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::FinancesApiModel + # An event related to an Adhoc Disbursement. + class AdhocDisbursementEvent + # Indicates the type of transaction. Example: \"Disbursed to Amazon Gift Card balance\" + attr_accessor :transaction_type + + attr_accessor :posted_date + + # The identifier for the transaction. + attr_accessor :transaction_id + + attr_accessor :transaction_amount + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'transaction_type' => :'TransactionType', + :'posted_date' => :'PostedDate', + :'transaction_id' => :'TransactionId', + :'transaction_amount' => :'TransactionAmount' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'transaction_type' => :'Object', + :'posted_date' => :'Object', + :'transaction_id' => :'Object', + :'transaction_amount' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::FinancesApiModel::AdhocDisbursementEvent` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::FinancesApiModel::AdhocDisbursementEvent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'transaction_type') + self.transaction_type = attributes[:'transaction_type'] + end + + if attributes.key?(:'posted_date') + self.posted_date = attributes[:'posted_date'] + end + + if attributes.key?(:'transaction_id') + self.transaction_id = attributes[:'transaction_id'] + end + + if attributes.key?(:'transaction_amount') + self.transaction_amount = attributes[:'transaction_amount'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + transaction_type == o.transaction_type && + posted_date == o.posted_date && + transaction_id == o.transaction_id && + transaction_amount == o.transaction_amount + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [transaction_type, posted_date, transaction_id, transaction_amount].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::FinancesApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/finances-api-model/models/adhoc_disbursement_event_list.rb b/lib/finances-api-model/models/adhoc_disbursement_event_list.rb new file mode 100644 index 000000000..ee500ff5a --- /dev/null +++ b/lib/finances-api-model/models/adhoc_disbursement_event_list.rb @@ -0,0 +1,202 @@ +=begin +#Selling Partner API for Finances + +#The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::FinancesApiModel + # A list of `AdhocDisbursement` events. + class AdhocDisbursementEventList + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + } + end + + # Attribute type mapping. + def self.openapi_types + { + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::FinancesApiModel::AdhocDisbursementEventList` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::FinancesApiModel::AdhocDisbursementEventList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + # call parent's initialize + super(attributes) + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = super + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && super(o) + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + super(attributes) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::FinancesApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = super + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/finances-api-model/models/adjustment_event.rb b/lib/finances-api-model/models/adjustment_event.rb index 64f341a1f..0b777a815 100644 --- a/lib/finances-api-model/models/adjustment_event.rb +++ b/lib/finances-api-model/models/adjustment_event.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/adjustment_event_list.rb b/lib/finances-api-model/models/adjustment_event_list.rb index def988b2c..d4b81609f 100644 --- a/lib/finances-api-model/models/adjustment_event_list.rb +++ b/lib/finances-api-model/models/adjustment_event_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/adjustment_item.rb b/lib/finances-api-model/models/adjustment_item.rb index 34b80467c..2a93d2b6d 100644 --- a/lib/finances-api-model/models/adjustment_item.rb +++ b/lib/finances-api-model/models/adjustment_item.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/adjustment_item_list.rb b/lib/finances-api-model/models/adjustment_item_list.rb index 5672f7777..b690967c9 100644 --- a/lib/finances-api-model/models/adjustment_item_list.rb +++ b/lib/finances-api-model/models/adjustment_item_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/affordability_expense_event.rb b/lib/finances-api-model/models/affordability_expense_event.rb index a887ef0e0..d278525df 100644 --- a/lib/finances-api-model/models/affordability_expense_event.rb +++ b/lib/finances-api-model/models/affordability_expense_event.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/affordability_expense_event_list.rb b/lib/finances-api-model/models/affordability_expense_event_list.rb index ec350ad8f..c5b7a46d7 100644 --- a/lib/finances-api-model/models/affordability_expense_event_list.rb +++ b/lib/finances-api-model/models/affordability_expense_event_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/big_decimal.rb b/lib/finances-api-model/models/big_decimal.rb index 521294bfe..36e3ed5ec 100644 --- a/lib/finances-api-model/models/big_decimal.rb +++ b/lib/finances-api-model/models/big_decimal.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-pricing-api-model/models/quantity_discount_price_type.rb b/lib/finances-api-model/models/capacity_reservation_billing_event.rb similarity index 72% rename from lib/product-pricing-api-model/models/quantity_discount_price_type.rb rename to lib/finances-api-model/models/capacity_reservation_billing_event.rb index caf08845c..0ec9e2de2 100644 --- a/lib/product-pricing-api-model/models/quantity_discount_price_type.rb +++ b/lib/finances-api-model/models/capacity_reservation_billing_event.rb @@ -1,41 +1,46 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Finances -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - # Contains pricing information that includes special pricing when buying in bulk. - class QuantityDiscountPriceType - # Indicates at what quantity this price becomes active. - attr_accessor :quantity_tier +module AmzSpApi::FinancesApiModel + # An event related to a capacity reservation billing charge. + class CapacityReservationBillingEvent + # Indicates the type of transaction. For example, FBA Inventory Fee + attr_accessor :transaction_type - attr_accessor :quantity_discount_type + attr_accessor :posted_date - attr_accessor :listing_price + # A short description of the capacity reservation billing event. + attr_accessor :description + + attr_accessor :transaction_amount # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'quantity_tier' => :'quantityTier', - :'quantity_discount_type' => :'quantityDiscountType', - :'listing_price' => :'listingPrice' + :'transaction_type' => :'TransactionType', + :'posted_date' => :'PostedDate', + :'description' => :'Description', + :'transaction_amount' => :'TransactionAmount' } end # Attribute type mapping. def self.openapi_types { - :'quantity_tier' => :'Object', - :'quantity_discount_type' => :'Object', - :'listing_price' => :'Object' + :'transaction_type' => :'Object', + :'posted_date' => :'Object', + :'description' => :'Object', + :'transaction_amount' => :'Object' } end @@ -49,27 +54,31 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::QuantityDiscountPriceType` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::FinancesApiModel::CapacityReservationBillingEvent` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::QuantityDiscountPriceType`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::FinancesApiModel::CapacityReservationBillingEvent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - if attributes.key?(:'quantity_tier') - self.quantity_tier = attributes[:'quantity_tier'] + if attributes.key?(:'transaction_type') + self.transaction_type = attributes[:'transaction_type'] + end + + if attributes.key?(:'posted_date') + self.posted_date = attributes[:'posted_date'] end - if attributes.key?(:'quantity_discount_type') - self.quantity_discount_type = attributes[:'quantity_discount_type'] + if attributes.key?(:'description') + self.description = attributes[:'description'] end - if attributes.key?(:'listing_price') - self.listing_price = attributes[:'listing_price'] + if attributes.key?(:'transaction_amount') + self.transaction_amount = attributes[:'transaction_amount'] end end @@ -77,27 +86,12 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @quantity_tier.nil? - invalid_properties.push('invalid value for "quantity_tier", quantity_tier cannot be nil.') - end - - if @quantity_discount_type.nil? - invalid_properties.push('invalid value for "quantity_discount_type", quantity_discount_type cannot be nil.') - end - - if @listing_price.nil? - invalid_properties.push('invalid value for "listing_price", listing_price cannot be nil.') - end - invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @quantity_tier.nil? - return false if @quantity_discount_type.nil? - return false if @listing_price.nil? true end @@ -106,9 +100,10 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - quantity_tier == o.quantity_tier && - quantity_discount_type == o.quantity_discount_type && - listing_price == o.listing_price + transaction_type == o.transaction_type && + posted_date == o.posted_date && + description == o.description && + transaction_amount == o.transaction_amount end # @see the `==` method @@ -120,7 +115,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [quantity_tier, quantity_discount_type, listing_price].hash + [transaction_type, posted_date, description, transaction_amount].hash end # Builds the object from hash @@ -189,7 +184,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::FinancesApiModel.const_get(type).build_from_hash(value) end end diff --git a/lib/finances-api-model/models/capacity_reservation_billing_event_list.rb b/lib/finances-api-model/models/capacity_reservation_billing_event_list.rb new file mode 100644 index 000000000..264df3798 --- /dev/null +++ b/lib/finances-api-model/models/capacity_reservation_billing_event_list.rb @@ -0,0 +1,202 @@ +=begin +#Selling Partner API for Finances + +#The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::FinancesApiModel + # A list of `CapacityReservationBillingEvent` events. + class CapacityReservationBillingEventList + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + } + end + + # Attribute type mapping. + def self.openapi_types + { + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::FinancesApiModel::CapacityReservationBillingEventList` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::FinancesApiModel::CapacityReservationBillingEventList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + # call parent's initialize + super(attributes) + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = super + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && super(o) + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + super(attributes) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::FinancesApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = super + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/finances-api-model/models/charge_component.rb b/lib/finances-api-model/models/charge_component.rb index e6d7ed97c..19fb8135f 100644 --- a/lib/finances-api-model/models/charge_component.rb +++ b/lib/finances-api-model/models/charge_component.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/charge_component_list.rb b/lib/finances-api-model/models/charge_component_list.rb index 3bb95794b..4bf30b3a8 100644 --- a/lib/finances-api-model/models/charge_component_list.rb +++ b/lib/finances-api-model/models/charge_component_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/charge_instrument.rb b/lib/finances-api-model/models/charge_instrument.rb index 34a83982d..8a69c4c2b 100644 --- a/lib/finances-api-model/models/charge_instrument.rb +++ b/lib/finances-api-model/models/charge_instrument.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/charge_instrument_list.rb b/lib/finances-api-model/models/charge_instrument_list.rb index 07b47ddc1..6e56dcfb9 100644 --- a/lib/finances-api-model/models/charge_instrument_list.rb +++ b/lib/finances-api-model/models/charge_instrument_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-pricing-api-model/models/item_identifier.rb b/lib/finances-api-model/models/charge_refund_event.rb similarity index 70% rename from lib/product-pricing-api-model/models/item_identifier.rb rename to lib/finances-api-model/models/charge_refund_event.rb index 9937fb4e0..c7eb784d5 100644 --- a/lib/product-pricing-api-model/models/item_identifier.rb +++ b/lib/finances-api-model/models/charge_refund_event.rb @@ -1,47 +1,46 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Finances -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - # Information that identifies an item. - class ItemIdentifier - # A marketplace identifier. Specifies the marketplace from which prices are returned. - attr_accessor :marketplace_id +module AmzSpApi::FinancesApiModel + # An event related to charge refund. + class ChargeRefundEvent + attr_accessor :posted_date - # The Amazon Standard Identification Number (ASIN) of the item. - attr_accessor :asin + # The reason given for a charge refund. Example: `SubscriptionFeeCorrection` + attr_accessor :reason_code - # The seller stock keeping unit (SKU) of the item. - attr_accessor :seller_sku + # A description of the Reason Code. Example: `SubscriptionFeeCorrection` + attr_accessor :reason_code_description - attr_accessor :item_condition + attr_accessor :charge_refund_transactions # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'marketplace_id' => :'MarketplaceId', - :'asin' => :'ASIN', - :'seller_sku' => :'SellerSKU', - :'item_condition' => :'ItemCondition' + :'posted_date' => :'PostedDate', + :'reason_code' => :'ReasonCode', + :'reason_code_description' => :'ReasonCodeDescription', + :'charge_refund_transactions' => :'ChargeRefundTransactions' } end # Attribute type mapping. def self.openapi_types { - :'marketplace_id' => :'Object', - :'asin' => :'Object', - :'seller_sku' => :'Object', - :'item_condition' => :'Object' + :'posted_date' => :'Object', + :'reason_code' => :'Object', + :'reason_code_description' => :'Object', + :'charge_refund_transactions' => :'Object' } end @@ -55,31 +54,31 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::ItemIdentifier` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::FinancesApiModel::ChargeRefundEvent` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::ItemIdentifier`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::FinancesApiModel::ChargeRefundEvent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - if attributes.key?(:'marketplace_id') - self.marketplace_id = attributes[:'marketplace_id'] + if attributes.key?(:'posted_date') + self.posted_date = attributes[:'posted_date'] end - if attributes.key?(:'asin') - self.asin = attributes[:'asin'] + if attributes.key?(:'reason_code') + self.reason_code = attributes[:'reason_code'] end - if attributes.key?(:'seller_sku') - self.seller_sku = attributes[:'seller_sku'] + if attributes.key?(:'reason_code_description') + self.reason_code_description = attributes[:'reason_code_description'] end - if attributes.key?(:'item_condition') - self.item_condition = attributes[:'item_condition'] + if attributes.key?(:'charge_refund_transactions') + self.charge_refund_transactions = attributes[:'charge_refund_transactions'] end end @@ -87,22 +86,12 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @marketplace_id.nil? - invalid_properties.push('invalid value for "marketplace_id", marketplace_id cannot be nil.') - end - - if @item_condition.nil? - invalid_properties.push('invalid value for "item_condition", item_condition cannot be nil.') - end - invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @marketplace_id.nil? - return false if @item_condition.nil? true end @@ -111,10 +100,10 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - marketplace_id == o.marketplace_id && - asin == o.asin && - seller_sku == o.seller_sku && - item_condition == o.item_condition + posted_date == o.posted_date && + reason_code == o.reason_code && + reason_code_description == o.reason_code_description && + charge_refund_transactions == o.charge_refund_transactions end # @see the `==` method @@ -126,7 +115,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [marketplace_id, asin, seller_sku, item_condition].hash + [posted_date, reason_code, reason_code_description, charge_refund_transactions].hash end # Builds the object from hash @@ -195,7 +184,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::FinancesApiModel.const_get(type).build_from_hash(value) end end diff --git a/lib/product-pricing-api-model/models/offer_detail_list.rb b/lib/finances-api-model/models/charge_refund_event_list.rb similarity index 89% rename from lib/product-pricing-api-model/models/offer_detail_list.rb rename to lib/finances-api-model/models/charge_refund_event_list.rb index 0fd00b7a4..bab5bef51 100644 --- a/lib/product-pricing-api-model/models/offer_detail_list.rb +++ b/lib/finances-api-model/models/charge_refund_event_list.rb @@ -1,18 +1,19 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Finances -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - class OfferDetailList +module AmzSpApi::FinancesApiModel + # A list of charge refund events. + class ChargeRefundEventList # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -35,13 +36,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::OfferDetailList` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::FinancesApiModel::ChargeRefundEventList` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::OfferDetailList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::FinancesApiModel::ChargeRefundEventList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } @@ -149,7 +150,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::FinancesApiModel.const_get(type).build_from_hash(value) end end diff --git a/lib/finances-api-model/models/charge_refund_transaction.rb b/lib/finances-api-model/models/charge_refund_transaction.rb new file mode 100644 index 000000000..6ef9057b5 --- /dev/null +++ b/lib/finances-api-model/models/charge_refund_transaction.rb @@ -0,0 +1,217 @@ +=begin +#Selling Partner API for Finances + +#The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::FinancesApiModel + # The charge refund transaction. + class ChargeRefundTransaction + attr_accessor :charge_amount + + # The type of charge. + attr_accessor :charge_type + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'charge_amount' => :'ChargeAmount', + :'charge_type' => :'ChargeType' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'charge_amount' => :'Object', + :'charge_type' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::FinancesApiModel::ChargeRefundTransaction` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::FinancesApiModel::ChargeRefundTransaction`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'charge_amount') + self.charge_amount = attributes[:'charge_amount'] + end + + if attributes.key?(:'charge_type') + self.charge_type = attributes[:'charge_type'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + charge_amount == o.charge_amount && + charge_type == o.charge_type + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [charge_amount, charge_type].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::FinancesApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/finances-api-model/models/coupon_payment_event.rb b/lib/finances-api-model/models/coupon_payment_event.rb index e28f1fdb9..9bda42de7 100644 --- a/lib/finances-api-model/models/coupon_payment_event.rb +++ b/lib/finances-api-model/models/coupon_payment_event.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/coupon_payment_event_list.rb b/lib/finances-api-model/models/coupon_payment_event_list.rb index 806694f73..d59f580b1 100644 --- a/lib/finances-api-model/models/coupon_payment_event_list.rb +++ b/lib/finances-api-model/models/coupon_payment_event_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/currency.rb b/lib/finances-api-model/models/currency.rb index feaf77b95..a6b975923 100644 --- a/lib/finances-api-model/models/currency.rb +++ b/lib/finances-api-model/models/currency.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/date.rb b/lib/finances-api-model/models/date.rb index d7c79ce60..3a20cc2a6 100644 --- a/lib/finances-api-model/models/date.rb +++ b/lib/finances-api-model/models/date.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/debt_recovery_event.rb b/lib/finances-api-model/models/debt_recovery_event.rb index 2ed680386..4a6001e17 100644 --- a/lib/finances-api-model/models/debt_recovery_event.rb +++ b/lib/finances-api-model/models/debt_recovery_event.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/debt_recovery_event_list.rb b/lib/finances-api-model/models/debt_recovery_event_list.rb index 2370e9587..c9a6c2761 100644 --- a/lib/finances-api-model/models/debt_recovery_event_list.rb +++ b/lib/finances-api-model/models/debt_recovery_event_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/debt_recovery_item.rb b/lib/finances-api-model/models/debt_recovery_item.rb index fe8038051..7296f743a 100644 --- a/lib/finances-api-model/models/debt_recovery_item.rb +++ b/lib/finances-api-model/models/debt_recovery_item.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/debt_recovery_item_list.rb b/lib/finances-api-model/models/debt_recovery_item_list.rb index 7b799d1af..22bec5143 100644 --- a/lib/finances-api-model/models/debt_recovery_item_list.rb +++ b/lib/finances-api-model/models/debt_recovery_item_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/direct_payment.rb b/lib/finances-api-model/models/direct_payment.rb index e22cfa7c7..19dc25eb6 100644 --- a/lib/finances-api-model/models/direct_payment.rb +++ b/lib/finances-api-model/models/direct_payment.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/direct_payment_list.rb b/lib/finances-api-model/models/direct_payment_list.rb index 7f4b8a7b0..0792700c4 100644 --- a/lib/finances-api-model/models/direct_payment_list.rb +++ b/lib/finances-api-model/models/direct_payment_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/error.rb b/lib/finances-api-model/models/error.rb index 227f799da..81e70c23f 100644 --- a/lib/finances-api-model/models/error.rb +++ b/lib/finances-api-model/models/error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/error_list.rb b/lib/finances-api-model/models/error_list.rb index 07289e180..af1a532ea 100644 --- a/lib/finances-api-model/models/error_list.rb +++ b/lib/finances-api-model/models/error_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-pricing-api-model/models/listing_offers_response.rb b/lib/finances-api-model/models/failed_adhoc_disbursement_event_list.rb similarity index 64% rename from lib/product-pricing-api-model/models/listing_offers_response.rb rename to lib/finances-api-model/models/failed_adhoc_disbursement_event_list.rb index e1ff50846..7802c135d 100644 --- a/lib/product-pricing-api-model/models/listing_offers_response.rb +++ b/lib/finances-api-model/models/failed_adhoc_disbursement_event_list.rb @@ -1,43 +1,61 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Finances -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - class ListingOffersResponse - attr_accessor :headers +module AmzSpApi::FinancesApiModel + # Failed ad hoc disbursement event list. + class FailedAdhocDisbursementEventList + # The type of fund transfer. Example \"Refund\" + attr_accessor :funds_transfers_type + # The transfer identifier. + attr_accessor :transfer_id + + # The disbursement identifier. + attr_accessor :disbursement_id + + # The type of payment for disbursement. Example `CREDIT_CARD` + attr_accessor :payment_disbursement_type + + # The status of the failed `AdhocDisbursement`. Example `HARD_DECLINED` attr_accessor :status - attr_accessor :body + attr_accessor :transfer_amount - attr_accessor :request + attr_accessor :posted_date # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'headers' => :'headers', - :'status' => :'status', - :'body' => :'body', - :'request' => :'request' + :'funds_transfers_type' => :'FundsTransfersType', + :'transfer_id' => :'TransferId', + :'disbursement_id' => :'DisbursementId', + :'payment_disbursement_type' => :'PaymentDisbursementType', + :'status' => :'Status', + :'transfer_amount' => :'TransferAmount', + :'posted_date' => :'PostedDate' } end # Attribute type mapping. def self.openapi_types { - :'headers' => :'', - :'status' => :'', - :'body' => :'', - :'request' => :'' + :'funds_transfers_type' => :'Object', + :'transfer_id' => :'Object', + :'disbursement_id' => :'Object', + :'payment_disbursement_type' => :'Object', + :'status' => :'Object', + :'transfer_amount' => :'Object', + :'posted_date' => :'Object' } end @@ -51,52 +69,56 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::ListingOffersResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::FinancesApiModel::FailedAdhocDisbursementEventList` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::ListingOffersResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::FinancesApiModel::FailedAdhocDisbursementEventList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - # call parent's initialize - super(attributes) + if attributes.key?(:'funds_transfers_type') + self.funds_transfers_type = attributes[:'funds_transfers_type'] + end + + if attributes.key?(:'transfer_id') + self.transfer_id = attributes[:'transfer_id'] + end + + if attributes.key?(:'disbursement_id') + self.disbursement_id = attributes[:'disbursement_id'] + end - if attributes.key?(:'headers') - self.headers = attributes[:'headers'] + if attributes.key?(:'payment_disbursement_type') + self.payment_disbursement_type = attributes[:'payment_disbursement_type'] end if attributes.key?(:'status') self.status = attributes[:'status'] end - if attributes.key?(:'body') - self.body = attributes[:'body'] + if attributes.key?(:'transfer_amount') + self.transfer_amount = attributes[:'transfer_amount'] end - if attributes.key?(:'request') - self.request = attributes[:'request'] + if attributes.key?(:'posted_date') + self.posted_date = attributes[:'posted_date'] end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties - invalid_properties = super - if @body.nil? - invalid_properties.push('invalid value for "body", body cannot be nil.') - end - + invalid_properties = Array.new invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @body.nil? true end @@ -105,10 +127,13 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - headers == o.headers && + funds_transfers_type == o.funds_transfers_type && + transfer_id == o.transfer_id && + disbursement_id == o.disbursement_id && + payment_disbursement_type == o.payment_disbursement_type && status == o.status && - body == o.body && - request == o.request && super(o) + transfer_amount == o.transfer_amount && + posted_date == o.posted_date end # @see the `==` method @@ -120,7 +145,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [headers, status, body, request].hash + [funds_transfers_type, transfer_id, disbursement_id, payment_disbursement_type, status, transfer_amount, posted_date].hash end # Builds the object from hash @@ -135,7 +160,6 @@ def self.build_from_hash(attributes) # @return [Object] Returns the model itself def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) - super(attributes) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute @@ -190,7 +214,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::FinancesApiModel.const_get(type).build_from_hash(value) end end @@ -209,7 +233,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash - hash = super + hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? diff --git a/lib/finances-api-model/models/fba_liquidation_event.rb b/lib/finances-api-model/models/fba_liquidation_event.rb index 18a3c6166..bfded252d 100644 --- a/lib/finances-api-model/models/fba_liquidation_event.rb +++ b/lib/finances-api-model/models/fba_liquidation_event.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/fba_liquidation_event_list.rb b/lib/finances-api-model/models/fba_liquidation_event_list.rb index 2cd4dd962..1f2b8138b 100644 --- a/lib/finances-api-model/models/fba_liquidation_event_list.rb +++ b/lib/finances-api-model/models/fba_liquidation_event_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/fee_component.rb b/lib/finances-api-model/models/fee_component.rb index 375c59ab6..08784f3d8 100644 --- a/lib/finances-api-model/models/fee_component.rb +++ b/lib/finances-api-model/models/fee_component.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/fee_component_list.rb b/lib/finances-api-model/models/fee_component_list.rb index ca15025ba..c19c692dd 100644 --- a/lib/finances-api-model/models/fee_component_list.rb +++ b/lib/finances-api-model/models/fee_component_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/financial_event_group.rb b/lib/finances-api-model/models/financial_event_group.rb index 7e3ced029..ff01fd9ad 100644 --- a/lib/finances-api-model/models/financial_event_group.rb +++ b/lib/finances-api-model/models/financial_event_group.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/financial_event_group_list.rb b/lib/finances-api-model/models/financial_event_group_list.rb index e2979302b..b1b2bb5a9 100644 --- a/lib/finances-api-model/models/financial_event_group_list.rb +++ b/lib/finances-api-model/models/financial_event_group_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/financial_events.rb b/lib/finances-api-model/models/financial_events.rb index 9aa84081b..572a6fefb 100644 --- a/lib/finances-api-model/models/financial_events.rb +++ b/lib/finances-api-model/models/financial_events.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' @@ -16,6 +16,8 @@ module AmzSpApi::FinancesApiModel class FinancialEvents attr_accessor :shipment_event_list + attr_accessor :shipment_settle_event_list + attr_accessor :refund_event_list attr_accessor :guarantee_claim_event_list @@ -58,20 +60,31 @@ class FinancialEvents attr_accessor :affordability_expense_reversal_event_list + attr_accessor :removal_shipment_event_list + + attr_accessor :removal_shipment_adjustment_event_list + attr_accessor :trial_shipment_event_list - attr_accessor :shipment_settle_event_list + attr_accessor :tds_reimbursement_event_list + + attr_accessor :adhoc_disbursement_event_list attr_accessor :tax_withholding_event_list - attr_accessor :removal_shipment_event_list + attr_accessor :charge_refund_event_list - attr_accessor :removal_shipment_adjustment_event_list + attr_accessor :failed_adhoc_disbursement_event_list + + attr_accessor :value_added_service_charge_event_list + + attr_accessor :capacity_reservation_billing_event_list # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'shipment_event_list' => :'ShipmentEventList', + :'shipment_settle_event_list' => :'ShipmentSettleEventList', :'refund_event_list' => :'RefundEventList', :'guarantee_claim_event_list' => :'GuaranteeClaimEventList', :'chargeback_event_list' => :'ChargebackEventList', @@ -93,11 +106,16 @@ def self.attribute_map :'network_commingling_transaction_event_list' => :'NetworkComminglingTransactionEventList', :'affordability_expense_event_list' => :'AffordabilityExpenseEventList', :'affordability_expense_reversal_event_list' => :'AffordabilityExpenseReversalEventList', + :'removal_shipment_event_list' => :'RemovalShipmentEventList', + :'removal_shipment_adjustment_event_list' => :'RemovalShipmentAdjustmentEventList', :'trial_shipment_event_list' => :'TrialShipmentEventList', - :'shipment_settle_event_list' => :'ShipmentSettleEventList', + :'tds_reimbursement_event_list' => :'TDSReimbursementEventList', + :'adhoc_disbursement_event_list' => :'AdhocDisbursementEventList', :'tax_withholding_event_list' => :'TaxWithholdingEventList', - :'removal_shipment_event_list' => :'RemovalShipmentEventList', - :'removal_shipment_adjustment_event_list' => :'RemovalShipmentAdjustmentEventList' + :'charge_refund_event_list' => :'ChargeRefundEventList', + :'failed_adhoc_disbursement_event_list' => :'FailedAdhocDisbursementEventList', + :'value_added_service_charge_event_list' => :'ValueAddedServiceChargeEventList', + :'capacity_reservation_billing_event_list' => :'CapacityReservationBillingEventList' } end @@ -105,6 +123,7 @@ def self.attribute_map def self.openapi_types { :'shipment_event_list' => :'Object', + :'shipment_settle_event_list' => :'Object', :'refund_event_list' => :'Object', :'guarantee_claim_event_list' => :'Object', :'chargeback_event_list' => :'Object', @@ -126,11 +145,16 @@ def self.openapi_types :'network_commingling_transaction_event_list' => :'Object', :'affordability_expense_event_list' => :'Object', :'affordability_expense_reversal_event_list' => :'Object', + :'removal_shipment_event_list' => :'Object', + :'removal_shipment_adjustment_event_list' => :'Object', :'trial_shipment_event_list' => :'Object', - :'shipment_settle_event_list' => :'Object', + :'tds_reimbursement_event_list' => :'Object', + :'adhoc_disbursement_event_list' => :'Object', :'tax_withholding_event_list' => :'Object', - :'removal_shipment_event_list' => :'Object', - :'removal_shipment_adjustment_event_list' => :'Object' + :'charge_refund_event_list' => :'Object', + :'failed_adhoc_disbursement_event_list' => :'Object', + :'value_added_service_charge_event_list' => :'Object', + :'capacity_reservation_billing_event_list' => :'Object' } end @@ -159,6 +183,10 @@ def initialize(attributes = {}) self.shipment_event_list = attributes[:'shipment_event_list'] end + if attributes.key?(:'shipment_settle_event_list') + self.shipment_settle_event_list = attributes[:'shipment_settle_event_list'] + end + if attributes.key?(:'refund_event_list') self.refund_event_list = attributes[:'refund_event_list'] end @@ -243,24 +271,44 @@ def initialize(attributes = {}) self.affordability_expense_reversal_event_list = attributes[:'affordability_expense_reversal_event_list'] end + if attributes.key?(:'removal_shipment_event_list') + self.removal_shipment_event_list = attributes[:'removal_shipment_event_list'] + end + + if attributes.key?(:'removal_shipment_adjustment_event_list') + self.removal_shipment_adjustment_event_list = attributes[:'removal_shipment_adjustment_event_list'] + end + if attributes.key?(:'trial_shipment_event_list') self.trial_shipment_event_list = attributes[:'trial_shipment_event_list'] end - if attributes.key?(:'shipment_settle_event_list') - self.shipment_settle_event_list = attributes[:'shipment_settle_event_list'] + if attributes.key?(:'tds_reimbursement_event_list') + self.tds_reimbursement_event_list = attributes[:'tds_reimbursement_event_list'] + end + + if attributes.key?(:'adhoc_disbursement_event_list') + self.adhoc_disbursement_event_list = attributes[:'adhoc_disbursement_event_list'] end if attributes.key?(:'tax_withholding_event_list') self.tax_withholding_event_list = attributes[:'tax_withholding_event_list'] end - if attributes.key?(:'removal_shipment_event_list') - self.removal_shipment_event_list = attributes[:'removal_shipment_event_list'] + if attributes.key?(:'charge_refund_event_list') + self.charge_refund_event_list = attributes[:'charge_refund_event_list'] end - if attributes.key?(:'removal_shipment_adjustment_event_list') - self.removal_shipment_adjustment_event_list = attributes[:'removal_shipment_adjustment_event_list'] + if attributes.key?(:'failed_adhoc_disbursement_event_list') + self.failed_adhoc_disbursement_event_list = attributes[:'failed_adhoc_disbursement_event_list'] + end + + if attributes.key?(:'value_added_service_charge_event_list') + self.value_added_service_charge_event_list = attributes[:'value_added_service_charge_event_list'] + end + + if attributes.key?(:'capacity_reservation_billing_event_list') + self.capacity_reservation_billing_event_list = attributes[:'capacity_reservation_billing_event_list'] end end @@ -283,6 +331,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && shipment_event_list == o.shipment_event_list && + shipment_settle_event_list == o.shipment_settle_event_list && refund_event_list == o.refund_event_list && guarantee_claim_event_list == o.guarantee_claim_event_list && chargeback_event_list == o.chargeback_event_list && @@ -304,11 +353,16 @@ def ==(o) network_commingling_transaction_event_list == o.network_commingling_transaction_event_list && affordability_expense_event_list == o.affordability_expense_event_list && affordability_expense_reversal_event_list == o.affordability_expense_reversal_event_list && + removal_shipment_event_list == o.removal_shipment_event_list && + removal_shipment_adjustment_event_list == o.removal_shipment_adjustment_event_list && trial_shipment_event_list == o.trial_shipment_event_list && - shipment_settle_event_list == o.shipment_settle_event_list && + tds_reimbursement_event_list == o.tds_reimbursement_event_list && + adhoc_disbursement_event_list == o.adhoc_disbursement_event_list && tax_withholding_event_list == o.tax_withholding_event_list && - removal_shipment_event_list == o.removal_shipment_event_list && - removal_shipment_adjustment_event_list == o.removal_shipment_adjustment_event_list + charge_refund_event_list == o.charge_refund_event_list && + failed_adhoc_disbursement_event_list == o.failed_adhoc_disbursement_event_list && + value_added_service_charge_event_list == o.value_added_service_charge_event_list && + capacity_reservation_billing_event_list == o.capacity_reservation_billing_event_list end # @see the `==` method @@ -320,7 +374,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [shipment_event_list, refund_event_list, guarantee_claim_event_list, chargeback_event_list, pay_with_amazon_event_list, service_provider_credit_event_list, retrocharge_event_list, rental_transaction_event_list, product_ads_payment_event_list, service_fee_event_list, seller_deal_payment_event_list, debt_recovery_event_list, loan_servicing_event_list, adjustment_event_list, safet_reimbursement_event_list, seller_review_enrollment_payment_event_list, fba_liquidation_event_list, coupon_payment_event_list, imaging_services_fee_event_list, network_commingling_transaction_event_list, affordability_expense_event_list, affordability_expense_reversal_event_list, trial_shipment_event_list, shipment_settle_event_list, tax_withholding_event_list, removal_shipment_event_list, removal_shipment_adjustment_event_list].hash + [shipment_event_list, shipment_settle_event_list, refund_event_list, guarantee_claim_event_list, chargeback_event_list, pay_with_amazon_event_list, service_provider_credit_event_list, retrocharge_event_list, rental_transaction_event_list, product_ads_payment_event_list, service_fee_event_list, seller_deal_payment_event_list, debt_recovery_event_list, loan_servicing_event_list, adjustment_event_list, safet_reimbursement_event_list, seller_review_enrollment_payment_event_list, fba_liquidation_event_list, coupon_payment_event_list, imaging_services_fee_event_list, network_commingling_transaction_event_list, affordability_expense_event_list, affordability_expense_reversal_event_list, removal_shipment_event_list, removal_shipment_adjustment_event_list, trial_shipment_event_list, tds_reimbursement_event_list, adhoc_disbursement_event_list, tax_withholding_event_list, charge_refund_event_list, failed_adhoc_disbursement_event_list, value_added_service_charge_event_list, capacity_reservation_billing_event_list].hash end # Builds the object from hash diff --git a/lib/finances-api-model/models/imaging_services_fee_event.rb b/lib/finances-api-model/models/imaging_services_fee_event.rb index 9cd1bfd2b..6a324c804 100644 --- a/lib/finances-api-model/models/imaging_services_fee_event.rb +++ b/lib/finances-api-model/models/imaging_services_fee_event.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/imaging_services_fee_event_list.rb b/lib/finances-api-model/models/imaging_services_fee_event_list.rb index 04645560c..f1790def9 100644 --- a/lib/finances-api-model/models/imaging_services_fee_event_list.rb +++ b/lib/finances-api-model/models/imaging_services_fee_event_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/list_financial_event_groups_payload.rb b/lib/finances-api-model/models/list_financial_event_groups_payload.rb index 358c1bab5..b60514932 100644 --- a/lib/finances-api-model/models/list_financial_event_groups_payload.rb +++ b/lib/finances-api-model/models/list_financial_event_groups_payload.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/list_financial_event_groups_response.rb b/lib/finances-api-model/models/list_financial_event_groups_response.rb index 52a9246be..c563072a4 100644 --- a/lib/finances-api-model/models/list_financial_event_groups_response.rb +++ b/lib/finances-api-model/models/list_financial_event_groups_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/list_financial_events_payload.rb b/lib/finances-api-model/models/list_financial_events_payload.rb index 8644b1b61..267d473c8 100644 --- a/lib/finances-api-model/models/list_financial_events_payload.rb +++ b/lib/finances-api-model/models/list_financial_events_payload.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/list_financial_events_response.rb b/lib/finances-api-model/models/list_financial_events_response.rb index 29e0dc59c..7da4e347c 100644 --- a/lib/finances-api-model/models/list_financial_events_response.rb +++ b/lib/finances-api-model/models/list_financial_events_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/loan_servicing_event.rb b/lib/finances-api-model/models/loan_servicing_event.rb index 65669b843..e72a666e1 100644 --- a/lib/finances-api-model/models/loan_servicing_event.rb +++ b/lib/finances-api-model/models/loan_servicing_event.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/loan_servicing_event_list.rb b/lib/finances-api-model/models/loan_servicing_event_list.rb index 75b0894f4..bbd4c60d8 100644 --- a/lib/finances-api-model/models/loan_servicing_event_list.rb +++ b/lib/finances-api-model/models/loan_servicing_event_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/network_commingling_transaction_event.rb b/lib/finances-api-model/models/network_commingling_transaction_event.rb index 60578feb6..5ffb21653 100644 --- a/lib/finances-api-model/models/network_commingling_transaction_event.rb +++ b/lib/finances-api-model/models/network_commingling_transaction_event.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/network_commingling_transaction_event_list.rb b/lib/finances-api-model/models/network_commingling_transaction_event_list.rb index ca64e64eb..55e1117c4 100644 --- a/lib/finances-api-model/models/network_commingling_transaction_event_list.rb +++ b/lib/finances-api-model/models/network_commingling_transaction_event_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/pay_with_amazon_event.rb b/lib/finances-api-model/models/pay_with_amazon_event.rb index e769ef515..c4f95fc64 100644 --- a/lib/finances-api-model/models/pay_with_amazon_event.rb +++ b/lib/finances-api-model/models/pay_with_amazon_event.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/pay_with_amazon_event_list.rb b/lib/finances-api-model/models/pay_with_amazon_event_list.rb index 507aff27d..4ee1cd15a 100644 --- a/lib/finances-api-model/models/pay_with_amazon_event_list.rb +++ b/lib/finances-api-model/models/pay_with_amazon_event_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/product_ads_payment_event.rb b/lib/finances-api-model/models/product_ads_payment_event.rb index a46741bc8..bd8d89c6d 100644 --- a/lib/finances-api-model/models/product_ads_payment_event.rb +++ b/lib/finances-api-model/models/product_ads_payment_event.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/product_ads_payment_event_list.rb b/lib/finances-api-model/models/product_ads_payment_event_list.rb index c6b4dac4f..ee4265a86 100644 --- a/lib/finances-api-model/models/product_ads_payment_event_list.rb +++ b/lib/finances-api-model/models/product_ads_payment_event_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/promotion.rb b/lib/finances-api-model/models/promotion.rb index 6e3caa8c6..16718e2d1 100644 --- a/lib/finances-api-model/models/promotion.rb +++ b/lib/finances-api-model/models/promotion.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/promotion_list.rb b/lib/finances-api-model/models/promotion_list.rb index d790dbbe5..d36266276 100644 --- a/lib/finances-api-model/models/promotion_list.rb +++ b/lib/finances-api-model/models/promotion_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/removal_shipment_adjustment_event.rb b/lib/finances-api-model/models/removal_shipment_adjustment_event.rb index 73d0ab1a2..0eefc4d7c 100644 --- a/lib/finances-api-model/models/removal_shipment_adjustment_event.rb +++ b/lib/finances-api-model/models/removal_shipment_adjustment_event.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/removal_shipment_adjustment_event_list.rb b/lib/finances-api-model/models/removal_shipment_adjustment_event_list.rb index ac9f95371..35f94194e 100644 --- a/lib/finances-api-model/models/removal_shipment_adjustment_event_list.rb +++ b/lib/finances-api-model/models/removal_shipment_adjustment_event_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/removal_shipment_event.rb b/lib/finances-api-model/models/removal_shipment_event.rb index 237429eea..95c6aa885 100644 --- a/lib/finances-api-model/models/removal_shipment_event.rb +++ b/lib/finances-api-model/models/removal_shipment_event.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/removal_shipment_event_list.rb b/lib/finances-api-model/models/removal_shipment_event_list.rb index 7a4cda959..4e562c6c1 100644 --- a/lib/finances-api-model/models/removal_shipment_event_list.rb +++ b/lib/finances-api-model/models/removal_shipment_event_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/removal_shipment_item.rb b/lib/finances-api-model/models/removal_shipment_item.rb index 7cf14ed21..e709c6b3e 100644 --- a/lib/finances-api-model/models/removal_shipment_item.rb +++ b/lib/finances-api-model/models/removal_shipment_item.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/removal_shipment_item_adjustment.rb b/lib/finances-api-model/models/removal_shipment_item_adjustment.rb index 0f342baf0..ff2ea8024 100644 --- a/lib/finances-api-model/models/removal_shipment_item_adjustment.rb +++ b/lib/finances-api-model/models/removal_shipment_item_adjustment.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/removal_shipment_item_list.rb b/lib/finances-api-model/models/removal_shipment_item_list.rb index d45c9864e..60fe5dd1a 100644 --- a/lib/finances-api-model/models/removal_shipment_item_list.rb +++ b/lib/finances-api-model/models/removal_shipment_item_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/rental_transaction_event.rb b/lib/finances-api-model/models/rental_transaction_event.rb index fe532671f..22abc1e9f 100644 --- a/lib/finances-api-model/models/rental_transaction_event.rb +++ b/lib/finances-api-model/models/rental_transaction_event.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/rental_transaction_event_list.rb b/lib/finances-api-model/models/rental_transaction_event_list.rb index 2ff2970af..45afb5a74 100644 --- a/lib/finances-api-model/models/rental_transaction_event_list.rb +++ b/lib/finances-api-model/models/rental_transaction_event_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/retrocharge_event.rb b/lib/finances-api-model/models/retrocharge_event.rb index 440e5c24f..f9b9d3153 100644 --- a/lib/finances-api-model/models/retrocharge_event.rb +++ b/lib/finances-api-model/models/retrocharge_event.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/retrocharge_event_list.rb b/lib/finances-api-model/models/retrocharge_event_list.rb index ded496c25..732ae8520 100644 --- a/lib/finances-api-model/models/retrocharge_event_list.rb +++ b/lib/finances-api-model/models/retrocharge_event_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/safet_reimbursement_event.rb b/lib/finances-api-model/models/safet_reimbursement_event.rb index 87a0b2f54..7d509bab2 100644 --- a/lib/finances-api-model/models/safet_reimbursement_event.rb +++ b/lib/finances-api-model/models/safet_reimbursement_event.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/safet_reimbursement_event_list.rb b/lib/finances-api-model/models/safet_reimbursement_event_list.rb index e7ad7e0c8..2307175c9 100644 --- a/lib/finances-api-model/models/safet_reimbursement_event_list.rb +++ b/lib/finances-api-model/models/safet_reimbursement_event_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/safet_reimbursement_item.rb b/lib/finances-api-model/models/safet_reimbursement_item.rb index da4853bd2..9debdbc97 100644 --- a/lib/finances-api-model/models/safet_reimbursement_item.rb +++ b/lib/finances-api-model/models/safet_reimbursement_item.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/safet_reimbursement_item_list.rb b/lib/finances-api-model/models/safet_reimbursement_item_list.rb index 55ee60d11..5c7ee3f2f 100644 --- a/lib/finances-api-model/models/safet_reimbursement_item_list.rb +++ b/lib/finances-api-model/models/safet_reimbursement_item_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/seller_deal_payment_event.rb b/lib/finances-api-model/models/seller_deal_payment_event.rb index 378267b7b..0d59c526d 100644 --- a/lib/finances-api-model/models/seller_deal_payment_event.rb +++ b/lib/finances-api-model/models/seller_deal_payment_event.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/seller_deal_payment_event_list.rb b/lib/finances-api-model/models/seller_deal_payment_event_list.rb index f00ccd06a..3c69c1bf8 100644 --- a/lib/finances-api-model/models/seller_deal_payment_event_list.rb +++ b/lib/finances-api-model/models/seller_deal_payment_event_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/seller_review_enrollment_payment_event.rb b/lib/finances-api-model/models/seller_review_enrollment_payment_event.rb index 2fca873c4..9a265a36f 100644 --- a/lib/finances-api-model/models/seller_review_enrollment_payment_event.rb +++ b/lib/finances-api-model/models/seller_review_enrollment_payment_event.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/seller_review_enrollment_payment_event_list.rb b/lib/finances-api-model/models/seller_review_enrollment_payment_event_list.rb index bfe8e736f..714c67023 100644 --- a/lib/finances-api-model/models/seller_review_enrollment_payment_event_list.rb +++ b/lib/finances-api-model/models/seller_review_enrollment_payment_event_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/service_fee_event.rb b/lib/finances-api-model/models/service_fee_event.rb index 9371bc8bf..0d39efbed 100644 --- a/lib/finances-api-model/models/service_fee_event.rb +++ b/lib/finances-api-model/models/service_fee_event.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/service_fee_event_list.rb b/lib/finances-api-model/models/service_fee_event_list.rb index 750e34095..0ba7524c3 100644 --- a/lib/finances-api-model/models/service_fee_event_list.rb +++ b/lib/finances-api-model/models/service_fee_event_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/shipment_event.rb b/lib/finances-api-model/models/shipment_event.rb index 22f4a0bab..01bd68f65 100644 --- a/lib/finances-api-model/models/shipment_event.rb +++ b/lib/finances-api-model/models/shipment_event.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/shipment_event_list.rb b/lib/finances-api-model/models/shipment_event_list.rb index 6ca39a1f8..9d85d8345 100644 --- a/lib/finances-api-model/models/shipment_event_list.rb +++ b/lib/finances-api-model/models/shipment_event_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/shipment_item.rb b/lib/finances-api-model/models/shipment_item.rb index 454e5970f..d60722b47 100644 --- a/lib/finances-api-model/models/shipment_item.rb +++ b/lib/finances-api-model/models/shipment_item.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/shipment_item_list.rb b/lib/finances-api-model/models/shipment_item_list.rb index 4caa8a81b..19bc78e0d 100644 --- a/lib/finances-api-model/models/shipment_item_list.rb +++ b/lib/finances-api-model/models/shipment_item_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/shipment_settle_event_list.rb b/lib/finances-api-model/models/shipment_settle_event_list.rb index c5af713d2..e1c10d86f 100644 --- a/lib/finances-api-model/models/shipment_settle_event_list.rb +++ b/lib/finances-api-model/models/shipment_settle_event_list.rb @@ -6,13 +6,13 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::FinancesApiModel - # A list of information about shipment settle financial events. + # A list of `ShipmentEvent` items. class ShipmentSettleEventList # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map diff --git a/lib/finances-api-model/models/solution_provider_credit_event.rb b/lib/finances-api-model/models/solution_provider_credit_event.rb index 422da5c2d..bfddb1d3f 100644 --- a/lib/finances-api-model/models/solution_provider_credit_event.rb +++ b/lib/finances-api-model/models/solution_provider_credit_event.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/solution_provider_credit_event_list.rb b/lib/finances-api-model/models/solution_provider_credit_event_list.rb index 24d74292b..650c68db5 100644 --- a/lib/finances-api-model/models/solution_provider_credit_event_list.rb +++ b/lib/finances-api-model/models/solution_provider_credit_event_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/tax_withheld_component.rb b/lib/finances-api-model/models/tax_withheld_component.rb index 47b39bc0d..e03c85a24 100644 --- a/lib/finances-api-model/models/tax_withheld_component.rb +++ b/lib/finances-api-model/models/tax_withheld_component.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/tax_withheld_component_list.rb b/lib/finances-api-model/models/tax_withheld_component_list.rb index 9c89a8c1e..2705ef3a1 100644 --- a/lib/finances-api-model/models/tax_withheld_component_list.rb +++ b/lib/finances-api-model/models/tax_withheld_component_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/tax_withholding_event.rb b/lib/finances-api-model/models/tax_withholding_event.rb index 1b7fc2172..1e3564084 100644 --- a/lib/finances-api-model/models/tax_withholding_event.rb +++ b/lib/finances-api-model/models/tax_withholding_event.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/tax_withholding_event_list.rb b/lib/finances-api-model/models/tax_withholding_event_list.rb index 51205069f..9c0e0d2b0 100644 --- a/lib/finances-api-model/models/tax_withholding_event_list.rb +++ b/lib/finances-api-model/models/tax_withholding_event_list.rb @@ -6,13 +6,13 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::FinancesApiModel - # List of TaxWithholding events. + # A list of `TaxWithholding` events. class TaxWithholdingEventList # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map diff --git a/lib/finances-api-model/models/tax_withholding_period.rb b/lib/finances-api-model/models/tax_withholding_period.rb index 77b1eb4f9..48608e9cc 100644 --- a/lib/finances-api-model/models/tax_withholding_period.rb +++ b/lib/finances-api-model/models/tax_withholding_period.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-pricing-api-model/models/prime_information_type.rb b/lib/finances-api-model/models/tds_reimbursement_event.rb similarity index 76% rename from lib/product-pricing-api-model/models/prime_information_type.rb rename to lib/finances-api-model/models/tds_reimbursement_event.rb index ee54bc54f..e84df5edf 100644 --- a/lib/product-pricing-api-model/models/prime_information_type.rb +++ b/lib/finances-api-model/models/tds_reimbursement_event.rb @@ -1,38 +1,41 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Finances -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - # Amazon Prime information. - class PrimeInformationType - # Indicates whether the offer is an Amazon Prime offer. - attr_accessor :is_prime +module AmzSpApi::FinancesApiModel + # An event related to a Tax-Deducted-at-Source (TDS) reimbursement. + class TDSReimbursementEvent + attr_accessor :posted_date - # Indicates whether the offer is an Amazon Prime offer throughout the entire marketplace where it is listed. - attr_accessor :is_national_prime + # The Tax-Deducted-at-Source (TDS) identifier. + attr_accessor :tds_order_id + + attr_accessor :reimbursed_amount # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'is_prime' => :'IsPrime', - :'is_national_prime' => :'IsNationalPrime' + :'posted_date' => :'PostedDate', + :'tds_order_id' => :'TDSOrderId', + :'reimbursed_amount' => :'ReimbursedAmount' } end # Attribute type mapping. def self.openapi_types { - :'is_prime' => :'Object', - :'is_national_prime' => :'Object' + :'posted_date' => :'Object', + :'tds_order_id' => :'Object', + :'reimbursed_amount' => :'Object' } end @@ -46,23 +49,27 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::PrimeInformationType` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::FinancesApiModel::TDSReimbursementEvent` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::PrimeInformationType`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::FinancesApiModel::TDSReimbursementEvent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - if attributes.key?(:'is_prime') - self.is_prime = attributes[:'is_prime'] + if attributes.key?(:'posted_date') + self.posted_date = attributes[:'posted_date'] + end + + if attributes.key?(:'tds_order_id') + self.tds_order_id = attributes[:'tds_order_id'] end - if attributes.key?(:'is_national_prime') - self.is_national_prime = attributes[:'is_national_prime'] + if attributes.key?(:'reimbursed_amount') + self.reimbursed_amount = attributes[:'reimbursed_amount'] end end @@ -70,22 +77,12 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @is_prime.nil? - invalid_properties.push('invalid value for "is_prime", is_prime cannot be nil.') - end - - if @is_national_prime.nil? - invalid_properties.push('invalid value for "is_national_prime", is_national_prime cannot be nil.') - end - invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @is_prime.nil? - return false if @is_national_prime.nil? true end @@ -94,8 +91,9 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - is_prime == o.is_prime && - is_national_prime == o.is_national_prime + posted_date == o.posted_date && + tds_order_id == o.tds_order_id && + reimbursed_amount == o.reimbursed_amount end # @see the `==` method @@ -107,7 +105,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [is_prime, is_national_prime].hash + [posted_date, tds_order_id, reimbursed_amount].hash end # Builds the object from hash @@ -176,7 +174,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::FinancesApiModel.const_get(type).build_from_hash(value) end end diff --git a/lib/product-pricing-api-model/models/http_response_headers.rb b/lib/finances-api-model/models/tds_reimbursement_event_list.rb similarity index 88% rename from lib/product-pricing-api-model/models/http_response_headers.rb rename to lib/finances-api-model/models/tds_reimbursement_event_list.rb index cc8e414ab..d8a6f69c7 100644 --- a/lib/product-pricing-api-model/models/http_response_headers.rb +++ b/lib/finances-api-model/models/tds_reimbursement_event_list.rb @@ -1,19 +1,19 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Finances -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - # A mapping of additional HTTP headers to send/receive for the individual batch request. - class HttpResponseHeaders +module AmzSpApi::FinancesApiModel + # A list of `TDSReimbursementEvent` items. + class TDSReimbursementEventList # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -36,13 +36,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::HttpResponseHeaders` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::FinancesApiModel::TDSReimbursementEventList` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::HttpResponseHeaders`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::FinancesApiModel::TDSReimbursementEventList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } @@ -150,7 +150,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::FinancesApiModel.const_get(type).build_from_hash(value) end end diff --git a/lib/finances-api-model/models/trial_shipment_event.rb b/lib/finances-api-model/models/trial_shipment_event.rb index 686f11cdc..f88bbdfad 100644 --- a/lib/finances-api-model/models/trial_shipment_event.rb +++ b/lib/finances-api-model/models/trial_shipment_event.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/trial_shipment_event_list.rb b/lib/finances-api-model/models/trial_shipment_event_list.rb index b54422b4d..1912d0886 100644 --- a/lib/finances-api-model/models/trial_shipment_event_list.rb +++ b/lib/finances-api-model/models/trial_shipment_event_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/finances-api-model/models/value_added_service_charge_event_list.rb b/lib/finances-api-model/models/value_added_service_charge_event_list.rb new file mode 100644 index 000000000..086ebc48b --- /dev/null +++ b/lib/finances-api-model/models/value_added_service_charge_event_list.rb @@ -0,0 +1,236 @@ +=begin +#Selling Partner API for Finances + +#The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::FinancesApiModel + # An event related to a value added service charge. + class ValueAddedServiceChargeEventList + # Indicates the type of transaction. Example: 'Other Support Service fees' + attr_accessor :transaction_type + + attr_accessor :posted_date + + # A short description of the service charge event. + attr_accessor :description + + attr_accessor :transaction_amount + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'transaction_type' => :'TransactionType', + :'posted_date' => :'PostedDate', + :'description' => :'Description', + :'transaction_amount' => :'TransactionAmount' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'transaction_type' => :'Object', + :'posted_date' => :'Object', + :'description' => :'Object', + :'transaction_amount' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::FinancesApiModel::ValueAddedServiceChargeEventList` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::FinancesApiModel::ValueAddedServiceChargeEventList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'transaction_type') + self.transaction_type = attributes[:'transaction_type'] + end + + if attributes.key?(:'posted_date') + self.posted_date = attributes[:'posted_date'] + end + + if attributes.key?(:'description') + self.description = attributes[:'description'] + end + + if attributes.key?(:'transaction_amount') + self.transaction_amount = attributes[:'transaction_amount'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + transaction_type == o.transaction_type && + posted_date == o.posted_date && + description == o.description && + transaction_amount == o.transaction_amount + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [transaction_type, posted_date, description, transaction_amount].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::FinancesApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/finances-api-model/spec/api/default_api_spec.rb b/lib/finances-api-model/spec/api/default_api_spec.rb index 6da2317d9..3a87a66d6 100644 --- a/lib/finances-api-model/spec/api/default_api_spec.rb +++ b/lib/finances-api-model/spec/api/default_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -32,9 +32,9 @@ end # unit tests for list_financial_event_groups - # Returns financial event groups for a given date range. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns financial event groups for a given date range. It may take up to 48 hours for orders to appear in your financial events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param [Hash] opts the optional parameters - # @option opts [Integer] :max_results_per_page The maximum number of results to return per page. + # @option opts [Integer] :max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. # @option opts [DateTime] :financial_event_group_started_before A date used for selecting financial event groups that opened before (but not at) a specified date and time, in ISO 8601 format. The date-time must be later than FinancialEventGroupStartedAfter and no later than two minutes before the request was submitted. If FinancialEventGroupStartedAfter and FinancialEventGroupStartedBefore are more than 180 days apart, no financial event groups are returned. # @option opts [DateTime] :financial_event_group_started_after A date used for selecting financial event groups that opened after (or at) a specified date and time, in ISO 8601 format. The date-time must be no later than two minutes before the request was submitted. # @option opts [String] :next_token A string token returned in the response of your previous request. @@ -46,9 +46,9 @@ end # unit tests for list_financial_events - # Returns financial events for the specified data range. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns financial events for the specified data range. It may take up to 48 hours for orders to appear in your financial events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param [Hash] opts the optional parameters - # @option opts [Integer] :max_results_per_page The maximum number of results to return per page. + # @option opts [Integer] :max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. # @option opts [DateTime] :posted_after A date used for selecting financial events posted after (or at) a specified time. The date-time must be no later than two minutes before the request was submitted, in ISO 8601 date time format. # @option opts [DateTime] :posted_before A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than PostedAfter and no later than two minutes before the request was submitted, in ISO 8601 date time format. If PostedAfter and PostedBefore are more than 180 days apart, no financial events are returned. You must specify the PostedAfter parameter if you specify the PostedBefore parameter. Default: Now minus two minutes. # @option opts [String] :next_token A string token returned in the response of your previous request. @@ -60,10 +60,12 @@ end # unit tests for list_financial_events_by_group_id - # Returns all financial events for the specified financial event group. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns all financial events for the specified financial event group. It may take up to 48 hours for orders to appear in your financial events. **Note:** This operation will only retrieve group's data for the past two years. If a request is submitted for data spanning more than two years, an empty response is returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param event_group_id The identifier of the financial event group to which the events belong. # @param [Hash] opts the optional parameters - # @option opts [Integer] :max_results_per_page The maximum number of results to return per page. + # @option opts [Integer] :max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. + # @option opts [DateTime] :posted_after A date used for selecting financial events posted after (or at) a specified time. The date-time **must** be more than two minutes before the time of the request, in ISO 8601 date time format. + # @option opts [DateTime] :posted_before A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than `PostedAfter` and no later than two minutes before the request was submitted, in ISO 8601 date time format. If `PostedAfter` and `PostedBefore` are more than 180 days apart, no financial events are returned. You must specify the `PostedAfter` parameter if you specify the `PostedBefore` parameter. Default: Now minus two minutes. # @option opts [String] :next_token A string token returned in the response of your previous request. # @return [ListFinancialEventsResponse] describe 'list_financial_events_by_group_id test' do @@ -73,10 +75,10 @@ end # unit tests for list_financial_events_by_order_id - # Returns all financial events for the specified order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns all financial events for the specified order. It may take up to 48 hours for orders to appear in your financial events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param order_id An Amazon-defined order identifier, in 3-7-7 format. # @param [Hash] opts the optional parameters - # @option opts [Integer] :max_results_per_page The maximum number of results to return per page. + # @option opts [Integer] :max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. # @option opts [String] :next_token A string token returned in the response of your previous request. # @return [ListFinancialEventsResponse] describe 'list_financial_events_by_order_id test' do diff --git a/lib/finances-api-model/spec/api_client_spec.rb b/lib/finances-api-model/spec/api_client_spec.rb index c1af94bdc..a2f179c3c 100644 --- a/lib/finances-api-model/spec/api_client_spec.rb +++ b/lib/finances-api-model/spec/api_client_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/configuration_spec.rb b/lib/finances-api-model/spec/configuration_spec.rb index b8b055b33..bc6d17558 100644 --- a/lib/finances-api-model/spec/configuration_spec.rb +++ b/lib/finances-api-model/spec/configuration_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/adhoc_disbursement_event_list_spec.rb b/lib/finances-api-model/spec/models/adhoc_disbursement_event_list_spec.rb new file mode 100644 index 000000000..aa3d3d313 --- /dev/null +++ b/lib/finances-api-model/spec/models/adhoc_disbursement_event_list_spec.rb @@ -0,0 +1,34 @@ +=begin +#Selling Partner API for Finances + +#The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::FinancesApiModel::AdhocDisbursementEventList +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'AdhocDisbursementEventList' do + before do + # run before each test + @instance = AmzSpApi::FinancesApiModel::AdhocDisbursementEventList.new + end + + after do + # run after each test + end + + describe 'test an instance of AdhocDisbursementEventList' do + it 'should create an instance of AdhocDisbursementEventList' do + expect(@instance).to be_instance_of(AmzSpApi::FinancesApiModel::AdhocDisbursementEventList) + end + end +end diff --git a/lib/finances-api-model/spec/models/adhoc_disbursement_event_spec.rb b/lib/finances-api-model/spec/models/adhoc_disbursement_event_spec.rb new file mode 100644 index 000000000..eede93f4b --- /dev/null +++ b/lib/finances-api-model/spec/models/adhoc_disbursement_event_spec.rb @@ -0,0 +1,58 @@ +=begin +#Selling Partner API for Finances + +#The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::FinancesApiModel::AdhocDisbursementEvent +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'AdhocDisbursementEvent' do + before do + # run before each test + @instance = AmzSpApi::FinancesApiModel::AdhocDisbursementEvent.new + end + + after do + # run after each test + end + + describe 'test an instance of AdhocDisbursementEvent' do + it 'should create an instance of AdhocDisbursementEvent' do + expect(@instance).to be_instance_of(AmzSpApi::FinancesApiModel::AdhocDisbursementEvent) + end + end + describe 'test attribute "transaction_type"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "posted_date"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "transaction_id"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "transaction_amount"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/finances-api-model/spec/models/adjustment_event_list_spec.rb b/lib/finances-api-model/spec/models/adjustment_event_list_spec.rb index eb54c7840..891efc4d9 100644 --- a/lib/finances-api-model/spec/models/adjustment_event_list_spec.rb +++ b/lib/finances-api-model/spec/models/adjustment_event_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/adjustment_event_spec.rb b/lib/finances-api-model/spec/models/adjustment_event_spec.rb index a4c09e842..7ce3a2710 100644 --- a/lib/finances-api-model/spec/models/adjustment_event_spec.rb +++ b/lib/finances-api-model/spec/models/adjustment_event_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/adjustment_item_list_spec.rb b/lib/finances-api-model/spec/models/adjustment_item_list_spec.rb index 8b16d9038..c1a276e75 100644 --- a/lib/finances-api-model/spec/models/adjustment_item_list_spec.rb +++ b/lib/finances-api-model/spec/models/adjustment_item_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/adjustment_item_spec.rb b/lib/finances-api-model/spec/models/adjustment_item_spec.rb index f8e03d3ef..f64638200 100644 --- a/lib/finances-api-model/spec/models/adjustment_item_spec.rb +++ b/lib/finances-api-model/spec/models/adjustment_item_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/affordability_expense_event_list_spec.rb b/lib/finances-api-model/spec/models/affordability_expense_event_list_spec.rb index 6478a416c..d0bb574f1 100644 --- a/lib/finances-api-model/spec/models/affordability_expense_event_list_spec.rb +++ b/lib/finances-api-model/spec/models/affordability_expense_event_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/affordability_expense_event_spec.rb b/lib/finances-api-model/spec/models/affordability_expense_event_spec.rb index 963699827..223261242 100644 --- a/lib/finances-api-model/spec/models/affordability_expense_event_spec.rb +++ b/lib/finances-api-model/spec/models/affordability_expense_event_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/big_decimal_spec.rb b/lib/finances-api-model/spec/models/big_decimal_spec.rb index 7c74560ec..45b0515d3 100644 --- a/lib/finances-api-model/spec/models/big_decimal_spec.rb +++ b/lib/finances-api-model/spec/models/big_decimal_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/capacity_reservation_billing_event_list_spec.rb b/lib/finances-api-model/spec/models/capacity_reservation_billing_event_list_spec.rb new file mode 100644 index 000000000..096be528f --- /dev/null +++ b/lib/finances-api-model/spec/models/capacity_reservation_billing_event_list_spec.rb @@ -0,0 +1,34 @@ +=begin +#Selling Partner API for Finances + +#The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::FinancesApiModel::CapacityReservationBillingEventList +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'CapacityReservationBillingEventList' do + before do + # run before each test + @instance = AmzSpApi::FinancesApiModel::CapacityReservationBillingEventList.new + end + + after do + # run after each test + end + + describe 'test an instance of CapacityReservationBillingEventList' do + it 'should create an instance of CapacityReservationBillingEventList' do + expect(@instance).to be_instance_of(AmzSpApi::FinancesApiModel::CapacityReservationBillingEventList) + end + end +end diff --git a/lib/finances-api-model/spec/models/capacity_reservation_billing_event_spec.rb b/lib/finances-api-model/spec/models/capacity_reservation_billing_event_spec.rb new file mode 100644 index 000000000..35b0dd864 --- /dev/null +++ b/lib/finances-api-model/spec/models/capacity_reservation_billing_event_spec.rb @@ -0,0 +1,58 @@ +=begin +#Selling Partner API for Finances + +#The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::FinancesApiModel::CapacityReservationBillingEvent +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'CapacityReservationBillingEvent' do + before do + # run before each test + @instance = AmzSpApi::FinancesApiModel::CapacityReservationBillingEvent.new + end + + after do + # run after each test + end + + describe 'test an instance of CapacityReservationBillingEvent' do + it 'should create an instance of CapacityReservationBillingEvent' do + expect(@instance).to be_instance_of(AmzSpApi::FinancesApiModel::CapacityReservationBillingEvent) + end + end + describe 'test attribute "transaction_type"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "posted_date"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "description"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "transaction_amount"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/finances-api-model/spec/models/charge_component_list_spec.rb b/lib/finances-api-model/spec/models/charge_component_list_spec.rb index 624085324..9f105f7af 100644 --- a/lib/finances-api-model/spec/models/charge_component_list_spec.rb +++ b/lib/finances-api-model/spec/models/charge_component_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/charge_component_spec.rb b/lib/finances-api-model/spec/models/charge_component_spec.rb index c3b2cc525..b20e38110 100644 --- a/lib/finances-api-model/spec/models/charge_component_spec.rb +++ b/lib/finances-api-model/spec/models/charge_component_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/charge_instrument_list_spec.rb b/lib/finances-api-model/spec/models/charge_instrument_list_spec.rb index e3fd967a8..fa87e0e0f 100644 --- a/lib/finances-api-model/spec/models/charge_instrument_list_spec.rb +++ b/lib/finances-api-model/spec/models/charge_instrument_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/charge_instrument_spec.rb b/lib/finances-api-model/spec/models/charge_instrument_spec.rb index 5283db37b..428a59b2f 100644 --- a/lib/finances-api-model/spec/models/charge_instrument_spec.rb +++ b/lib/finances-api-model/spec/models/charge_instrument_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/charge_refund_event_list_spec.rb b/lib/finances-api-model/spec/models/charge_refund_event_list_spec.rb new file mode 100644 index 000000000..438026c7f --- /dev/null +++ b/lib/finances-api-model/spec/models/charge_refund_event_list_spec.rb @@ -0,0 +1,34 @@ +=begin +#Selling Partner API for Finances + +#The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::FinancesApiModel::ChargeRefundEventList +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'ChargeRefundEventList' do + before do + # run before each test + @instance = AmzSpApi::FinancesApiModel::ChargeRefundEventList.new + end + + after do + # run after each test + end + + describe 'test an instance of ChargeRefundEventList' do + it 'should create an instance of ChargeRefundEventList' do + expect(@instance).to be_instance_of(AmzSpApi::FinancesApiModel::ChargeRefundEventList) + end + end +end diff --git a/lib/product-pricing-api-model/spec/models/listing_offers_request_params_spec.rb b/lib/finances-api-model/spec/models/charge_refund_event_spec.rb similarity index 50% rename from lib/product-pricing-api-model/spec/models/listing_offers_request_params_spec.rb rename to lib/finances-api-model/spec/models/charge_refund_event_spec.rb index c2ee47f25..2242a2e6f 100644 --- a/lib/product-pricing-api-model/spec/models/listing_offers_request_params_spec.rb +++ b/lib/finances-api-model/spec/models/charge_refund_event_spec.rb @@ -1,55 +1,55 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Finances -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' require 'json' require 'date' -# Unit tests for AmzSpApi::ProductPricingApiModel::ListingOffersRequestParams +# Unit tests for AmzSpApi::FinancesApiModel::ChargeRefundEvent # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'ListingOffersRequestParams' do +describe 'ChargeRefundEvent' do before do # run before each test - @instance = AmzSpApi::ProductPricingApiModel::ListingOffersRequestParams.new + @instance = AmzSpApi::FinancesApiModel::ChargeRefundEvent.new end after do # run after each test end - describe 'test an instance of ListingOffersRequestParams' do - it 'should create an instance of ListingOffersRequestParams' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::ListingOffersRequestParams) + describe 'test an instance of ChargeRefundEvent' do + it 'should create an instance of ChargeRefundEvent' do + expect(@instance).to be_instance_of(AmzSpApi::FinancesApiModel::ChargeRefundEvent) end end - describe 'test attribute "marketplace_id"' do + describe 'test attribute "posted_date"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "item_condition"' do + describe 'test attribute "reason_code"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "customer_type"' do + describe 'test attribute "reason_code_description"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "seller_sku"' do + describe 'test attribute "charge_refund_transactions"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/lib/finances-api-model/spec/models/charge_refund_transaction_spec.rb b/lib/finances-api-model/spec/models/charge_refund_transaction_spec.rb new file mode 100644 index 000000000..5c209c6ef --- /dev/null +++ b/lib/finances-api-model/spec/models/charge_refund_transaction_spec.rb @@ -0,0 +1,46 @@ +=begin +#Selling Partner API for Finances + +#The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::FinancesApiModel::ChargeRefundTransaction +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'ChargeRefundTransaction' do + before do + # run before each test + @instance = AmzSpApi::FinancesApiModel::ChargeRefundTransaction.new + end + + after do + # run after each test + end + + describe 'test an instance of ChargeRefundTransaction' do + it 'should create an instance of ChargeRefundTransaction' do + expect(@instance).to be_instance_of(AmzSpApi::FinancesApiModel::ChargeRefundTransaction) + end + end + describe 'test attribute "charge_amount"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "charge_type"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/finances-api-model/spec/models/coupon_payment_event_list_spec.rb b/lib/finances-api-model/spec/models/coupon_payment_event_list_spec.rb index 32a54b77e..d1e31f9a5 100644 --- a/lib/finances-api-model/spec/models/coupon_payment_event_list_spec.rb +++ b/lib/finances-api-model/spec/models/coupon_payment_event_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/coupon_payment_event_spec.rb b/lib/finances-api-model/spec/models/coupon_payment_event_spec.rb index aa4b28d0c..7e0808e69 100644 --- a/lib/finances-api-model/spec/models/coupon_payment_event_spec.rb +++ b/lib/finances-api-model/spec/models/coupon_payment_event_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/currency_spec.rb b/lib/finances-api-model/spec/models/currency_spec.rb index c3a7b5484..7ddab792a 100644 --- a/lib/finances-api-model/spec/models/currency_spec.rb +++ b/lib/finances-api-model/spec/models/currency_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/date_spec.rb b/lib/finances-api-model/spec/models/date_spec.rb index fb1afee3c..c06a7b0e7 100644 --- a/lib/finances-api-model/spec/models/date_spec.rb +++ b/lib/finances-api-model/spec/models/date_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/debt_recovery_event_list_spec.rb b/lib/finances-api-model/spec/models/debt_recovery_event_list_spec.rb index 87ce1a232..b5cc67915 100644 --- a/lib/finances-api-model/spec/models/debt_recovery_event_list_spec.rb +++ b/lib/finances-api-model/spec/models/debt_recovery_event_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/debt_recovery_event_spec.rb b/lib/finances-api-model/spec/models/debt_recovery_event_spec.rb index a0ac4b8b5..43ac5ceb5 100644 --- a/lib/finances-api-model/spec/models/debt_recovery_event_spec.rb +++ b/lib/finances-api-model/spec/models/debt_recovery_event_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/debt_recovery_item_list_spec.rb b/lib/finances-api-model/spec/models/debt_recovery_item_list_spec.rb index 8fc2a8d52..4d718a84c 100644 --- a/lib/finances-api-model/spec/models/debt_recovery_item_list_spec.rb +++ b/lib/finances-api-model/spec/models/debt_recovery_item_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/debt_recovery_item_spec.rb b/lib/finances-api-model/spec/models/debt_recovery_item_spec.rb index 3f272064b..f6aa4ceff 100644 --- a/lib/finances-api-model/spec/models/debt_recovery_item_spec.rb +++ b/lib/finances-api-model/spec/models/debt_recovery_item_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/direct_payment_list_spec.rb b/lib/finances-api-model/spec/models/direct_payment_list_spec.rb index dea7c6397..6eeb5d403 100644 --- a/lib/finances-api-model/spec/models/direct_payment_list_spec.rb +++ b/lib/finances-api-model/spec/models/direct_payment_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/direct_payment_spec.rb b/lib/finances-api-model/spec/models/direct_payment_spec.rb index 595ef4987..6e807b974 100644 --- a/lib/finances-api-model/spec/models/direct_payment_spec.rb +++ b/lib/finances-api-model/spec/models/direct_payment_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/error_list_spec.rb b/lib/finances-api-model/spec/models/error_list_spec.rb index eafae9086..fc540415c 100644 --- a/lib/finances-api-model/spec/models/error_list_spec.rb +++ b/lib/finances-api-model/spec/models/error_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/error_spec.rb b/lib/finances-api-model/spec/models/error_spec.rb index 8426ef155..efda3c88b 100644 --- a/lib/finances-api-model/spec/models/error_spec.rb +++ b/lib/finances-api-model/spec/models/error_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-pricing-api-model/spec/models/get_offers_result_spec.rb b/lib/finances-api-model/spec/models/failed_adhoc_disbursement_event_list_spec.rb similarity index 55% rename from lib/product-pricing-api-model/spec/models/get_offers_result_spec.rb rename to lib/finances-api-model/spec/models/failed_adhoc_disbursement_event_list_spec.rb index bff4baaeb..59a7a1d63 100644 --- a/lib/product-pricing-api-model/spec/models/get_offers_result_spec.rb +++ b/lib/finances-api-model/spec/models/failed_adhoc_disbursement_event_list_spec.rb @@ -1,55 +1,55 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Finances -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' require 'json' require 'date' -# Unit tests for AmzSpApi::ProductPricingApiModel::GetOffersResult +# Unit tests for AmzSpApi::FinancesApiModel::FailedAdhocDisbursementEventList # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'GetOffersResult' do +describe 'FailedAdhocDisbursementEventList' do before do # run before each test - @instance = AmzSpApi::ProductPricingApiModel::GetOffersResult.new + @instance = AmzSpApi::FinancesApiModel::FailedAdhocDisbursementEventList.new end after do # run after each test end - describe 'test an instance of GetOffersResult' do - it 'should create an instance of GetOffersResult' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::GetOffersResult) + describe 'test an instance of FailedAdhocDisbursementEventList' do + it 'should create an instance of FailedAdhocDisbursementEventList' do + expect(@instance).to be_instance_of(AmzSpApi::FinancesApiModel::FailedAdhocDisbursementEventList) end end - describe 'test attribute "marketplace_id"' do + describe 'test attribute "funds_transfers_type"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "asin"' do + describe 'test attribute "transfer_id"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "sku"' do + describe 'test attribute "disbursement_id"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "item_condition"' do + describe 'test attribute "payment_disbursement_type"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end @@ -61,19 +61,13 @@ end end - describe 'test attribute "identifier"' do + describe 'test attribute "transfer_amount"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "summary"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "offers"' do + describe 'test attribute "posted_date"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/lib/finances-api-model/spec/models/fba_liquidation_event_list_spec.rb b/lib/finances-api-model/spec/models/fba_liquidation_event_list_spec.rb index b0028eefd..96793be1c 100644 --- a/lib/finances-api-model/spec/models/fba_liquidation_event_list_spec.rb +++ b/lib/finances-api-model/spec/models/fba_liquidation_event_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/fba_liquidation_event_spec.rb b/lib/finances-api-model/spec/models/fba_liquidation_event_spec.rb index 3bf52edd3..e5d6996e0 100644 --- a/lib/finances-api-model/spec/models/fba_liquidation_event_spec.rb +++ b/lib/finances-api-model/spec/models/fba_liquidation_event_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/fee_component_list_spec.rb b/lib/finances-api-model/spec/models/fee_component_list_spec.rb index c1c0cbce0..c3d60872c 100644 --- a/lib/finances-api-model/spec/models/fee_component_list_spec.rb +++ b/lib/finances-api-model/spec/models/fee_component_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/fee_component_spec.rb b/lib/finances-api-model/spec/models/fee_component_spec.rb index 93f4eadb5..d662de6db 100644 --- a/lib/finances-api-model/spec/models/fee_component_spec.rb +++ b/lib/finances-api-model/spec/models/fee_component_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/financial_event_group_list_spec.rb b/lib/finances-api-model/spec/models/financial_event_group_list_spec.rb index 3fd30ee58..3a616ea1f 100644 --- a/lib/finances-api-model/spec/models/financial_event_group_list_spec.rb +++ b/lib/finances-api-model/spec/models/financial_event_group_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/financial_event_group_spec.rb b/lib/finances-api-model/spec/models/financial_event_group_spec.rb index 49e1c066c..64f3b5e95 100644 --- a/lib/finances-api-model/spec/models/financial_event_group_spec.rb +++ b/lib/finances-api-model/spec/models/financial_event_group_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/financial_events_spec.rb b/lib/finances-api-model/spec/models/financial_events_spec.rb index 9d1d39ae7..e99d33f07 100644 --- a/lib/finances-api-model/spec/models/financial_events_spec.rb +++ b/lib/finances-api-model/spec/models/financial_events_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -37,6 +37,12 @@ end end + describe 'test attribute "shipment_settle_event_list"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "refund_event_list"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -163,13 +169,31 @@ end end + describe 'test attribute "removal_shipment_event_list"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "removal_shipment_adjustment_event_list"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "trial_shipment_event_list"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "shipment_settle_event_list"' do + describe 'test attribute "tds_reimbursement_event_list"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "adhoc_disbursement_event_list"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end @@ -181,13 +205,25 @@ end end - describe 'test attribute "removal_shipment_event_list"' do + describe 'test attribute "charge_refund_event_list"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "removal_shipment_adjustment_event_list"' do + describe 'test attribute "failed_adhoc_disbursement_event_list"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "value_added_service_charge_event_list"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "capacity_reservation_billing_event_list"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/lib/finances-api-model/spec/models/imaging_services_fee_event_list_spec.rb b/lib/finances-api-model/spec/models/imaging_services_fee_event_list_spec.rb index eff27823b..e081a7041 100644 --- a/lib/finances-api-model/spec/models/imaging_services_fee_event_list_spec.rb +++ b/lib/finances-api-model/spec/models/imaging_services_fee_event_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/imaging_services_fee_event_spec.rb b/lib/finances-api-model/spec/models/imaging_services_fee_event_spec.rb index 15a17d769..4920e96e5 100644 --- a/lib/finances-api-model/spec/models/imaging_services_fee_event_spec.rb +++ b/lib/finances-api-model/spec/models/imaging_services_fee_event_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/list_financial_event_groups_payload_spec.rb b/lib/finances-api-model/spec/models/list_financial_event_groups_payload_spec.rb index d5df2a199..fb34c5ed4 100644 --- a/lib/finances-api-model/spec/models/list_financial_event_groups_payload_spec.rb +++ b/lib/finances-api-model/spec/models/list_financial_event_groups_payload_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/list_financial_event_groups_response_spec.rb b/lib/finances-api-model/spec/models/list_financial_event_groups_response_spec.rb index c5065b9d9..d2de1672c 100644 --- a/lib/finances-api-model/spec/models/list_financial_event_groups_response_spec.rb +++ b/lib/finances-api-model/spec/models/list_financial_event_groups_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/list_financial_events_payload_spec.rb b/lib/finances-api-model/spec/models/list_financial_events_payload_spec.rb index c4045442b..ab9316f07 100644 --- a/lib/finances-api-model/spec/models/list_financial_events_payload_spec.rb +++ b/lib/finances-api-model/spec/models/list_financial_events_payload_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/list_financial_events_response_spec.rb b/lib/finances-api-model/spec/models/list_financial_events_response_spec.rb index de0b1a608..679eeb18d 100644 --- a/lib/finances-api-model/spec/models/list_financial_events_response_spec.rb +++ b/lib/finances-api-model/spec/models/list_financial_events_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/loan_servicing_event_list_spec.rb b/lib/finances-api-model/spec/models/loan_servicing_event_list_spec.rb index dada3b529..37880b569 100644 --- a/lib/finances-api-model/spec/models/loan_servicing_event_list_spec.rb +++ b/lib/finances-api-model/spec/models/loan_servicing_event_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/loan_servicing_event_spec.rb b/lib/finances-api-model/spec/models/loan_servicing_event_spec.rb index d4d640f8f..f0879739b 100644 --- a/lib/finances-api-model/spec/models/loan_servicing_event_spec.rb +++ b/lib/finances-api-model/spec/models/loan_servicing_event_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/network_commingling_transaction_event_list_spec.rb b/lib/finances-api-model/spec/models/network_commingling_transaction_event_list_spec.rb index a1ea4d83b..1a87b01bf 100644 --- a/lib/finances-api-model/spec/models/network_commingling_transaction_event_list_spec.rb +++ b/lib/finances-api-model/spec/models/network_commingling_transaction_event_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/network_commingling_transaction_event_spec.rb b/lib/finances-api-model/spec/models/network_commingling_transaction_event_spec.rb index 4f11c7b21..c0faeb92b 100644 --- a/lib/finances-api-model/spec/models/network_commingling_transaction_event_spec.rb +++ b/lib/finances-api-model/spec/models/network_commingling_transaction_event_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/pay_with_amazon_event_list_spec.rb b/lib/finances-api-model/spec/models/pay_with_amazon_event_list_spec.rb index 2e91689fc..2e817c16c 100644 --- a/lib/finances-api-model/spec/models/pay_with_amazon_event_list_spec.rb +++ b/lib/finances-api-model/spec/models/pay_with_amazon_event_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/pay_with_amazon_event_spec.rb b/lib/finances-api-model/spec/models/pay_with_amazon_event_spec.rb index 9d48bc262..0fc66d958 100644 --- a/lib/finances-api-model/spec/models/pay_with_amazon_event_spec.rb +++ b/lib/finances-api-model/spec/models/pay_with_amazon_event_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/product_ads_payment_event_list_spec.rb b/lib/finances-api-model/spec/models/product_ads_payment_event_list_spec.rb index 7b331ac8f..7c634f0ee 100644 --- a/lib/finances-api-model/spec/models/product_ads_payment_event_list_spec.rb +++ b/lib/finances-api-model/spec/models/product_ads_payment_event_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/product_ads_payment_event_spec.rb b/lib/finances-api-model/spec/models/product_ads_payment_event_spec.rb index e4d8dec32..3aa71ce17 100644 --- a/lib/finances-api-model/spec/models/product_ads_payment_event_spec.rb +++ b/lib/finances-api-model/spec/models/product_ads_payment_event_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/promotion_list_spec.rb b/lib/finances-api-model/spec/models/promotion_list_spec.rb index d6fecd9d2..ba21e8aa7 100644 --- a/lib/finances-api-model/spec/models/promotion_list_spec.rb +++ b/lib/finances-api-model/spec/models/promotion_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/promotion_spec.rb b/lib/finances-api-model/spec/models/promotion_spec.rb index d911bea00..35be5ab76 100644 --- a/lib/finances-api-model/spec/models/promotion_spec.rb +++ b/lib/finances-api-model/spec/models/promotion_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/removal_shipment_adjustment_event_list_spec.rb b/lib/finances-api-model/spec/models/removal_shipment_adjustment_event_list_spec.rb index e7736d1b4..125cad2ba 100644 --- a/lib/finances-api-model/spec/models/removal_shipment_adjustment_event_list_spec.rb +++ b/lib/finances-api-model/spec/models/removal_shipment_adjustment_event_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/removal_shipment_adjustment_event_spec.rb b/lib/finances-api-model/spec/models/removal_shipment_adjustment_event_spec.rb index 72a9cdabf..fc0ac3f22 100644 --- a/lib/finances-api-model/spec/models/removal_shipment_adjustment_event_spec.rb +++ b/lib/finances-api-model/spec/models/removal_shipment_adjustment_event_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/removal_shipment_event_list_spec.rb b/lib/finances-api-model/spec/models/removal_shipment_event_list_spec.rb index 89215baf2..5e06fd666 100644 --- a/lib/finances-api-model/spec/models/removal_shipment_event_list_spec.rb +++ b/lib/finances-api-model/spec/models/removal_shipment_event_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/removal_shipment_event_spec.rb b/lib/finances-api-model/spec/models/removal_shipment_event_spec.rb index d3b5fdeec..4ceede158 100644 --- a/lib/finances-api-model/spec/models/removal_shipment_event_spec.rb +++ b/lib/finances-api-model/spec/models/removal_shipment_event_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/removal_shipment_item_adjustment_spec.rb b/lib/finances-api-model/spec/models/removal_shipment_item_adjustment_spec.rb index 91a334e3c..d4a484d50 100644 --- a/lib/finances-api-model/spec/models/removal_shipment_item_adjustment_spec.rb +++ b/lib/finances-api-model/spec/models/removal_shipment_item_adjustment_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/removal_shipment_item_list_spec.rb b/lib/finances-api-model/spec/models/removal_shipment_item_list_spec.rb index cb593b6bd..d7ff45e0a 100644 --- a/lib/finances-api-model/spec/models/removal_shipment_item_list_spec.rb +++ b/lib/finances-api-model/spec/models/removal_shipment_item_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/removal_shipment_item_spec.rb b/lib/finances-api-model/spec/models/removal_shipment_item_spec.rb index 3798baa5b..e4ae9fe39 100644 --- a/lib/finances-api-model/spec/models/removal_shipment_item_spec.rb +++ b/lib/finances-api-model/spec/models/removal_shipment_item_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/rental_transaction_event_list_spec.rb b/lib/finances-api-model/spec/models/rental_transaction_event_list_spec.rb index f2b9c0e53..728fc7285 100644 --- a/lib/finances-api-model/spec/models/rental_transaction_event_list_spec.rb +++ b/lib/finances-api-model/spec/models/rental_transaction_event_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/rental_transaction_event_spec.rb b/lib/finances-api-model/spec/models/rental_transaction_event_spec.rb index 973001aef..29e70b767 100644 --- a/lib/finances-api-model/spec/models/rental_transaction_event_spec.rb +++ b/lib/finances-api-model/spec/models/rental_transaction_event_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/retrocharge_event_list_spec.rb b/lib/finances-api-model/spec/models/retrocharge_event_list_spec.rb index 333358780..f8a4dab61 100644 --- a/lib/finances-api-model/spec/models/retrocharge_event_list_spec.rb +++ b/lib/finances-api-model/spec/models/retrocharge_event_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/retrocharge_event_spec.rb b/lib/finances-api-model/spec/models/retrocharge_event_spec.rb index 54167c3d3..3579b8e15 100644 --- a/lib/finances-api-model/spec/models/retrocharge_event_spec.rb +++ b/lib/finances-api-model/spec/models/retrocharge_event_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/safet_reimbursement_event_list_spec.rb b/lib/finances-api-model/spec/models/safet_reimbursement_event_list_spec.rb index c236e6b17..82c29946c 100644 --- a/lib/finances-api-model/spec/models/safet_reimbursement_event_list_spec.rb +++ b/lib/finances-api-model/spec/models/safet_reimbursement_event_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/safet_reimbursement_event_spec.rb b/lib/finances-api-model/spec/models/safet_reimbursement_event_spec.rb index 0e275ed35..02a75484a 100644 --- a/lib/finances-api-model/spec/models/safet_reimbursement_event_spec.rb +++ b/lib/finances-api-model/spec/models/safet_reimbursement_event_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/safet_reimbursement_item_list_spec.rb b/lib/finances-api-model/spec/models/safet_reimbursement_item_list_spec.rb index c0f159435..931ec6457 100644 --- a/lib/finances-api-model/spec/models/safet_reimbursement_item_list_spec.rb +++ b/lib/finances-api-model/spec/models/safet_reimbursement_item_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/safet_reimbursement_item_spec.rb b/lib/finances-api-model/spec/models/safet_reimbursement_item_spec.rb index 8d561b20a..8843c6229 100644 --- a/lib/finances-api-model/spec/models/safet_reimbursement_item_spec.rb +++ b/lib/finances-api-model/spec/models/safet_reimbursement_item_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/seller_deal_payment_event_list_spec.rb b/lib/finances-api-model/spec/models/seller_deal_payment_event_list_spec.rb index 4f29f2e6c..396281043 100644 --- a/lib/finances-api-model/spec/models/seller_deal_payment_event_list_spec.rb +++ b/lib/finances-api-model/spec/models/seller_deal_payment_event_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/seller_deal_payment_event_spec.rb b/lib/finances-api-model/spec/models/seller_deal_payment_event_spec.rb index c8da45d1f..e67dd5df5 100644 --- a/lib/finances-api-model/spec/models/seller_deal_payment_event_spec.rb +++ b/lib/finances-api-model/spec/models/seller_deal_payment_event_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/seller_review_enrollment_payment_event_list_spec.rb b/lib/finances-api-model/spec/models/seller_review_enrollment_payment_event_list_spec.rb index 4f27e49c3..55f656203 100644 --- a/lib/finances-api-model/spec/models/seller_review_enrollment_payment_event_list_spec.rb +++ b/lib/finances-api-model/spec/models/seller_review_enrollment_payment_event_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/seller_review_enrollment_payment_event_spec.rb b/lib/finances-api-model/spec/models/seller_review_enrollment_payment_event_spec.rb index 86512acf4..561741fe5 100644 --- a/lib/finances-api-model/spec/models/seller_review_enrollment_payment_event_spec.rb +++ b/lib/finances-api-model/spec/models/seller_review_enrollment_payment_event_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/service_fee_event_list_spec.rb b/lib/finances-api-model/spec/models/service_fee_event_list_spec.rb index 787db07b5..611416410 100644 --- a/lib/finances-api-model/spec/models/service_fee_event_list_spec.rb +++ b/lib/finances-api-model/spec/models/service_fee_event_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/service_fee_event_spec.rb b/lib/finances-api-model/spec/models/service_fee_event_spec.rb index b420a0a00..cee33173e 100644 --- a/lib/finances-api-model/spec/models/service_fee_event_spec.rb +++ b/lib/finances-api-model/spec/models/service_fee_event_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/shipment_event_list_spec.rb b/lib/finances-api-model/spec/models/shipment_event_list_spec.rb index e9c499056..b0a8a38c2 100644 --- a/lib/finances-api-model/spec/models/shipment_event_list_spec.rb +++ b/lib/finances-api-model/spec/models/shipment_event_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/shipment_event_spec.rb b/lib/finances-api-model/spec/models/shipment_event_spec.rb index d9f049d1e..d71239dc6 100644 --- a/lib/finances-api-model/spec/models/shipment_event_spec.rb +++ b/lib/finances-api-model/spec/models/shipment_event_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/shipment_item_list_spec.rb b/lib/finances-api-model/spec/models/shipment_item_list_spec.rb index dfe3940bf..f32d85017 100644 --- a/lib/finances-api-model/spec/models/shipment_item_list_spec.rb +++ b/lib/finances-api-model/spec/models/shipment_item_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/shipment_item_spec.rb b/lib/finances-api-model/spec/models/shipment_item_spec.rb index d08d40c10..2b475c3ee 100644 --- a/lib/finances-api-model/spec/models/shipment_item_spec.rb +++ b/lib/finances-api-model/spec/models/shipment_item_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/shipment_settle_event_list_spec.rb b/lib/finances-api-model/spec/models/shipment_settle_event_list_spec.rb index 26d1be042..fac4c1690 100644 --- a/lib/finances-api-model/spec/models/shipment_settle_event_list_spec.rb +++ b/lib/finances-api-model/spec/models/shipment_settle_event_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/solution_provider_credit_event_list_spec.rb b/lib/finances-api-model/spec/models/solution_provider_credit_event_list_spec.rb index e92c0e693..1f48dac80 100644 --- a/lib/finances-api-model/spec/models/solution_provider_credit_event_list_spec.rb +++ b/lib/finances-api-model/spec/models/solution_provider_credit_event_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/solution_provider_credit_event_spec.rb b/lib/finances-api-model/spec/models/solution_provider_credit_event_spec.rb index b3d644213..296638063 100644 --- a/lib/finances-api-model/spec/models/solution_provider_credit_event_spec.rb +++ b/lib/finances-api-model/spec/models/solution_provider_credit_event_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/tax_withheld_component_list_spec.rb b/lib/finances-api-model/spec/models/tax_withheld_component_list_spec.rb index 2c33854ef..29cc88162 100644 --- a/lib/finances-api-model/spec/models/tax_withheld_component_list_spec.rb +++ b/lib/finances-api-model/spec/models/tax_withheld_component_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/tax_withheld_component_spec.rb b/lib/finances-api-model/spec/models/tax_withheld_component_spec.rb index 6b44ff1bb..0da9a5433 100644 --- a/lib/finances-api-model/spec/models/tax_withheld_component_spec.rb +++ b/lib/finances-api-model/spec/models/tax_withheld_component_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/tax_withholding_event_list_spec.rb b/lib/finances-api-model/spec/models/tax_withholding_event_list_spec.rb index 7c97e5c8a..e582416e8 100644 --- a/lib/finances-api-model/spec/models/tax_withholding_event_list_spec.rb +++ b/lib/finances-api-model/spec/models/tax_withholding_event_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/tax_withholding_event_spec.rb b/lib/finances-api-model/spec/models/tax_withholding_event_spec.rb index 50534b905..2c105ec04 100644 --- a/lib/finances-api-model/spec/models/tax_withholding_event_spec.rb +++ b/lib/finances-api-model/spec/models/tax_withholding_event_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/tax_withholding_period_spec.rb b/lib/finances-api-model/spec/models/tax_withholding_period_spec.rb index 4a66dc4a7..bc9030593 100644 --- a/lib/finances-api-model/spec/models/tax_withholding_period_spec.rb +++ b/lib/finances-api-model/spec/models/tax_withholding_period_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/tds_reimbursement_event_list_spec.rb b/lib/finances-api-model/spec/models/tds_reimbursement_event_list_spec.rb new file mode 100644 index 000000000..e1f60e0fa --- /dev/null +++ b/lib/finances-api-model/spec/models/tds_reimbursement_event_list_spec.rb @@ -0,0 +1,34 @@ +=begin +#Selling Partner API for Finances + +#The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::FinancesApiModel::TDSReimbursementEventList +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'TDSReimbursementEventList' do + before do + # run before each test + @instance = AmzSpApi::FinancesApiModel::TDSReimbursementEventList.new + end + + after do + # run after each test + end + + describe 'test an instance of TDSReimbursementEventList' do + it 'should create an instance of TDSReimbursementEventList' do + expect(@instance).to be_instance_of(AmzSpApi::FinancesApiModel::TDSReimbursementEventList) + end + end +end diff --git a/lib/finances-api-model/spec/models/tds_reimbursement_event_spec.rb b/lib/finances-api-model/spec/models/tds_reimbursement_event_spec.rb new file mode 100644 index 000000000..66a0c046e --- /dev/null +++ b/lib/finances-api-model/spec/models/tds_reimbursement_event_spec.rb @@ -0,0 +1,52 @@ +=begin +#Selling Partner API for Finances + +#The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::FinancesApiModel::TDSReimbursementEvent +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'TDSReimbursementEvent' do + before do + # run before each test + @instance = AmzSpApi::FinancesApiModel::TDSReimbursementEvent.new + end + + after do + # run after each test + end + + describe 'test an instance of TDSReimbursementEvent' do + it 'should create an instance of TDSReimbursementEvent' do + expect(@instance).to be_instance_of(AmzSpApi::FinancesApiModel::TDSReimbursementEvent) + end + end + describe 'test attribute "posted_date"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "tds_order_id"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "reimbursed_amount"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/finances-api-model/spec/models/trial_shipment_event_list_spec.rb b/lib/finances-api-model/spec/models/trial_shipment_event_list_spec.rb index 14cdd930c..a74329d75 100644 --- a/lib/finances-api-model/spec/models/trial_shipment_event_list_spec.rb +++ b/lib/finances-api-model/spec/models/trial_shipment_event_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/trial_shipment_event_spec.rb b/lib/finances-api-model/spec/models/trial_shipment_event_spec.rb index 631534d22..7216b9344 100644 --- a/lib/finances-api-model/spec/models/trial_shipment_event_spec.rb +++ b/lib/finances-api-model/spec/models/trial_shipment_event_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/finances-api-model/spec/models/value_added_service_charge_event_list_spec.rb b/lib/finances-api-model/spec/models/value_added_service_charge_event_list_spec.rb new file mode 100644 index 000000000..3e81b1c10 --- /dev/null +++ b/lib/finances-api-model/spec/models/value_added_service_charge_event_list_spec.rb @@ -0,0 +1,58 @@ +=begin +#Selling Partner API for Finances + +#The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::FinancesApiModel::ValueAddedServiceChargeEventList +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'ValueAddedServiceChargeEventList' do + before do + # run before each test + @instance = AmzSpApi::FinancesApiModel::ValueAddedServiceChargeEventList.new + end + + after do + # run after each test + end + + describe 'test an instance of ValueAddedServiceChargeEventList' do + it 'should create an instance of ValueAddedServiceChargeEventList' do + expect(@instance).to be_instance_of(AmzSpApi::FinancesApiModel::ValueAddedServiceChargeEventList) + end + end + describe 'test attribute "transaction_type"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "posted_date"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "description"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "transaction_amount"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/finances-api-model/spec/spec_helper.rb b/lib/finances-api-model/spec/spec_helper.rb index c5ba211b6..44084c66b 100644 --- a/lib/finances-api-model/spec/spec_helper.rb +++ b/lib/finances-api-model/spec/spec_helper.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # load the gem diff --git a/lib/finances-api-model/version.rb b/lib/finances-api-model/version.rb index 9eefde66a..5aabd29a6 100644 --- a/lib/finances-api-model/version.rb +++ b/lib/finances-api-model/version.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::FinancesApiModel diff --git a/lib/fulfillment-outbound-api-model.rb b/lib/fulfillment-outbound-api-model.rb index c992e7ad9..1a1183295 100644 --- a/lib/fulfillment-outbound-api-model.rb +++ b/lib/fulfillment-outbound-api-model.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # Common files @@ -98,6 +98,8 @@ require 'fulfillment-outbound-api-model/models/shipping_speed_category' require 'fulfillment-outbound-api-model/models/shipping_speed_category_list' require 'fulfillment-outbound-api-model/models/string_list' +require 'fulfillment-outbound-api-model/models/submit_fulfillment_order_status_update_request' +require 'fulfillment-outbound-api-model/models/submit_fulfillment_order_status_update_response' require 'fulfillment-outbound-api-model/models/timestamp' require 'fulfillment-outbound-api-model/models/tracking_address' require 'fulfillment-outbound-api-model/models/tracking_event' diff --git a/lib/fulfillment-outbound-api-model/.swagger-codegen/VERSION b/lib/fulfillment-outbound-api-model/.swagger-codegen/VERSION index b39b0b9e0..161761765 100644 --- a/lib/fulfillment-outbound-api-model/.swagger-codegen/VERSION +++ b/lib/fulfillment-outbound-api-model/.swagger-codegen/VERSION @@ -1 +1 @@ -3.0.24 \ No newline at end of file +3.0.46 \ No newline at end of file diff --git a/lib/fulfillment-outbound-api-model/README.md b/lib/fulfillment-outbound-api-model/README.md index c65eedb9f..f8cc5d78c 100644 --- a/lib/fulfillment-outbound-api-model/README.md +++ b/lib/fulfillment-outbound-api-model/README.md @@ -188,6 +188,18 @@ rescue AmzSpApi::FulfillmentOutboundApiModel::ApiError => e puts "Exception when calling FbaOutboundApi->list_return_reason_codes: #{e}" end +api_instance = AmzSpApi::FulfillmentOutboundApiModel::FbaOutboundApi.new +body = AmzSpApi::FulfillmentOutboundApiModel::SubmitFulfillmentOrderStatusUpdateRequest.new # SubmitFulfillmentOrderStatusUpdateRequest | +seller_fulfillment_order_id = 'seller_fulfillment_order_id_example' # String | The identifier assigned to the item by the seller when the fulfillment order was created. + + +begin + result = api_instance.submit_fulfillment_order_status_update(body, seller_fulfillment_order_id) + p result +rescue AmzSpApi::FulfillmentOutboundApiModel::ApiError => e + puts "Exception when calling FbaOutboundApi->submit_fulfillment_order_status_update: #{e}" +end + api_instance = AmzSpApi::FulfillmentOutboundApiModel::FbaOutboundApi.new body = AmzSpApi::FulfillmentOutboundApiModel::UpdateFulfillmentOrderRequest.new # UpdateFulfillmentOrderRequest | seller_fulfillment_order_id = 'seller_fulfillment_order_id_example' # String | The identifier assigned to the item by the seller when the fulfillment order was created. @@ -218,6 +230,7 @@ Class | Method | HTTP request | Description *AmzSpApi::FulfillmentOutboundApiModel::FbaOutboundApi* | [**get_package_tracking_details**](docs/FbaOutboundApi.md#get_package_tracking_details) | **GET** /fba/outbound/2020-07-01/tracking | *AmzSpApi::FulfillmentOutboundApiModel::FbaOutboundApi* | [**list_all_fulfillment_orders**](docs/FbaOutboundApi.md#list_all_fulfillment_orders) | **GET** /fba/outbound/2020-07-01/fulfillmentOrders | *AmzSpApi::FulfillmentOutboundApiModel::FbaOutboundApi* | [**list_return_reason_codes**](docs/FbaOutboundApi.md#list_return_reason_codes) | **GET** /fba/outbound/2020-07-01/returnReasonCodes | +*AmzSpApi::FulfillmentOutboundApiModel::FbaOutboundApi* | [**submit_fulfillment_order_status_update**](docs/FbaOutboundApi.md#submit_fulfillment_order_status_update) | **PUT** /fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}/status | *AmzSpApi::FulfillmentOutboundApiModel::FbaOutboundApi* | [**update_fulfillment_order**](docs/FbaOutboundApi.md#update_fulfillment_order) | **PUT** /fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId} | ## Documentation for Models @@ -304,6 +317,8 @@ Class | Method | HTTP request | Description - [AmzSpApi::FulfillmentOutboundApiModel::ShippingSpeedCategory](docs/ShippingSpeedCategory.md) - [AmzSpApi::FulfillmentOutboundApiModel::ShippingSpeedCategoryList](docs/ShippingSpeedCategoryList.md) - [AmzSpApi::FulfillmentOutboundApiModel::StringList](docs/StringList.md) + - [AmzSpApi::FulfillmentOutboundApiModel::SubmitFulfillmentOrderStatusUpdateRequest](docs/SubmitFulfillmentOrderStatusUpdateRequest.md) + - [AmzSpApi::FulfillmentOutboundApiModel::SubmitFulfillmentOrderStatusUpdateResponse](docs/SubmitFulfillmentOrderStatusUpdateResponse.md) - [AmzSpApi::FulfillmentOutboundApiModel::Timestamp](docs/Timestamp.md) - [AmzSpApi::FulfillmentOutboundApiModel::TrackingAddress](docs/TrackingAddress.md) - [AmzSpApi::FulfillmentOutboundApiModel::TrackingEvent](docs/TrackingEvent.md) diff --git a/lib/fulfillment-outbound-api-model/api/fba_outbound_api.rb b/lib/fulfillment-outbound-api-model/api/fba_outbound_api.rb index a3a289480..6196d260b 100644 --- a/lib/fulfillment-outbound-api-model/api/fba_outbound_api.rb +++ b/lib/fulfillment-outbound-api-model/api/fba_outbound_api.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::FulfillmentOutboundApiModel @@ -16,7 +16,7 @@ class FbaOutboundApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Requests that Amazon stop attempting to fulfill the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Requests that Amazon stop attempting to fulfill the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. # @param [Hash] opts the optional parameters # @return [CancelFulfillmentOrderResponse] @@ -25,7 +25,7 @@ def cancel_fulfillment_order(seller_fulfillment_order_id, opts = {}) data end - # Requests that Amazon stop attempting to fulfill the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Requests that Amazon stop attempting to fulfill the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. # @param [Hash] opts the optional parameters # @return [Array<(CancelFulfillmentOrderResponse, Integer, Hash)>] CancelFulfillmentOrderResponse data, response status code and response headers @@ -70,7 +70,7 @@ def cancel_fulfillment_order_with_http_info(seller_fulfillment_order_id, opts = end return data, status_code, headers end - # Requests that Amazon ship items from the seller's inventory in Amazon's fulfillment network to a destination address. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Requests that Amazon ship items from the seller's inventory in Amazon's fulfillment network to a destination address. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api) # @param body # @param [Hash] opts the optional parameters # @return [CreateFulfillmentOrderResponse] @@ -79,7 +79,7 @@ def create_fulfillment_order(body, opts = {}) data end - # Requests that Amazon ship items from the seller's inventory in Amazon's fulfillment network to a destination address. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Requests that Amazon ship items from the seller's inventory in Amazon's fulfillment network to a destination address. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api) # @param body # @param [Hash] opts the optional parameters # @return [Array<(CreateFulfillmentOrderResponse, Integer, Hash)>] CreateFulfillmentOrderResponse data, response status code and response headers @@ -126,7 +126,7 @@ def create_fulfillment_order_with_http_info(body, opts = {}) end return data, status_code, headers end - # Creates a fulfillment return. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Creates a fulfillment return. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param seller_fulfillment_order_id An identifier assigned by the seller to the fulfillment order at the time it was created. The seller uses their own records to find the correct SellerFulfillmentOrderId value based on the buyer's request to return items. # @param [Hash] opts the optional parameters @@ -136,7 +136,7 @@ def create_fulfillment_return(body, seller_fulfillment_order_id, opts = {}) data end - # Creates a fulfillment return. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Creates a fulfillment return. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param seller_fulfillment_order_id An identifier assigned by the seller to the fulfillment order at the time it was created. The seller uses their own records to find the correct SellerFulfillmentOrderId value based on the buyer's request to return items. # @param [Hash] opts the optional parameters @@ -188,7 +188,7 @@ def create_fulfillment_return_with_http_info(body, seller_fulfillment_order_id, end return data, status_code, headers end - # Returns a list of inventory items that are eligible for the fulfillment feature you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of inventory items that are eligible for the fulfillment feature you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).. # @param marketplace_id The marketplace for which to return a list of the inventory that is eligible for the specified feature. # @param feature_name The name of the feature for which to return a list of eligible inventory. # @param [Hash] opts the optional parameters @@ -199,7 +199,7 @@ def get_feature_inventory(marketplace_id, feature_name, opts = {}) data end - # Returns a list of inventory items that are eligible for the fulfillment feature you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of inventory items that are eligible for the fulfillment feature you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).. # @param marketplace_id The marketplace for which to return a list of the inventory that is eligible for the specified feature. # @param feature_name The name of the feature for which to return a list of eligible inventory. # @param [Hash] opts the optional parameters @@ -252,7 +252,7 @@ def get_feature_inventory_with_http_info(marketplace_id, feature_name, opts = {} end return data, status_code, headers end - # Returns the number of items with the sellerSKU you specify that can have orders fulfilled using the specified feature. Note that if the sellerSKU isn't eligible, the response will contain an empty skuInfo object. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns the number of items with the sellerSKU you specify that can have orders fulfilled using the specified feature. Note that if the sellerSKU isn't eligible, the response will contain an empty skuInfo object. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param marketplace_id The marketplace for which to return the count. # @param feature_name The name of the feature. # @param seller_sku Used to identify an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. @@ -263,7 +263,7 @@ def get_feature_sku(marketplace_id, feature_name, seller_sku, opts = {}) data end - # Returns the number of items with the sellerSKU you specify that can have orders fulfilled using the specified feature. Note that if the sellerSKU isn't eligible, the response will contain an empty skuInfo object. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns the number of items with the sellerSKU you specify that can have orders fulfilled using the specified feature. Note that if the sellerSKU isn't eligible, the response will contain an empty skuInfo object. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param marketplace_id The marketplace for which to return the count. # @param feature_name The name of the feature. # @param seller_sku Used to identify an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. @@ -319,7 +319,7 @@ def get_feature_sku_with_http_info(marketplace_id, feature_name, seller_sku, opt end return data, status_code, headers end - # Returns a list of features available for Multi-Channel Fulfillment orders in the marketplace you specify, and whether the seller for which you made the call is enrolled for each feature. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of features available for Multi-Channel Fulfillment orders in the marketplace you specify, and whether the seller for which you made the call is enrolled for each feature. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param marketplace_id The marketplace for which to return the list of features. # @param [Hash] opts the optional parameters # @return [GetFeaturesResponse] @@ -328,7 +328,7 @@ def get_features(marketplace_id, opts = {}) data end - # Returns a list of features available for Multi-Channel Fulfillment orders in the marketplace you specify, and whether the seller for which you made the call is enrolled for each feature. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of features available for Multi-Channel Fulfillment orders in the marketplace you specify, and whether the seller for which you made the call is enrolled for each feature. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param marketplace_id The marketplace for which to return the list of features. # @param [Hash] opts the optional parameters # @return [Array<(GetFeaturesResponse, Integer, Hash)>] GetFeaturesResponse data, response status code and response headers @@ -374,7 +374,7 @@ def get_features_with_http_info(marketplace_id, opts = {}) end return data, status_code, headers end - # Returns the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. # @param [Hash] opts the optional parameters # @return [GetFulfillmentOrderResponse] @@ -383,7 +383,7 @@ def get_fulfillment_order(seller_fulfillment_order_id, opts = {}) data end - # Returns the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. # @param [Hash] opts the optional parameters # @return [Array<(GetFulfillmentOrderResponse, Integer, Hash)>] GetFulfillmentOrderResponse data, response status code and response headers @@ -428,7 +428,7 @@ def get_fulfillment_order_with_http_info(seller_fulfillment_order_id, opts = {}) end return data, status_code, headers end - # Returns a list of fulfillment order previews based on shipping criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of fulfillment order previews based on shipping criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [GetFulfillmentPreviewResponse] @@ -437,7 +437,7 @@ def get_fulfillment_preview(body, opts = {}) data end - # Returns a list of fulfillment order previews based on shipping criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of fulfillment order previews based on shipping criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [Array<(GetFulfillmentPreviewResponse, Integer, Hash)>] GetFulfillmentPreviewResponse data, response status code and response headers @@ -484,7 +484,7 @@ def get_fulfillment_preview_with_http_info(body, opts = {}) end return data, status_code, headers end - # Returns delivery tracking information for a package in an outbound shipment for a Multi-Channel Fulfillment order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns delivery tracking information for a package in an outbound shipment for a Multi-Channel Fulfillment order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param package_number The unencrypted package identifier returned by the getFulfillmentOrder operation. # @param [Hash] opts the optional parameters # @return [GetPackageTrackingDetailsResponse] @@ -493,7 +493,7 @@ def get_package_tracking_details(package_number, opts = {}) data end - # Returns delivery tracking information for a package in an outbound shipment for a Multi-Channel Fulfillment order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns delivery tracking information for a package in an outbound shipment for a Multi-Channel Fulfillment order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param package_number The unencrypted package identifier returned by the getFulfillmentOrder operation. # @param [Hash] opts the optional parameters # @return [Array<(GetPackageTrackingDetailsResponse, Integer, Hash)>] GetPackageTrackingDetailsResponse data, response status code and response headers @@ -539,7 +539,7 @@ def get_package_tracking_details_with_http_info(package_number, opts = {}) end return data, status_code, headers end - # Returns a list of fulfillment orders fulfilled after (or at) a specified date-time, or indicated by the next token parameter. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of fulfillment orders fulfilled after (or at) a specified date-time, or indicated by the next token parameter. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api) # @param [Hash] opts the optional parameters # @option opts [DateTime] :query_start_date A date used to select fulfillment orders that were last updated after (or at) a specified time. An update is defined as any change in fulfillment order status, including the creation of a new fulfillment order. # @option opts [String] :next_token A string token returned in the response to your previous request. @@ -549,7 +549,7 @@ def list_all_fulfillment_orders(opts = {}) data end - # Returns a list of fulfillment orders fulfilled after (or at) a specified date-time, or indicated by the next token parameter. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of fulfillment orders fulfilled after (or at) a specified date-time, or indicated by the next token parameter. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api) # @param [Hash] opts the optional parameters # @option opts [DateTime] :query_start_date A date used to select fulfillment orders that were last updated after (or at) a specified time. An update is defined as any change in fulfillment order status, including the creation of a new fulfillment order. # @option opts [String] :next_token A string token returned in the response to your previous request. @@ -593,7 +593,7 @@ def list_all_fulfillment_orders_with_http_info(opts = {}) end return data, status_code, headers end - # Returns a list of return reason codes for a seller SKU in a given marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of return reason codes for a seller SKU in a given marketplace. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param seller_sku The seller SKU for which return reason codes are required. # @param language The language that the TranslatedDescription property of the ReasonCodeDetails response object should be translated into. # @param [Hash] opts the optional parameters @@ -605,7 +605,7 @@ def list_return_reason_codes(seller_sku, language, opts = {}) data end - # Returns a list of return reason codes for a seller SKU in a given marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of return reason codes for a seller SKU in a given marketplace. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param seller_sku The seller SKU for which return reason codes are required. # @param language The language that the TranslatedDescription property of the ReasonCodeDetails response object should be translated into. # @param [Hash] opts the optional parameters @@ -661,7 +661,69 @@ def list_return_reason_codes_with_http_info(seller_sku, language, opts = {}) end return data, status_code, headers end - # Updates and/or requests shipment for a fulfillment order with an order hold on it. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Requests that Amazon update the status of an order in the sandbox testing environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Fulfillment Outbound Dynamic Sandbox Guide](https://developer-docs.amazon.com/sp-api/docs/fulfillment-outbound-dynamic-sandbox-guide) and [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information. + # @param body + # @param seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. + # @param [Hash] opts the optional parameters + # @return [SubmitFulfillmentOrderStatusUpdateResponse] + def submit_fulfillment_order_status_update(body, seller_fulfillment_order_id, opts = {}) + data, _status_code, _headers = submit_fulfillment_order_status_update_with_http_info(body, seller_fulfillment_order_id, opts) + data + end + + # Requests that Amazon update the status of an order in the sandbox testing environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Fulfillment Outbound Dynamic Sandbox Guide](https://developer-docs.amazon.com/sp-api/docs/fulfillment-outbound-dynamic-sandbox-guide) and [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information. + # @param body + # @param seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. + # @param [Hash] opts the optional parameters + # @return [Array<(SubmitFulfillmentOrderStatusUpdateResponse, Integer, Hash)>] SubmitFulfillmentOrderStatusUpdateResponse data, response status code and response headers + def submit_fulfillment_order_status_update_with_http_info(body, seller_fulfillment_order_id, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: FbaOutboundApi.submit_fulfillment_order_status_update ...' + end + # verify the required parameter 'body' is set + if @api_client.config.client_side_validation && body.nil? + fail ArgumentError, "Missing the required parameter 'body' when calling FbaOutboundApi.submit_fulfillment_order_status_update" + end + # verify the required parameter 'seller_fulfillment_order_id' is set + if @api_client.config.client_side_validation && seller_fulfillment_order_id.nil? + fail ArgumentError, "Missing the required parameter 'seller_fulfillment_order_id' when calling FbaOutboundApi.submit_fulfillment_order_status_update" + end + # resource path + local_var_path = '/fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}/status'.sub('{' + 'sellerFulfillmentOrderId' + '}', seller_fulfillment_order_id.to_s) + + # query parameters + query_params = opts[:query_params] || {} + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:body] || @api_client.object_to_http_body(body) + + return_type = opts[:return_type] || 'SubmitFulfillmentOrderStatusUpdateResponse' + + auth_names = opts[:auth_names] || [] + data, status_code, headers = @api_client.call_api(:PUT, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type) + + if @api_client.config.debugging + @api_client.config.logger.debug "API called: FbaOutboundApi#submit_fulfillment_order_status_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Updates and/or requests shipment for a fulfillment order with an order hold on it. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. # @param [Hash] opts the optional parameters @@ -671,7 +733,7 @@ def update_fulfillment_order(body, seller_fulfillment_order_id, opts = {}) data end - # Updates and/or requests shipment for a fulfillment order with an order hold on it. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Updates and/or requests shipment for a fulfillment order with an order hold on it. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. # @param [Hash] opts the optional parameters diff --git a/lib/fulfillment-outbound-api-model/api_client.rb b/lib/fulfillment-outbound-api-model/api_client.rb index 4a0ba6c2f..efafe1ccb 100644 --- a/lib/fulfillment-outbound-api-model/api_client.rb +++ b/lib/fulfillment-outbound-api-model/api_client.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/api_error.rb b/lib/fulfillment-outbound-api-model/api_error.rb index 94ff8ba15..e7218e120 100644 --- a/lib/fulfillment-outbound-api-model/api_error.rb +++ b/lib/fulfillment-outbound-api-model/api_error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::FulfillmentOutboundApiModel diff --git a/lib/fulfillment-outbound-api-model/configuration.rb b/lib/fulfillment-outbound-api-model/configuration.rb index 31db725af..a082b303d 100644 --- a/lib/fulfillment-outbound-api-model/configuration.rb +++ b/lib/fulfillment-outbound-api-model/configuration.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::FulfillmentOutboundApiModel diff --git a/lib/fulfillment-outbound-api-model/docs/Address.md b/lib/fulfillment-outbound-api-model/docs/Address.md index 487e9d568..822dde26c 100644 --- a/lib/fulfillment-outbound-api-model/docs/Address.md +++ b/lib/fulfillment-outbound-api-model/docs/Address.md @@ -7,10 +7,10 @@ Name | Type | Description | Notes **address_line1** | **String** | The first line of the address. | **address_line2** | **String** | Additional address information, if required. | [optional] **address_line3** | **String** | Additional address information, if required. | [optional] -**city** | **String** | The city where the person, business, or institution is located. | [optional] +**city** | **String** | The city where the person, business, or institution is located. This property is required in all countries except Japan. It should not be used in Japan. | [optional] **district_or_county** | **String** | The district or county where the person, business, or institution is located. | [optional] **state_or_region** | **String** | The state or region where the person, business or institution is located. | -**postal_code** | **String** | The postal code of the address. | [optional] +**postal_code** | **String** | The postal code of the address. | **country_code** | **String** | The two digit country code. In ISO 3166-1 alpha-2 format. | **phone** | **String** | The phone number of the person, business, or institution located at the address. | [optional] diff --git a/lib/fulfillment-outbound-api-model/docs/FbaOutboundApi.md b/lib/fulfillment-outbound-api-model/docs/FbaOutboundApi.md index e416fb817..684c93a81 100644 --- a/lib/fulfillment-outbound-api-model/docs/FbaOutboundApi.md +++ b/lib/fulfillment-outbound-api-model/docs/FbaOutboundApi.md @@ -15,6 +15,7 @@ Method | HTTP request | Description [**get_package_tracking_details**](FbaOutboundApi.md#get_package_tracking_details) | **GET** /fba/outbound/2020-07-01/tracking | [**list_all_fulfillment_orders**](FbaOutboundApi.md#list_all_fulfillment_orders) | **GET** /fba/outbound/2020-07-01/fulfillmentOrders | [**list_return_reason_codes**](FbaOutboundApi.md#list_return_reason_codes) | **GET** /fba/outbound/2020-07-01/returnReasonCodes | +[**submit_fulfillment_order_status_update**](FbaOutboundApi.md#submit_fulfillment_order_status_update) | **PUT** /fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}/status | [**update_fulfillment_order**](FbaOutboundApi.md#update_fulfillment_order) | **PUT** /fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId} | # **cancel_fulfillment_order** @@ -22,7 +23,7 @@ Method | HTTP request | Description -Requests that Amazon stop attempting to fulfill the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Requests that Amazon stop attempting to fulfill the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -67,7 +68,7 @@ No authorization required -Requests that Amazon ship items from the seller's inventory in Amazon's fulfillment network to a destination address. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Requests that Amazon ship items from the seller's inventory in Amazon's fulfillment network to a destination address. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api) ### Example ```ruby @@ -112,7 +113,7 @@ No authorization required -Creates a fulfillment return. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Creates a fulfillment return. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -159,7 +160,7 @@ No authorization required -Returns a list of inventory items that are eligible for the fulfillment feature you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns a list of inventory items that are eligible for the fulfillment feature you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).. ### Example ```ruby @@ -209,7 +210,7 @@ No authorization required -Returns the number of items with the sellerSKU you specify that can have orders fulfilled using the specified feature. Note that if the sellerSKU isn't eligible, the response will contain an empty skuInfo object. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns the number of items with the sellerSKU you specify that can have orders fulfilled using the specified feature. Note that if the sellerSKU isn't eligible, the response will contain an empty skuInfo object. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -258,7 +259,7 @@ No authorization required -Returns a list of features available for Multi-Channel Fulfillment orders in the marketplace you specify, and whether the seller for which you made the call is enrolled for each feature. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns a list of features available for Multi-Channel Fulfillment orders in the marketplace you specify, and whether the seller for which you made the call is enrolled for each feature. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -303,7 +304,7 @@ No authorization required -Returns the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -348,7 +349,7 @@ No authorization required -Returns a list of fulfillment order previews based on shipping criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns a list of fulfillment order previews based on shipping criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -393,7 +394,7 @@ No authorization required -Returns delivery tracking information for a package in an outbound shipment for a Multi-Channel Fulfillment order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns delivery tracking information for a package in an outbound shipment for a Multi-Channel Fulfillment order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -438,7 +439,7 @@ No authorization required -Returns a list of fulfillment orders fulfilled after (or at) a specified date-time, or indicated by the next token parameter. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns a list of fulfillment orders fulfilled after (or at) a specified date-time, or indicated by the next token parameter. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api) ### Example ```ruby @@ -486,7 +487,7 @@ No authorization required -Returns a list of return reason codes for a seller SKU in a given marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns a list of return reason codes for a seller SKU in a given marketplace. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -533,12 +534,59 @@ No authorization required +# **submit_fulfillment_order_status_update** +> SubmitFulfillmentOrderStatusUpdateResponse submit_fulfillment_order_status_update(bodyseller_fulfillment_order_id) + + + +Requests that Amazon update the status of an order in the sandbox testing environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Fulfillment Outbound Dynamic Sandbox Guide](https://developer-docs.amazon.com/sp-api/docs/fulfillment-outbound-dynamic-sandbox-guide) and [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information. + +### Example +```ruby +# load the gem +require 'fulfillment-outbound-api-model' + +api_instance = AmzSpApi::FulfillmentOutboundApiModel::FbaOutboundApi.new +body = AmzSpApi::FulfillmentOutboundApiModel::SubmitFulfillmentOrderStatusUpdateRequest.new # SubmitFulfillmentOrderStatusUpdateRequest | +seller_fulfillment_order_id = 'seller_fulfillment_order_id_example' # String | The identifier assigned to the item by the seller when the fulfillment order was created. + + +begin + result = api_instance.submit_fulfillment_order_status_update(bodyseller_fulfillment_order_id) + p result +rescue AmzSpApi::FulfillmentOutboundApiModel::ApiError => e + puts "Exception when calling FbaOutboundApi->submit_fulfillment_order_status_update: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**SubmitFulfillmentOrderStatusUpdateRequest**](SubmitFulfillmentOrderStatusUpdateRequest.md)| | + **seller_fulfillment_order_id** | **String**| The identifier assigned to the item by the seller when the fulfillment order was created. | + +### Return type + +[**SubmitFulfillmentOrderStatusUpdateResponse**](SubmitFulfillmentOrderStatusUpdateResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + # **update_fulfillment_order** > UpdateFulfillmentOrderResponse update_fulfillment_order(bodyseller_fulfillment_order_id) -Updates and/or requests shipment for a fulfillment order with an order hold on it. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Updates and/or requests shipment for a fulfillment order with an order hold on it. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby diff --git a/lib/fulfillment-outbound-api-model/docs/GetFulfillmentPreviewRequest.md b/lib/fulfillment-outbound-api-model/docs/GetFulfillmentPreviewRequest.md index 34a7126b7..ec585eb5f 100644 --- a/lib/fulfillment-outbound-api-model/docs/GetFulfillmentPreviewRequest.md +++ b/lib/fulfillment-outbound-api-model/docs/GetFulfillmentPreviewRequest.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **address** | [**Address**](Address.md) | | **items** | [**GetFulfillmentPreviewItemList**](GetFulfillmentPreviewItemList.md) | | **shipping_speed_categories** | [**ShippingSpeedCategoryList**](ShippingSpeedCategoryList.md) | | [optional] -**include_cod_fulfillment_preview** | **BOOLEAN** | Specifies whether to return fulfillment order previews that are for COD (Cash On Delivery). Possible values: * true - Returns all fulfillment order previews (both for COD and not for COD). * false - Returns only fulfillment order previews that are not for COD. | [optional] -**include_delivery_windows** | **BOOLEAN** | Specifies whether to return the ScheduledDeliveryInfo response object, which contains the available delivery windows for a Scheduled Delivery. The ScheduledDeliveryInfo response object can only be returned for fulfillment order previews with ShippingSpeedCategories = ScheduledDelivery. | [optional] +**include_cod_fulfillment_preview** | **BOOLEAN** | When true, returns all fulfillment order previews both for COD and not for COD. Otherwise, returns only fulfillment order previews that are not for COD. | [optional] +**include_delivery_windows** | **BOOLEAN** | When true, returns the ScheduledDeliveryInfo response object, which contains the available delivery windows for a Scheduled Delivery. The ScheduledDeliveryInfo response object can only be returned for fulfillment order previews with ShippingSpeedCategories = ScheduledDelivery. | [optional] **feature_constraints** | [**Array<FeatureSettings>**](FeatureSettings.md) | A list of features and their fulfillment policies to apply to the order. | [optional] diff --git a/lib/fulfillment-outbound-api-model/docs/PackageTrackingDetails.md b/lib/fulfillment-outbound-api-model/docs/PackageTrackingDetails.md index a1d2dd95f..e414b38df 100644 --- a/lib/fulfillment-outbound-api-model/docs/PackageTrackingDetails.md +++ b/lib/fulfillment-outbound-api-model/docs/PackageTrackingDetails.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **customer_tracking_link** | **String** | Link on swiship.com that allows customers to track the package. | [optional] **carrier_code** | **String** | The name of the carrier. | [optional] **carrier_phone_number** | **String** | The phone number of the carrier. | [optional] -**carrier_url** | **String** | The URL of the carrier’s website. | [optional] +**carrier_url** | **String** | The URL of the carrier's website. | [optional] **ship_date** | [**Timestamp**](Timestamp.md) | | [optional] **estimated_arrival_date** | [**Timestamp**](Timestamp.md) | | [optional] **ship_to_address** | [**TrackingAddress**](TrackingAddress.md) | | [optional] diff --git a/lib/fulfillment-outbound-api-model/docs/SubmitFulfillmentOrderStatusUpdateRequest.md b/lib/fulfillment-outbound-api-model/docs/SubmitFulfillmentOrderStatusUpdateRequest.md new file mode 100644 index 000000000..3c9198073 --- /dev/null +++ b/lib/fulfillment-outbound-api-model/docs/SubmitFulfillmentOrderStatusUpdateRequest.md @@ -0,0 +1,7 @@ +# AmzSpApi::FulfillmentOutboundApiModel::SubmitFulfillmentOrderStatusUpdateRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fulfillment_order_status** | [**FulfillmentOrderStatus**](FulfillmentOrderStatus.md) | | [optional] + diff --git a/lib/fulfillment-outbound-api-model/docs/SubmitFulfillmentOrderStatusUpdateResponse.md b/lib/fulfillment-outbound-api-model/docs/SubmitFulfillmentOrderStatusUpdateResponse.md new file mode 100644 index 000000000..2b2703e28 --- /dev/null +++ b/lib/fulfillment-outbound-api-model/docs/SubmitFulfillmentOrderStatusUpdateResponse.md @@ -0,0 +1,7 @@ +# AmzSpApi::FulfillmentOutboundApiModel::SubmitFulfillmentOrderStatusUpdateResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**errors** | [**ErrorList**](ErrorList.md) | | [optional] + diff --git a/lib/fulfillment-outbound-api-model/models/additional_location_info.rb b/lib/fulfillment-outbound-api-model/models/additional_location_info.rb index d9d00aa0c..3b3eca5aa 100644 --- a/lib/fulfillment-outbound-api-model/models/additional_location_info.rb +++ b/lib/fulfillment-outbound-api-model/models/additional_location_info.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/address.rb b/lib/fulfillment-outbound-api-model/models/address.rb index 4d7ae3f3d..41717cce4 100644 --- a/lib/fulfillment-outbound-api-model/models/address.rb +++ b/lib/fulfillment-outbound-api-model/models/address.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' @@ -26,7 +26,7 @@ class Address # Additional address information, if required. attr_accessor :address_line3 - # The city where the person, business, or institution is located. + # The city where the person, business, or institution is located. This property is required in all countries except Japan. It should not be used in Japan. attr_accessor :city # The district or county where the person, business, or institution is located. @@ -154,6 +154,10 @@ def list_invalid_properties invalid_properties.push('invalid value for "state_or_region", state_or_region cannot be nil.') end + if @postal_code.nil? + invalid_properties.push('invalid value for "postal_code", postal_code cannot be nil.') + end + if @country_code.nil? invalid_properties.push('invalid value for "country_code", country_code cannot be nil.') end @@ -167,6 +171,7 @@ def valid? return false if @name.nil? return false if @address_line1.nil? return false if @state_or_region.nil? + return false if @postal_code.nil? return false if @country_code.nil? true end diff --git a/lib/fulfillment-outbound-api-model/models/cancel_fulfillment_order_response.rb b/lib/fulfillment-outbound-api-model/models/cancel_fulfillment_order_response.rb index 7b3517c12..924935d86 100644 --- a/lib/fulfillment-outbound-api-model/models/cancel_fulfillment_order_response.rb +++ b/lib/fulfillment-outbound-api-model/models/cancel_fulfillment_order_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/cod_settings.rb b/lib/fulfillment-outbound-api-model/models/cod_settings.rb index d6fca2abd..c6d44d12b 100644 --- a/lib/fulfillment-outbound-api-model/models/cod_settings.rb +++ b/lib/fulfillment-outbound-api-model/models/cod_settings.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/create_fulfillment_order_item.rb b/lib/fulfillment-outbound-api-model/models/create_fulfillment_order_item.rb index f4c1dd2a1..9dbde4611 100644 --- a/lib/fulfillment-outbound-api-model/models/create_fulfillment_order_item.rb +++ b/lib/fulfillment-outbound-api-model/models/create_fulfillment_order_item.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/create_fulfillment_order_item_list.rb b/lib/fulfillment-outbound-api-model/models/create_fulfillment_order_item_list.rb index 358a1ab15..c9d3bf7c1 100644 --- a/lib/fulfillment-outbound-api-model/models/create_fulfillment_order_item_list.rb +++ b/lib/fulfillment-outbound-api-model/models/create_fulfillment_order_item_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/create_fulfillment_order_request.rb b/lib/fulfillment-outbound-api-model/models/create_fulfillment_order_request.rb index 8426ecabc..b0f9c62a2 100644 --- a/lib/fulfillment-outbound-api-model/models/create_fulfillment_order_request.rb +++ b/lib/fulfillment-outbound-api-model/models/create_fulfillment_order_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/create_fulfillment_order_response.rb b/lib/fulfillment-outbound-api-model/models/create_fulfillment_order_response.rb index e08ef2b97..a4b84f1b2 100644 --- a/lib/fulfillment-outbound-api-model/models/create_fulfillment_order_response.rb +++ b/lib/fulfillment-outbound-api-model/models/create_fulfillment_order_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/create_fulfillment_return_request.rb b/lib/fulfillment-outbound-api-model/models/create_fulfillment_return_request.rb index 0a6406b33..0c78a11bf 100644 --- a/lib/fulfillment-outbound-api-model/models/create_fulfillment_return_request.rb +++ b/lib/fulfillment-outbound-api-model/models/create_fulfillment_return_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/create_fulfillment_return_response.rb b/lib/fulfillment-outbound-api-model/models/create_fulfillment_return_response.rb index d2c75694e..a05906382 100644 --- a/lib/fulfillment-outbound-api-model/models/create_fulfillment_return_response.rb +++ b/lib/fulfillment-outbound-api-model/models/create_fulfillment_return_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/create_fulfillment_return_result.rb b/lib/fulfillment-outbound-api-model/models/create_fulfillment_return_result.rb index 6d81c7f66..2d8de1c33 100644 --- a/lib/fulfillment-outbound-api-model/models/create_fulfillment_return_result.rb +++ b/lib/fulfillment-outbound-api-model/models/create_fulfillment_return_result.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/create_return_item.rb b/lib/fulfillment-outbound-api-model/models/create_return_item.rb index be7f9c39d..490ad5036 100644 --- a/lib/fulfillment-outbound-api-model/models/create_return_item.rb +++ b/lib/fulfillment-outbound-api-model/models/create_return_item.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/create_return_item_list.rb b/lib/fulfillment-outbound-api-model/models/create_return_item_list.rb index 9e71602ac..6f2f6a2c0 100644 --- a/lib/fulfillment-outbound-api-model/models/create_return_item_list.rb +++ b/lib/fulfillment-outbound-api-model/models/create_return_item_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/current_status.rb b/lib/fulfillment-outbound-api-model/models/current_status.rb index a16866dac..8a8498d41 100644 --- a/lib/fulfillment-outbound-api-model/models/current_status.rb +++ b/lib/fulfillment-outbound-api-model/models/current_status.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/decimal.rb b/lib/fulfillment-outbound-api-model/models/decimal.rb index 1f5872d4b..aed346ba8 100644 --- a/lib/fulfillment-outbound-api-model/models/decimal.rb +++ b/lib/fulfillment-outbound-api-model/models/decimal.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/delivery_window.rb b/lib/fulfillment-outbound-api-model/models/delivery_window.rb index 87d3f22c0..e1d51945c 100644 --- a/lib/fulfillment-outbound-api-model/models/delivery_window.rb +++ b/lib/fulfillment-outbound-api-model/models/delivery_window.rb @@ -6,13 +6,13 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::FulfillmentOutboundApiModel - # The time range within which a Scheduled Delivery fulfillment order should be delivered. + # The time range within which a Scheduled Delivery fulfillment order should be delivered. This is only available in the JP marketplace. class DeliveryWindow attr_accessor :start_date diff --git a/lib/fulfillment-outbound-api-model/models/delivery_window_list.rb b/lib/fulfillment-outbound-api-model/models/delivery_window_list.rb index 11952781d..fc113d9a0 100644 --- a/lib/fulfillment-outbound-api-model/models/delivery_window_list.rb +++ b/lib/fulfillment-outbound-api-model/models/delivery_window_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/error.rb b/lib/fulfillment-outbound-api-model/models/error.rb index 588202f41..9cefa916b 100644 --- a/lib/fulfillment-outbound-api-model/models/error.rb +++ b/lib/fulfillment-outbound-api-model/models/error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/error_list.rb b/lib/fulfillment-outbound-api-model/models/error_list.rb index a8015f0bd..cd5b0c48d 100644 --- a/lib/fulfillment-outbound-api-model/models/error_list.rb +++ b/lib/fulfillment-outbound-api-model/models/error_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/event_code.rb b/lib/fulfillment-outbound-api-model/models/event_code.rb index f7f5a34cc..0f1a662dc 100644 --- a/lib/fulfillment-outbound-api-model/models/event_code.rb +++ b/lib/fulfillment-outbound-api-model/models/event_code.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/feature.rb b/lib/fulfillment-outbound-api-model/models/feature.rb index c5b551877..7d8d65c19 100644 --- a/lib/fulfillment-outbound-api-model/models/feature.rb +++ b/lib/fulfillment-outbound-api-model/models/feature.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/feature_settings.rb b/lib/fulfillment-outbound-api-model/models/feature_settings.rb index cd7b2edc9..686dcae0c 100644 --- a/lib/fulfillment-outbound-api-model/models/feature_settings.rb +++ b/lib/fulfillment-outbound-api-model/models/feature_settings.rb @@ -6,13 +6,13 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::FulfillmentOutboundApiModel - # FeatureSettings allows users to apply fulfillment features to an order. To block an order from being shipped using Amazon Logistics (AMZL) and an AMZL tracking number, use featureName as BLOCK_AMZL and featureFulfillmentPolicy as Required. Blocking AMZL will incur an additional fee surcharge on your MCF orders and increase the risk of some of your orders being unfulfilled or delivered late if there are no alternative carriers available. Using BLOCK_AMZL in an order request will take precedence over your Seller Central account setting. + # FeatureSettings allows users to apply fulfillment features to an order. To block an order from being shipped using Amazon Logistics (AMZL) and an AMZL tracking number, use featureName as BLOCK_AMZL and featureFulfillmentPolicy as Required. Blocking AMZL will incur an additional fee surcharge on your MCF orders and increase the risk of some of your orders being unfulfilled or delivered late if there are no alternative carriers available. Using BLOCK_AMZL in an order request will take precedence over your Seller Central account setting. To ship in non-Amazon branded packaging (blank boxes), use featureName BLANK_BOX. class FeatureSettings # The name of the feature. attr_accessor :feature_name diff --git a/lib/fulfillment-outbound-api-model/models/feature_sku.rb b/lib/fulfillment-outbound-api-model/models/feature_sku.rb index 104b81c48..c5d52a1a5 100644 --- a/lib/fulfillment-outbound-api-model/models/feature_sku.rb +++ b/lib/fulfillment-outbound-api-model/models/feature_sku.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/features.rb b/lib/fulfillment-outbound-api-model/models/features.rb index bcdf157a1..57ba8d94c 100644 --- a/lib/fulfillment-outbound-api-model/models/features.rb +++ b/lib/fulfillment-outbound-api-model/models/features.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/fee.rb b/lib/fulfillment-outbound-api-model/models/fee.rb index 173996e4f..d0ba2b65e 100644 --- a/lib/fulfillment-outbound-api-model/models/fee.rb +++ b/lib/fulfillment-outbound-api-model/models/fee.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/fee_list.rb b/lib/fulfillment-outbound-api-model/models/fee_list.rb index 2be201fb9..529cdbbe9 100644 --- a/lib/fulfillment-outbound-api-model/models/fee_list.rb +++ b/lib/fulfillment-outbound-api-model/models/fee_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/fulfillment_action.rb b/lib/fulfillment-outbound-api-model/models/fulfillment_action.rb index 34b0c4408..03d990fcf 100644 --- a/lib/fulfillment-outbound-api-model/models/fulfillment_action.rb +++ b/lib/fulfillment-outbound-api-model/models/fulfillment_action.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/fulfillment_order.rb b/lib/fulfillment-outbound-api-model/models/fulfillment_order.rb index 01d557caf..4b1b07eca 100644 --- a/lib/fulfillment-outbound-api-model/models/fulfillment_order.rb +++ b/lib/fulfillment-outbound-api-model/models/fulfillment_order.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/fulfillment_order_item.rb b/lib/fulfillment-outbound-api-model/models/fulfillment_order_item.rb index 6eb969f65..3f9358efc 100644 --- a/lib/fulfillment-outbound-api-model/models/fulfillment_order_item.rb +++ b/lib/fulfillment-outbound-api-model/models/fulfillment_order_item.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/fulfillment_order_item_list.rb b/lib/fulfillment-outbound-api-model/models/fulfillment_order_item_list.rb index 760dc4849..76ac79316 100644 --- a/lib/fulfillment-outbound-api-model/models/fulfillment_order_item_list.rb +++ b/lib/fulfillment-outbound-api-model/models/fulfillment_order_item_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/fulfillment_order_status.rb b/lib/fulfillment-outbound-api-model/models/fulfillment_order_status.rb index ffa57d1cc..b876e9dec 100644 --- a/lib/fulfillment-outbound-api-model/models/fulfillment_order_status.rb +++ b/lib/fulfillment-outbound-api-model/models/fulfillment_order_status.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/fulfillment_policy.rb b/lib/fulfillment-outbound-api-model/models/fulfillment_policy.rb index 5007f1cd5..e407429f7 100644 --- a/lib/fulfillment-outbound-api-model/models/fulfillment_policy.rb +++ b/lib/fulfillment-outbound-api-model/models/fulfillment_policy.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/fulfillment_preview.rb b/lib/fulfillment-outbound-api-model/models/fulfillment_preview.rb index e5edc85d0..8f3a545bb 100644 --- a/lib/fulfillment-outbound-api-model/models/fulfillment_preview.rb +++ b/lib/fulfillment-outbound-api-model/models/fulfillment_preview.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/fulfillment_preview_item.rb b/lib/fulfillment-outbound-api-model/models/fulfillment_preview_item.rb index 33489dff3..87e6775f0 100644 --- a/lib/fulfillment-outbound-api-model/models/fulfillment_preview_item.rb +++ b/lib/fulfillment-outbound-api-model/models/fulfillment_preview_item.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/fulfillment_preview_item_list.rb b/lib/fulfillment-outbound-api-model/models/fulfillment_preview_item_list.rb index a11ed5d43..ef234ec47 100644 --- a/lib/fulfillment-outbound-api-model/models/fulfillment_preview_item_list.rb +++ b/lib/fulfillment-outbound-api-model/models/fulfillment_preview_item_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/fulfillment_preview_list.rb b/lib/fulfillment-outbound-api-model/models/fulfillment_preview_list.rb index 2296b8066..9cf6dc333 100644 --- a/lib/fulfillment-outbound-api-model/models/fulfillment_preview_list.rb +++ b/lib/fulfillment-outbound-api-model/models/fulfillment_preview_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/fulfillment_preview_shipment.rb b/lib/fulfillment-outbound-api-model/models/fulfillment_preview_shipment.rb index 82c0f2162..194087c40 100644 --- a/lib/fulfillment-outbound-api-model/models/fulfillment_preview_shipment.rb +++ b/lib/fulfillment-outbound-api-model/models/fulfillment_preview_shipment.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/fulfillment_preview_shipment_list.rb b/lib/fulfillment-outbound-api-model/models/fulfillment_preview_shipment_list.rb index 763db83f7..5169044f3 100644 --- a/lib/fulfillment-outbound-api-model/models/fulfillment_preview_shipment_list.rb +++ b/lib/fulfillment-outbound-api-model/models/fulfillment_preview_shipment_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/fulfillment_return_item_status.rb b/lib/fulfillment-outbound-api-model/models/fulfillment_return_item_status.rb index 8019ba74d..90e4ba4ce 100644 --- a/lib/fulfillment-outbound-api-model/models/fulfillment_return_item_status.rb +++ b/lib/fulfillment-outbound-api-model/models/fulfillment_return_item_status.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/fulfillment_shipment.rb b/lib/fulfillment-outbound-api-model/models/fulfillment_shipment.rb index e70b3f3ad..08866f79c 100644 --- a/lib/fulfillment-outbound-api-model/models/fulfillment_shipment.rb +++ b/lib/fulfillment-outbound-api-model/models/fulfillment_shipment.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/fulfillment_shipment_item.rb b/lib/fulfillment-outbound-api-model/models/fulfillment_shipment_item.rb index 2fffe196b..0740b88c8 100644 --- a/lib/fulfillment-outbound-api-model/models/fulfillment_shipment_item.rb +++ b/lib/fulfillment-outbound-api-model/models/fulfillment_shipment_item.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/fulfillment_shipment_item_list.rb b/lib/fulfillment-outbound-api-model/models/fulfillment_shipment_item_list.rb index fa9e87e5c..88c3ff8fe 100644 --- a/lib/fulfillment-outbound-api-model/models/fulfillment_shipment_item_list.rb +++ b/lib/fulfillment-outbound-api-model/models/fulfillment_shipment_item_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/fulfillment_shipment_list.rb b/lib/fulfillment-outbound-api-model/models/fulfillment_shipment_list.rb index 0c7907a93..91e1eb6a8 100644 --- a/lib/fulfillment-outbound-api-model/models/fulfillment_shipment_list.rb +++ b/lib/fulfillment-outbound-api-model/models/fulfillment_shipment_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/fulfillment_shipment_package.rb b/lib/fulfillment-outbound-api-model/models/fulfillment_shipment_package.rb index 6603216f4..23cc63c6b 100644 --- a/lib/fulfillment-outbound-api-model/models/fulfillment_shipment_package.rb +++ b/lib/fulfillment-outbound-api-model/models/fulfillment_shipment_package.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/fulfillment_shipment_package_list.rb b/lib/fulfillment-outbound-api-model/models/fulfillment_shipment_package_list.rb index 2217487da..a2ac395ec 100644 --- a/lib/fulfillment-outbound-api-model/models/fulfillment_shipment_package_list.rb +++ b/lib/fulfillment-outbound-api-model/models/fulfillment_shipment_package_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/get_feature_inventory_response.rb b/lib/fulfillment-outbound-api-model/models/get_feature_inventory_response.rb index fa5a9a45b..c63d127bd 100644 --- a/lib/fulfillment-outbound-api-model/models/get_feature_inventory_response.rb +++ b/lib/fulfillment-outbound-api-model/models/get_feature_inventory_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/get_feature_inventory_result.rb b/lib/fulfillment-outbound-api-model/models/get_feature_inventory_result.rb index 1eb23a18e..d3d962f2f 100644 --- a/lib/fulfillment-outbound-api-model/models/get_feature_inventory_result.rb +++ b/lib/fulfillment-outbound-api-model/models/get_feature_inventory_result.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/get_feature_sku_response.rb b/lib/fulfillment-outbound-api-model/models/get_feature_sku_response.rb index 8709c11a4..245f4ea7f 100644 --- a/lib/fulfillment-outbound-api-model/models/get_feature_sku_response.rb +++ b/lib/fulfillment-outbound-api-model/models/get_feature_sku_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/get_feature_sku_result.rb b/lib/fulfillment-outbound-api-model/models/get_feature_sku_result.rb index 0eef44ef8..2a3ee729b 100644 --- a/lib/fulfillment-outbound-api-model/models/get_feature_sku_result.rb +++ b/lib/fulfillment-outbound-api-model/models/get_feature_sku_result.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/get_features_response.rb b/lib/fulfillment-outbound-api-model/models/get_features_response.rb index 2bd754adc..0c011dfc8 100644 --- a/lib/fulfillment-outbound-api-model/models/get_features_response.rb +++ b/lib/fulfillment-outbound-api-model/models/get_features_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/get_features_result.rb b/lib/fulfillment-outbound-api-model/models/get_features_result.rb index 0bf4e4f8a..a62015bfa 100644 --- a/lib/fulfillment-outbound-api-model/models/get_features_result.rb +++ b/lib/fulfillment-outbound-api-model/models/get_features_result.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/get_fulfillment_order_response.rb b/lib/fulfillment-outbound-api-model/models/get_fulfillment_order_response.rb index a3c3268c3..d186b8907 100644 --- a/lib/fulfillment-outbound-api-model/models/get_fulfillment_order_response.rb +++ b/lib/fulfillment-outbound-api-model/models/get_fulfillment_order_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/get_fulfillment_order_result.rb b/lib/fulfillment-outbound-api-model/models/get_fulfillment_order_result.rb index 59247fcd3..1bae258ed 100644 --- a/lib/fulfillment-outbound-api-model/models/get_fulfillment_order_result.rb +++ b/lib/fulfillment-outbound-api-model/models/get_fulfillment_order_result.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/get_fulfillment_preview_item.rb b/lib/fulfillment-outbound-api-model/models/get_fulfillment_preview_item.rb index 4fb2e28a5..87db27adc 100644 --- a/lib/fulfillment-outbound-api-model/models/get_fulfillment_preview_item.rb +++ b/lib/fulfillment-outbound-api-model/models/get_fulfillment_preview_item.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/get_fulfillment_preview_item_list.rb b/lib/fulfillment-outbound-api-model/models/get_fulfillment_preview_item_list.rb index deb761d95..9680abc56 100644 --- a/lib/fulfillment-outbound-api-model/models/get_fulfillment_preview_item_list.rb +++ b/lib/fulfillment-outbound-api-model/models/get_fulfillment_preview_item_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/get_fulfillment_preview_request.rb b/lib/fulfillment-outbound-api-model/models/get_fulfillment_preview_request.rb index a23e9c47d..2e4cb6790 100644 --- a/lib/fulfillment-outbound-api-model/models/get_fulfillment_preview_request.rb +++ b/lib/fulfillment-outbound-api-model/models/get_fulfillment_preview_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' @@ -23,10 +23,10 @@ class GetFulfillmentPreviewRequest attr_accessor :shipping_speed_categories - # Specifies whether to return fulfillment order previews that are for COD (Cash On Delivery). Possible values: * true - Returns all fulfillment order previews (both for COD and not for COD). * false - Returns only fulfillment order previews that are not for COD. + # When true, returns all fulfillment order previews both for COD and not for COD. Otherwise, returns only fulfillment order previews that are not for COD. attr_accessor :include_cod_fulfillment_preview - # Specifies whether to return the ScheduledDeliveryInfo response object, which contains the available delivery windows for a Scheduled Delivery. The ScheduledDeliveryInfo response object can only be returned for fulfillment order previews with ShippingSpeedCategories = ScheduledDelivery. + # When true, returns the ScheduledDeliveryInfo response object, which contains the available delivery windows for a Scheduled Delivery. The ScheduledDeliveryInfo response object can only be returned for fulfillment order previews with ShippingSpeedCategories = ScheduledDelivery. attr_accessor :include_delivery_windows # A list of features and their fulfillment policies to apply to the order. diff --git a/lib/fulfillment-outbound-api-model/models/get_fulfillment_preview_response.rb b/lib/fulfillment-outbound-api-model/models/get_fulfillment_preview_response.rb index 1917d64d9..e3b4712ab 100644 --- a/lib/fulfillment-outbound-api-model/models/get_fulfillment_preview_response.rb +++ b/lib/fulfillment-outbound-api-model/models/get_fulfillment_preview_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/get_fulfillment_preview_result.rb b/lib/fulfillment-outbound-api-model/models/get_fulfillment_preview_result.rb index dd7b07bcd..88cf0b666 100644 --- a/lib/fulfillment-outbound-api-model/models/get_fulfillment_preview_result.rb +++ b/lib/fulfillment-outbound-api-model/models/get_fulfillment_preview_result.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/get_package_tracking_details_response.rb b/lib/fulfillment-outbound-api-model/models/get_package_tracking_details_response.rb index 8c5f8fd64..d0b84552c 100644 --- a/lib/fulfillment-outbound-api-model/models/get_package_tracking_details_response.rb +++ b/lib/fulfillment-outbound-api-model/models/get_package_tracking_details_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/invalid_item_reason.rb b/lib/fulfillment-outbound-api-model/models/invalid_item_reason.rb index 6d1062d29..6da335e66 100644 --- a/lib/fulfillment-outbound-api-model/models/invalid_item_reason.rb +++ b/lib/fulfillment-outbound-api-model/models/invalid_item_reason.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/invalid_item_reason_code.rb b/lib/fulfillment-outbound-api-model/models/invalid_item_reason_code.rb index c431d6999..f278fac1f 100644 --- a/lib/fulfillment-outbound-api-model/models/invalid_item_reason_code.rb +++ b/lib/fulfillment-outbound-api-model/models/invalid_item_reason_code.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/invalid_return_item.rb b/lib/fulfillment-outbound-api-model/models/invalid_return_item.rb index 4843a8a75..a2320c7d6 100644 --- a/lib/fulfillment-outbound-api-model/models/invalid_return_item.rb +++ b/lib/fulfillment-outbound-api-model/models/invalid_return_item.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/invalid_return_item_list.rb b/lib/fulfillment-outbound-api-model/models/invalid_return_item_list.rb index 28877474d..78519625d 100644 --- a/lib/fulfillment-outbound-api-model/models/invalid_return_item_list.rb +++ b/lib/fulfillment-outbound-api-model/models/invalid_return_item_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/list_all_fulfillment_orders_response.rb b/lib/fulfillment-outbound-api-model/models/list_all_fulfillment_orders_response.rb index dabade2ab..f708fea68 100644 --- a/lib/fulfillment-outbound-api-model/models/list_all_fulfillment_orders_response.rb +++ b/lib/fulfillment-outbound-api-model/models/list_all_fulfillment_orders_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/list_all_fulfillment_orders_result.rb b/lib/fulfillment-outbound-api-model/models/list_all_fulfillment_orders_result.rb index 5ce0bffc4..4f043c861 100644 --- a/lib/fulfillment-outbound-api-model/models/list_all_fulfillment_orders_result.rb +++ b/lib/fulfillment-outbound-api-model/models/list_all_fulfillment_orders_result.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/list_return_reason_codes_response.rb b/lib/fulfillment-outbound-api-model/models/list_return_reason_codes_response.rb index 0767a7a0f..3045e1303 100644 --- a/lib/fulfillment-outbound-api-model/models/list_return_reason_codes_response.rb +++ b/lib/fulfillment-outbound-api-model/models/list_return_reason_codes_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/list_return_reason_codes_result.rb b/lib/fulfillment-outbound-api-model/models/list_return_reason_codes_result.rb index 9e732b85d..7824cc089 100644 --- a/lib/fulfillment-outbound-api-model/models/list_return_reason_codes_result.rb +++ b/lib/fulfillment-outbound-api-model/models/list_return_reason_codes_result.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/money.rb b/lib/fulfillment-outbound-api-model/models/money.rb index 46d3fac20..21ea927d6 100644 --- a/lib/fulfillment-outbound-api-model/models/money.rb +++ b/lib/fulfillment-outbound-api-model/models/money.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/notification_email_list.rb b/lib/fulfillment-outbound-api-model/models/notification_email_list.rb index 55ff38631..fe603604a 100644 --- a/lib/fulfillment-outbound-api-model/models/notification_email_list.rb +++ b/lib/fulfillment-outbound-api-model/models/notification_email_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/package_tracking_details.rb b/lib/fulfillment-outbound-api-model/models/package_tracking_details.rb index 547c18b49..3211e0003 100644 --- a/lib/fulfillment-outbound-api-model/models/package_tracking_details.rb +++ b/lib/fulfillment-outbound-api-model/models/package_tracking_details.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' @@ -28,7 +28,7 @@ class PackageTrackingDetails # The phone number of the carrier. attr_accessor :carrier_phone_number - # The URL of the carrier’s website. + # The URL of the carrier's website. attr_accessor :carrier_url attr_accessor :ship_date diff --git a/lib/fulfillment-outbound-api-model/models/quantity.rb b/lib/fulfillment-outbound-api-model/models/quantity.rb index b372887a5..9389d80a4 100644 --- a/lib/fulfillment-outbound-api-model/models/quantity.rb +++ b/lib/fulfillment-outbound-api-model/models/quantity.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/reason_code_details.rb b/lib/fulfillment-outbound-api-model/models/reason_code_details.rb index b77a53b92..e39b985ad 100644 --- a/lib/fulfillment-outbound-api-model/models/reason_code_details.rb +++ b/lib/fulfillment-outbound-api-model/models/reason_code_details.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/reason_code_details_list.rb b/lib/fulfillment-outbound-api-model/models/reason_code_details_list.rb index 98e78d60d..7f403b7ef 100644 --- a/lib/fulfillment-outbound-api-model/models/reason_code_details_list.rb +++ b/lib/fulfillment-outbound-api-model/models/reason_code_details_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/return_authorization.rb b/lib/fulfillment-outbound-api-model/models/return_authorization.rb index 2de2a5995..a3d0d8e53 100644 --- a/lib/fulfillment-outbound-api-model/models/return_authorization.rb +++ b/lib/fulfillment-outbound-api-model/models/return_authorization.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/return_authorization_list.rb b/lib/fulfillment-outbound-api-model/models/return_authorization_list.rb index eb4da8251..f73ce2162 100644 --- a/lib/fulfillment-outbound-api-model/models/return_authorization_list.rb +++ b/lib/fulfillment-outbound-api-model/models/return_authorization_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/return_item.rb b/lib/fulfillment-outbound-api-model/models/return_item.rb index 3f3782283..d4575ddbe 100644 --- a/lib/fulfillment-outbound-api-model/models/return_item.rb +++ b/lib/fulfillment-outbound-api-model/models/return_item.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/return_item_disposition.rb b/lib/fulfillment-outbound-api-model/models/return_item_disposition.rb index cac9a98fb..658b834fb 100644 --- a/lib/fulfillment-outbound-api-model/models/return_item_disposition.rb +++ b/lib/fulfillment-outbound-api-model/models/return_item_disposition.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/return_item_list.rb b/lib/fulfillment-outbound-api-model/models/return_item_list.rb index 7c0043ffa..a8fcdb662 100644 --- a/lib/fulfillment-outbound-api-model/models/return_item_list.rb +++ b/lib/fulfillment-outbound-api-model/models/return_item_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/scheduled_delivery_info.rb b/lib/fulfillment-outbound-api-model/models/scheduled_delivery_info.rb index 373f4ab25..da4ffa753 100644 --- a/lib/fulfillment-outbound-api-model/models/scheduled_delivery_info.rb +++ b/lib/fulfillment-outbound-api-model/models/scheduled_delivery_info.rb @@ -6,13 +6,13 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::FulfillmentOutboundApiModel - # Delivery information for a scheduled delivery. + # Delivery information for a scheduled delivery. This is only available in the JP marketplace. class ScheduledDeliveryInfo # The time zone of the destination address for the fulfillment order preview. Must be an IANA time zone name. Example: Asia/Tokyo. attr_accessor :delivery_time_zone diff --git a/lib/fulfillment-outbound-api-model/models/shipping_speed_category.rb b/lib/fulfillment-outbound-api-model/models/shipping_speed_category.rb index 6c08d6fa7..92089d29a 100644 --- a/lib/fulfillment-outbound-api-model/models/shipping_speed_category.rb +++ b/lib/fulfillment-outbound-api-model/models/shipping_speed_category.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/shipping_speed_category_list.rb b/lib/fulfillment-outbound-api-model/models/shipping_speed_category_list.rb index e10fa999c..47737da1f 100644 --- a/lib/fulfillment-outbound-api-model/models/shipping_speed_category_list.rb +++ b/lib/fulfillment-outbound-api-model/models/shipping_speed_category_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/string_list.rb b/lib/fulfillment-outbound-api-model/models/string_list.rb index bbb19738f..8274f8836 100644 --- a/lib/fulfillment-outbound-api-model/models/string_list.rb +++ b/lib/fulfillment-outbound-api-model/models/string_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/submit_fulfillment_order_status_update_request.rb b/lib/fulfillment-outbound-api-model/models/submit_fulfillment_order_status_update_request.rb new file mode 100644 index 000000000..d30e2b4c9 --- /dev/null +++ b/lib/fulfillment-outbound-api-model/models/submit_fulfillment_order_status_update_request.rb @@ -0,0 +1,207 @@ +=begin +#Selling Partner APIs for Fulfillment Outbound + +#The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. + +OpenAPI spec version: 2020-07-01 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::FulfillmentOutboundApiModel + # The request body schema for the submitFulfillmentOrderStatusUpdate operation. + class SubmitFulfillmentOrderStatusUpdateRequest + attr_accessor :fulfillment_order_status + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'fulfillment_order_status' => :'fulfillmentOrderStatus' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'fulfillment_order_status' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::FulfillmentOutboundApiModel::SubmitFulfillmentOrderStatusUpdateRequest` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::FulfillmentOutboundApiModel::SubmitFulfillmentOrderStatusUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'fulfillment_order_status') + self.fulfillment_order_status = attributes[:'fulfillment_order_status'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + fulfillment_order_status == o.fulfillment_order_status + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [fulfillment_order_status].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::FulfillmentOutboundApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/fulfillment-outbound-api-model/models/submit_fulfillment_order_status_update_response.rb b/lib/fulfillment-outbound-api-model/models/submit_fulfillment_order_status_update_response.rb new file mode 100644 index 000000000..5a0b1c476 --- /dev/null +++ b/lib/fulfillment-outbound-api-model/models/submit_fulfillment_order_status_update_response.rb @@ -0,0 +1,207 @@ +=begin +#Selling Partner APIs for Fulfillment Outbound + +#The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. + +OpenAPI spec version: 2020-07-01 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::FulfillmentOutboundApiModel + # The response schema for the SubmitFulfillmentOrderStatusUpdate operation. + class SubmitFulfillmentOrderStatusUpdateResponse + attr_accessor :errors + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'errors' => :'errors' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'errors' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::FulfillmentOutboundApiModel::SubmitFulfillmentOrderStatusUpdateResponse` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::FulfillmentOutboundApiModel::SubmitFulfillmentOrderStatusUpdateResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'errors') + self.errors = attributes[:'errors'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + errors == o.errors + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [errors].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::FulfillmentOutboundApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/fulfillment-outbound-api-model/models/timestamp.rb b/lib/fulfillment-outbound-api-model/models/timestamp.rb index 5a0e67aa0..d7113621f 100644 --- a/lib/fulfillment-outbound-api-model/models/timestamp.rb +++ b/lib/fulfillment-outbound-api-model/models/timestamp.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/tracking_address.rb b/lib/fulfillment-outbound-api-model/models/tracking_address.rb index 78ee7d4dd..31d07986b 100644 --- a/lib/fulfillment-outbound-api-model/models/tracking_address.rb +++ b/lib/fulfillment-outbound-api-model/models/tracking_address.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/tracking_event.rb b/lib/fulfillment-outbound-api-model/models/tracking_event.rb index a01b13e1b..398500e63 100644 --- a/lib/fulfillment-outbound-api-model/models/tracking_event.rb +++ b/lib/fulfillment-outbound-api-model/models/tracking_event.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/tracking_event_list.rb b/lib/fulfillment-outbound-api-model/models/tracking_event_list.rb index ab30a3012..f9f0db8a4 100644 --- a/lib/fulfillment-outbound-api-model/models/tracking_event_list.rb +++ b/lib/fulfillment-outbound-api-model/models/tracking_event_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/unfulfillable_preview_item.rb b/lib/fulfillment-outbound-api-model/models/unfulfillable_preview_item.rb index 4860ec02e..2687a4c73 100644 --- a/lib/fulfillment-outbound-api-model/models/unfulfillable_preview_item.rb +++ b/lib/fulfillment-outbound-api-model/models/unfulfillable_preview_item.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/unfulfillable_preview_item_list.rb b/lib/fulfillment-outbound-api-model/models/unfulfillable_preview_item_list.rb index caeb2f607..dd0cd6901 100644 --- a/lib/fulfillment-outbound-api-model/models/unfulfillable_preview_item_list.rb +++ b/lib/fulfillment-outbound-api-model/models/unfulfillable_preview_item_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/update_fulfillment_order_item.rb b/lib/fulfillment-outbound-api-model/models/update_fulfillment_order_item.rb index c4c5dc894..b212d16dd 100644 --- a/lib/fulfillment-outbound-api-model/models/update_fulfillment_order_item.rb +++ b/lib/fulfillment-outbound-api-model/models/update_fulfillment_order_item.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/update_fulfillment_order_item_list.rb b/lib/fulfillment-outbound-api-model/models/update_fulfillment_order_item_list.rb index f3c822212..9f0b2980b 100644 --- a/lib/fulfillment-outbound-api-model/models/update_fulfillment_order_item_list.rb +++ b/lib/fulfillment-outbound-api-model/models/update_fulfillment_order_item_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/update_fulfillment_order_request.rb b/lib/fulfillment-outbound-api-model/models/update_fulfillment_order_request.rb index c148aafdd..bf82bf94a 100644 --- a/lib/fulfillment-outbound-api-model/models/update_fulfillment_order_request.rb +++ b/lib/fulfillment-outbound-api-model/models/update_fulfillment_order_request.rb @@ -6,12 +6,13 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::FulfillmentOutboundApiModel + # The request body schema for the updateFulfillmentOrder operation. class UpdateFulfillmentOrderRequest # The marketplace the fulfillment order is placed against. attr_accessor :marketplace_id diff --git a/lib/fulfillment-outbound-api-model/models/update_fulfillment_order_response.rb b/lib/fulfillment-outbound-api-model/models/update_fulfillment_order_response.rb index f96c93e06..0f99d8ff4 100644 --- a/lib/fulfillment-outbound-api-model/models/update_fulfillment_order_response.rb +++ b/lib/fulfillment-outbound-api-model/models/update_fulfillment_order_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/models/weight.rb b/lib/fulfillment-outbound-api-model/models/weight.rb index 5a92f045f..abe380fe4 100644 --- a/lib/fulfillment-outbound-api-model/models/weight.rb +++ b/lib/fulfillment-outbound-api-model/models/weight.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/fulfillment-outbound-api-model/spec/api/fba_outbound_api_spec.rb b/lib/fulfillment-outbound-api-model/spec/api/fba_outbound_api_spec.rb index 7e709ed5e..fbe748246 100644 --- a/lib/fulfillment-outbound-api-model/spec/api/fba_outbound_api_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/api/fba_outbound_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -32,7 +32,7 @@ end # unit tests for cancel_fulfillment_order - # Requests that Amazon stop attempting to fulfill the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Requests that Amazon stop attempting to fulfill the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. # @param [Hash] opts the optional parameters # @return [CancelFulfillmentOrderResponse] @@ -43,7 +43,7 @@ end # unit tests for create_fulfillment_order - # Requests that Amazon ship items from the seller's inventory in Amazon's fulfillment network to a destination address. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Requests that Amazon ship items from the seller's inventory in Amazon's fulfillment network to a destination address. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api) # @param body # @param [Hash] opts the optional parameters # @return [CreateFulfillmentOrderResponse] @@ -54,7 +54,7 @@ end # unit tests for create_fulfillment_return - # Creates a fulfillment return. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Creates a fulfillment return. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param seller_fulfillment_order_id An identifier assigned by the seller to the fulfillment order at the time it was created. The seller uses their own records to find the correct SellerFulfillmentOrderId value based on the buyer's request to return items. # @param [Hash] opts the optional parameters @@ -66,7 +66,7 @@ end # unit tests for get_feature_inventory - # Returns a list of inventory items that are eligible for the fulfillment feature you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of inventory items that are eligible for the fulfillment feature you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).. # @param marketplace_id The marketplace for which to return a list of the inventory that is eligible for the specified feature. # @param feature_name The name of the feature for which to return a list of eligible inventory. # @param [Hash] opts the optional parameters @@ -79,7 +79,7 @@ end # unit tests for get_feature_sku - # Returns the number of items with the sellerSKU you specify that can have orders fulfilled using the specified feature. Note that if the sellerSKU isn't eligible, the response will contain an empty skuInfo object. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns the number of items with the sellerSKU you specify that can have orders fulfilled using the specified feature. Note that if the sellerSKU isn't eligible, the response will contain an empty skuInfo object. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param marketplace_id The marketplace for which to return the count. # @param feature_name The name of the feature. # @param seller_sku Used to identify an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. @@ -92,7 +92,7 @@ end # unit tests for get_features - # Returns a list of features available for Multi-Channel Fulfillment orders in the marketplace you specify, and whether the seller for which you made the call is enrolled for each feature. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of features available for Multi-Channel Fulfillment orders in the marketplace you specify, and whether the seller for which you made the call is enrolled for each feature. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param marketplace_id The marketplace for which to return the list of features. # @param [Hash] opts the optional parameters # @return [GetFeaturesResponse] @@ -103,7 +103,7 @@ end # unit tests for get_fulfillment_order - # Returns the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. # @param [Hash] opts the optional parameters # @return [GetFulfillmentOrderResponse] @@ -114,7 +114,7 @@ end # unit tests for get_fulfillment_preview - # Returns a list of fulfillment order previews based on shipping criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of fulfillment order previews based on shipping criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [GetFulfillmentPreviewResponse] @@ -125,7 +125,7 @@ end # unit tests for get_package_tracking_details - # Returns delivery tracking information for a package in an outbound shipment for a Multi-Channel Fulfillment order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns delivery tracking information for a package in an outbound shipment for a Multi-Channel Fulfillment order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param package_number The unencrypted package identifier returned by the getFulfillmentOrder operation. # @param [Hash] opts the optional parameters # @return [GetPackageTrackingDetailsResponse] @@ -136,7 +136,7 @@ end # unit tests for list_all_fulfillment_orders - # Returns a list of fulfillment orders fulfilled after (or at) a specified date-time, or indicated by the next token parameter. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of fulfillment orders fulfilled after (or at) a specified date-time, or indicated by the next token parameter. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api) # @param [Hash] opts the optional parameters # @option opts [DateTime] :query_start_date A date used to select fulfillment orders that were last updated after (or at) a specified time. An update is defined as any change in fulfillment order status, including the creation of a new fulfillment order. # @option opts [String] :next_token A string token returned in the response to your previous request. @@ -148,7 +148,7 @@ end # unit tests for list_return_reason_codes - # Returns a list of return reason codes for a seller SKU in a given marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of return reason codes for a seller SKU in a given marketplace. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param seller_sku The seller SKU for which return reason codes are required. # @param language The language that the TranslatedDescription property of the ReasonCodeDetails response object should be translated into. # @param [Hash] opts the optional parameters @@ -161,8 +161,20 @@ end end + # unit tests for submit_fulfillment_order_status_update + # Requests that Amazon update the status of an order in the sandbox testing environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Fulfillment Outbound Dynamic Sandbox Guide](https://developer-docs.amazon.com/sp-api/docs/fulfillment-outbound-dynamic-sandbox-guide) and [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information. + # @param body + # @param seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. + # @param [Hash] opts the optional parameters + # @return [SubmitFulfillmentOrderStatusUpdateResponse] + describe 'submit_fulfillment_order_status_update test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + # unit tests for update_fulfillment_order - # Updates and/or requests shipment for a fulfillment order with an order hold on it. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Updates and/or requests shipment for a fulfillment order with an order hold on it. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. # @param [Hash] opts the optional parameters diff --git a/lib/fulfillment-outbound-api-model/spec/api_client_spec.rb b/lib/fulfillment-outbound-api-model/spec/api_client_spec.rb index 079d4bf6b..148acdf7c 100644 --- a/lib/fulfillment-outbound-api-model/spec/api_client_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/api_client_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/configuration_spec.rb b/lib/fulfillment-outbound-api-model/spec/configuration_spec.rb index b1bbc1153..8d5a16e4d 100644 --- a/lib/fulfillment-outbound-api-model/spec/configuration_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/configuration_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/additional_location_info_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/additional_location_info_spec.rb index 2d36d1f75..72e715ef2 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/additional_location_info_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/additional_location_info_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/address_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/address_spec.rb index 8dd150a92..230e27b53 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/address_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/address_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/cancel_fulfillment_order_response_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/cancel_fulfillment_order_response_spec.rb index 3d5673de6..701177147 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/cancel_fulfillment_order_response_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/cancel_fulfillment_order_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/cod_settings_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/cod_settings_spec.rb index e556c9efd..f7ce0610c 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/cod_settings_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/cod_settings_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/create_fulfillment_order_item_list_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/create_fulfillment_order_item_list_spec.rb index c2f04384d..efdd1c6d4 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/create_fulfillment_order_item_list_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/create_fulfillment_order_item_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/create_fulfillment_order_item_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/create_fulfillment_order_item_spec.rb index c8ea2bb31..8633661c6 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/create_fulfillment_order_item_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/create_fulfillment_order_item_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/create_fulfillment_order_request_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/create_fulfillment_order_request_spec.rb index 72b2d3cc2..a6452ee92 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/create_fulfillment_order_request_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/create_fulfillment_order_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/create_fulfillment_order_response_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/create_fulfillment_order_response_spec.rb index e74dc8d88..45f2d8cb0 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/create_fulfillment_order_response_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/create_fulfillment_order_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/create_fulfillment_return_request_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/create_fulfillment_return_request_spec.rb index 69c5125d0..8e0ede0d5 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/create_fulfillment_return_request_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/create_fulfillment_return_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/create_fulfillment_return_response_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/create_fulfillment_return_response_spec.rb index 5c6c5ff36..8a3c97975 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/create_fulfillment_return_response_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/create_fulfillment_return_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/create_fulfillment_return_result_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/create_fulfillment_return_result_spec.rb index 6e92f3f6a..57a78d7f6 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/create_fulfillment_return_result_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/create_fulfillment_return_result_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/create_return_item_list_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/create_return_item_list_spec.rb index 7b66fb27e..f5d40cc59 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/create_return_item_list_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/create_return_item_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/create_return_item_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/create_return_item_spec.rb index 2a9249e5e..1b7989be1 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/create_return_item_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/create_return_item_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/current_status_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/current_status_spec.rb index d85990c94..9d73f91ea 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/current_status_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/current_status_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/decimal_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/decimal_spec.rb index f2e017c11..7de8021a8 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/decimal_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/decimal_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/delivery_window_list_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/delivery_window_list_spec.rb index 631cf2018..3af3b7e05 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/delivery_window_list_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/delivery_window_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/delivery_window_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/delivery_window_spec.rb index 3be260cf3..9e82bcff4 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/delivery_window_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/delivery_window_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/error_list_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/error_list_spec.rb index 92647e7ee..d8d1a7ebf 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/error_list_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/error_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/error_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/error_spec.rb index ed8bf5ea6..c308f8ae9 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/error_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/error_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/event_code_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/event_code_spec.rb index c11c93b7b..45766cecd 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/event_code_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/event_code_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/feature_settings_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/feature_settings_spec.rb index 60e62b048..907a4fa73 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/feature_settings_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/feature_settings_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/feature_sku_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/feature_sku_spec.rb index 1a8d1e50e..a5811dc67 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/feature_sku_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/feature_sku_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/feature_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/feature_spec.rb index a1ec2565c..3a99c844e 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/feature_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/feature_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/features_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/features_spec.rb index ef682c17f..876eed600 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/features_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/features_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/fee_list_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/fee_list_spec.rb index 24198db11..9887af950 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/fee_list_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/fee_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/fee_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/fee_spec.rb index 8a58ceecd..2cc226619 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/fee_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/fee_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_action_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_action_spec.rb index 4fa2cc98f..1b851ea86 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_action_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_action_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_order_item_list_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_order_item_list_spec.rb index ee1bd3239..456cfde39 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_order_item_list_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_order_item_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_order_item_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_order_item_spec.rb index 1da608781..c548f7a29 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_order_item_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_order_item_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_order_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_order_spec.rb index 4a5b6bfaf..eebd9564c 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_order_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_order_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_order_status_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_order_status_spec.rb index 7c98b21a4..6a1968529 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_order_status_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_order_status_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_policy_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_policy_spec.rb index 1e344e6fd..cdf206c90 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_policy_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_policy_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_preview_item_list_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_preview_item_list_spec.rb index b9285f420..69b580af6 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_preview_item_list_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_preview_item_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_preview_item_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_preview_item_spec.rb index 408e055ed..cfa12ac33 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_preview_item_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_preview_item_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_preview_list_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_preview_list_spec.rb index b04a36462..9ab7bbb27 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_preview_list_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_preview_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_preview_shipment_list_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_preview_shipment_list_spec.rb index 3ee2c620d..02ee01024 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_preview_shipment_list_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_preview_shipment_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_preview_shipment_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_preview_shipment_spec.rb index c0550c2a1..935edc149 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_preview_shipment_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_preview_shipment_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_preview_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_preview_spec.rb index 730cbeda6..196eabbd7 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_preview_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_preview_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_return_item_status_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_return_item_status_spec.rb index 51405592b..10be3733a 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_return_item_status_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_return_item_status_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_shipment_item_list_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_shipment_item_list_spec.rb index a8c24f7ed..26948cda5 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_shipment_item_list_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_shipment_item_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_shipment_item_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_shipment_item_spec.rb index c83442255..880b8e5ec 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_shipment_item_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_shipment_item_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_shipment_list_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_shipment_list_spec.rb index 3f426c77a..f06d0ebcd 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_shipment_list_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_shipment_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_shipment_package_list_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_shipment_package_list_spec.rb index 5abcf850e..96f3cd99d 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_shipment_package_list_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_shipment_package_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_shipment_package_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_shipment_package_spec.rb index 6dd4c1fec..11a620048 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_shipment_package_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_shipment_package_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_shipment_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_shipment_spec.rb index 82720b27a..173485b77 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/fulfillment_shipment_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/fulfillment_shipment_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/get_feature_inventory_response_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/get_feature_inventory_response_spec.rb index d41e2da36..a54ff4b0d 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/get_feature_inventory_response_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/get_feature_inventory_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/get_feature_inventory_result_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/get_feature_inventory_result_spec.rb index 8037e9895..4f6401c76 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/get_feature_inventory_result_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/get_feature_inventory_result_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/get_feature_sku_response_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/get_feature_sku_response_spec.rb index 7255d391c..e43c9d662 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/get_feature_sku_response_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/get_feature_sku_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/get_feature_sku_result_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/get_feature_sku_result_spec.rb index 8879b5340..18ba6e7a1 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/get_feature_sku_result_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/get_feature_sku_result_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/get_features_response_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/get_features_response_spec.rb index 065ea3e06..0b492af8c 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/get_features_response_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/get_features_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/get_features_result_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/get_features_result_spec.rb index 059bb12be..1e439253d 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/get_features_result_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/get_features_result_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/get_fulfillment_order_response_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/get_fulfillment_order_response_spec.rb index 42903fe21..625fc21f3 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/get_fulfillment_order_response_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/get_fulfillment_order_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/get_fulfillment_order_result_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/get_fulfillment_order_result_spec.rb index cabfbb822..a0066833e 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/get_fulfillment_order_result_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/get_fulfillment_order_result_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/get_fulfillment_preview_item_list_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/get_fulfillment_preview_item_list_spec.rb index f5f412751..73fab06d0 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/get_fulfillment_preview_item_list_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/get_fulfillment_preview_item_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/get_fulfillment_preview_item_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/get_fulfillment_preview_item_spec.rb index 600431dfe..28f13e57a 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/get_fulfillment_preview_item_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/get_fulfillment_preview_item_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/get_fulfillment_preview_request_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/get_fulfillment_preview_request_spec.rb index 91c364a98..3aa559bc5 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/get_fulfillment_preview_request_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/get_fulfillment_preview_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/get_fulfillment_preview_response_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/get_fulfillment_preview_response_spec.rb index 2717c7aa3..2e66e2af0 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/get_fulfillment_preview_response_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/get_fulfillment_preview_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/get_fulfillment_preview_result_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/get_fulfillment_preview_result_spec.rb index dbaf0dafa..995fc95e2 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/get_fulfillment_preview_result_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/get_fulfillment_preview_result_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/get_package_tracking_details_response_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/get_package_tracking_details_response_spec.rb index 67329d63c..4656ff6af 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/get_package_tracking_details_response_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/get_package_tracking_details_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/invalid_item_reason_code_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/invalid_item_reason_code_spec.rb index aefcee3d2..85956c384 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/invalid_item_reason_code_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/invalid_item_reason_code_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/invalid_item_reason_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/invalid_item_reason_spec.rb index 2cd64e2c0..a7de1687d 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/invalid_item_reason_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/invalid_item_reason_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/invalid_return_item_list_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/invalid_return_item_list_spec.rb index 5c6aa6986..a8fa5d898 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/invalid_return_item_list_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/invalid_return_item_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/invalid_return_item_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/invalid_return_item_spec.rb index 85e8b194e..2bbec7d0f 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/invalid_return_item_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/invalid_return_item_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/list_all_fulfillment_orders_response_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/list_all_fulfillment_orders_response_spec.rb index 3a94a3b98..fb2f0824e 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/list_all_fulfillment_orders_response_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/list_all_fulfillment_orders_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/list_all_fulfillment_orders_result_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/list_all_fulfillment_orders_result_spec.rb index daba203b4..f21a0cf0b 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/list_all_fulfillment_orders_result_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/list_all_fulfillment_orders_result_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/list_return_reason_codes_response_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/list_return_reason_codes_response_spec.rb index cc3ee800a..1b0889437 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/list_return_reason_codes_response_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/list_return_reason_codes_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/list_return_reason_codes_result_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/list_return_reason_codes_result_spec.rb index 366acbc37..4dc0cf509 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/list_return_reason_codes_result_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/list_return_reason_codes_result_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/money_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/money_spec.rb index 644f6bea6..899006d23 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/money_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/money_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/notification_email_list_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/notification_email_list_spec.rb index 73b1e1b6d..3e616a961 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/notification_email_list_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/notification_email_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/package_tracking_details_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/package_tracking_details_spec.rb index 44b24ce03..cce7620ba 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/package_tracking_details_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/package_tracking_details_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/quantity_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/quantity_spec.rb index 311c0a668..fea273528 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/quantity_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/quantity_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/reason_code_details_list_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/reason_code_details_list_spec.rb index 8f7c18897..ed058e1e7 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/reason_code_details_list_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/reason_code_details_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/reason_code_details_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/reason_code_details_spec.rb index 44e898d73..6b04484fe 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/reason_code_details_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/reason_code_details_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/return_authorization_list_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/return_authorization_list_spec.rb index e8e295f37..eb4d0bf89 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/return_authorization_list_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/return_authorization_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/return_authorization_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/return_authorization_spec.rb index 9cc9aecf0..42e0e9a0b 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/return_authorization_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/return_authorization_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/return_item_disposition_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/return_item_disposition_spec.rb index 04ee997cf..96aafd9c6 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/return_item_disposition_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/return_item_disposition_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/return_item_list_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/return_item_list_spec.rb index 8d63c8f34..412954899 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/return_item_list_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/return_item_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/return_item_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/return_item_spec.rb index 7628106c3..8b2a17c8b 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/return_item_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/return_item_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/scheduled_delivery_info_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/scheduled_delivery_info_spec.rb index 8413bab72..3250df8c8 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/scheduled_delivery_info_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/scheduled_delivery_info_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/shipping_speed_category_list_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/shipping_speed_category_list_spec.rb index 2ed1d8744..8ceb57829 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/shipping_speed_category_list_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/shipping_speed_category_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/shipping_speed_category_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/shipping_speed_category_spec.rb index 5129ab0d2..39ed7d41e 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/shipping_speed_category_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/shipping_speed_category_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/string_list_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/string_list_spec.rb index cec84680c..841638636 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/string_list_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/string_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/submit_fulfillment_order_status_update_request_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/submit_fulfillment_order_status_update_request_spec.rb new file mode 100644 index 000000000..a4c80dd25 --- /dev/null +++ b/lib/fulfillment-outbound-api-model/spec/models/submit_fulfillment_order_status_update_request_spec.rb @@ -0,0 +1,40 @@ +=begin +#Selling Partner APIs for Fulfillment Outbound + +#The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. + +OpenAPI spec version: 2020-07-01 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::FulfillmentOutboundApiModel::SubmitFulfillmentOrderStatusUpdateRequest +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'SubmitFulfillmentOrderStatusUpdateRequest' do + before do + # run before each test + @instance = AmzSpApi::FulfillmentOutboundApiModel::SubmitFulfillmentOrderStatusUpdateRequest.new + end + + after do + # run after each test + end + + describe 'test an instance of SubmitFulfillmentOrderStatusUpdateRequest' do + it 'should create an instance of SubmitFulfillmentOrderStatusUpdateRequest' do + expect(@instance).to be_instance_of(AmzSpApi::FulfillmentOutboundApiModel::SubmitFulfillmentOrderStatusUpdateRequest) + end + end + describe 'test attribute "fulfillment_order_status"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/fulfillment-outbound-api-model/spec/models/submit_fulfillment_order_status_update_response_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/submit_fulfillment_order_status_update_response_spec.rb new file mode 100644 index 000000000..503f0b6a1 --- /dev/null +++ b/lib/fulfillment-outbound-api-model/spec/models/submit_fulfillment_order_status_update_response_spec.rb @@ -0,0 +1,40 @@ +=begin +#Selling Partner APIs for Fulfillment Outbound + +#The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. + +OpenAPI spec version: 2020-07-01 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::FulfillmentOutboundApiModel::SubmitFulfillmentOrderStatusUpdateResponse +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'SubmitFulfillmentOrderStatusUpdateResponse' do + before do + # run before each test + @instance = AmzSpApi::FulfillmentOutboundApiModel::SubmitFulfillmentOrderStatusUpdateResponse.new + end + + after do + # run after each test + end + + describe 'test an instance of SubmitFulfillmentOrderStatusUpdateResponse' do + it 'should create an instance of SubmitFulfillmentOrderStatusUpdateResponse' do + expect(@instance).to be_instance_of(AmzSpApi::FulfillmentOutboundApiModel::SubmitFulfillmentOrderStatusUpdateResponse) + end + end + describe 'test attribute "errors"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/fulfillment-outbound-api-model/spec/models/timestamp_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/timestamp_spec.rb index 991c0b014..ec9fe5590 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/timestamp_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/timestamp_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/tracking_address_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/tracking_address_spec.rb index d58d58bed..3b0741d19 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/tracking_address_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/tracking_address_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/tracking_event_list_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/tracking_event_list_spec.rb index ea60c3518..15ecd0f16 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/tracking_event_list_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/tracking_event_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/tracking_event_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/tracking_event_spec.rb index 0ef659816..58417a4e8 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/tracking_event_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/tracking_event_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/unfulfillable_preview_item_list_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/unfulfillable_preview_item_list_spec.rb index 8f37cacce..cd5d93b45 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/unfulfillable_preview_item_list_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/unfulfillable_preview_item_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/unfulfillable_preview_item_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/unfulfillable_preview_item_spec.rb index 6ec28c486..384a371de 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/unfulfillable_preview_item_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/unfulfillable_preview_item_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/update_fulfillment_order_item_list_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/update_fulfillment_order_item_list_spec.rb index b719da743..9a0cb9a33 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/update_fulfillment_order_item_list_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/update_fulfillment_order_item_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/update_fulfillment_order_item_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/update_fulfillment_order_item_spec.rb index f8110ba76..6c8d4c723 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/update_fulfillment_order_item_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/update_fulfillment_order_item_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/update_fulfillment_order_request_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/update_fulfillment_order_request_spec.rb index 2e63effa3..cf9cca03f 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/update_fulfillment_order_request_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/update_fulfillment_order_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/update_fulfillment_order_response_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/update_fulfillment_order_response_spec.rb index c8dc4a9dd..ed1cd84c7 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/update_fulfillment_order_response_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/update_fulfillment_order_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/models/weight_spec.rb b/lib/fulfillment-outbound-api-model/spec/models/weight_spec.rb index 18f5dedcb..5904171e2 100644 --- a/lib/fulfillment-outbound-api-model/spec/models/weight_spec.rb +++ b/lib/fulfillment-outbound-api-model/spec/models/weight_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/fulfillment-outbound-api-model/spec/spec_helper.rb b/lib/fulfillment-outbound-api-model/spec/spec_helper.rb index c8fae0eff..714b80e14 100644 --- a/lib/fulfillment-outbound-api-model/spec/spec_helper.rb +++ b/lib/fulfillment-outbound-api-model/spec/spec_helper.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # load the gem diff --git a/lib/fulfillment-outbound-api-model/version.rb b/lib/fulfillment-outbound-api-model/version.rb index 7280f38fa..11956baa9 100644 --- a/lib/fulfillment-outbound-api-model/version.rb +++ b/lib/fulfillment-outbound-api-model/version.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-07-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::FulfillmentOutboundApiModel diff --git a/lib/listings-items-api-model.rb b/lib/listings-items-api-model.rb index 6e82c536a..f4c916434 100644 --- a/lib/listings-items-api-model.rb +++ b/lib/listings-items-api-model.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # Common files diff --git a/lib/listings-items-api-model/.swagger-codegen/VERSION b/lib/listings-items-api-model/.swagger-codegen/VERSION index b39b0b9e0..161761765 100644 --- a/lib/listings-items-api-model/.swagger-codegen/VERSION +++ b/lib/listings-items-api-model/.swagger-codegen/VERSION @@ -1 +1 @@ -3.0.24 \ No newline at end of file +3.0.46 \ No newline at end of file diff --git a/lib/listings-items-api-model/api/listings_api.rb b/lib/listings-items-api-model/api/listings_api.rb index 2952549e0..2d0adbe53 100644 --- a/lib/listings-items-api-model/api/listings_api.rb +++ b/lib/listings-items-api-model/api/listings_api.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::ListingsItemsApiModel @@ -16,7 +16,7 @@ class ListingsApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Delete a listings item for a selling partner. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Delete a listings item for a selling partner. **Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param seller_id A selling partner identifier, such as a merchant account or vendor code. # @param sku A selling partner provided identifier for an Amazon listing. # @param marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. @@ -28,7 +28,7 @@ def delete_listings_item(seller_id, sku, marketplace_ids, opts = {}) data end - # Delete a listings item for a selling partner. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Delete a listings item for a selling partner. **Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param seller_id A selling partner identifier, such as a merchant account or vendor code. # @param sku A selling partner provided identifier for an Amazon listing. # @param marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. @@ -86,7 +86,7 @@ def delete_listings_item_with_http_info(seller_id, sku, marketplace_ids, opts = end return data, status_code, headers end - # Returns details about a listings item for a selling partner. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Returns details about a listings item for a selling partner. **Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param seller_id A selling partner identifier, such as a merchant account or vendor code. # @param sku A selling partner provided identifier for an Amazon listing. # @param marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. @@ -99,7 +99,7 @@ def get_listings_item(seller_id, sku, marketplace_ids, opts = {}) data end - # Returns details about a listings item for a selling partner. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Returns details about a listings item for a selling partner. **Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param seller_id A selling partner identifier, such as a merchant account or vendor code. # @param sku A selling partner provided identifier for an Amazon listing. # @param marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. @@ -162,7 +162,7 @@ def get_listings_item_with_http_info(seller_id, sku, marketplace_ids, opts = {}) end return data, status_code, headers end - # Partially update (patch) a listings item for a selling partner. Only top-level listings item attributes can be patched. Patching nested attributes is not supported. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Partially update (patch) a listings item for a selling partner. Only top-level listings item attributes can be patched. Patching nested attributes is not supported. **Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body The request body schema for the patchListingsItem operation. # @param marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. # @param seller_id A selling partner identifier, such as a merchant account or vendor code. @@ -175,7 +175,7 @@ def patch_listings_item(body, marketplace_ids, seller_id, sku, opts = {}) data end - # Partially update (patch) a listings item for a selling partner. Only top-level listings item attributes can be patched. Patching nested attributes is not supported. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Partially update (patch) a listings item for a selling partner. Only top-level listings item attributes can be patched. Patching nested attributes is not supported. **Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body The request body schema for the patchListingsItem operation. # @param marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. # @param seller_id A selling partner identifier, such as a merchant account or vendor code. @@ -240,7 +240,7 @@ def patch_listings_item_with_http_info(body, marketplace_ids, seller_id, sku, op end return data, status_code, headers end - # Creates a new or fully-updates an existing listings item for a selling partner. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Creates a new or fully-updates an existing listings item for a selling partner. **Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body The request body schema for the putListingsItem operation. # @param marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. # @param seller_id A selling partner identifier, such as a merchant account or vendor code. @@ -253,7 +253,7 @@ def put_listings_item(body, marketplace_ids, seller_id, sku, opts = {}) data end - # Creates a new or fully-updates an existing listings item for a selling partner. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Creates a new or fully-updates an existing listings item for a selling partner. **Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body The request body schema for the putListingsItem operation. # @param marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. # @param seller_id A selling partner identifier, such as a merchant account or vendor code. diff --git a/lib/listings-items-api-model/api_client.rb b/lib/listings-items-api-model/api_client.rb index 2accad33d..9dc0b95e6 100644 --- a/lib/listings-items-api-model/api_client.rb +++ b/lib/listings-items-api-model/api_client.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/listings-items-api-model/api_error.rb b/lib/listings-items-api-model/api_error.rb index dcb626a96..f5067c245 100644 --- a/lib/listings-items-api-model/api_error.rb +++ b/lib/listings-items-api-model/api_error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::ListingsItemsApiModel diff --git a/lib/listings-items-api-model/configuration.rb b/lib/listings-items-api-model/configuration.rb index 3af997f18..84bbe1661 100644 --- a/lib/listings-items-api-model/configuration.rb +++ b/lib/listings-items-api-model/configuration.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::ListingsItemsApiModel diff --git a/lib/listings-items-api-model/docs/ListingsApi.md b/lib/listings-items-api-model/docs/ListingsApi.md index 0b2618e02..c952c6ebb 100644 --- a/lib/listings-items-api-model/docs/ListingsApi.md +++ b/lib/listings-items-api-model/docs/ListingsApi.md @@ -14,7 +14,7 @@ Method | HTTP request | Description -Delete a listings item for a selling partner. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). +Delete a listings item for a selling partner. **Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -66,7 +66,7 @@ No authorization required -Returns details about a listings item for a selling partner. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). +Returns details about a listings item for a selling partner. **Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -120,7 +120,7 @@ No authorization required -Partially update (patch) a listings item for a selling partner. Only top-level listings item attributes can be patched. Patching nested attributes is not supported. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). +Partially update (patch) a listings item for a selling partner. Only top-level listings item attributes can be patched. Patching nested attributes is not supported. **Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -174,7 +174,7 @@ No authorization required -Creates a new or fully-updates an existing listings item for a selling partner. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). +Creates a new or fully-updates an existing listings item for a selling partner. **Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby diff --git a/lib/listings-items-api-model/docs/ListingsItemPutRequest.md b/lib/listings-items-api-model/docs/ListingsItemPutRequest.md index 376126ad0..e642c0350 100644 --- a/lib/listings-items-api-model/docs/ListingsItemPutRequest.md +++ b/lib/listings-items-api-model/docs/ListingsItemPutRequest.md @@ -5,5 +5,5 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **product_type** | **String** | The Amazon product type of the listings item. | **requirements** | **String** | The name of the requirements set for the provided data. | [optional] -**attributes** | **Object** | JSON object containing structured listings item attribute data keyed by attribute name. | +**attributes** | **Hash** | JSON object containing structured listings item attribute data keyed by attribute name. | diff --git a/lib/listings-items-api-model/docs/PatchOperation.md b/lib/listings-items-api-model/docs/PatchOperation.md index 7e74b2dd4..ba31df653 100644 --- a/lib/listings-items-api-model/docs/PatchOperation.md +++ b/lib/listings-items-api-model/docs/PatchOperation.md @@ -5,5 +5,5 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **op** | **String** | Type of JSON Patch operation. Supported JSON Patch operations include add, replace, and delete. See <https://tools.ietf.org/html/rfc6902>. | **path** | **String** | JSON Pointer path of the element to patch. See <https://tools.ietf.org/html/rfc6902>. | -**value** | **Array<Object>** | JSON value to add, replace, or delete. | [optional] +**value** | **Array<Hash>** | JSON value to add, replace, or delete. | [optional] diff --git a/lib/listings-items-api-model/models/decimal.rb b/lib/listings-items-api-model/models/decimal.rb index b502249ad..ce1b50762 100644 --- a/lib/listings-items-api-model/models/decimal.rb +++ b/lib/listings-items-api-model/models/decimal.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/listings-items-api-model/models/error.rb b/lib/listings-items-api-model/models/error.rb index ee0da1852..102a9ae8c 100644 --- a/lib/listings-items-api-model/models/error.rb +++ b/lib/listings-items-api-model/models/error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/listings-items-api-model/models/error_list.rb b/lib/listings-items-api-model/models/error_list.rb index 7dbd42b35..20d1b692d 100644 --- a/lib/listings-items-api-model/models/error_list.rb +++ b/lib/listings-items-api-model/models/error_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/listings-items-api-model/models/fulfillment_availability.rb b/lib/listings-items-api-model/models/fulfillment_availability.rb index a3557d21c..f557abc00 100644 --- a/lib/listings-items-api-model/models/fulfillment_availability.rb +++ b/lib/listings-items-api-model/models/fulfillment_availability.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/listings-items-api-model/models/issue.rb b/lib/listings-items-api-model/models/issue.rb index 32a11f8ed..1f3185118 100644 --- a/lib/listings-items-api-model/models/issue.rb +++ b/lib/listings-items-api-model/models/issue.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/listings-items-api-model/models/item.rb b/lib/listings-items-api-model/models/item.rb index d677d6f22..728704cf5 100644 --- a/lib/listings-items-api-model/models/item.rb +++ b/lib/listings-items-api-model/models/item.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/listings-items-api-model/models/item_attributes.rb b/lib/listings-items-api-model/models/item_attributes.rb index 7d9338293..1ace9d37e 100644 --- a/lib/listings-items-api-model/models/item_attributes.rb +++ b/lib/listings-items-api-model/models/item_attributes.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' @@ -46,12 +46,15 @@ def initialize(attributes = {}) end h[k.to_sym] = v } + + # call parent's initialize + super(attributes) end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties - invalid_properties = Array.new + invalid_properties = super invalid_properties end @@ -65,7 +68,7 @@ def valid? # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) - self.class == o.class + self.class == o.class && super(o) end # @see the `==` method @@ -92,6 +95,7 @@ def self.build_from_hash(attributes) # @return [Object] Returns the model itself def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) + super(attributes) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute @@ -165,7 +169,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash - hash = {} + hash = super self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? diff --git a/lib/listings-items-api-model/models/item_image.rb b/lib/listings-items-api-model/models/item_image.rb index 5e3c3df09..8dfa2c382 100644 --- a/lib/listings-items-api-model/models/item_image.rb +++ b/lib/listings-items-api-model/models/item_image.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/listings-items-api-model/models/item_issues.rb b/lib/listings-items-api-model/models/item_issues.rb index ef0987a95..62935c4b2 100644 --- a/lib/listings-items-api-model/models/item_issues.rb +++ b/lib/listings-items-api-model/models/item_issues.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/listings-items-api-model/models/item_offer_by_marketplace.rb b/lib/listings-items-api-model/models/item_offer_by_marketplace.rb index dc69a3969..98cbf1f2b 100644 --- a/lib/listings-items-api-model/models/item_offer_by_marketplace.rb +++ b/lib/listings-items-api-model/models/item_offer_by_marketplace.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/listings-items-api-model/models/item_offers.rb b/lib/listings-items-api-model/models/item_offers.rb index 5ff04e76f..6b6102cc8 100644 --- a/lib/listings-items-api-model/models/item_offers.rb +++ b/lib/listings-items-api-model/models/item_offers.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/listings-items-api-model/models/item_procurement.rb b/lib/listings-items-api-model/models/item_procurement.rb index 3c55a8bb7..8d3b35eff 100644 --- a/lib/listings-items-api-model/models/item_procurement.rb +++ b/lib/listings-items-api-model/models/item_procurement.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/listings-items-api-model/models/item_summaries.rb b/lib/listings-items-api-model/models/item_summaries.rb index a6bb0df33..94fd7e06f 100644 --- a/lib/listings-items-api-model/models/item_summaries.rb +++ b/lib/listings-items-api-model/models/item_summaries.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/listings-items-api-model/models/item_summary_by_marketplace.rb b/lib/listings-items-api-model/models/item_summary_by_marketplace.rb index 1043d50ec..bb929a883 100644 --- a/lib/listings-items-api-model/models/item_summary_by_marketplace.rb +++ b/lib/listings-items-api-model/models/item_summary_by_marketplace.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/listings-items-api-model/models/listings_item_patch_request.rb b/lib/listings-items-api-model/models/listings_item_patch_request.rb index 960527056..9e971aed8 100644 --- a/lib/listings-items-api-model/models/listings_item_patch_request.rb +++ b/lib/listings-items-api-model/models/listings_item_patch_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/listings-items-api-model/models/listings_item_put_request.rb b/lib/listings-items-api-model/models/listings_item_put_request.rb index f539e8b9c..2f0457f63 100644 --- a/lib/listings-items-api-model/models/listings_item_put_request.rb +++ b/lib/listings-items-api-model/models/listings_item_put_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' @@ -93,7 +93,9 @@ def initialize(attributes = {}) end if attributes.key?(:'attributes') - self.attributes = attributes[:'attributes'] + if (value = attributes[:'attributes']).is_a?(Hash) + self.attributes = value + end end end diff --git a/lib/listings-items-api-model/models/listings_item_submission_response.rb b/lib/listings-items-api-model/models/listings_item_submission_response.rb index 9561fa09d..c92989636 100644 --- a/lib/listings-items-api-model/models/listings_item_submission_response.rb +++ b/lib/listings-items-api-model/models/listings_item_submission_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/listings-items-api-model/models/money.rb b/lib/listings-items-api-model/models/money.rb index a612f76ee..96552bd28 100644 --- a/lib/listings-items-api-model/models/money.rb +++ b/lib/listings-items-api-model/models/money.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/listings-items-api-model/models/patch_operation.rb b/lib/listings-items-api-model/models/patch_operation.rb index d26a75dce..97da7ebde 100644 --- a/lib/listings-items-api-model/models/patch_operation.rb +++ b/lib/listings-items-api-model/models/patch_operation.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/listings-items-api-model/models/points.rb b/lib/listings-items-api-model/models/points.rb index e6cad6a14..a22fc9962 100644 --- a/lib/listings-items-api-model/models/points.rb +++ b/lib/listings-items-api-model/models/points.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/listings-items-api-model/spec/api/listings_api_spec.rb b/lib/listings-items-api-model/spec/api/listings_api_spec.rb index 8bfd1fe9e..1e17b9630 100644 --- a/lib/listings-items-api-model/spec/api/listings_api_spec.rb +++ b/lib/listings-items-api-model/spec/api/listings_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -32,7 +32,7 @@ end # unit tests for delete_listings_item - # Delete a listings item for a selling partner. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Delete a listings item for a selling partner. **Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param seller_id A selling partner identifier, such as a merchant account or vendor code. # @param sku A selling partner provided identifier for an Amazon listing. # @param marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. @@ -46,7 +46,7 @@ end # unit tests for get_listings_item - # Returns details about a listings item for a selling partner. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Returns details about a listings item for a selling partner. **Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param seller_id A selling partner identifier, such as a merchant account or vendor code. # @param sku A selling partner provided identifier for an Amazon listing. # @param marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. @@ -61,7 +61,7 @@ end # unit tests for patch_listings_item - # Partially update (patch) a listings item for a selling partner. Only top-level listings item attributes can be patched. Patching nested attributes is not supported. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Partially update (patch) a listings item for a selling partner. Only top-level listings item attributes can be patched. Patching nested attributes is not supported. **Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body The request body schema for the patchListingsItem operation. # @param marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. # @param seller_id A selling partner identifier, such as a merchant account or vendor code. @@ -76,7 +76,7 @@ end # unit tests for put_listings_item - # Creates a new or fully-updates an existing listings item for a selling partner. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Creates a new or fully-updates an existing listings item for a selling partner. **Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body The request body schema for the putListingsItem operation. # @param marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. # @param seller_id A selling partner identifier, such as a merchant account or vendor code. diff --git a/lib/listings-items-api-model/spec/api_client_spec.rb b/lib/listings-items-api-model/spec/api_client_spec.rb index 74e48cf40..0d5e1c90e 100644 --- a/lib/listings-items-api-model/spec/api_client_spec.rb +++ b/lib/listings-items-api-model/spec/api_client_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-items-api-model/spec/configuration_spec.rb b/lib/listings-items-api-model/spec/configuration_spec.rb index 4e1883665..68825f3e0 100644 --- a/lib/listings-items-api-model/spec/configuration_spec.rb +++ b/lib/listings-items-api-model/spec/configuration_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-items-api-model/spec/models/decimal_spec.rb b/lib/listings-items-api-model/spec/models/decimal_spec.rb index d06467049..c2b242387 100644 --- a/lib/listings-items-api-model/spec/models/decimal_spec.rb +++ b/lib/listings-items-api-model/spec/models/decimal_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-items-api-model/spec/models/error_list_spec.rb b/lib/listings-items-api-model/spec/models/error_list_spec.rb index 702207029..ff25a791f 100644 --- a/lib/listings-items-api-model/spec/models/error_list_spec.rb +++ b/lib/listings-items-api-model/spec/models/error_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-items-api-model/spec/models/error_spec.rb b/lib/listings-items-api-model/spec/models/error_spec.rb index 7f5176435..d8569eb38 100644 --- a/lib/listings-items-api-model/spec/models/error_spec.rb +++ b/lib/listings-items-api-model/spec/models/error_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-items-api-model/spec/models/fulfillment_availability_spec.rb b/lib/listings-items-api-model/spec/models/fulfillment_availability_spec.rb index bda27ba1a..6da72382b 100644 --- a/lib/listings-items-api-model/spec/models/fulfillment_availability_spec.rb +++ b/lib/listings-items-api-model/spec/models/fulfillment_availability_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-items-api-model/spec/models/issue_spec.rb b/lib/listings-items-api-model/spec/models/issue_spec.rb index 7ff34a451..95e96da58 100644 --- a/lib/listings-items-api-model/spec/models/issue_spec.rb +++ b/lib/listings-items-api-model/spec/models/issue_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-items-api-model/spec/models/item_attributes_spec.rb b/lib/listings-items-api-model/spec/models/item_attributes_spec.rb index 16375c149..061c12d56 100644 --- a/lib/listings-items-api-model/spec/models/item_attributes_spec.rb +++ b/lib/listings-items-api-model/spec/models/item_attributes_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-items-api-model/spec/models/item_image_spec.rb b/lib/listings-items-api-model/spec/models/item_image_spec.rb index ebd047c3f..8e78be026 100644 --- a/lib/listings-items-api-model/spec/models/item_image_spec.rb +++ b/lib/listings-items-api-model/spec/models/item_image_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-items-api-model/spec/models/item_issues_spec.rb b/lib/listings-items-api-model/spec/models/item_issues_spec.rb index 80e7dd201..3fbad373d 100644 --- a/lib/listings-items-api-model/spec/models/item_issues_spec.rb +++ b/lib/listings-items-api-model/spec/models/item_issues_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-items-api-model/spec/models/item_offer_by_marketplace_spec.rb b/lib/listings-items-api-model/spec/models/item_offer_by_marketplace_spec.rb index bc592712d..7f5a6d776 100644 --- a/lib/listings-items-api-model/spec/models/item_offer_by_marketplace_spec.rb +++ b/lib/listings-items-api-model/spec/models/item_offer_by_marketplace_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-items-api-model/spec/models/item_offers_spec.rb b/lib/listings-items-api-model/spec/models/item_offers_spec.rb index 5e4aa3a28..079e5e344 100644 --- a/lib/listings-items-api-model/spec/models/item_offers_spec.rb +++ b/lib/listings-items-api-model/spec/models/item_offers_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-items-api-model/spec/models/item_procurement_spec.rb b/lib/listings-items-api-model/spec/models/item_procurement_spec.rb index 2583e7e7d..503454d94 100644 --- a/lib/listings-items-api-model/spec/models/item_procurement_spec.rb +++ b/lib/listings-items-api-model/spec/models/item_procurement_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-items-api-model/spec/models/item_spec.rb b/lib/listings-items-api-model/spec/models/item_spec.rb index c79c7aeb3..591def9f8 100644 --- a/lib/listings-items-api-model/spec/models/item_spec.rb +++ b/lib/listings-items-api-model/spec/models/item_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-items-api-model/spec/models/item_summaries_spec.rb b/lib/listings-items-api-model/spec/models/item_summaries_spec.rb index 4aa7a82c7..cdc91e101 100644 --- a/lib/listings-items-api-model/spec/models/item_summaries_spec.rb +++ b/lib/listings-items-api-model/spec/models/item_summaries_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-items-api-model/spec/models/item_summary_by_marketplace_spec.rb b/lib/listings-items-api-model/spec/models/item_summary_by_marketplace_spec.rb index a94ea7b0d..6a3100d27 100644 --- a/lib/listings-items-api-model/spec/models/item_summary_by_marketplace_spec.rb +++ b/lib/listings-items-api-model/spec/models/item_summary_by_marketplace_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-items-api-model/spec/models/listings_item_patch_request_spec.rb b/lib/listings-items-api-model/spec/models/listings_item_patch_request_spec.rb index 7c9cbc546..dff4bb7ff 100644 --- a/lib/listings-items-api-model/spec/models/listings_item_patch_request_spec.rb +++ b/lib/listings-items-api-model/spec/models/listings_item_patch_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-items-api-model/spec/models/listings_item_put_request_spec.rb b/lib/listings-items-api-model/spec/models/listings_item_put_request_spec.rb index beeca360b..5b9406aaa 100644 --- a/lib/listings-items-api-model/spec/models/listings_item_put_request_spec.rb +++ b/lib/listings-items-api-model/spec/models/listings_item_put_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-items-api-model/spec/models/listings_item_submission_response_spec.rb b/lib/listings-items-api-model/spec/models/listings_item_submission_response_spec.rb index 08d414e9d..8212570f5 100644 --- a/lib/listings-items-api-model/spec/models/listings_item_submission_response_spec.rb +++ b/lib/listings-items-api-model/spec/models/listings_item_submission_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-items-api-model/spec/models/money_spec.rb b/lib/listings-items-api-model/spec/models/money_spec.rb index 263e62ce1..b84d219e0 100644 --- a/lib/listings-items-api-model/spec/models/money_spec.rb +++ b/lib/listings-items-api-model/spec/models/money_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-items-api-model/spec/models/patch_operation_spec.rb b/lib/listings-items-api-model/spec/models/patch_operation_spec.rb index 83f6729f9..ab87bb2fb 100644 --- a/lib/listings-items-api-model/spec/models/patch_operation_spec.rb +++ b/lib/listings-items-api-model/spec/models/patch_operation_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-items-api-model/spec/models/points_spec.rb b/lib/listings-items-api-model/spec/models/points_spec.rb index 06ac2b461..28bb0038f 100644 --- a/lib/listings-items-api-model/spec/models/points_spec.rb +++ b/lib/listings-items-api-model/spec/models/points_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-items-api-model/spec/spec_helper.rb b/lib/listings-items-api-model/spec/spec_helper.rb index 22089b0f6..91d340f47 100644 --- a/lib/listings-items-api-model/spec/spec_helper.rb +++ b/lib/listings-items-api-model/spec/spec_helper.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # load the gem diff --git a/lib/listings-items-api-model/version.rb b/lib/listings-items-api-model/version.rb index a70c7445f..da73620bc 100644 --- a/lib/listings-items-api-model/version.rb +++ b/lib/listings-items-api-model/version.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::ListingsItemsApiModel diff --git a/lib/listings-restrictions-api-model.rb b/lib/listings-restrictions-api-model.rb index 22f510842..656c45953 100644 --- a/lib/listings-restrictions-api-model.rb +++ b/lib/listings-restrictions-api-model.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # Common files diff --git a/lib/listings-restrictions-api-model/.swagger-codegen/VERSION b/lib/listings-restrictions-api-model/.swagger-codegen/VERSION index b39b0b9e0..161761765 100644 --- a/lib/listings-restrictions-api-model/.swagger-codegen/VERSION +++ b/lib/listings-restrictions-api-model/.swagger-codegen/VERSION @@ -1 +1 @@ -3.0.24 \ No newline at end of file +3.0.46 \ No newline at end of file diff --git a/lib/listings-restrictions-api-model/api/listings_api.rb b/lib/listings-restrictions-api-model/api/listings_api.rb index e87438f4c..b613dd2b9 100644 --- a/lib/listings-restrictions-api-model/api/listings_api.rb +++ b/lib/listings-restrictions-api-model/api/listings_api.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::ListingsRestrictionsApiModel diff --git a/lib/listings-restrictions-api-model/api_client.rb b/lib/listings-restrictions-api-model/api_client.rb index be52304c1..936f0adeb 100644 --- a/lib/listings-restrictions-api-model/api_client.rb +++ b/lib/listings-restrictions-api-model/api_client.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/listings-restrictions-api-model/api_error.rb b/lib/listings-restrictions-api-model/api_error.rb index 2b844f4d6..d4bb996db 100644 --- a/lib/listings-restrictions-api-model/api_error.rb +++ b/lib/listings-restrictions-api-model/api_error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::ListingsRestrictionsApiModel diff --git a/lib/listings-restrictions-api-model/configuration.rb b/lib/listings-restrictions-api-model/configuration.rb index ab0e20215..88fb482f3 100644 --- a/lib/listings-restrictions-api-model/configuration.rb +++ b/lib/listings-restrictions-api-model/configuration.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::ListingsRestrictionsApiModel diff --git a/lib/listings-restrictions-api-model/models/error.rb b/lib/listings-restrictions-api-model/models/error.rb index 211575785..93f61cc6b 100644 --- a/lib/listings-restrictions-api-model/models/error.rb +++ b/lib/listings-restrictions-api-model/models/error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/listings-restrictions-api-model/models/error_list.rb b/lib/listings-restrictions-api-model/models/error_list.rb index 78de78fe9..39071c5b4 100644 --- a/lib/listings-restrictions-api-model/models/error_list.rb +++ b/lib/listings-restrictions-api-model/models/error_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/listings-restrictions-api-model/models/link.rb b/lib/listings-restrictions-api-model/models/link.rb index 41dae6836..c04ef8c58 100644 --- a/lib/listings-restrictions-api-model/models/link.rb +++ b/lib/listings-restrictions-api-model/models/link.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/listings-restrictions-api-model/models/reason.rb b/lib/listings-restrictions-api-model/models/reason.rb index a8d93da78..dfdf63fe2 100644 --- a/lib/listings-restrictions-api-model/models/reason.rb +++ b/lib/listings-restrictions-api-model/models/reason.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/listings-restrictions-api-model/models/restriction.rb b/lib/listings-restrictions-api-model/models/restriction.rb index f03b5df62..712cbb12a 100644 --- a/lib/listings-restrictions-api-model/models/restriction.rb +++ b/lib/listings-restrictions-api-model/models/restriction.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/listings-restrictions-api-model/models/restriction_list.rb b/lib/listings-restrictions-api-model/models/restriction_list.rb index d168f7b69..898e2f5a8 100644 --- a/lib/listings-restrictions-api-model/models/restriction_list.rb +++ b/lib/listings-restrictions-api-model/models/restriction_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/listings-restrictions-api-model/spec/api/listings_api_spec.rb b/lib/listings-restrictions-api-model/spec/api/listings_api_spec.rb index 8ff380aa1..f7c90080f 100644 --- a/lib/listings-restrictions-api-model/spec/api/listings_api_spec.rb +++ b/lib/listings-restrictions-api-model/spec/api/listings_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-restrictions-api-model/spec/api_client_spec.rb b/lib/listings-restrictions-api-model/spec/api_client_spec.rb index 6982042dd..af424b153 100644 --- a/lib/listings-restrictions-api-model/spec/api_client_spec.rb +++ b/lib/listings-restrictions-api-model/spec/api_client_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-restrictions-api-model/spec/configuration_spec.rb b/lib/listings-restrictions-api-model/spec/configuration_spec.rb index a7824ab47..774ba478d 100644 --- a/lib/listings-restrictions-api-model/spec/configuration_spec.rb +++ b/lib/listings-restrictions-api-model/spec/configuration_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-restrictions-api-model/spec/models/error_list_spec.rb b/lib/listings-restrictions-api-model/spec/models/error_list_spec.rb index 64c42ff71..b2e86a933 100644 --- a/lib/listings-restrictions-api-model/spec/models/error_list_spec.rb +++ b/lib/listings-restrictions-api-model/spec/models/error_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-restrictions-api-model/spec/models/error_spec.rb b/lib/listings-restrictions-api-model/spec/models/error_spec.rb index a29a3c319..c8a2ba963 100644 --- a/lib/listings-restrictions-api-model/spec/models/error_spec.rb +++ b/lib/listings-restrictions-api-model/spec/models/error_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-restrictions-api-model/spec/models/link_spec.rb b/lib/listings-restrictions-api-model/spec/models/link_spec.rb index d5a7ce1d4..ef34c3bca 100644 --- a/lib/listings-restrictions-api-model/spec/models/link_spec.rb +++ b/lib/listings-restrictions-api-model/spec/models/link_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-restrictions-api-model/spec/models/reason_spec.rb b/lib/listings-restrictions-api-model/spec/models/reason_spec.rb index 671d8c1bd..c1a45f163 100644 --- a/lib/listings-restrictions-api-model/spec/models/reason_spec.rb +++ b/lib/listings-restrictions-api-model/spec/models/reason_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-restrictions-api-model/spec/models/restriction_list_spec.rb b/lib/listings-restrictions-api-model/spec/models/restriction_list_spec.rb index f0a80e643..103fcd0a6 100644 --- a/lib/listings-restrictions-api-model/spec/models/restriction_list_spec.rb +++ b/lib/listings-restrictions-api-model/spec/models/restriction_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-restrictions-api-model/spec/models/restriction_spec.rb b/lib/listings-restrictions-api-model/spec/models/restriction_spec.rb index f83da0970..d0c08900d 100644 --- a/lib/listings-restrictions-api-model/spec/models/restriction_spec.rb +++ b/lib/listings-restrictions-api-model/spec/models/restriction_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/listings-restrictions-api-model/spec/spec_helper.rb b/lib/listings-restrictions-api-model/spec/spec_helper.rb index edacb54e1..e8efecd4c 100644 --- a/lib/listings-restrictions-api-model/spec/spec_helper.rb +++ b/lib/listings-restrictions-api-model/spec/spec_helper.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # load the gem diff --git a/lib/listings-restrictions-api-model/version.rb b/lib/listings-restrictions-api-model/version.rb index 3b54e7913..c3b29ebd5 100644 --- a/lib/listings-restrictions-api-model/version.rb +++ b/lib/listings-restrictions-api-model/version.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-08-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::ListingsRestrictionsApiModel diff --git a/lib/merchant-fulfillment-api-model.rb b/lib/merchant-fulfillment-api-model.rb index be0747959..8c0a385a3 100644 --- a/lib/merchant-fulfillment-api-model.rb +++ b/lib/merchant-fulfillment-api-model.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # Common files diff --git a/lib/merchant-fulfillment-api-model/.swagger-codegen/VERSION b/lib/merchant-fulfillment-api-model/.swagger-codegen/VERSION index b39b0b9e0..161761765 100644 --- a/lib/merchant-fulfillment-api-model/.swagger-codegen/VERSION +++ b/lib/merchant-fulfillment-api-model/.swagger-codegen/VERSION @@ -1 +1 @@ -3.0.24 \ No newline at end of file +3.0.46 \ No newline at end of file diff --git a/lib/merchant-fulfillment-api-model/api/merchant_fulfillment_api.rb b/lib/merchant-fulfillment-api-model/api/merchant_fulfillment_api.rb index d9b3a90a8..0e90b411a 100644 --- a/lib/merchant-fulfillment-api-model/api/merchant_fulfillment_api.rb +++ b/lib/merchant-fulfillment-api-model/api/merchant_fulfillment_api.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::MerchantFulfillmentApiModel @@ -16,7 +16,7 @@ class MerchantFulfillmentApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Cancel the shipment indicated by the specified shipment identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Cancel the shipment indicated by the specified shipment identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param shipment_id The Amazon-defined shipment identifier for the shipment to cancel. # @param [Hash] opts the optional parameters # @return [CancelShipmentResponse] @@ -25,7 +25,7 @@ def cancel_shipment(shipment_id, opts = {}) data end - # Cancel the shipment indicated by the specified shipment identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Cancel the shipment indicated by the specified shipment identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param shipment_id The Amazon-defined shipment identifier for the shipment to cancel. # @param [Hash] opts the optional parameters # @return [Array<(CancelShipmentResponse, Integer, Hash)>] CancelShipmentResponse data, response status code and response headers @@ -70,7 +70,7 @@ def cancel_shipment_with_http_info(shipment_id, opts = {}) end return data, status_code, headers end - # Cancel the shipment indicated by the specified shipment identifer. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Cancel the shipment indicated by the specified shipment identifer. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param shipment_id The Amazon-defined shipment identifier for the shipment to cancel. # @param [Hash] opts the optional parameters # @return [CancelShipmentResponse] @@ -79,7 +79,7 @@ def cancel_shipment_old(shipment_id, opts = {}) data end - # Cancel the shipment indicated by the specified shipment identifer. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Cancel the shipment indicated by the specified shipment identifer. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param shipment_id The Amazon-defined shipment identifier for the shipment to cancel. # @param [Hash] opts the optional parameters # @return [Array<(CancelShipmentResponse, Integer, Hash)>] CancelShipmentResponse data, response status code and response headers @@ -124,7 +124,7 @@ def cancel_shipment_old_with_http_info(shipment_id, opts = {}) end return data, status_code, headers end - # Create a shipment with the information provided. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Create a shipment with the information provided. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [CreateShipmentResponse] @@ -133,7 +133,7 @@ def create_shipment(body, opts = {}) data end - # Create a shipment with the information provided. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Create a shipment with the information provided. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [Array<(CreateShipmentResponse, Integer, Hash)>] CreateShipmentResponse data, response status code and response headers @@ -180,7 +180,7 @@ def create_shipment_with_http_info(body, opts = {}) end return data, status_code, headers end - # Gets a list of additional seller inputs required for a ship method. This is generally used for international shipping. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Gets a list of additional seller inputs required for a ship method. This is generally used for international shipping. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [GetAdditionalSellerInputsResponse] @@ -189,7 +189,7 @@ def get_additional_seller_inputs(body, opts = {}) data end - # Gets a list of additional seller inputs required for a ship method. This is generally used for international shipping. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Gets a list of additional seller inputs required for a ship method. This is generally used for international shipping. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [Array<(GetAdditionalSellerInputsResponse, Integer, Hash)>] GetAdditionalSellerInputsResponse data, response status code and response headers @@ -236,7 +236,7 @@ def get_additional_seller_inputs_with_http_info(body, opts = {}) end return data, status_code, headers end - # Get a list of additional seller inputs required for a ship method. This is generally used for international shipping. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Get a list of additional seller inputs required for a ship method. This is generally used for international shipping. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [GetAdditionalSellerInputsResponse] @@ -245,7 +245,7 @@ def get_additional_seller_inputs_old(body, opts = {}) data end - # Get a list of additional seller inputs required for a ship method. This is generally used for international shipping. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Get a list of additional seller inputs required for a ship method. This is generally used for international shipping. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [Array<(GetAdditionalSellerInputsResponse, Integer, Hash)>] GetAdditionalSellerInputsResponse data, response status code and response headers @@ -292,7 +292,7 @@ def get_additional_seller_inputs_old_with_http_info(body, opts = {}) end return data, status_code, headers end - # Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [GetEligibleShipmentServicesResponse] @@ -301,7 +301,7 @@ def get_eligible_shipment_services(body, opts = {}) data end - # Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [Array<(GetEligibleShipmentServicesResponse, Integer, Hash)>] GetEligibleShipmentServicesResponse data, response status code and response headers @@ -348,7 +348,7 @@ def get_eligible_shipment_services_with_http_info(body, opts = {}) end return data, status_code, headers end - # Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [GetEligibleShipmentServicesResponse] @@ -357,7 +357,7 @@ def get_eligible_shipment_services_old(body, opts = {}) data end - # Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [Array<(GetEligibleShipmentServicesResponse, Integer, Hash)>] GetEligibleShipmentServicesResponse data, response status code and response headers @@ -404,7 +404,7 @@ def get_eligible_shipment_services_old_with_http_info(body, opts = {}) end return data, status_code, headers end - # Returns the shipment information for an existing shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns the shipment information for an existing shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param shipment_id The Amazon-defined shipment identifier for the shipment. # @param [Hash] opts the optional parameters # @return [GetShipmentResponse] @@ -413,7 +413,7 @@ def get_shipment(shipment_id, opts = {}) data end - # Returns the shipment information for an existing shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns the shipment information for an existing shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param shipment_id The Amazon-defined shipment identifier for the shipment. # @param [Hash] opts the optional parameters # @return [Array<(GetShipmentResponse, Integer, Hash)>] GetShipmentResponse data, response status code and response headers diff --git a/lib/merchant-fulfillment-api-model/api_client.rb b/lib/merchant-fulfillment-api-model/api_client.rb index d9d7c7087..f311f3268 100644 --- a/lib/merchant-fulfillment-api-model/api_client.rb +++ b/lib/merchant-fulfillment-api-model/api_client.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/api_error.rb b/lib/merchant-fulfillment-api-model/api_error.rb index 7427e9697..322bcbb55 100644 --- a/lib/merchant-fulfillment-api-model/api_error.rb +++ b/lib/merchant-fulfillment-api-model/api_error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::MerchantFulfillmentApiModel diff --git a/lib/merchant-fulfillment-api-model/configuration.rb b/lib/merchant-fulfillment-api-model/configuration.rb index 0719a2514..35894c6a4 100644 --- a/lib/merchant-fulfillment-api-model/configuration.rb +++ b/lib/merchant-fulfillment-api-model/configuration.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::MerchantFulfillmentApiModel diff --git a/lib/merchant-fulfillment-api-model/docs/MerchantFulfillmentApi.md b/lib/merchant-fulfillment-api-model/docs/MerchantFulfillmentApi.md index 7a7d492be..22266e1bc 100644 --- a/lib/merchant-fulfillment-api-model/docs/MerchantFulfillmentApi.md +++ b/lib/merchant-fulfillment-api-model/docs/MerchantFulfillmentApi.md @@ -18,7 +18,7 @@ Method | HTTP request | Description -Cancel the shipment indicated by the specified shipment identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Cancel the shipment indicated by the specified shipment identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -63,7 +63,7 @@ No authorization required -Cancel the shipment indicated by the specified shipment identifer. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Cancel the shipment indicated by the specified shipment identifer. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -108,7 +108,7 @@ No authorization required -Create a shipment with the information provided. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Create a shipment with the information provided. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -153,7 +153,7 @@ No authorization required -Gets a list of additional seller inputs required for a ship method. This is generally used for international shipping. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Gets a list of additional seller inputs required for a ship method. This is generally used for international shipping. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -198,7 +198,7 @@ No authorization required -Get a list of additional seller inputs required for a ship method. This is generally used for international shipping. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Get a list of additional seller inputs required for a ship method. This is generally used for international shipping. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -243,7 +243,7 @@ No authorization required -Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -288,7 +288,7 @@ No authorization required -Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -333,7 +333,7 @@ No authorization required -Returns the shipment information for an existing shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns the shipment information for an existing shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby diff --git a/lib/merchant-fulfillment-api-model/models/additional_inputs.rb b/lib/merchant-fulfillment-api-model/models/additional_inputs.rb index f30621b9b..9b16f55e2 100644 --- a/lib/merchant-fulfillment-api-model/models/additional_inputs.rb +++ b/lib/merchant-fulfillment-api-model/models/additional_inputs.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/additional_inputs_list.rb b/lib/merchant-fulfillment-api-model/models/additional_inputs_list.rb index c0792d960..de54faf77 100644 --- a/lib/merchant-fulfillment-api-model/models/additional_inputs_list.rb +++ b/lib/merchant-fulfillment-api-model/models/additional_inputs_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/additional_seller_input.rb b/lib/merchant-fulfillment-api-model/models/additional_seller_input.rb index 54a875f14..3220f42e8 100644 --- a/lib/merchant-fulfillment-api-model/models/additional_seller_input.rb +++ b/lib/merchant-fulfillment-api-model/models/additional_seller_input.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/additional_seller_inputs.rb b/lib/merchant-fulfillment-api-model/models/additional_seller_inputs.rb index cbbf74846..867a66481 100644 --- a/lib/merchant-fulfillment-api-model/models/additional_seller_inputs.rb +++ b/lib/merchant-fulfillment-api-model/models/additional_seller_inputs.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/additional_seller_inputs_list.rb b/lib/merchant-fulfillment-api-model/models/additional_seller_inputs_list.rb index 8191d697a..6b4644cea 100644 --- a/lib/merchant-fulfillment-api-model/models/additional_seller_inputs_list.rb +++ b/lib/merchant-fulfillment-api-model/models/additional_seller_inputs_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/address.rb b/lib/merchant-fulfillment-api-model/models/address.rb index 5789a5692..f0351e6c9 100644 --- a/lib/merchant-fulfillment-api-model/models/address.rb +++ b/lib/merchant-fulfillment-api-model/models/address.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/address_line1.rb b/lib/merchant-fulfillment-api-model/models/address_line1.rb index d6c09d798..0f77a004d 100644 --- a/lib/merchant-fulfillment-api-model/models/address_line1.rb +++ b/lib/merchant-fulfillment-api-model/models/address_line1.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/address_line2.rb b/lib/merchant-fulfillment-api-model/models/address_line2.rb index e2214f7b1..96acf1563 100644 --- a/lib/merchant-fulfillment-api-model/models/address_line2.rb +++ b/lib/merchant-fulfillment-api-model/models/address_line2.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/address_line3.rb b/lib/merchant-fulfillment-api-model/models/address_line3.rb index 2fa020385..c4d454b5a 100644 --- a/lib/merchant-fulfillment-api-model/models/address_line3.rb +++ b/lib/merchant-fulfillment-api-model/models/address_line3.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/address_name.rb b/lib/merchant-fulfillment-api-model/models/address_name.rb index e04a96924..e0c6b4002 100644 --- a/lib/merchant-fulfillment-api-model/models/address_name.rb +++ b/lib/merchant-fulfillment-api-model/models/address_name.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/amazon_order_id.rb b/lib/merchant-fulfillment-api-model/models/amazon_order_id.rb index 2358334e1..8090be6d8 100644 --- a/lib/merchant-fulfillment-api-model/models/amazon_order_id.rb +++ b/lib/merchant-fulfillment-api-model/models/amazon_order_id.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/available_carrier_will_pick_up_option.rb b/lib/merchant-fulfillment-api-model/models/available_carrier_will_pick_up_option.rb index 4a0483e4c..331d4dc06 100644 --- a/lib/merchant-fulfillment-api-model/models/available_carrier_will_pick_up_option.rb +++ b/lib/merchant-fulfillment-api-model/models/available_carrier_will_pick_up_option.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/available_carrier_will_pick_up_options_list.rb b/lib/merchant-fulfillment-api-model/models/available_carrier_will_pick_up_options_list.rb index c3defb158..0fde3f162 100644 --- a/lib/merchant-fulfillment-api-model/models/available_carrier_will_pick_up_options_list.rb +++ b/lib/merchant-fulfillment-api-model/models/available_carrier_will_pick_up_options_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/available_delivery_experience_option.rb b/lib/merchant-fulfillment-api-model/models/available_delivery_experience_option.rb index c3f4066dc..2f52ca366 100644 --- a/lib/merchant-fulfillment-api-model/models/available_delivery_experience_option.rb +++ b/lib/merchant-fulfillment-api-model/models/available_delivery_experience_option.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/available_delivery_experience_options_list.rb b/lib/merchant-fulfillment-api-model/models/available_delivery_experience_options_list.rb index e9f967245..bc171dd7d 100644 --- a/lib/merchant-fulfillment-api-model/models/available_delivery_experience_options_list.rb +++ b/lib/merchant-fulfillment-api-model/models/available_delivery_experience_options_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/available_format_options_for_label.rb b/lib/merchant-fulfillment-api-model/models/available_format_options_for_label.rb index f88fb8b3f..bef893865 100644 --- a/lib/merchant-fulfillment-api-model/models/available_format_options_for_label.rb +++ b/lib/merchant-fulfillment-api-model/models/available_format_options_for_label.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/available_format_options_for_label_list.rb b/lib/merchant-fulfillment-api-model/models/available_format_options_for_label_list.rb index 31f60ed70..c4429f0f4 100644 --- a/lib/merchant-fulfillment-api-model/models/available_format_options_for_label_list.rb +++ b/lib/merchant-fulfillment-api-model/models/available_format_options_for_label_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/available_shipping_service_options.rb b/lib/merchant-fulfillment-api-model/models/available_shipping_service_options.rb index ff6d6c179..f29a4c0a7 100644 --- a/lib/merchant-fulfillment-api-model/models/available_shipping_service_options.rb +++ b/lib/merchant-fulfillment-api-model/models/available_shipping_service_options.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/cancel_shipment_response.rb b/lib/merchant-fulfillment-api-model/models/cancel_shipment_response.rb index 006494080..9ae8056c5 100644 --- a/lib/merchant-fulfillment-api-model/models/cancel_shipment_response.rb +++ b/lib/merchant-fulfillment-api-model/models/cancel_shipment_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/carrier_will_pick_up_option.rb b/lib/merchant-fulfillment-api-model/models/carrier_will_pick_up_option.rb index 8c6f62e91..c4da13b5f 100644 --- a/lib/merchant-fulfillment-api-model/models/carrier_will_pick_up_option.rb +++ b/lib/merchant-fulfillment-api-model/models/carrier_will_pick_up_option.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/city.rb b/lib/merchant-fulfillment-api-model/models/city.rb index f1fd7e61d..6bb5a6789 100644 --- a/lib/merchant-fulfillment-api-model/models/city.rb +++ b/lib/merchant-fulfillment-api-model/models/city.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/constraint.rb b/lib/merchant-fulfillment-api-model/models/constraint.rb index 7e6e266bd..e04d1ff1f 100644 --- a/lib/merchant-fulfillment-api-model/models/constraint.rb +++ b/lib/merchant-fulfillment-api-model/models/constraint.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/constraints.rb b/lib/merchant-fulfillment-api-model/models/constraints.rb index 7c4fb1509..6ea43373b 100644 --- a/lib/merchant-fulfillment-api-model/models/constraints.rb +++ b/lib/merchant-fulfillment-api-model/models/constraints.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/country_code.rb b/lib/merchant-fulfillment-api-model/models/country_code.rb index 8895aa18d..287040aab 100644 --- a/lib/merchant-fulfillment-api-model/models/country_code.rb +++ b/lib/merchant-fulfillment-api-model/models/country_code.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/create_shipment_request.rb b/lib/merchant-fulfillment-api-model/models/create_shipment_request.rb index bc2abc48d..93253e2d5 100644 --- a/lib/merchant-fulfillment-api-model/models/create_shipment_request.rb +++ b/lib/merchant-fulfillment-api-model/models/create_shipment_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/create_shipment_response.rb b/lib/merchant-fulfillment-api-model/models/create_shipment_response.rb index b1cb0ca19..f58f7b41b 100644 --- a/lib/merchant-fulfillment-api-model/models/create_shipment_response.rb +++ b/lib/merchant-fulfillment-api-model/models/create_shipment_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/currency_amount.rb b/lib/merchant-fulfillment-api-model/models/currency_amount.rb index 5c8932600..752d7059b 100644 --- a/lib/merchant-fulfillment-api-model/models/currency_amount.rb +++ b/lib/merchant-fulfillment-api-model/models/currency_amount.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/custom_text_for_label.rb b/lib/merchant-fulfillment-api-model/models/custom_text_for_label.rb index 132b0174e..da7df76a7 100644 --- a/lib/merchant-fulfillment-api-model/models/custom_text_for_label.rb +++ b/lib/merchant-fulfillment-api-model/models/custom_text_for_label.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/delivery_experience_option.rb b/lib/merchant-fulfillment-api-model/models/delivery_experience_option.rb index 3a9835ac8..62541001e 100644 --- a/lib/merchant-fulfillment-api-model/models/delivery_experience_option.rb +++ b/lib/merchant-fulfillment-api-model/models/delivery_experience_option.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/delivery_experience_type.rb b/lib/merchant-fulfillment-api-model/models/delivery_experience_type.rb index c8d895001..a14c3ebb5 100644 --- a/lib/merchant-fulfillment-api-model/models/delivery_experience_type.rb +++ b/lib/merchant-fulfillment-api-model/models/delivery_experience_type.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/district_or_county.rb b/lib/merchant-fulfillment-api-model/models/district_or_county.rb index 5c5bbcfee..bcf3a0ea8 100644 --- a/lib/merchant-fulfillment-api-model/models/district_or_county.rb +++ b/lib/merchant-fulfillment-api-model/models/district_or_county.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/email_address.rb b/lib/merchant-fulfillment-api-model/models/email_address.rb index 864974da5..a9cff0ab3 100644 --- a/lib/merchant-fulfillment-api-model/models/email_address.rb +++ b/lib/merchant-fulfillment-api-model/models/email_address.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/error.rb b/lib/merchant-fulfillment-api-model/models/error.rb index 2a1d16c5e..2b27721ec 100644 --- a/lib/merchant-fulfillment-api-model/models/error.rb +++ b/lib/merchant-fulfillment-api-model/models/error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/error_list.rb b/lib/merchant-fulfillment-api-model/models/error_list.rb index 0af71f6df..22ebae800 100644 --- a/lib/merchant-fulfillment-api-model/models/error_list.rb +++ b/lib/merchant-fulfillment-api-model/models/error_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/file_contents.rb b/lib/merchant-fulfillment-api-model/models/file_contents.rb index a13ecb593..2a93933ee 100644 --- a/lib/merchant-fulfillment-api-model/models/file_contents.rb +++ b/lib/merchant-fulfillment-api-model/models/file_contents.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/file_type.rb b/lib/merchant-fulfillment-api-model/models/file_type.rb index 61bd7c0f8..9b53422a5 100644 --- a/lib/merchant-fulfillment-api-model/models/file_type.rb +++ b/lib/merchant-fulfillment-api-model/models/file_type.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/get_additional_seller_inputs_request.rb b/lib/merchant-fulfillment-api-model/models/get_additional_seller_inputs_request.rb index 7e0f400e2..35a69e58e 100644 --- a/lib/merchant-fulfillment-api-model/models/get_additional_seller_inputs_request.rb +++ b/lib/merchant-fulfillment-api-model/models/get_additional_seller_inputs_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/get_additional_seller_inputs_response.rb b/lib/merchant-fulfillment-api-model/models/get_additional_seller_inputs_response.rb index 5a98c3894..b9081c50e 100644 --- a/lib/merchant-fulfillment-api-model/models/get_additional_seller_inputs_response.rb +++ b/lib/merchant-fulfillment-api-model/models/get_additional_seller_inputs_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/get_additional_seller_inputs_result.rb b/lib/merchant-fulfillment-api-model/models/get_additional_seller_inputs_result.rb index 3744a896d..c28ef3d7d 100644 --- a/lib/merchant-fulfillment-api-model/models/get_additional_seller_inputs_result.rb +++ b/lib/merchant-fulfillment-api-model/models/get_additional_seller_inputs_result.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/get_eligible_shipment_services_request.rb b/lib/merchant-fulfillment-api-model/models/get_eligible_shipment_services_request.rb index b412f720d..fd269c708 100644 --- a/lib/merchant-fulfillment-api-model/models/get_eligible_shipment_services_request.rb +++ b/lib/merchant-fulfillment-api-model/models/get_eligible_shipment_services_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/get_eligible_shipment_services_response.rb b/lib/merchant-fulfillment-api-model/models/get_eligible_shipment_services_response.rb index bb882c4c2..b0f5850b7 100644 --- a/lib/merchant-fulfillment-api-model/models/get_eligible_shipment_services_response.rb +++ b/lib/merchant-fulfillment-api-model/models/get_eligible_shipment_services_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/get_eligible_shipment_services_result.rb b/lib/merchant-fulfillment-api-model/models/get_eligible_shipment_services_result.rb index 4b7d81983..c1d813ca1 100644 --- a/lib/merchant-fulfillment-api-model/models/get_eligible_shipment_services_result.rb +++ b/lib/merchant-fulfillment-api-model/models/get_eligible_shipment_services_result.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/get_shipment_response.rb b/lib/merchant-fulfillment-api-model/models/get_shipment_response.rb index 8901c7f8c..f9a1e0971 100644 --- a/lib/merchant-fulfillment-api-model/models/get_shipment_response.rb +++ b/lib/merchant-fulfillment-api-model/models/get_shipment_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/hazmat_type.rb b/lib/merchant-fulfillment-api-model/models/hazmat_type.rb index cc56e51f0..b830ea183 100644 --- a/lib/merchant-fulfillment-api-model/models/hazmat_type.rb +++ b/lib/merchant-fulfillment-api-model/models/hazmat_type.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/input_target_type.rb b/lib/merchant-fulfillment-api-model/models/input_target_type.rb index 4203b849d..eaf68cc8c 100644 --- a/lib/merchant-fulfillment-api-model/models/input_target_type.rb +++ b/lib/merchant-fulfillment-api-model/models/input_target_type.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/item.rb b/lib/merchant-fulfillment-api-model/models/item.rb index 11c6b760a..2be0996ea 100644 --- a/lib/merchant-fulfillment-api-model/models/item.rb +++ b/lib/merchant-fulfillment-api-model/models/item.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/item_description.rb b/lib/merchant-fulfillment-api-model/models/item_description.rb index f87df1352..40ab24f14 100644 --- a/lib/merchant-fulfillment-api-model/models/item_description.rb +++ b/lib/merchant-fulfillment-api-model/models/item_description.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/item_level_fields.rb b/lib/merchant-fulfillment-api-model/models/item_level_fields.rb index 8965414a8..9884b02cc 100644 --- a/lib/merchant-fulfillment-api-model/models/item_level_fields.rb +++ b/lib/merchant-fulfillment-api-model/models/item_level_fields.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/item_level_fields_list.rb b/lib/merchant-fulfillment-api-model/models/item_level_fields_list.rb index 48c0ba96c..8ad680221 100644 --- a/lib/merchant-fulfillment-api-model/models/item_level_fields_list.rb +++ b/lib/merchant-fulfillment-api-model/models/item_level_fields_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/item_list.rb b/lib/merchant-fulfillment-api-model/models/item_list.rb index 46c071cc0..6c0226608 100644 --- a/lib/merchant-fulfillment-api-model/models/item_list.rb +++ b/lib/merchant-fulfillment-api-model/models/item_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/item_quantity.rb b/lib/merchant-fulfillment-api-model/models/item_quantity.rb index 98dec8129..8f3e327b9 100644 --- a/lib/merchant-fulfillment-api-model/models/item_quantity.rb +++ b/lib/merchant-fulfillment-api-model/models/item_quantity.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/label.rb b/lib/merchant-fulfillment-api-model/models/label.rb index 018c7269d..c2615809c 100644 --- a/lib/merchant-fulfillment-api-model/models/label.rb +++ b/lib/merchant-fulfillment-api-model/models/label.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/label_customization.rb b/lib/merchant-fulfillment-api-model/models/label_customization.rb index b32f9306a..4e5f3b2fe 100644 --- a/lib/merchant-fulfillment-api-model/models/label_customization.rb +++ b/lib/merchant-fulfillment-api-model/models/label_customization.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/label_dimension.rb b/lib/merchant-fulfillment-api-model/models/label_dimension.rb index 700874f5a..4947e9a6b 100644 --- a/lib/merchant-fulfillment-api-model/models/label_dimension.rb +++ b/lib/merchant-fulfillment-api-model/models/label_dimension.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/label_dimensions.rb b/lib/merchant-fulfillment-api-model/models/label_dimensions.rb index d1b3992a4..29b390ec8 100644 --- a/lib/merchant-fulfillment-api-model/models/label_dimensions.rb +++ b/lib/merchant-fulfillment-api-model/models/label_dimensions.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/label_format.rb b/lib/merchant-fulfillment-api-model/models/label_format.rb index e1fcee0a7..d49a3899b 100644 --- a/lib/merchant-fulfillment-api-model/models/label_format.rb +++ b/lib/merchant-fulfillment-api-model/models/label_format.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/label_format_list.rb b/lib/merchant-fulfillment-api-model/models/label_format_list.rb index dffc61323..2970796fe 100644 --- a/lib/merchant-fulfillment-api-model/models/label_format_list.rb +++ b/lib/merchant-fulfillment-api-model/models/label_format_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/label_format_option.rb b/lib/merchant-fulfillment-api-model/models/label_format_option.rb index 7df5bc6e2..103249a1f 100644 --- a/lib/merchant-fulfillment-api-model/models/label_format_option.rb +++ b/lib/merchant-fulfillment-api-model/models/label_format_option.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/label_format_option_request.rb b/lib/merchant-fulfillment-api-model/models/label_format_option_request.rb index 92869d7b2..b13709711 100644 --- a/lib/merchant-fulfillment-api-model/models/label_format_option_request.rb +++ b/lib/merchant-fulfillment-api-model/models/label_format_option_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/length.rb b/lib/merchant-fulfillment-api-model/models/length.rb index a336520bb..92234c181 100644 --- a/lib/merchant-fulfillment-api-model/models/length.rb +++ b/lib/merchant-fulfillment-api-model/models/length.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/order_item_id.rb b/lib/merchant-fulfillment-api-model/models/order_item_id.rb index ee345f52c..ae4bd1511 100644 --- a/lib/merchant-fulfillment-api-model/models/order_item_id.rb +++ b/lib/merchant-fulfillment-api-model/models/order_item_id.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/package_dimension.rb b/lib/merchant-fulfillment-api-model/models/package_dimension.rb index 5059a0340..804c2dfac 100644 --- a/lib/merchant-fulfillment-api-model/models/package_dimension.rb +++ b/lib/merchant-fulfillment-api-model/models/package_dimension.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/package_dimensions.rb b/lib/merchant-fulfillment-api-model/models/package_dimensions.rb index bc5c982e0..29ec768e7 100644 --- a/lib/merchant-fulfillment-api-model/models/package_dimensions.rb +++ b/lib/merchant-fulfillment-api-model/models/package_dimensions.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/phone_number.rb b/lib/merchant-fulfillment-api-model/models/phone_number.rb index 9d79b797b..401f8aa58 100644 --- a/lib/merchant-fulfillment-api-model/models/phone_number.rb +++ b/lib/merchant-fulfillment-api-model/models/phone_number.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/postal_code.rb b/lib/merchant-fulfillment-api-model/models/postal_code.rb index 9f6193f8c..5037192af 100644 --- a/lib/merchant-fulfillment-api-model/models/postal_code.rb +++ b/lib/merchant-fulfillment-api-model/models/postal_code.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/predefined_package_dimensions.rb b/lib/merchant-fulfillment-api-model/models/predefined_package_dimensions.rb index 201a0d2d6..97f94ac54 100644 --- a/lib/merchant-fulfillment-api-model/models/predefined_package_dimensions.rb +++ b/lib/merchant-fulfillment-api-model/models/predefined_package_dimensions.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/rejected_shipping_service.rb b/lib/merchant-fulfillment-api-model/models/rejected_shipping_service.rb index 9e736696e..f25fff049 100644 --- a/lib/merchant-fulfillment-api-model/models/rejected_shipping_service.rb +++ b/lib/merchant-fulfillment-api-model/models/rejected_shipping_service.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/rejected_shipping_service_list.rb b/lib/merchant-fulfillment-api-model/models/rejected_shipping_service_list.rb index 7f9d511b1..572f92b5b 100644 --- a/lib/merchant-fulfillment-api-model/models/rejected_shipping_service_list.rb +++ b/lib/merchant-fulfillment-api-model/models/rejected_shipping_service_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/restricted_set_values.rb b/lib/merchant-fulfillment-api-model/models/restricted_set_values.rb index 3af5f55e7..871d99a3e 100644 --- a/lib/merchant-fulfillment-api-model/models/restricted_set_values.rb +++ b/lib/merchant-fulfillment-api-model/models/restricted_set_values.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/seller_input_definition.rb b/lib/merchant-fulfillment-api-model/models/seller_input_definition.rb index 9b9e69525..e5386b966 100644 --- a/lib/merchant-fulfillment-api-model/models/seller_input_definition.rb +++ b/lib/merchant-fulfillment-api-model/models/seller_input_definition.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/seller_order_id.rb b/lib/merchant-fulfillment-api-model/models/seller_order_id.rb index 258b0a5cf..96f1f33bd 100644 --- a/lib/merchant-fulfillment-api-model/models/seller_order_id.rb +++ b/lib/merchant-fulfillment-api-model/models/seller_order_id.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/shipment.rb b/lib/merchant-fulfillment-api-model/models/shipment.rb index 3e24c44c0..7bc50df2d 100644 --- a/lib/merchant-fulfillment-api-model/models/shipment.rb +++ b/lib/merchant-fulfillment-api-model/models/shipment.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/shipment_id.rb b/lib/merchant-fulfillment-api-model/models/shipment_id.rb index 55040b788..25200776d 100644 --- a/lib/merchant-fulfillment-api-model/models/shipment_id.rb +++ b/lib/merchant-fulfillment-api-model/models/shipment_id.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/shipment_request_details.rb b/lib/merchant-fulfillment-api-model/models/shipment_request_details.rb index ba2314a2e..448c46bdd 100644 --- a/lib/merchant-fulfillment-api-model/models/shipment_request_details.rb +++ b/lib/merchant-fulfillment-api-model/models/shipment_request_details.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/shipment_status.rb b/lib/merchant-fulfillment-api-model/models/shipment_status.rb index d4f7d41a8..9060ac1c7 100644 --- a/lib/merchant-fulfillment-api-model/models/shipment_status.rb +++ b/lib/merchant-fulfillment-api-model/models/shipment_status.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/shipping_offering_filter.rb b/lib/merchant-fulfillment-api-model/models/shipping_offering_filter.rb index ac7ceecfb..0131c1e3d 100644 --- a/lib/merchant-fulfillment-api-model/models/shipping_offering_filter.rb +++ b/lib/merchant-fulfillment-api-model/models/shipping_offering_filter.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/shipping_service.rb b/lib/merchant-fulfillment-api-model/models/shipping_service.rb index 1063fcf70..475175d3c 100644 --- a/lib/merchant-fulfillment-api-model/models/shipping_service.rb +++ b/lib/merchant-fulfillment-api-model/models/shipping_service.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/shipping_service_identifier.rb b/lib/merchant-fulfillment-api-model/models/shipping_service_identifier.rb index 0b5645c6b..b9ddd659d 100644 --- a/lib/merchant-fulfillment-api-model/models/shipping_service_identifier.rb +++ b/lib/merchant-fulfillment-api-model/models/shipping_service_identifier.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/shipping_service_list.rb b/lib/merchant-fulfillment-api-model/models/shipping_service_list.rb index 84e3fe09a..e10d0b30a 100644 --- a/lib/merchant-fulfillment-api-model/models/shipping_service_list.rb +++ b/lib/merchant-fulfillment-api-model/models/shipping_service_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/shipping_service_options.rb b/lib/merchant-fulfillment-api-model/models/shipping_service_options.rb index 7ba73d887..3df4ce5e5 100644 --- a/lib/merchant-fulfillment-api-model/models/shipping_service_options.rb +++ b/lib/merchant-fulfillment-api-model/models/shipping_service_options.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/standard_id_for_label.rb b/lib/merchant-fulfillment-api-model/models/standard_id_for_label.rb index fffbd64aa..08a153177 100644 --- a/lib/merchant-fulfillment-api-model/models/standard_id_for_label.rb +++ b/lib/merchant-fulfillment-api-model/models/standard_id_for_label.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/state_or_province_code.rb b/lib/merchant-fulfillment-api-model/models/state_or_province_code.rb index 12203ee34..20f055d1a 100644 --- a/lib/merchant-fulfillment-api-model/models/state_or_province_code.rb +++ b/lib/merchant-fulfillment-api-model/models/state_or_province_code.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/temporarily_unavailable_carrier.rb b/lib/merchant-fulfillment-api-model/models/temporarily_unavailable_carrier.rb index a96110fad..fe648e1f7 100644 --- a/lib/merchant-fulfillment-api-model/models/temporarily_unavailable_carrier.rb +++ b/lib/merchant-fulfillment-api-model/models/temporarily_unavailable_carrier.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/temporarily_unavailable_carrier_list.rb b/lib/merchant-fulfillment-api-model/models/temporarily_unavailable_carrier_list.rb index d94f70e3e..cbe848d38 100644 --- a/lib/merchant-fulfillment-api-model/models/temporarily_unavailable_carrier_list.rb +++ b/lib/merchant-fulfillment-api-model/models/temporarily_unavailable_carrier_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/terms_and_conditions_not_accepted_carrier.rb b/lib/merchant-fulfillment-api-model/models/terms_and_conditions_not_accepted_carrier.rb index 75a044c75..a1485f0b7 100644 --- a/lib/merchant-fulfillment-api-model/models/terms_and_conditions_not_accepted_carrier.rb +++ b/lib/merchant-fulfillment-api-model/models/terms_and_conditions_not_accepted_carrier.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/terms_and_conditions_not_accepted_carrier_list.rb b/lib/merchant-fulfillment-api-model/models/terms_and_conditions_not_accepted_carrier_list.rb index e50574fe4..3a2dee6ff 100644 --- a/lib/merchant-fulfillment-api-model/models/terms_and_conditions_not_accepted_carrier_list.rb +++ b/lib/merchant-fulfillment-api-model/models/terms_and_conditions_not_accepted_carrier_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/timestamp.rb b/lib/merchant-fulfillment-api-model/models/timestamp.rb index 8f571a14e..27d83482d 100644 --- a/lib/merchant-fulfillment-api-model/models/timestamp.rb +++ b/lib/merchant-fulfillment-api-model/models/timestamp.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/tracking_id.rb b/lib/merchant-fulfillment-api-model/models/tracking_id.rb index 49a812492..dd165cdf8 100644 --- a/lib/merchant-fulfillment-api-model/models/tracking_id.rb +++ b/lib/merchant-fulfillment-api-model/models/tracking_id.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/transparency_code.rb b/lib/merchant-fulfillment-api-model/models/transparency_code.rb index 823659af1..e0157ee07 100644 --- a/lib/merchant-fulfillment-api-model/models/transparency_code.rb +++ b/lib/merchant-fulfillment-api-model/models/transparency_code.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/transparency_code_list.rb b/lib/merchant-fulfillment-api-model/models/transparency_code_list.rb index 276d41eed..c70fa2442 100644 --- a/lib/merchant-fulfillment-api-model/models/transparency_code_list.rb +++ b/lib/merchant-fulfillment-api-model/models/transparency_code_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/unit_of_length.rb b/lib/merchant-fulfillment-api-model/models/unit_of_length.rb index 349b86940..3a37f8fca 100644 --- a/lib/merchant-fulfillment-api-model/models/unit_of_length.rb +++ b/lib/merchant-fulfillment-api-model/models/unit_of_length.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/unit_of_weight.rb b/lib/merchant-fulfillment-api-model/models/unit_of_weight.rb index a42794a67..6100707ac 100644 --- a/lib/merchant-fulfillment-api-model/models/unit_of_weight.rb +++ b/lib/merchant-fulfillment-api-model/models/unit_of_weight.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/weight.rb b/lib/merchant-fulfillment-api-model/models/weight.rb index 80c866a17..aae667759 100644 --- a/lib/merchant-fulfillment-api-model/models/weight.rb +++ b/lib/merchant-fulfillment-api-model/models/weight.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/models/weight_value.rb b/lib/merchant-fulfillment-api-model/models/weight_value.rb index a0161ac0b..a6c21e6b6 100644 --- a/lib/merchant-fulfillment-api-model/models/weight_value.rb +++ b/lib/merchant-fulfillment-api-model/models/weight_value.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/merchant-fulfillment-api-model/spec/api/merchant_fulfillment_api_spec.rb b/lib/merchant-fulfillment-api-model/spec/api/merchant_fulfillment_api_spec.rb index 92f56eae7..003343114 100644 --- a/lib/merchant-fulfillment-api-model/spec/api/merchant_fulfillment_api_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/api/merchant_fulfillment_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -32,7 +32,7 @@ end # unit tests for cancel_shipment - # Cancel the shipment indicated by the specified shipment identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Cancel the shipment indicated by the specified shipment identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param shipment_id The Amazon-defined shipment identifier for the shipment to cancel. # @param [Hash] opts the optional parameters # @return [CancelShipmentResponse] @@ -43,7 +43,7 @@ end # unit tests for cancel_shipment_old - # Cancel the shipment indicated by the specified shipment identifer. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Cancel the shipment indicated by the specified shipment identifer. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param shipment_id The Amazon-defined shipment identifier for the shipment to cancel. # @param [Hash] opts the optional parameters # @return [CancelShipmentResponse] @@ -54,7 +54,7 @@ end # unit tests for create_shipment - # Create a shipment with the information provided. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Create a shipment with the information provided. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [CreateShipmentResponse] @@ -65,7 +65,7 @@ end # unit tests for get_additional_seller_inputs - # Gets a list of additional seller inputs required for a ship method. This is generally used for international shipping. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Gets a list of additional seller inputs required for a ship method. This is generally used for international shipping. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [GetAdditionalSellerInputsResponse] @@ -76,7 +76,7 @@ end # unit tests for get_additional_seller_inputs_old - # Get a list of additional seller inputs required for a ship method. This is generally used for international shipping. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Get a list of additional seller inputs required for a ship method. This is generally used for international shipping. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [GetAdditionalSellerInputsResponse] @@ -87,7 +87,7 @@ end # unit tests for get_eligible_shipment_services - # Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [GetEligibleShipmentServicesResponse] @@ -98,7 +98,7 @@ end # unit tests for get_eligible_shipment_services_old - # Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of shipping service offers that satisfy the specified shipment request details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [GetEligibleShipmentServicesResponse] @@ -109,7 +109,7 @@ end # unit tests for get_shipment - # Returns the shipment information for an existing shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns the shipment information for an existing shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param shipment_id The Amazon-defined shipment identifier for the shipment. # @param [Hash] opts the optional parameters # @return [GetShipmentResponse] diff --git a/lib/merchant-fulfillment-api-model/spec/api_client_spec.rb b/lib/merchant-fulfillment-api-model/spec/api_client_spec.rb index c65b01519..8f59895a8 100644 --- a/lib/merchant-fulfillment-api-model/spec/api_client_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/api_client_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/configuration_spec.rb b/lib/merchant-fulfillment-api-model/spec/configuration_spec.rb index 9a712776c..5844ae7a6 100644 --- a/lib/merchant-fulfillment-api-model/spec/configuration_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/configuration_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/additional_inputs_list_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/additional_inputs_list_spec.rb index 8d448c2f1..b823b1e6a 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/additional_inputs_list_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/additional_inputs_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/additional_inputs_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/additional_inputs_spec.rb index 0685034e8..94cc9de60 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/additional_inputs_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/additional_inputs_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/additional_seller_input_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/additional_seller_input_spec.rb index 41a6d5c69..4ecbbd37f 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/additional_seller_input_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/additional_seller_input_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/additional_seller_inputs_list_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/additional_seller_inputs_list_spec.rb index 2fa465ff0..57ffd27ef 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/additional_seller_inputs_list_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/additional_seller_inputs_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/additional_seller_inputs_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/additional_seller_inputs_spec.rb index b7bee8004..96488f609 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/additional_seller_inputs_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/additional_seller_inputs_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/address_line1_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/address_line1_spec.rb index 5a89c9939..df040c70b 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/address_line1_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/address_line1_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/address_line2_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/address_line2_spec.rb index b109059b5..5b2455525 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/address_line2_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/address_line2_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/address_line3_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/address_line3_spec.rb index daf9f45f9..67659f15a 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/address_line3_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/address_line3_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/address_name_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/address_name_spec.rb index 078969eb2..08c0fad16 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/address_name_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/address_name_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/address_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/address_spec.rb index 6a0cc271e..480ec82be 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/address_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/address_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/amazon_order_id_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/amazon_order_id_spec.rb index 03a930045..df2a35e96 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/amazon_order_id_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/amazon_order_id_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/available_carrier_will_pick_up_option_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/available_carrier_will_pick_up_option_spec.rb index afffffa46..a71f1f985 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/available_carrier_will_pick_up_option_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/available_carrier_will_pick_up_option_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/available_carrier_will_pick_up_options_list_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/available_carrier_will_pick_up_options_list_spec.rb index 1b44297ae..bed21d1ac 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/available_carrier_will_pick_up_options_list_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/available_carrier_will_pick_up_options_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/available_delivery_experience_option_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/available_delivery_experience_option_spec.rb index 54b6d3d5a..d7e481979 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/available_delivery_experience_option_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/available_delivery_experience_option_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/available_delivery_experience_options_list_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/available_delivery_experience_options_list_spec.rb index b6ab380e5..1cd5135ff 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/available_delivery_experience_options_list_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/available_delivery_experience_options_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/available_format_options_for_label_list_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/available_format_options_for_label_list_spec.rb index a840501c2..8a0636ef6 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/available_format_options_for_label_list_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/available_format_options_for_label_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/available_format_options_for_label_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/available_format_options_for_label_spec.rb index 3182a9612..7d51ed6ea 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/available_format_options_for_label_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/available_format_options_for_label_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/available_shipping_service_options_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/available_shipping_service_options_spec.rb index c91f603dd..b4b1e81ac 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/available_shipping_service_options_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/available_shipping_service_options_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/cancel_shipment_response_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/cancel_shipment_response_spec.rb index 94b9f4644..b09f173db 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/cancel_shipment_response_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/cancel_shipment_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/carrier_will_pick_up_option_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/carrier_will_pick_up_option_spec.rb index f22e0fa9e..501a1156e 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/carrier_will_pick_up_option_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/carrier_will_pick_up_option_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/city_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/city_spec.rb index 751ea8cd5..43332a44e 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/city_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/city_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/constraint_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/constraint_spec.rb index 547471dd2..b2f5899e0 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/constraint_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/constraint_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/constraints_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/constraints_spec.rb index bd3d0dd86..33398a2dd 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/constraints_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/constraints_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/country_code_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/country_code_spec.rb index 8bedd533b..374c399dd 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/country_code_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/country_code_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/create_shipment_request_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/create_shipment_request_spec.rb index 56a6552bd..83ac7d099 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/create_shipment_request_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/create_shipment_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/create_shipment_response_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/create_shipment_response_spec.rb index 64f8d873d..eda822bf9 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/create_shipment_response_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/create_shipment_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/currency_amount_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/currency_amount_spec.rb index e79f3310d..e644e5a65 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/currency_amount_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/currency_amount_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/custom_text_for_label_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/custom_text_for_label_spec.rb index d05036789..da7841d9a 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/custom_text_for_label_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/custom_text_for_label_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/delivery_experience_option_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/delivery_experience_option_spec.rb index 047b51393..7a26f630b 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/delivery_experience_option_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/delivery_experience_option_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/delivery_experience_type_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/delivery_experience_type_spec.rb index d09448c96..212f7cbfd 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/delivery_experience_type_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/delivery_experience_type_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/district_or_county_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/district_or_county_spec.rb index ee6c4b191..33c89e507 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/district_or_county_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/district_or_county_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/email_address_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/email_address_spec.rb index a7080ba65..253abd0aa 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/email_address_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/email_address_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/error_list_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/error_list_spec.rb index 99902d139..a84c13ee3 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/error_list_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/error_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/error_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/error_spec.rb index e5dadf542..aa1f622b1 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/error_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/error_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/file_contents_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/file_contents_spec.rb index e7f784429..b0aeeec0d 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/file_contents_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/file_contents_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/file_type_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/file_type_spec.rb index b9ca1c49e..84da67c27 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/file_type_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/file_type_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/get_additional_seller_inputs_request_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/get_additional_seller_inputs_request_spec.rb index 46869cd50..0531e1b1a 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/get_additional_seller_inputs_request_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/get_additional_seller_inputs_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/get_additional_seller_inputs_response_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/get_additional_seller_inputs_response_spec.rb index b033ed6de..c4a0fab42 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/get_additional_seller_inputs_response_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/get_additional_seller_inputs_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/get_additional_seller_inputs_result_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/get_additional_seller_inputs_result_spec.rb index e71864a14..082e48afa 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/get_additional_seller_inputs_result_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/get_additional_seller_inputs_result_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/get_eligible_shipment_services_request_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/get_eligible_shipment_services_request_spec.rb index a5b4954c5..b2009d62d 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/get_eligible_shipment_services_request_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/get_eligible_shipment_services_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/get_eligible_shipment_services_response_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/get_eligible_shipment_services_response_spec.rb index d1802f5ee..bafdf742d 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/get_eligible_shipment_services_response_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/get_eligible_shipment_services_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/get_eligible_shipment_services_result_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/get_eligible_shipment_services_result_spec.rb index 67e4a39e3..9a4e9661a 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/get_eligible_shipment_services_result_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/get_eligible_shipment_services_result_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/get_shipment_response_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/get_shipment_response_spec.rb index 295c3319f..92c8b8fdf 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/get_shipment_response_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/get_shipment_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/hazmat_type_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/hazmat_type_spec.rb index d36b6b0a5..48bd14949 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/hazmat_type_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/hazmat_type_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/input_target_type_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/input_target_type_spec.rb index 231062b8e..8848f44c0 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/input_target_type_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/input_target_type_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/item_description_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/item_description_spec.rb index b8d37366b..7af4e3853 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/item_description_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/item_description_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/item_level_fields_list_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/item_level_fields_list_spec.rb index a378fc1ae..c1ea18da1 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/item_level_fields_list_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/item_level_fields_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/item_level_fields_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/item_level_fields_spec.rb index f94700680..99ea73dd7 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/item_level_fields_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/item_level_fields_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/item_list_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/item_list_spec.rb index bcfa4574d..127ca6cd1 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/item_list_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/item_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/item_quantity_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/item_quantity_spec.rb index 8e086c7a1..3be9b8d7d 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/item_quantity_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/item_quantity_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/item_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/item_spec.rb index a95099431..ebc6a2592 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/item_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/item_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/label_customization_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/label_customization_spec.rb index 3313c9200..f174a64d0 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/label_customization_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/label_customization_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/label_dimension_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/label_dimension_spec.rb index 00c0f8cb9..6dbce54b3 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/label_dimension_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/label_dimension_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/label_dimensions_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/label_dimensions_spec.rb index 58bf48e3e..49940a0b3 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/label_dimensions_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/label_dimensions_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/label_format_list_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/label_format_list_spec.rb index e1078ec8a..c3a867231 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/label_format_list_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/label_format_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/label_format_option_request_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/label_format_option_request_spec.rb index 09c0e9f42..5dde29a0e 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/label_format_option_request_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/label_format_option_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/label_format_option_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/label_format_option_spec.rb index 197d9e4c3..6ebfcd967 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/label_format_option_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/label_format_option_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/label_format_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/label_format_spec.rb index fed7b24c0..b5da018ca 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/label_format_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/label_format_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/label_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/label_spec.rb index d84b190b3..72a7a5f9f 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/label_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/label_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/length_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/length_spec.rb index 2007a9fd2..71ffaa14f 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/length_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/length_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/order_item_id_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/order_item_id_spec.rb index a4ad5c596..19626eff9 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/order_item_id_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/order_item_id_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/package_dimension_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/package_dimension_spec.rb index c5b69e4f0..299dffe40 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/package_dimension_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/package_dimension_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/package_dimensions_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/package_dimensions_spec.rb index 61b9a8e54..058aef9af 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/package_dimensions_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/package_dimensions_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/phone_number_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/phone_number_spec.rb index 26ed75f9f..f58d8b96c 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/phone_number_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/phone_number_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/postal_code_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/postal_code_spec.rb index e69ce57f2..e33fabcd8 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/postal_code_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/postal_code_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/predefined_package_dimensions_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/predefined_package_dimensions_spec.rb index 8016ad641..39c242a7e 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/predefined_package_dimensions_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/predefined_package_dimensions_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/rejected_shipping_service_list_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/rejected_shipping_service_list_spec.rb index f159b0ecd..c406e58f2 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/rejected_shipping_service_list_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/rejected_shipping_service_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/rejected_shipping_service_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/rejected_shipping_service_spec.rb index 0791ccc9f..8e42ce539 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/rejected_shipping_service_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/rejected_shipping_service_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/restricted_set_values_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/restricted_set_values_spec.rb index a2dd0d6e8..6f5387210 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/restricted_set_values_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/restricted_set_values_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/seller_input_definition_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/seller_input_definition_spec.rb index 3cd01ae34..5f24bb3f4 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/seller_input_definition_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/seller_input_definition_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/seller_order_id_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/seller_order_id_spec.rb index 681c71312..0ed1a2f66 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/seller_order_id_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/seller_order_id_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/shipment_id_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/shipment_id_spec.rb index 157af863e..a4e51ddbd 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/shipment_id_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/shipment_id_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/shipment_request_details_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/shipment_request_details_spec.rb index 8d540097d..4ba058fea 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/shipment_request_details_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/shipment_request_details_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/shipment_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/shipment_spec.rb index 6e7c2a2a7..b2671b062 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/shipment_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/shipment_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/shipment_status_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/shipment_status_spec.rb index ab60efd6a..d870935ea 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/shipment_status_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/shipment_status_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/shipping_offering_filter_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/shipping_offering_filter_spec.rb index e518b7d1e..edbda19a7 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/shipping_offering_filter_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/shipping_offering_filter_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/shipping_service_identifier_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/shipping_service_identifier_spec.rb index 833c806aa..daba80a04 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/shipping_service_identifier_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/shipping_service_identifier_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/shipping_service_list_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/shipping_service_list_spec.rb index 415626d78..5cf9160d6 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/shipping_service_list_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/shipping_service_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/shipping_service_options_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/shipping_service_options_spec.rb index 0c85bdca6..cbd9345fb 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/shipping_service_options_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/shipping_service_options_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/shipping_service_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/shipping_service_spec.rb index a9c47bad0..d5ca6a362 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/shipping_service_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/shipping_service_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/standard_id_for_label_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/standard_id_for_label_spec.rb index 740856599..c0f3bb72e 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/standard_id_for_label_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/standard_id_for_label_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/state_or_province_code_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/state_or_province_code_spec.rb index 43efcb50f..ec3b1348d 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/state_or_province_code_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/state_or_province_code_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/temporarily_unavailable_carrier_list_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/temporarily_unavailable_carrier_list_spec.rb index 7b00d124f..bd46c4da1 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/temporarily_unavailable_carrier_list_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/temporarily_unavailable_carrier_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/temporarily_unavailable_carrier_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/temporarily_unavailable_carrier_spec.rb index 1b1bdcb39..7f31024d9 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/temporarily_unavailable_carrier_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/temporarily_unavailable_carrier_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/terms_and_conditions_not_accepted_carrier_list_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/terms_and_conditions_not_accepted_carrier_list_spec.rb index 2fd77bb22..d37b19116 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/terms_and_conditions_not_accepted_carrier_list_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/terms_and_conditions_not_accepted_carrier_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/terms_and_conditions_not_accepted_carrier_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/terms_and_conditions_not_accepted_carrier_spec.rb index cb38888f5..bc008345a 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/terms_and_conditions_not_accepted_carrier_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/terms_and_conditions_not_accepted_carrier_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/timestamp_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/timestamp_spec.rb index a0358514b..37a094ba3 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/timestamp_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/timestamp_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/tracking_id_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/tracking_id_spec.rb index 3536609d8..f6e7c17fb 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/tracking_id_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/tracking_id_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/transparency_code_list_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/transparency_code_list_spec.rb index 6e035565d..8a13cadaf 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/transparency_code_list_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/transparency_code_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/transparency_code_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/transparency_code_spec.rb index 149455cae..f42545ff4 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/transparency_code_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/transparency_code_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/unit_of_length_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/unit_of_length_spec.rb index aaa919701..e4edad4ec 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/unit_of_length_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/unit_of_length_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/unit_of_weight_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/unit_of_weight_spec.rb index 68ad304a4..148b21ab8 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/unit_of_weight_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/unit_of_weight_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/weight_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/weight_spec.rb index 07ef421b3..32111f305 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/weight_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/weight_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/models/weight_value_spec.rb b/lib/merchant-fulfillment-api-model/spec/models/weight_value_spec.rb index a3b868ba3..facd58c6d 100644 --- a/lib/merchant-fulfillment-api-model/spec/models/weight_value_spec.rb +++ b/lib/merchant-fulfillment-api-model/spec/models/weight_value_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/merchant-fulfillment-api-model/spec/spec_helper.rb b/lib/merchant-fulfillment-api-model/spec/spec_helper.rb index 54a7a1e2c..fdb6315d5 100644 --- a/lib/merchant-fulfillment-api-model/spec/spec_helper.rb +++ b/lib/merchant-fulfillment-api-model/spec/spec_helper.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # load the gem diff --git a/lib/merchant-fulfillment-api-model/version.rb b/lib/merchant-fulfillment-api-model/version.rb index 798663cb0..652d53961 100644 --- a/lib/merchant-fulfillment-api-model/version.rb +++ b/lib/merchant-fulfillment-api-model/version.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::MerchantFulfillmentApiModel diff --git a/lib/messaging-api-model.rb b/lib/messaging-api-model.rb index e4bf480f5..d54ff2748 100644 --- a/lib/messaging-api-model.rb +++ b/lib/messaging-api-model.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # Common files diff --git a/lib/messaging-api-model/.swagger-codegen/VERSION b/lib/messaging-api-model/.swagger-codegen/VERSION index b39b0b9e0..161761765 100644 --- a/lib/messaging-api-model/.swagger-codegen/VERSION +++ b/lib/messaging-api-model/.swagger-codegen/VERSION @@ -1 +1 @@ -3.0.24 \ No newline at end of file +3.0.46 \ No newline at end of file diff --git a/lib/messaging-api-model/api/messaging_api.rb b/lib/messaging-api-model/api/messaging_api.rb index 529a5f62c..20b214be5 100644 --- a/lib/messaging-api-model/api/messaging_api.rb +++ b/lib/messaging-api-model/api/messaging_api.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::MessagingApiModel @@ -16,7 +16,7 @@ class MessagingApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Sends a message asking a buyer to provide or verify customization details such as name spelling, images, initials, etc. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a message asking a buyer to provide or verify customization details such as name spelling, images, initials, etc. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. @@ -27,7 +27,7 @@ def confirm_customization_details(body, marketplace_ids, amazon_order_id, opts = data end - # Sends a message asking a buyer to provide or verify customization details such as name spelling, images, initials, etc. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a message asking a buyer to provide or verify customization details such as name spelling, images, initials, etc. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. @@ -85,7 +85,7 @@ def confirm_customization_details_with_http_info(body, marketplace_ids, amazon_o end return data, status_code, headers end - # Sends a message to a buyer to provide details about an Amazon Motors order. This message can only be sent by Amazon Motors sellers. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a message to a buyer to provide details about an Amazon Motors order. This message can only be sent by Amazon Motors sellers. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. @@ -96,7 +96,7 @@ def create_amazon_motors(body, marketplace_ids, amazon_order_id, opts = {}) data end - # Sends a message to a buyer to provide details about an Amazon Motors order. This message can only be sent by Amazon Motors sellers. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a message to a buyer to provide details about an Amazon Motors order. This message can only be sent by Amazon Motors sellers. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. @@ -154,7 +154,7 @@ def create_amazon_motors_with_http_info(body, marketplace_ids, amazon_order_id, end return data, status_code, headers end - # Sends a message to a buyer to arrange a delivery or to confirm contact information for making a delivery. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a message to a buyer to arrange a delivery or to confirm contact information for making a delivery. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. @@ -165,7 +165,7 @@ def create_confirm_delivery_details(body, marketplace_ids, amazon_order_id, opts data end - # Sends a message to a buyer to arrange a delivery or to confirm contact information for making a delivery. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a message to a buyer to arrange a delivery or to confirm contact information for making a delivery. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. @@ -223,7 +223,7 @@ def create_confirm_delivery_details_with_http_info(body, marketplace_ids, amazon end return data, status_code, headers end - # Sends a message to ask a buyer an order-related question prior to shipping their order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a message to ask a buyer an order-related question prior to shipping their order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. @@ -234,7 +234,7 @@ def create_confirm_order_details(body, marketplace_ids, amazon_order_id, opts = data end - # Sends a message to ask a buyer an order-related question prior to shipping their order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a message to ask a buyer an order-related question prior to shipping their order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. @@ -292,7 +292,7 @@ def create_confirm_order_details_with_http_info(body, marketplace_ids, amazon_or end return data, status_code, headers end - # Sends a message to contact a Home Service customer to arrange a service call or to gather information prior to a service call. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a message to contact a Home Service customer to arrange a service call or to gather information prior to a service call. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. @@ -303,7 +303,7 @@ def create_confirm_service_details(body, marketplace_ids, amazon_order_id, opts data end - # Sends a message to contact a Home Service customer to arrange a service call or to gather information prior to a service call. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a message to contact a Home Service customer to arrange a service call or to gather information prior to a service call. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. @@ -361,7 +361,7 @@ def create_confirm_service_details_with_http_info(body, marketplace_ids, amazon_ end return data, status_code, headers end - # Sends a message to a buyer to share a digital access key needed to utilize digital content in their order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a message to a buyer to share a digital access key needed to utilize digital content in their order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. @@ -372,7 +372,7 @@ def create_digital_access_key(body, marketplace_ids, amazon_order_id, opts = {}) data end - # Sends a message to a buyer to share a digital access key needed to utilize digital content in their order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a message to a buyer to share a digital access key needed to utilize digital content in their order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. @@ -430,7 +430,7 @@ def create_digital_access_key_with_http_info(body, marketplace_ids, amazon_order end return data, status_code, headers end - # Sends a critical message that contains documents that a seller is legally obligated to provide to the buyer. This message should only be used to deliver documents that are required by law. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a critical message that contains documents that a seller is legally obligated to provide to the buyer. This message should only be used to deliver documents that are required by law. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. @@ -441,7 +441,7 @@ def create_legal_disclosure(body, marketplace_ids, amazon_order_id, opts = {}) data end - # Sends a critical message that contains documents that a seller is legally obligated to provide to the buyer. This message should only be used to deliver documents that are required by law. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a critical message that contains documents that a seller is legally obligated to provide to the buyer. This message should only be used to deliver documents that are required by law. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. @@ -499,7 +499,7 @@ def create_legal_disclosure_with_http_info(body, marketplace_ids, amazon_order_i end return data, status_code, headers end - # Sends a non-critical message that asks a buyer to remove their negative feedback. This message should only be sent after the seller has resolved the buyer's problem. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a non-critical message that asks a buyer to remove their negative feedback. This message should only be sent after the seller has resolved the buyer's problem. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param [Hash] opts the optional parameters @@ -509,7 +509,7 @@ def create_negative_feedback_removal(amazon_order_id, marketplace_ids, opts = {} data end - # Sends a non-critical message that asks a buyer to remove their negative feedback. This message should only be sent after the seller has resolved the buyer's problem. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a non-critical message that asks a buyer to remove their negative feedback. This message should only be sent after the seller has resolved the buyer's problem. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param [Hash] opts the optional parameters @@ -560,7 +560,7 @@ def create_negative_feedback_removal_with_http_info(amazon_order_id, marketplace end return data, status_code, headers end - # Sends a critical message to a buyer that an unexpected problem was encountered affecting the completion of the order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a critical message to a buyer that an unexpected problem was encountered affecting the completion of the order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. @@ -571,7 +571,7 @@ def create_unexpected_problem(body, marketplace_ids, amazon_order_id, opts = {}) data end - # Sends a critical message to a buyer that an unexpected problem was encountered affecting the completion of the order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a critical message to a buyer that an unexpected problem was encountered affecting the completion of the order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. @@ -629,7 +629,7 @@ def create_unexpected_problem_with_http_info(body, marketplace_ids, amazon_order end return data, status_code, headers end - # Sends a message to a buyer to provide details about warranty information on a purchase in their order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a message to a buyer to provide details about warranty information on a purchase in their order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. @@ -640,7 +640,7 @@ def create_warranty(body, marketplace_ids, amazon_order_id, opts = {}) data end - # Sends a message to a buyer to provide details about warranty information on a purchase in their order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a message to a buyer to provide details about warranty information on a purchase in their order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. @@ -759,7 +759,7 @@ def get_attributes_with_http_info(amazon_order_id, marketplace_ids, opts = {}) end return data, status_code, headers end - # Returns a list of message types that are available for an order that you specify. A message type is represented by an actions object, which contains a path and query parameter(s). You can use the path and parameter(s) to call an operation that sends a message. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of message types that are available for an order that you specify. A message type is represented by an actions object, which contains a path and query parameter(s). You can use the path and parameter(s) to call an operation that sends a message. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param amazon_order_id An Amazon order identifier. This specifies the order for which you want a list of available message types. # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param [Hash] opts the optional parameters @@ -769,7 +769,7 @@ def get_messaging_actions_for_order(amazon_order_id, marketplace_ids, opts = {}) data end - # Returns a list of message types that are available for an order that you specify. A message type is represented by an actions object, which contains a path and query parameter(s). You can use the path and parameter(s) to call an operation that sends a message. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of message types that are available for an order that you specify. A message type is represented by an actions object, which contains a path and query parameter(s). You can use the path and parameter(s) to call an operation that sends a message. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param amazon_order_id An Amazon order identifier. This specifies the order for which you want a list of available message types. # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param [Hash] opts the optional parameters diff --git a/lib/messaging-api-model/api_client.rb b/lib/messaging-api-model/api_client.rb index 74b30c6e0..1a813e858 100644 --- a/lib/messaging-api-model/api_client.rb +++ b/lib/messaging-api-model/api_client.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/api_error.rb b/lib/messaging-api-model/api_error.rb index 0f9dcf9e8..aa08830f4 100644 --- a/lib/messaging-api-model/api_error.rb +++ b/lib/messaging-api-model/api_error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::MessagingApiModel diff --git a/lib/messaging-api-model/configuration.rb b/lib/messaging-api-model/configuration.rb index cfe09e0c0..ed832cf30 100644 --- a/lib/messaging-api-model/configuration.rb +++ b/lib/messaging-api-model/configuration.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::MessagingApiModel diff --git a/lib/messaging-api-model/docs/MessagingApi.md b/lib/messaging-api-model/docs/MessagingApi.md index 0b6343aaf..0dabc14df 100644 --- a/lib/messaging-api-model/docs/MessagingApi.md +++ b/lib/messaging-api-model/docs/MessagingApi.md @@ -23,7 +23,7 @@ Method | HTTP request | Description -Sends a message asking a buyer to provide or verify customization details such as name spelling, images, initials, etc. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Sends a message asking a buyer to provide or verify customization details such as name spelling, images, initials, etc. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -72,7 +72,7 @@ No authorization required -Sends a message to a buyer to provide details about an Amazon Motors order. This message can only be sent by Amazon Motors sellers. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Sends a message to a buyer to provide details about an Amazon Motors order. This message can only be sent by Amazon Motors sellers. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -121,7 +121,7 @@ No authorization required -Sends a message to a buyer to arrange a delivery or to confirm contact information for making a delivery. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Sends a message to a buyer to arrange a delivery or to confirm contact information for making a delivery. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -170,7 +170,7 @@ No authorization required -Sends a message to ask a buyer an order-related question prior to shipping their order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Sends a message to ask a buyer an order-related question prior to shipping their order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -219,7 +219,7 @@ No authorization required -Sends a message to contact a Home Service customer to arrange a service call or to gather information prior to a service call. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Sends a message to contact a Home Service customer to arrange a service call or to gather information prior to a service call. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -268,7 +268,7 @@ No authorization required -Sends a message to a buyer to share a digital access key needed to utilize digital content in their order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Sends a message to a buyer to share a digital access key needed to utilize digital content in their order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -317,7 +317,7 @@ No authorization required -Sends a critical message that contains documents that a seller is legally obligated to provide to the buyer. This message should only be used to deliver documents that are required by law. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Sends a critical message that contains documents that a seller is legally obligated to provide to the buyer. This message should only be used to deliver documents that are required by law. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -366,7 +366,7 @@ No authorization required -Sends a non-critical message that asks a buyer to remove their negative feedback. This message should only be sent after the seller has resolved the buyer's problem. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Sends a non-critical message that asks a buyer to remove their negative feedback. This message should only be sent after the seller has resolved the buyer's problem. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -413,7 +413,7 @@ No authorization required -Sends a critical message to a buyer that an unexpected problem was encountered affecting the completion of the order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Sends a critical message to a buyer that an unexpected problem was encountered affecting the completion of the order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -462,7 +462,7 @@ No authorization required -Sends a message to a buyer to provide details about warranty information on a purchase in their order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Sends a message to a buyer to provide details about warranty information on a purchase in their order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -558,7 +558,7 @@ No authorization required -Returns a list of message types that are available for an order that you specify. A message type is represented by an actions object, which contains a path and query parameter(s). You can use the path and parameter(s) to call an operation that sends a message. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns a list of message types that are available for an order that you specify. A message type is represented by an actions object, which contains a path and query parameter(s). You can use the path and parameter(s) to call an operation that sends a message. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby diff --git a/lib/messaging-api-model/models/attachment.rb b/lib/messaging-api-model/models/attachment.rb index 9b1046d83..fdba310f6 100644 --- a/lib/messaging-api-model/models/attachment.rb +++ b/lib/messaging-api-model/models/attachment.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/create_amazon_motors_request.rb b/lib/messaging-api-model/models/create_amazon_motors_request.rb index 62bcca662..a16483035 100644 --- a/lib/messaging-api-model/models/create_amazon_motors_request.rb +++ b/lib/messaging-api-model/models/create_amazon_motors_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/create_amazon_motors_response.rb b/lib/messaging-api-model/models/create_amazon_motors_response.rb index fa9a74a62..2f93b398a 100644 --- a/lib/messaging-api-model/models/create_amazon_motors_response.rb +++ b/lib/messaging-api-model/models/create_amazon_motors_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/create_confirm_customization_details_request.rb b/lib/messaging-api-model/models/create_confirm_customization_details_request.rb index 32a872bb4..c09f8f728 100644 --- a/lib/messaging-api-model/models/create_confirm_customization_details_request.rb +++ b/lib/messaging-api-model/models/create_confirm_customization_details_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/create_confirm_customization_details_response.rb b/lib/messaging-api-model/models/create_confirm_customization_details_response.rb index 4a787c99d..569ca1b84 100644 --- a/lib/messaging-api-model/models/create_confirm_customization_details_response.rb +++ b/lib/messaging-api-model/models/create_confirm_customization_details_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/create_confirm_delivery_details_request.rb b/lib/messaging-api-model/models/create_confirm_delivery_details_request.rb index e6b67ee39..3c65f43d2 100644 --- a/lib/messaging-api-model/models/create_confirm_delivery_details_request.rb +++ b/lib/messaging-api-model/models/create_confirm_delivery_details_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/create_confirm_delivery_details_response.rb b/lib/messaging-api-model/models/create_confirm_delivery_details_response.rb index 46903c56b..5694f720a 100644 --- a/lib/messaging-api-model/models/create_confirm_delivery_details_response.rb +++ b/lib/messaging-api-model/models/create_confirm_delivery_details_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/create_confirm_order_details_request.rb b/lib/messaging-api-model/models/create_confirm_order_details_request.rb index cea7bafc5..6102eb905 100644 --- a/lib/messaging-api-model/models/create_confirm_order_details_request.rb +++ b/lib/messaging-api-model/models/create_confirm_order_details_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/create_confirm_order_details_response.rb b/lib/messaging-api-model/models/create_confirm_order_details_response.rb index 247f631c7..f250dd31b 100644 --- a/lib/messaging-api-model/models/create_confirm_order_details_response.rb +++ b/lib/messaging-api-model/models/create_confirm_order_details_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/create_confirm_service_details_request.rb b/lib/messaging-api-model/models/create_confirm_service_details_request.rb index 6608922f8..ad40738b5 100644 --- a/lib/messaging-api-model/models/create_confirm_service_details_request.rb +++ b/lib/messaging-api-model/models/create_confirm_service_details_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/create_confirm_service_details_response.rb b/lib/messaging-api-model/models/create_confirm_service_details_response.rb index bfe2c5003..8c6bf1445 100644 --- a/lib/messaging-api-model/models/create_confirm_service_details_response.rb +++ b/lib/messaging-api-model/models/create_confirm_service_details_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/create_digital_access_key_request.rb b/lib/messaging-api-model/models/create_digital_access_key_request.rb index 8d6742bab..9710314a8 100644 --- a/lib/messaging-api-model/models/create_digital_access_key_request.rb +++ b/lib/messaging-api-model/models/create_digital_access_key_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/create_digital_access_key_response.rb b/lib/messaging-api-model/models/create_digital_access_key_response.rb index 3e0adfd38..9f3c932d4 100644 --- a/lib/messaging-api-model/models/create_digital_access_key_response.rb +++ b/lib/messaging-api-model/models/create_digital_access_key_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/create_legal_disclosure_request.rb b/lib/messaging-api-model/models/create_legal_disclosure_request.rb index f6932e059..c164c9a3c 100644 --- a/lib/messaging-api-model/models/create_legal_disclosure_request.rb +++ b/lib/messaging-api-model/models/create_legal_disclosure_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/create_legal_disclosure_response.rb b/lib/messaging-api-model/models/create_legal_disclosure_response.rb index f979f647e..b792ebb90 100644 --- a/lib/messaging-api-model/models/create_legal_disclosure_response.rb +++ b/lib/messaging-api-model/models/create_legal_disclosure_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/create_negative_feedback_removal_response.rb b/lib/messaging-api-model/models/create_negative_feedback_removal_response.rb index 1a4220a84..997434b75 100644 --- a/lib/messaging-api-model/models/create_negative_feedback_removal_response.rb +++ b/lib/messaging-api-model/models/create_negative_feedback_removal_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/create_unexpected_problem_request.rb b/lib/messaging-api-model/models/create_unexpected_problem_request.rb index bcd151501..8356d5609 100644 --- a/lib/messaging-api-model/models/create_unexpected_problem_request.rb +++ b/lib/messaging-api-model/models/create_unexpected_problem_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/create_unexpected_problem_response.rb b/lib/messaging-api-model/models/create_unexpected_problem_response.rb index e0ce1ffe3..7fe787090 100644 --- a/lib/messaging-api-model/models/create_unexpected_problem_response.rb +++ b/lib/messaging-api-model/models/create_unexpected_problem_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/create_warranty_request.rb b/lib/messaging-api-model/models/create_warranty_request.rb index 8a4311a28..e4417f5f1 100644 --- a/lib/messaging-api-model/models/create_warranty_request.rb +++ b/lib/messaging-api-model/models/create_warranty_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/create_warranty_response.rb b/lib/messaging-api-model/models/create_warranty_response.rb index fb12b499c..27adbda14 100644 --- a/lib/messaging-api-model/models/create_warranty_response.rb +++ b/lib/messaging-api-model/models/create_warranty_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/error.rb b/lib/messaging-api-model/models/error.rb index 28c10d125..d0865b8cf 100644 --- a/lib/messaging-api-model/models/error.rb +++ b/lib/messaging-api-model/models/error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/error_list.rb b/lib/messaging-api-model/models/error_list.rb index bdbd74491..61e099933 100644 --- a/lib/messaging-api-model/models/error_list.rb +++ b/lib/messaging-api-model/models/error_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/get_attributes_response.rb b/lib/messaging-api-model/models/get_attributes_response.rb index ba969c87c..92cb38e15 100644 --- a/lib/messaging-api-model/models/get_attributes_response.rb +++ b/lib/messaging-api-model/models/get_attributes_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/get_attributes_response_buyer.rb b/lib/messaging-api-model/models/get_attributes_response_buyer.rb index c97a13d75..ac2af3a18 100644 --- a/lib/messaging-api-model/models/get_attributes_response_buyer.rb +++ b/lib/messaging-api-model/models/get_attributes_response_buyer.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/get_messaging_action_response.rb b/lib/messaging-api-model/models/get_messaging_action_response.rb index 65e8954d0..0c9f97b3a 100644 --- a/lib/messaging-api-model/models/get_messaging_action_response.rb +++ b/lib/messaging-api-model/models/get_messaging_action_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/get_messaging_action_response__embedded.rb b/lib/messaging-api-model/models/get_messaging_action_response__embedded.rb index 6a4b280bc..9fad5be17 100644 --- a/lib/messaging-api-model/models/get_messaging_action_response__embedded.rb +++ b/lib/messaging-api-model/models/get_messaging_action_response__embedded.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/get_messaging_action_response__links.rb b/lib/messaging-api-model/models/get_messaging_action_response__links.rb index f85695b82..9fe160c1f 100644 --- a/lib/messaging-api-model/models/get_messaging_action_response__links.rb +++ b/lib/messaging-api-model/models/get_messaging_action_response__links.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/get_messaging_actions_for_order_response.rb b/lib/messaging-api-model/models/get_messaging_actions_for_order_response.rb index cad771530..b1d432796 100644 --- a/lib/messaging-api-model/models/get_messaging_actions_for_order_response.rb +++ b/lib/messaging-api-model/models/get_messaging_actions_for_order_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/get_messaging_actions_for_order_response__embedded.rb b/lib/messaging-api-model/models/get_messaging_actions_for_order_response__embedded.rb index 6b48e4b99..c9954fe5d 100644 --- a/lib/messaging-api-model/models/get_messaging_actions_for_order_response__embedded.rb +++ b/lib/messaging-api-model/models/get_messaging_actions_for_order_response__embedded.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/get_messaging_actions_for_order_response__links.rb b/lib/messaging-api-model/models/get_messaging_actions_for_order_response__links.rb index bfb01905a..ff816f014 100644 --- a/lib/messaging-api-model/models/get_messaging_actions_for_order_response__links.rb +++ b/lib/messaging-api-model/models/get_messaging_actions_for_order_response__links.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/get_schema_response.rb b/lib/messaging-api-model/models/get_schema_response.rb index 21a85ffe3..b344879ad 100644 --- a/lib/messaging-api-model/models/get_schema_response.rb +++ b/lib/messaging-api-model/models/get_schema_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/get_schema_response__links.rb b/lib/messaging-api-model/models/get_schema_response__links.rb index 376efd78f..5c8d71b2c 100644 --- a/lib/messaging-api-model/models/get_schema_response__links.rb +++ b/lib/messaging-api-model/models/get_schema_response__links.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/invoice_request.rb b/lib/messaging-api-model/models/invoice_request.rb index 701ffccb1..0496feba1 100644 --- a/lib/messaging-api-model/models/invoice_request.rb +++ b/lib/messaging-api-model/models/invoice_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/invoice_response.rb b/lib/messaging-api-model/models/invoice_response.rb index 35ed2a067..678d380f9 100644 --- a/lib/messaging-api-model/models/invoice_response.rb +++ b/lib/messaging-api-model/models/invoice_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/link_object.rb b/lib/messaging-api-model/models/link_object.rb index e96959bba..4dc73a65c 100644 --- a/lib/messaging-api-model/models/link_object.rb +++ b/lib/messaging-api-model/models/link_object.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/messaging_action.rb b/lib/messaging-api-model/models/messaging_action.rb index 43a645133..3b48783d1 100644 --- a/lib/messaging-api-model/models/messaging_action.rb +++ b/lib/messaging-api-model/models/messaging_action.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/models/schema.rb b/lib/messaging-api-model/models/schema.rb index 844128d47..7a70ce8d3 100644 --- a/lib/messaging-api-model/models/schema.rb +++ b/lib/messaging-api-model/models/schema.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/messaging-api-model/spec/api/messaging_api_spec.rb b/lib/messaging-api-model/spec/api/messaging_api_spec.rb index fffb84b80..f68a44353 100644 --- a/lib/messaging-api-model/spec/api/messaging_api_spec.rb +++ b/lib/messaging-api-model/spec/api/messaging_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -32,7 +32,7 @@ end # unit tests for confirm_customization_details - # Sends a message asking a buyer to provide or verify customization details such as name spelling, images, initials, etc. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a message asking a buyer to provide or verify customization details such as name spelling, images, initials, etc. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. @@ -45,7 +45,7 @@ end # unit tests for create_amazon_motors - # Sends a message to a buyer to provide details about an Amazon Motors order. This message can only be sent by Amazon Motors sellers. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a message to a buyer to provide details about an Amazon Motors order. This message can only be sent by Amazon Motors sellers. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. @@ -58,7 +58,7 @@ end # unit tests for create_confirm_delivery_details - # Sends a message to a buyer to arrange a delivery or to confirm contact information for making a delivery. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a message to a buyer to arrange a delivery or to confirm contact information for making a delivery. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. @@ -71,7 +71,7 @@ end # unit tests for create_confirm_order_details - # Sends a message to ask a buyer an order-related question prior to shipping their order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a message to ask a buyer an order-related question prior to shipping their order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. @@ -84,7 +84,7 @@ end # unit tests for create_confirm_service_details - # Sends a message to contact a Home Service customer to arrange a service call or to gather information prior to a service call. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a message to contact a Home Service customer to arrange a service call or to gather information prior to a service call. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. @@ -97,7 +97,7 @@ end # unit tests for create_digital_access_key - # Sends a message to a buyer to share a digital access key needed to utilize digital content in their order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a message to a buyer to share a digital access key needed to utilize digital content in their order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. @@ -110,7 +110,7 @@ end # unit tests for create_legal_disclosure - # Sends a critical message that contains documents that a seller is legally obligated to provide to the buyer. This message should only be used to deliver documents that are required by law. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a critical message that contains documents that a seller is legally obligated to provide to the buyer. This message should only be used to deliver documents that are required by law. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. @@ -123,7 +123,7 @@ end # unit tests for create_negative_feedback_removal - # Sends a non-critical message that asks a buyer to remove their negative feedback. This message should only be sent after the seller has resolved the buyer's problem. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a non-critical message that asks a buyer to remove their negative feedback. This message should only be sent after the seller has resolved the buyer's problem. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param [Hash] opts the optional parameters @@ -135,7 +135,7 @@ end # unit tests for create_unexpected_problem - # Sends a critical message to a buyer that an unexpected problem was encountered affecting the completion of the order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a critical message to a buyer that an unexpected problem was encountered affecting the completion of the order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. @@ -148,7 +148,7 @@ end # unit tests for create_warranty - # Sends a message to a buyer to provide details about warranty information on a purchase in their order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Sends a message to a buyer to provide details about warranty information on a purchase in their order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param amazon_order_id An Amazon order identifier. This specifies the order for which a message is sent. @@ -173,7 +173,7 @@ end # unit tests for get_messaging_actions_for_order - # Returns a list of message types that are available for an order that you specify. A message type is represented by an actions object, which contains a path and query parameter(s). You can use the path and parameter(s) to call an operation that sends a message. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of message types that are available for an order that you specify. A message type is represented by an actions object, which contains a path and query parameter(s). You can use the path and parameter(s) to call an operation that sends a message. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param amazon_order_id An Amazon order identifier. This specifies the order for which you want a list of available message types. # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. # @param [Hash] opts the optional parameters diff --git a/lib/messaging-api-model/spec/api_client_spec.rb b/lib/messaging-api-model/spec/api_client_spec.rb index c4331cce0..db556da68 100644 --- a/lib/messaging-api-model/spec/api_client_spec.rb +++ b/lib/messaging-api-model/spec/api_client_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/configuration_spec.rb b/lib/messaging-api-model/spec/configuration_spec.rb index 27ee5cff4..bc1359091 100644 --- a/lib/messaging-api-model/spec/configuration_spec.rb +++ b/lib/messaging-api-model/spec/configuration_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/attachment_spec.rb b/lib/messaging-api-model/spec/models/attachment_spec.rb index 55c58b45b..b317f6378 100644 --- a/lib/messaging-api-model/spec/models/attachment_spec.rb +++ b/lib/messaging-api-model/spec/models/attachment_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/create_amazon_motors_request_spec.rb b/lib/messaging-api-model/spec/models/create_amazon_motors_request_spec.rb index 48b9ec7d0..af63ab8fa 100644 --- a/lib/messaging-api-model/spec/models/create_amazon_motors_request_spec.rb +++ b/lib/messaging-api-model/spec/models/create_amazon_motors_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/create_amazon_motors_response_spec.rb b/lib/messaging-api-model/spec/models/create_amazon_motors_response_spec.rb index 071a374a2..ad5c71eec 100644 --- a/lib/messaging-api-model/spec/models/create_amazon_motors_response_spec.rb +++ b/lib/messaging-api-model/spec/models/create_amazon_motors_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/create_confirm_customization_details_request_spec.rb b/lib/messaging-api-model/spec/models/create_confirm_customization_details_request_spec.rb index c3fb40ff5..b779a451a 100644 --- a/lib/messaging-api-model/spec/models/create_confirm_customization_details_request_spec.rb +++ b/lib/messaging-api-model/spec/models/create_confirm_customization_details_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/create_confirm_customization_details_response_spec.rb b/lib/messaging-api-model/spec/models/create_confirm_customization_details_response_spec.rb index 740fc6bfd..1bcd43003 100644 --- a/lib/messaging-api-model/spec/models/create_confirm_customization_details_response_spec.rb +++ b/lib/messaging-api-model/spec/models/create_confirm_customization_details_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/create_confirm_delivery_details_request_spec.rb b/lib/messaging-api-model/spec/models/create_confirm_delivery_details_request_spec.rb index f50b60956..0f63d9dae 100644 --- a/lib/messaging-api-model/spec/models/create_confirm_delivery_details_request_spec.rb +++ b/lib/messaging-api-model/spec/models/create_confirm_delivery_details_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/create_confirm_delivery_details_response_spec.rb b/lib/messaging-api-model/spec/models/create_confirm_delivery_details_response_spec.rb index df1d7230a..864b5b6ed 100644 --- a/lib/messaging-api-model/spec/models/create_confirm_delivery_details_response_spec.rb +++ b/lib/messaging-api-model/spec/models/create_confirm_delivery_details_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/create_confirm_order_details_request_spec.rb b/lib/messaging-api-model/spec/models/create_confirm_order_details_request_spec.rb index d5383414d..3cda9a3c9 100644 --- a/lib/messaging-api-model/spec/models/create_confirm_order_details_request_spec.rb +++ b/lib/messaging-api-model/spec/models/create_confirm_order_details_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/create_confirm_order_details_response_spec.rb b/lib/messaging-api-model/spec/models/create_confirm_order_details_response_spec.rb index 1b20099f6..a5cf17e3d 100644 --- a/lib/messaging-api-model/spec/models/create_confirm_order_details_response_spec.rb +++ b/lib/messaging-api-model/spec/models/create_confirm_order_details_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/create_confirm_service_details_request_spec.rb b/lib/messaging-api-model/spec/models/create_confirm_service_details_request_spec.rb index 0d9acface..f33b757a8 100644 --- a/lib/messaging-api-model/spec/models/create_confirm_service_details_request_spec.rb +++ b/lib/messaging-api-model/spec/models/create_confirm_service_details_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/create_confirm_service_details_response_spec.rb b/lib/messaging-api-model/spec/models/create_confirm_service_details_response_spec.rb index d34a6b8c1..758fdd576 100644 --- a/lib/messaging-api-model/spec/models/create_confirm_service_details_response_spec.rb +++ b/lib/messaging-api-model/spec/models/create_confirm_service_details_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/create_digital_access_key_request_spec.rb b/lib/messaging-api-model/spec/models/create_digital_access_key_request_spec.rb index e02ee641c..a1b908ef2 100644 --- a/lib/messaging-api-model/spec/models/create_digital_access_key_request_spec.rb +++ b/lib/messaging-api-model/spec/models/create_digital_access_key_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/create_digital_access_key_response_spec.rb b/lib/messaging-api-model/spec/models/create_digital_access_key_response_spec.rb index 5e9a5e6d0..b8ff68ed2 100644 --- a/lib/messaging-api-model/spec/models/create_digital_access_key_response_spec.rb +++ b/lib/messaging-api-model/spec/models/create_digital_access_key_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/create_legal_disclosure_request_spec.rb b/lib/messaging-api-model/spec/models/create_legal_disclosure_request_spec.rb index 3f752dcde..8f5927051 100644 --- a/lib/messaging-api-model/spec/models/create_legal_disclosure_request_spec.rb +++ b/lib/messaging-api-model/spec/models/create_legal_disclosure_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/create_legal_disclosure_response_spec.rb b/lib/messaging-api-model/spec/models/create_legal_disclosure_response_spec.rb index 0954c1834..984f7ea9b 100644 --- a/lib/messaging-api-model/spec/models/create_legal_disclosure_response_spec.rb +++ b/lib/messaging-api-model/spec/models/create_legal_disclosure_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/create_negative_feedback_removal_response_spec.rb b/lib/messaging-api-model/spec/models/create_negative_feedback_removal_response_spec.rb index ed9c6ba59..0815846b7 100644 --- a/lib/messaging-api-model/spec/models/create_negative_feedback_removal_response_spec.rb +++ b/lib/messaging-api-model/spec/models/create_negative_feedback_removal_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/create_unexpected_problem_request_spec.rb b/lib/messaging-api-model/spec/models/create_unexpected_problem_request_spec.rb index 8bfff494e..020839d27 100644 --- a/lib/messaging-api-model/spec/models/create_unexpected_problem_request_spec.rb +++ b/lib/messaging-api-model/spec/models/create_unexpected_problem_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/create_unexpected_problem_response_spec.rb b/lib/messaging-api-model/spec/models/create_unexpected_problem_response_spec.rb index 48c6ba2ce..4e5f37b41 100644 --- a/lib/messaging-api-model/spec/models/create_unexpected_problem_response_spec.rb +++ b/lib/messaging-api-model/spec/models/create_unexpected_problem_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/create_warranty_request_spec.rb b/lib/messaging-api-model/spec/models/create_warranty_request_spec.rb index 695fb4776..604d8b5bd 100644 --- a/lib/messaging-api-model/spec/models/create_warranty_request_spec.rb +++ b/lib/messaging-api-model/spec/models/create_warranty_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/create_warranty_response_spec.rb b/lib/messaging-api-model/spec/models/create_warranty_response_spec.rb index 322726407..e219b2957 100644 --- a/lib/messaging-api-model/spec/models/create_warranty_response_spec.rb +++ b/lib/messaging-api-model/spec/models/create_warranty_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/error_list_spec.rb b/lib/messaging-api-model/spec/models/error_list_spec.rb index d6771d0bd..9307abb84 100644 --- a/lib/messaging-api-model/spec/models/error_list_spec.rb +++ b/lib/messaging-api-model/spec/models/error_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/error_spec.rb b/lib/messaging-api-model/spec/models/error_spec.rb index 82efcc047..263a9b88b 100644 --- a/lib/messaging-api-model/spec/models/error_spec.rb +++ b/lib/messaging-api-model/spec/models/error_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/get_attributes_response_buyer_spec.rb b/lib/messaging-api-model/spec/models/get_attributes_response_buyer_spec.rb index a6ef6c47e..05fd962a0 100644 --- a/lib/messaging-api-model/spec/models/get_attributes_response_buyer_spec.rb +++ b/lib/messaging-api-model/spec/models/get_attributes_response_buyer_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/get_attributes_response_spec.rb b/lib/messaging-api-model/spec/models/get_attributes_response_spec.rb index 13d7ef08f..ab7a0560b 100644 --- a/lib/messaging-api-model/spec/models/get_attributes_response_spec.rb +++ b/lib/messaging-api-model/spec/models/get_attributes_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/get_messaging_action_response__embedded_spec.rb b/lib/messaging-api-model/spec/models/get_messaging_action_response__embedded_spec.rb index 553a3f70d..4902d9272 100644 --- a/lib/messaging-api-model/spec/models/get_messaging_action_response__embedded_spec.rb +++ b/lib/messaging-api-model/spec/models/get_messaging_action_response__embedded_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/get_messaging_action_response__links_spec.rb b/lib/messaging-api-model/spec/models/get_messaging_action_response__links_spec.rb index 4b7a53cdc..0a98b6e41 100644 --- a/lib/messaging-api-model/spec/models/get_messaging_action_response__links_spec.rb +++ b/lib/messaging-api-model/spec/models/get_messaging_action_response__links_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/get_messaging_action_response_spec.rb b/lib/messaging-api-model/spec/models/get_messaging_action_response_spec.rb index 1cd8ca47e..4dde136e2 100644 --- a/lib/messaging-api-model/spec/models/get_messaging_action_response_spec.rb +++ b/lib/messaging-api-model/spec/models/get_messaging_action_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/get_messaging_actions_for_order_response__embedded_spec.rb b/lib/messaging-api-model/spec/models/get_messaging_actions_for_order_response__embedded_spec.rb index e73a3a144..43e16fd39 100644 --- a/lib/messaging-api-model/spec/models/get_messaging_actions_for_order_response__embedded_spec.rb +++ b/lib/messaging-api-model/spec/models/get_messaging_actions_for_order_response__embedded_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/get_messaging_actions_for_order_response__links_spec.rb b/lib/messaging-api-model/spec/models/get_messaging_actions_for_order_response__links_spec.rb index 9416039ff..b5f5087f1 100644 --- a/lib/messaging-api-model/spec/models/get_messaging_actions_for_order_response__links_spec.rb +++ b/lib/messaging-api-model/spec/models/get_messaging_actions_for_order_response__links_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/get_messaging_actions_for_order_response_spec.rb b/lib/messaging-api-model/spec/models/get_messaging_actions_for_order_response_spec.rb index e66534d0e..c67cb655f 100644 --- a/lib/messaging-api-model/spec/models/get_messaging_actions_for_order_response_spec.rb +++ b/lib/messaging-api-model/spec/models/get_messaging_actions_for_order_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/get_schema_response__links_spec.rb b/lib/messaging-api-model/spec/models/get_schema_response__links_spec.rb index 930b76a66..cd1bfd8d2 100644 --- a/lib/messaging-api-model/spec/models/get_schema_response__links_spec.rb +++ b/lib/messaging-api-model/spec/models/get_schema_response__links_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/get_schema_response_spec.rb b/lib/messaging-api-model/spec/models/get_schema_response_spec.rb index 2927e7616..8157449aa 100644 --- a/lib/messaging-api-model/spec/models/get_schema_response_spec.rb +++ b/lib/messaging-api-model/spec/models/get_schema_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/invoice_request_spec.rb b/lib/messaging-api-model/spec/models/invoice_request_spec.rb index c99bf63f1..376ba9bc7 100644 --- a/lib/messaging-api-model/spec/models/invoice_request_spec.rb +++ b/lib/messaging-api-model/spec/models/invoice_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/invoice_response_spec.rb b/lib/messaging-api-model/spec/models/invoice_response_spec.rb index 33c866646..e6c540f20 100644 --- a/lib/messaging-api-model/spec/models/invoice_response_spec.rb +++ b/lib/messaging-api-model/spec/models/invoice_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/link_object_spec.rb b/lib/messaging-api-model/spec/models/link_object_spec.rb index ed769c9ef..ea7dbd899 100644 --- a/lib/messaging-api-model/spec/models/link_object_spec.rb +++ b/lib/messaging-api-model/spec/models/link_object_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/messaging_action_spec.rb b/lib/messaging-api-model/spec/models/messaging_action_spec.rb index 0e023de97..5354b7b5b 100644 --- a/lib/messaging-api-model/spec/models/messaging_action_spec.rb +++ b/lib/messaging-api-model/spec/models/messaging_action_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/models/schema_spec.rb b/lib/messaging-api-model/spec/models/schema_spec.rb index e5f8a1ca2..ab905b394 100644 --- a/lib/messaging-api-model/spec/models/schema_spec.rb +++ b/lib/messaging-api-model/spec/models/schema_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/messaging-api-model/spec/spec_helper.rb b/lib/messaging-api-model/spec/spec_helper.rb index b29e08efd..cb213dac2 100644 --- a/lib/messaging-api-model/spec/spec_helper.rb +++ b/lib/messaging-api-model/spec/spec_helper.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # load the gem diff --git a/lib/messaging-api-model/version.rb b/lib/messaging-api-model/version.rb index 178c080a9..f7a932c71 100644 --- a/lib/messaging-api-model/version.rb +++ b/lib/messaging-api-model/version.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::MessagingApiModel diff --git a/lib/notifications-api-model.rb b/lib/notifications-api-model.rb index 98f97aee8..3e082bed4 100644 --- a/lib/notifications-api-model.rb +++ b/lib/notifications-api-model.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # Common files @@ -40,6 +40,9 @@ require 'notifications-api-model/models/get_subscription_response' require 'notifications-api-model/models/marketplace_filter' require 'notifications-api-model/models/marketplace_ids' +require 'notifications-api-model/models/order_change_type_enum' +require 'notifications-api-model/models/order_change_type_filter' +require 'notifications-api-model/models/order_change_types' require 'notifications-api-model/models/processing_directive' require 'notifications-api-model/models/sqs_resource' require 'notifications-api-model/models/subscription' diff --git a/lib/notifications-api-model/.swagger-codegen/VERSION b/lib/notifications-api-model/.swagger-codegen/VERSION index b39b0b9e0..161761765 100644 --- a/lib/notifications-api-model/.swagger-codegen/VERSION +++ b/lib/notifications-api-model/.swagger-codegen/VERSION @@ -1 +1 @@ -3.0.24 \ No newline at end of file +3.0.46 \ No newline at end of file diff --git a/lib/notifications-api-model/README.md b/lib/notifications-api-model/README.md index 5932619f8..d283a9e70 100644 --- a/lib/notifications-api-model/README.md +++ b/lib/notifications-api-model/README.md @@ -186,6 +186,9 @@ Class | Method | HTTP request | Description - [AmzSpApi::NotificationsApiModel::GetSubscriptionResponse](docs/GetSubscriptionResponse.md) - [AmzSpApi::NotificationsApiModel::MarketplaceFilter](docs/MarketplaceFilter.md) - [AmzSpApi::NotificationsApiModel::MarketplaceIds](docs/MarketplaceIds.md) + - [AmzSpApi::NotificationsApiModel::OrderChangeTypeEnum](docs/OrderChangeTypeEnum.md) + - [AmzSpApi::NotificationsApiModel::OrderChangeTypeFilter](docs/OrderChangeTypeFilter.md) + - [AmzSpApi::NotificationsApiModel::OrderChangeTypes](docs/OrderChangeTypes.md) - [AmzSpApi::NotificationsApiModel::ProcessingDirective](docs/ProcessingDirective.md) - [AmzSpApi::NotificationsApiModel::SqsResource](docs/SqsResource.md) - [AmzSpApi::NotificationsApiModel::Subscription](docs/Subscription.md) diff --git a/lib/notifications-api-model/api/notifications_api.rb b/lib/notifications-api-model/api/notifications_api.rb index 793b9af91..c59583044 100644 --- a/lib/notifications-api-model/api/notifications_api.rb +++ b/lib/notifications-api-model/api/notifications_api.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::NotificationsApiModel diff --git a/lib/notifications-api-model/api_client.rb b/lib/notifications-api-model/api_client.rb index 14a054a3a..5144111f6 100644 --- a/lib/notifications-api-model/api_client.rb +++ b/lib/notifications-api-model/api_client.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/notifications-api-model/api_error.rb b/lib/notifications-api-model/api_error.rb index be95962cd..f58de91cd 100644 --- a/lib/notifications-api-model/api_error.rb +++ b/lib/notifications-api-model/api_error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::NotificationsApiModel diff --git a/lib/notifications-api-model/configuration.rb b/lib/notifications-api-model/configuration.rb index 28cb63dbc..1c8b4020d 100644 --- a/lib/notifications-api-model/configuration.rb +++ b/lib/notifications-api-model/configuration.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::NotificationsApiModel diff --git a/lib/notifications-api-model/docs/EventFilter.md b/lib/notifications-api-model/docs/EventFilter.md index b8c144ca2..307e2f39c 100644 --- a/lib/notifications-api-model/docs/EventFilter.md +++ b/lib/notifications-api-model/docs/EventFilter.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **marketplace_ids** | [**MarketplaceIds**](MarketplaceIds.md) | | [optional] +**order_change_types** | [**OrderChangeTypes**](OrderChangeTypes.md) | | [optional] **aggregation_settings** | [**AggregationSettings**](AggregationSettings.md) | | [optional] **event_filter_type** | **String** | An eventFilterType value that is supported by the specific notificationType. This is used by the subscription service to determine the type of event filter. Refer to the section of the [Notifications Use Case Guide](doc:notifications-api-v1-use-case-guide) that describes the specific notificationType to determine if an eventFilterType is supported. | diff --git a/lib/product-pricing-api-model/docs/AttributeSetList.md b/lib/notifications-api-model/docs/OrderChangeTypeEnum.md similarity index 66% rename from lib/product-pricing-api-model/docs/AttributeSetList.md rename to lib/notifications-api-model/docs/OrderChangeTypeEnum.md index 53d6c9054..eb89d2b36 100644 --- a/lib/product-pricing-api-model/docs/AttributeSetList.md +++ b/lib/notifications-api-model/docs/OrderChangeTypeEnum.md @@ -1,4 +1,4 @@ -# AmzSpApi::ProductPricingApiModel::AttributeSetList +# AmzSpApi::NotificationsApiModel::OrderChangeTypeEnum ## Properties Name | Type | Description | Notes diff --git a/lib/product-pricing-api-model/docs/GetItemOffersBatchRequest.md b/lib/notifications-api-model/docs/OrderChangeTypeFilter.md similarity index 51% rename from lib/product-pricing-api-model/docs/GetItemOffersBatchRequest.md rename to lib/notifications-api-model/docs/OrderChangeTypeFilter.md index c2ec8bbd7..6efbf767b 100644 --- a/lib/product-pricing-api-model/docs/GetItemOffersBatchRequest.md +++ b/lib/notifications-api-model/docs/OrderChangeTypeFilter.md @@ -1,7 +1,7 @@ -# AmzSpApi::ProductPricingApiModel::GetItemOffersBatchRequest +# AmzSpApi::NotificationsApiModel::OrderChangeTypeFilter ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**requests** | [**ItemOffersRequestList**](ItemOffersRequestList.md) | | [optional] +**order_change_types** | [**OrderChangeTypes**](OrderChangeTypes.md) | | [optional] diff --git a/lib/notifications-api-model/docs/OrderChangeTypes.md b/lib/notifications-api-model/docs/OrderChangeTypes.md new file mode 100644 index 000000000..38dc2e2b2 --- /dev/null +++ b/lib/notifications-api-model/docs/OrderChangeTypes.md @@ -0,0 +1,6 @@ +# AmzSpApi::NotificationsApiModel::OrderChangeTypes + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + diff --git a/lib/notifications-api-model/models/aggregation_filter.rb b/lib/notifications-api-model/models/aggregation_filter.rb index 42fe93cc4..e88794162 100644 --- a/lib/notifications-api-model/models/aggregation_filter.rb +++ b/lib/notifications-api-model/models/aggregation_filter.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/notifications-api-model/models/aggregation_settings.rb b/lib/notifications-api-model/models/aggregation_settings.rb index bbb64d25c..0674ebb3c 100644 --- a/lib/notifications-api-model/models/aggregation_settings.rb +++ b/lib/notifications-api-model/models/aggregation_settings.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/notifications-api-model/models/aggregation_time_period.rb b/lib/notifications-api-model/models/aggregation_time_period.rb index 62c681535..44737d4e6 100644 --- a/lib/notifications-api-model/models/aggregation_time_period.rb +++ b/lib/notifications-api-model/models/aggregation_time_period.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/notifications-api-model/models/create_destination_request.rb b/lib/notifications-api-model/models/create_destination_request.rb index e883df1c4..7fb9e6d9c 100644 --- a/lib/notifications-api-model/models/create_destination_request.rb +++ b/lib/notifications-api-model/models/create_destination_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/notifications-api-model/models/create_destination_response.rb b/lib/notifications-api-model/models/create_destination_response.rb index e1bd0add4..c3cde1269 100644 --- a/lib/notifications-api-model/models/create_destination_response.rb +++ b/lib/notifications-api-model/models/create_destination_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/notifications-api-model/models/create_subscription_request.rb b/lib/notifications-api-model/models/create_subscription_request.rb index a975e4a48..839a5a799 100644 --- a/lib/notifications-api-model/models/create_subscription_request.rb +++ b/lib/notifications-api-model/models/create_subscription_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/notifications-api-model/models/create_subscription_response.rb b/lib/notifications-api-model/models/create_subscription_response.rb index 333dcd994..6255cf13e 100644 --- a/lib/notifications-api-model/models/create_subscription_response.rb +++ b/lib/notifications-api-model/models/create_subscription_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/notifications-api-model/models/delete_destination_response.rb b/lib/notifications-api-model/models/delete_destination_response.rb index f812e0bca..62af2ee4a 100644 --- a/lib/notifications-api-model/models/delete_destination_response.rb +++ b/lib/notifications-api-model/models/delete_destination_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/notifications-api-model/models/delete_subscription_by_id_response.rb b/lib/notifications-api-model/models/delete_subscription_by_id_response.rb index cc67589c5..106b5607f 100644 --- a/lib/notifications-api-model/models/delete_subscription_by_id_response.rb +++ b/lib/notifications-api-model/models/delete_subscription_by_id_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/notifications-api-model/models/destination.rb b/lib/notifications-api-model/models/destination.rb index 71ea9b2f9..5ea129a52 100644 --- a/lib/notifications-api-model/models/destination.rb +++ b/lib/notifications-api-model/models/destination.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/notifications-api-model/models/destination_list.rb b/lib/notifications-api-model/models/destination_list.rb index eac0dbe4c..747017625 100644 --- a/lib/notifications-api-model/models/destination_list.rb +++ b/lib/notifications-api-model/models/destination_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/notifications-api-model/models/destination_resource.rb b/lib/notifications-api-model/models/destination_resource.rb index a3f7440fd..b9b4c5c55 100644 --- a/lib/notifications-api-model/models/destination_resource.rb +++ b/lib/notifications-api-model/models/destination_resource.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/notifications-api-model/models/destination_resource_specification.rb b/lib/notifications-api-model/models/destination_resource_specification.rb index bc84e8386..68d82e02e 100644 --- a/lib/notifications-api-model/models/destination_resource_specification.rb +++ b/lib/notifications-api-model/models/destination_resource_specification.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/notifications-api-model/models/error.rb b/lib/notifications-api-model/models/error.rb index 7eaef20a6..1628f36e8 100644 --- a/lib/notifications-api-model/models/error.rb +++ b/lib/notifications-api-model/models/error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/notifications-api-model/models/error_list.rb b/lib/notifications-api-model/models/error_list.rb index c6dc8a2a1..6a93c5e8e 100644 --- a/lib/notifications-api-model/models/error_list.rb +++ b/lib/notifications-api-model/models/error_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/notifications-api-model/models/event_bridge_resource.rb b/lib/notifications-api-model/models/event_bridge_resource.rb index 866d2402b..da27d3ee6 100644 --- a/lib/notifications-api-model/models/event_bridge_resource.rb +++ b/lib/notifications-api-model/models/event_bridge_resource.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/notifications-api-model/models/event_bridge_resource_specification.rb b/lib/notifications-api-model/models/event_bridge_resource_specification.rb index 0430f1a92..b126c4ee5 100644 --- a/lib/notifications-api-model/models/event_bridge_resource_specification.rb +++ b/lib/notifications-api-model/models/event_bridge_resource_specification.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/notifications-api-model/models/event_filter.rb b/lib/notifications-api-model/models/event_filter.rb index 5fc086115..d9b436e80 100644 --- a/lib/notifications-api-model/models/event_filter.rb +++ b/lib/notifications-api-model/models/event_filter.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' @@ -16,15 +16,40 @@ module AmzSpApi::NotificationsApiModel class EventFilter attr_accessor :marketplace_ids + attr_accessor :order_change_types + attr_accessor :aggregation_settings # An eventFilterType value that is supported by the specific notificationType. This is used by the subscription service to determine the type of event filter. Refer to the section of the [Notifications Use Case Guide](doc:notifications-api-v1-use-case-guide) that describes the specific notificationType to determine if an eventFilterType is supported. attr_accessor :event_filter_type + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'marketplace_ids' => :'marketplaceIds', + :'order_change_types' => :'orderChangeTypes', :'aggregation_settings' => :'aggregationSettings', :'event_filter_type' => :'eventFilterType' } @@ -34,6 +59,7 @@ def self.attribute_map def self.openapi_types { :'marketplace_ids' => :'', + :'order_change_types' => :'', :'aggregation_settings' => :'', :'event_filter_type' => :'' } @@ -67,6 +93,10 @@ def initialize(attributes = {}) self.marketplace_ids = attributes[:'marketplace_ids'] end + if attributes.key?(:'order_change_types') + self.order_change_types = attributes[:'order_change_types'] + end + if attributes.key?(:'aggregation_settings') self.aggregation_settings = attributes[:'aggregation_settings'] end @@ -91,15 +121,28 @@ def list_invalid_properties # @return true if the model is valid def valid? return false if @event_filter_type.nil? + event_filter_type_validator = EnumAttributeValidator.new('', ['ANY_OFFER_CHANGED', 'ORDER_CHANGE']) + return false unless event_filter_type_validator.valid?(@event_filter_type) true end + # Custom attribute writer method checking allowed values (enum). + # @param [Object] event_filter_type Object to be assigned + def event_filter_type=(event_filter_type) + validator = EnumAttributeValidator.new('', ['ANY_OFFER_CHANGED', 'ORDER_CHANGE']) + unless validator.valid?(event_filter_type) + fail ArgumentError, "invalid value for \"event_filter_type\", must be one of #{validator.allowable_values}." + end + @event_filter_type = event_filter_type + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && marketplace_ids == o.marketplace_ids && + order_change_types == o.order_change_types && aggregation_settings == o.aggregation_settings && event_filter_type == o.event_filter_type && super(o) end @@ -113,7 +156,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [marketplace_ids, aggregation_settings, event_filter_type].hash + [marketplace_ids, order_change_types, aggregation_settings, event_filter_type].hash end # Builds the object from hash diff --git a/lib/notifications-api-model/models/get_destination_response.rb b/lib/notifications-api-model/models/get_destination_response.rb index aebefd946..913ec1300 100644 --- a/lib/notifications-api-model/models/get_destination_response.rb +++ b/lib/notifications-api-model/models/get_destination_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/notifications-api-model/models/get_destinations_response.rb b/lib/notifications-api-model/models/get_destinations_response.rb index 0aee7b436..32b85b740 100644 --- a/lib/notifications-api-model/models/get_destinations_response.rb +++ b/lib/notifications-api-model/models/get_destinations_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/notifications-api-model/models/get_subscription_by_id_response.rb b/lib/notifications-api-model/models/get_subscription_by_id_response.rb index 6c909b604..40c34db33 100644 --- a/lib/notifications-api-model/models/get_subscription_by_id_response.rb +++ b/lib/notifications-api-model/models/get_subscription_by_id_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/notifications-api-model/models/get_subscription_response.rb b/lib/notifications-api-model/models/get_subscription_response.rb index 8aa653957..d0e94f6d8 100644 --- a/lib/notifications-api-model/models/get_subscription_response.rb +++ b/lib/notifications-api-model/models/get_subscription_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/notifications-api-model/models/marketplace_filter.rb b/lib/notifications-api-model/models/marketplace_filter.rb index 8c16cebc3..cb5929fff 100644 --- a/lib/notifications-api-model/models/marketplace_filter.rb +++ b/lib/notifications-api-model/models/marketplace_filter.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/notifications-api-model/models/marketplace_ids.rb b/lib/notifications-api-model/models/marketplace_ids.rb index 927864592..964f4c812 100644 --- a/lib/notifications-api-model/models/marketplace_ids.rb +++ b/lib/notifications-api-model/models/marketplace_ids.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/notifications-api-model/models/order_change_type_enum.rb b/lib/notifications-api-model/models/order_change_type_enum.rb new file mode 100644 index 000000000..48d0174b3 --- /dev/null +++ b/lib/notifications-api-model/models/order_change_type_enum.rb @@ -0,0 +1,28 @@ +=begin +#Selling Partner API for Notifications + +#The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the [Notifications Use Case Guide](doc:notifications-api-v1-use-case-guide). + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::NotificationsApiModel + class OrderChangeTypeEnum + ORDER_STATUS_CHANGE = 'OrderStatusChange'.freeze + BUYER_REQUESTED_CHANGE = 'BuyerRequestedChange'.freeze + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def build_from_hash(value) + constantValues = OrderChangeTypeEnum.constants.select { |c| OrderChangeTypeEnum::const_get(c) == value } + raise "Invalid ENUM value #{value} for class #OrderChangeTypeEnum" if constantValues.empty? + value + end + end +end diff --git a/lib/notifications-api-model/models/order_change_type_filter.rb b/lib/notifications-api-model/models/order_change_type_filter.rb new file mode 100644 index 000000000..1e4028ea0 --- /dev/null +++ b/lib/notifications-api-model/models/order_change_type_filter.rb @@ -0,0 +1,207 @@ +=begin +#Selling Partner API for Notifications + +#The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the [Notifications Use Case Guide](doc:notifications-api-v1-use-case-guide). + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::NotificationsApiModel + # Use this event filter to customize your subscription to send notifications for only the specified orderChangeType. + class OrderChangeTypeFilter + attr_accessor :order_change_types + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'order_change_types' => :'orderChangeTypes' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'order_change_types' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::NotificationsApiModel::OrderChangeTypeFilter` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::NotificationsApiModel::OrderChangeTypeFilter`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'order_change_types') + self.order_change_types = attributes[:'order_change_types'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + order_change_types == o.order_change_types + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [order_change_types].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::NotificationsApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/notifications-api-model/models/order_change_types.rb b/lib/notifications-api-model/models/order_change_types.rb new file mode 100644 index 000000000..1d4c7c82b --- /dev/null +++ b/lib/notifications-api-model/models/order_change_types.rb @@ -0,0 +1,202 @@ +=begin +#Selling Partner API for Notifications + +#The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the [Notifications Use Case Guide](doc:notifications-api-v1-use-case-guide). + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::NotificationsApiModel + # A list of order change types to subscribe to (e.g. BuyerRequestedChange). To receive notifications of all change types, do not provide this list. + class OrderChangeTypes + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + } + end + + # Attribute type mapping. + def self.openapi_types + { + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::NotificationsApiModel::OrderChangeTypes` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::NotificationsApiModel::OrderChangeTypes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + # call parent's initialize + super(attributes) + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = super + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && super(o) + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + super(attributes) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::NotificationsApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = super + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/notifications-api-model/models/processing_directive.rb b/lib/notifications-api-model/models/processing_directive.rb index 41a349c6d..1ff819e7a 100644 --- a/lib/notifications-api-model/models/processing_directive.rb +++ b/lib/notifications-api-model/models/processing_directive.rb @@ -6,13 +6,13 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::NotificationsApiModel - # Additional information passed to the subscription to control the processing of notifications. For example, you can use an eventFilter to customize your subscription to send notifications for only the specified marketplaceId's, or select the aggregation time period at which to send notifications (e.g. limit to one notification every five minutes for high frequency notifications). The specific features available vary depending on the notificationType. This feature is limited to specific notificationTypes and is currently only supported by the ANY_OFFER_CHANGED notificationType. + # Additional information passed to the subscription to control the processing of notifications. For example, you can use an `eventFilter` to customize your subscription to send notifications for only the specified marketplaceId's, or select the aggregation time period at which to send notifications (e.g. limit to one notification every five minutes for high frequency notifications). The specific features available vary depending on the notificationType. This feature is currently only supported by the `ANY_OFFER_CHANGED` and `ORDER_CHANGE` notificationTypes. class ProcessingDirective attr_accessor :event_filter diff --git a/lib/notifications-api-model/models/sqs_resource.rb b/lib/notifications-api-model/models/sqs_resource.rb index 34e7e1c2e..9c5648d03 100644 --- a/lib/notifications-api-model/models/sqs_resource.rb +++ b/lib/notifications-api-model/models/sqs_resource.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/notifications-api-model/models/subscription.rb b/lib/notifications-api-model/models/subscription.rb index 768a484c1..b5fc641b9 100644 --- a/lib/notifications-api-model/models/subscription.rb +++ b/lib/notifications-api-model/models/subscription.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/notifications-api-model/spec/api/notifications_api_spec.rb b/lib/notifications-api-model/spec/api/notifications_api_spec.rb index 1a9d7a9ac..534b20845 100644 --- a/lib/notifications-api-model/spec/api/notifications_api_spec.rb +++ b/lib/notifications-api-model/spec/api/notifications_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/notifications-api-model/spec/api_client_spec.rb b/lib/notifications-api-model/spec/api_client_spec.rb index 808313aaf..0e309220f 100644 --- a/lib/notifications-api-model/spec/api_client_spec.rb +++ b/lib/notifications-api-model/spec/api_client_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/notifications-api-model/spec/configuration_spec.rb b/lib/notifications-api-model/spec/configuration_spec.rb index 82343f399..4b0e0a031 100644 --- a/lib/notifications-api-model/spec/configuration_spec.rb +++ b/lib/notifications-api-model/spec/configuration_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/notifications-api-model/spec/models/aggregation_filter_spec.rb b/lib/notifications-api-model/spec/models/aggregation_filter_spec.rb index 92ee004ad..d247e0d22 100644 --- a/lib/notifications-api-model/spec/models/aggregation_filter_spec.rb +++ b/lib/notifications-api-model/spec/models/aggregation_filter_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/notifications-api-model/spec/models/aggregation_settings_spec.rb b/lib/notifications-api-model/spec/models/aggregation_settings_spec.rb index 734a7046b..2710fa2b8 100644 --- a/lib/notifications-api-model/spec/models/aggregation_settings_spec.rb +++ b/lib/notifications-api-model/spec/models/aggregation_settings_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/notifications-api-model/spec/models/aggregation_time_period_spec.rb b/lib/notifications-api-model/spec/models/aggregation_time_period_spec.rb index 58a5c1cca..d0a0689d0 100644 --- a/lib/notifications-api-model/spec/models/aggregation_time_period_spec.rb +++ b/lib/notifications-api-model/spec/models/aggregation_time_period_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/notifications-api-model/spec/models/create_destination_request_spec.rb b/lib/notifications-api-model/spec/models/create_destination_request_spec.rb index b504fd27b..88fe4b346 100644 --- a/lib/notifications-api-model/spec/models/create_destination_request_spec.rb +++ b/lib/notifications-api-model/spec/models/create_destination_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/notifications-api-model/spec/models/create_destination_response_spec.rb b/lib/notifications-api-model/spec/models/create_destination_response_spec.rb index ade84215b..c2949de28 100644 --- a/lib/notifications-api-model/spec/models/create_destination_response_spec.rb +++ b/lib/notifications-api-model/spec/models/create_destination_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/notifications-api-model/spec/models/create_subscription_request_spec.rb b/lib/notifications-api-model/spec/models/create_subscription_request_spec.rb index b7271c8f0..ee996119c 100644 --- a/lib/notifications-api-model/spec/models/create_subscription_request_spec.rb +++ b/lib/notifications-api-model/spec/models/create_subscription_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/notifications-api-model/spec/models/create_subscription_response_spec.rb b/lib/notifications-api-model/spec/models/create_subscription_response_spec.rb index 7df632480..a9b9d135f 100644 --- a/lib/notifications-api-model/spec/models/create_subscription_response_spec.rb +++ b/lib/notifications-api-model/spec/models/create_subscription_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/notifications-api-model/spec/models/delete_destination_response_spec.rb b/lib/notifications-api-model/spec/models/delete_destination_response_spec.rb index c37d20c78..73359ef5d 100644 --- a/lib/notifications-api-model/spec/models/delete_destination_response_spec.rb +++ b/lib/notifications-api-model/spec/models/delete_destination_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/notifications-api-model/spec/models/delete_subscription_by_id_response_spec.rb b/lib/notifications-api-model/spec/models/delete_subscription_by_id_response_spec.rb index 3bc7f5be9..3ee31350b 100644 --- a/lib/notifications-api-model/spec/models/delete_subscription_by_id_response_spec.rb +++ b/lib/notifications-api-model/spec/models/delete_subscription_by_id_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/notifications-api-model/spec/models/destination_list_spec.rb b/lib/notifications-api-model/spec/models/destination_list_spec.rb index 3edb94cd5..85ed3532c 100644 --- a/lib/notifications-api-model/spec/models/destination_list_spec.rb +++ b/lib/notifications-api-model/spec/models/destination_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/notifications-api-model/spec/models/destination_resource_spec.rb b/lib/notifications-api-model/spec/models/destination_resource_spec.rb index 828070a8a..f52ebc7bb 100644 --- a/lib/notifications-api-model/spec/models/destination_resource_spec.rb +++ b/lib/notifications-api-model/spec/models/destination_resource_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/notifications-api-model/spec/models/destination_resource_specification_spec.rb b/lib/notifications-api-model/spec/models/destination_resource_specification_spec.rb index 8c79fc712..000da97bb 100644 --- a/lib/notifications-api-model/spec/models/destination_resource_specification_spec.rb +++ b/lib/notifications-api-model/spec/models/destination_resource_specification_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/notifications-api-model/spec/models/destination_spec.rb b/lib/notifications-api-model/spec/models/destination_spec.rb index 48f89d496..8c946b736 100644 --- a/lib/notifications-api-model/spec/models/destination_spec.rb +++ b/lib/notifications-api-model/spec/models/destination_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/notifications-api-model/spec/models/error_list_spec.rb b/lib/notifications-api-model/spec/models/error_list_spec.rb index 772adc45a..64a745ed9 100644 --- a/lib/notifications-api-model/spec/models/error_list_spec.rb +++ b/lib/notifications-api-model/spec/models/error_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/notifications-api-model/spec/models/error_spec.rb b/lib/notifications-api-model/spec/models/error_spec.rb index f412ada78..65c1c8550 100644 --- a/lib/notifications-api-model/spec/models/error_spec.rb +++ b/lib/notifications-api-model/spec/models/error_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/notifications-api-model/spec/models/event_bridge_resource_spec.rb b/lib/notifications-api-model/spec/models/event_bridge_resource_spec.rb index df01edb92..e171e6904 100644 --- a/lib/notifications-api-model/spec/models/event_bridge_resource_spec.rb +++ b/lib/notifications-api-model/spec/models/event_bridge_resource_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/notifications-api-model/spec/models/event_bridge_resource_specification_spec.rb b/lib/notifications-api-model/spec/models/event_bridge_resource_specification_spec.rb index fa0ee2da4..4205d3eec 100644 --- a/lib/notifications-api-model/spec/models/event_bridge_resource_specification_spec.rb +++ b/lib/notifications-api-model/spec/models/event_bridge_resource_specification_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/notifications-api-model/spec/models/event_filter_spec.rb b/lib/notifications-api-model/spec/models/event_filter_spec.rb index d9bb1c268..b83a3043e 100644 --- a/lib/notifications-api-model/spec/models/event_filter_spec.rb +++ b/lib/notifications-api-model/spec/models/event_filter_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -37,6 +37,12 @@ end end + describe 'test attribute "order_change_types"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "aggregation_settings"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -46,6 +52,10 @@ describe 'test attribute "event_filter_type"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["ANY_OFFER_CHANGED", "ORDER_CHANGE"]) + # validator.allowable_values.each do |value| + # expect { @instance.event_filter_type = value }.not_to raise_error + # end end end diff --git a/lib/notifications-api-model/spec/models/get_destination_response_spec.rb b/lib/notifications-api-model/spec/models/get_destination_response_spec.rb index 9130bfef2..61e11d4a0 100644 --- a/lib/notifications-api-model/spec/models/get_destination_response_spec.rb +++ b/lib/notifications-api-model/spec/models/get_destination_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/notifications-api-model/spec/models/get_destinations_response_spec.rb b/lib/notifications-api-model/spec/models/get_destinations_response_spec.rb index 719369d78..4891711a7 100644 --- a/lib/notifications-api-model/spec/models/get_destinations_response_spec.rb +++ b/lib/notifications-api-model/spec/models/get_destinations_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/notifications-api-model/spec/models/get_subscription_by_id_response_spec.rb b/lib/notifications-api-model/spec/models/get_subscription_by_id_response_spec.rb index c81d6ca91..7f6f17f01 100644 --- a/lib/notifications-api-model/spec/models/get_subscription_by_id_response_spec.rb +++ b/lib/notifications-api-model/spec/models/get_subscription_by_id_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/notifications-api-model/spec/models/get_subscription_response_spec.rb b/lib/notifications-api-model/spec/models/get_subscription_response_spec.rb index f040706f1..2e12df3b4 100644 --- a/lib/notifications-api-model/spec/models/get_subscription_response_spec.rb +++ b/lib/notifications-api-model/spec/models/get_subscription_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/notifications-api-model/spec/models/marketplace_filter_spec.rb b/lib/notifications-api-model/spec/models/marketplace_filter_spec.rb index 8a26b7b47..ac0ff2479 100644 --- a/lib/notifications-api-model/spec/models/marketplace_filter_spec.rb +++ b/lib/notifications-api-model/spec/models/marketplace_filter_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/notifications-api-model/spec/models/marketplace_ids_spec.rb b/lib/notifications-api-model/spec/models/marketplace_ids_spec.rb index 58b1bbbcb..bc7160e1a 100644 --- a/lib/notifications-api-model/spec/models/marketplace_ids_spec.rb +++ b/lib/notifications-api-model/spec/models/marketplace_ids_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/notifications-api-model/spec/models/order_change_type_enum_spec.rb b/lib/notifications-api-model/spec/models/order_change_type_enum_spec.rb new file mode 100644 index 000000000..270172907 --- /dev/null +++ b/lib/notifications-api-model/spec/models/order_change_type_enum_spec.rb @@ -0,0 +1,34 @@ +=begin +#Selling Partner API for Notifications + +#The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the [Notifications Use Case Guide](doc:notifications-api-v1-use-case-guide). + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::NotificationsApiModel::OrderChangeTypeEnum +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'OrderChangeTypeEnum' do + before do + # run before each test + @instance = AmzSpApi::NotificationsApiModel::OrderChangeTypeEnum.new + end + + after do + # run after each test + end + + describe 'test an instance of OrderChangeTypeEnum' do + it 'should create an instance of OrderChangeTypeEnum' do + expect(@instance).to be_instance_of(AmzSpApi::NotificationsApiModel::OrderChangeTypeEnum) + end + end +end diff --git a/lib/notifications-api-model/spec/models/order_change_type_filter_spec.rb b/lib/notifications-api-model/spec/models/order_change_type_filter_spec.rb new file mode 100644 index 000000000..2547ef0f0 --- /dev/null +++ b/lib/notifications-api-model/spec/models/order_change_type_filter_spec.rb @@ -0,0 +1,40 @@ +=begin +#Selling Partner API for Notifications + +#The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the [Notifications Use Case Guide](doc:notifications-api-v1-use-case-guide). + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::NotificationsApiModel::OrderChangeTypeFilter +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'OrderChangeTypeFilter' do + before do + # run before each test + @instance = AmzSpApi::NotificationsApiModel::OrderChangeTypeFilter.new + end + + after do + # run after each test + end + + describe 'test an instance of OrderChangeTypeFilter' do + it 'should create an instance of OrderChangeTypeFilter' do + expect(@instance).to be_instance_of(AmzSpApi::NotificationsApiModel::OrderChangeTypeFilter) + end + end + describe 'test attribute "order_change_types"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/notifications-api-model/spec/models/order_change_types_spec.rb b/lib/notifications-api-model/spec/models/order_change_types_spec.rb new file mode 100644 index 000000000..56ce7e109 --- /dev/null +++ b/lib/notifications-api-model/spec/models/order_change_types_spec.rb @@ -0,0 +1,34 @@ +=begin +#Selling Partner API for Notifications + +#The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the [Notifications Use Case Guide](doc:notifications-api-v1-use-case-guide). + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::NotificationsApiModel::OrderChangeTypes +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'OrderChangeTypes' do + before do + # run before each test + @instance = AmzSpApi::NotificationsApiModel::OrderChangeTypes.new + end + + after do + # run after each test + end + + describe 'test an instance of OrderChangeTypes' do + it 'should create an instance of OrderChangeTypes' do + expect(@instance).to be_instance_of(AmzSpApi::NotificationsApiModel::OrderChangeTypes) + end + end +end diff --git a/lib/notifications-api-model/spec/models/processing_directive_spec.rb b/lib/notifications-api-model/spec/models/processing_directive_spec.rb index e6030136d..41f6503bc 100644 --- a/lib/notifications-api-model/spec/models/processing_directive_spec.rb +++ b/lib/notifications-api-model/spec/models/processing_directive_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/notifications-api-model/spec/models/sqs_resource_spec.rb b/lib/notifications-api-model/spec/models/sqs_resource_spec.rb index 394868f12..3e08bde6c 100644 --- a/lib/notifications-api-model/spec/models/sqs_resource_spec.rb +++ b/lib/notifications-api-model/spec/models/sqs_resource_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/notifications-api-model/spec/models/subscription_spec.rb b/lib/notifications-api-model/spec/models/subscription_spec.rb index cb4cd76f9..7028ff397 100644 --- a/lib/notifications-api-model/spec/models/subscription_spec.rb +++ b/lib/notifications-api-model/spec/models/subscription_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/notifications-api-model/spec/spec_helper.rb b/lib/notifications-api-model/spec/spec_helper.rb index 2ab249f14..52abc547e 100644 --- a/lib/notifications-api-model/spec/spec_helper.rb +++ b/lib/notifications-api-model/spec/spec_helper.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # load the gem diff --git a/lib/notifications-api-model/version.rb b/lib/notifications-api-model/version.rb index 6ee414052..0d34cda94 100644 --- a/lib/notifications-api-model/version.rb +++ b/lib/notifications-api-model/version.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::NotificationsApiModel diff --git a/lib/orders-api-model.rb b/lib/orders-api-model.rb index 5a21cf635..a55ffb3ea 100644 --- a/lib/orders-api-model.rb +++ b/lib/orders-api-model.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # Common files @@ -18,15 +18,22 @@ # Models require 'orders-api-model/models/address' require 'orders-api-model/models/automated_shipping_settings' +require 'orders-api-model/models/business_hours' require 'orders-api-model/models/buyer_customized_info_detail' require 'orders-api-model/models/buyer_info' require 'orders-api-model/models/buyer_requested_cancel' require 'orders-api-model/models/buyer_tax_info' require 'orders-api-model/models/buyer_tax_information' +require 'orders-api-model/models/confirm_shipment_error_response' +require 'orders-api-model/models/confirm_shipment_order_item' +require 'orders-api-model/models/confirm_shipment_order_items_list' +require 'orders-api-model/models/confirm_shipment_request' +require 'orders-api-model/models/delivery_preferences' require 'orders-api-model/models/easy_ship_shipment_status' require 'orders-api-model/models/electronic_invoice_status' require 'orders-api-model/models/error' require 'orders-api-model/models/error_list' +require 'orders-api-model/models/exception_dates' require 'orders-api-model/models/fulfillment_instruction' require 'orders-api-model/models/get_order_address_response' require 'orders-api-model/models/get_order_buyer_info_response' @@ -39,6 +46,8 @@ require 'orders-api-model/models/marketplace_id' require 'orders-api-model/models/marketplace_tax_info' require 'orders-api-model/models/money' +require 'orders-api-model/models/open_interval' +require 'orders-api-model/models/open_time_interval' require 'orders-api-model/models/order' require 'orders-api-model/models/order_address' require 'orders-api-model/models/order_buyer_info' @@ -53,10 +62,14 @@ require 'orders-api-model/models/order_list' require 'orders-api-model/models/order_regulated_info' require 'orders-api-model/models/orders_list' +require 'orders-api-model/models/other_delivery_attributes' +require 'orders-api-model/models/package_detail' +require 'orders-api-model/models/package_reference_id' require 'orders-api-model/models/payment_execution_detail_item' require 'orders-api-model/models/payment_execution_detail_item_list' require 'orders-api-model/models/payment_method_detail_item_list' require 'orders-api-model/models/points_granted_detail' +require 'orders-api-model/models/preferred_delivery_time' require 'orders-api-model/models/product_info_detail' require 'orders-api-model/models/promotion_id_list' require 'orders-api-model/models/regulated_information' @@ -66,6 +79,8 @@ require 'orders-api-model/models/shipment_status' require 'orders-api-model/models/tax_classification' require 'orders-api-model/models/tax_collection' +require 'orders-api-model/models/transparency_code' +require 'orders-api-model/models/transparency_code_list' require 'orders-api-model/models/update_shipment_status_error_response' require 'orders-api-model/models/update_shipment_status_request' require 'orders-api-model/models/update_verification_status_error_response' diff --git a/lib/orders-api-model/.swagger-codegen/VERSION b/lib/orders-api-model/.swagger-codegen/VERSION index b39b0b9e0..161761765 100644 --- a/lib/orders-api-model/.swagger-codegen/VERSION +++ b/lib/orders-api-model/.swagger-codegen/VERSION @@ -1 +1 @@ -3.0.24 \ No newline at end of file +3.0.46 \ No newline at end of file diff --git a/lib/orders-api-model/README.md b/lib/orders-api-model/README.md index 4cabff15f..e89ba95fa 100644 --- a/lib/orders-api-model/README.md +++ b/lib/orders-api-model/README.md @@ -2,7 +2,7 @@ AmzSpApi::OrdersApiModel - the Ruby gem for the Selling Partner API for Orders -The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: @@ -55,6 +55,17 @@ Please follow the [installation](#installation) procedure and then run the follo # Load the gem require 'orders-api-model' +api_instance = AmzSpApi::OrdersApiModel::OrdersV0Api.new +body = AmzSpApi::OrdersApiModel::ConfirmShipmentRequest.new # ConfirmShipmentRequest | Request body of confirmShipment. +order_id = 'order_id_example' # String | An Amazon-defined order identifier, in 3-7-7 format. + + +begin + api_instance.confirm_shipment(body, order_id) +rescue AmzSpApi::OrdersApiModel::ApiError => e + puts "Exception when calling OrdersV0Api->confirm_shipment: #{e}" +end + api_instance = AmzSpApi::OrdersApiModel::OrdersV0Api.new order_id = 'order_id_example' # String | An Amazon-defined order identifier, in 3-7-7 format. @@ -183,6 +194,7 @@ All URIs are relative to *https://sellingpartnerapi-na.amazon.com/* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- +*AmzSpApi::OrdersApiModel::OrdersV0Api* | [**confirm_shipment**](docs/OrdersV0Api.md#confirm_shipment) | **POST** /orders/v0/orders/{orderId}/shipmentConfirmation | *AmzSpApi::OrdersApiModel::OrdersV0Api* | [**get_order**](docs/OrdersV0Api.md#get_order) | **GET** /orders/v0/orders/{orderId} | *AmzSpApi::OrdersApiModel::OrdersV0Api* | [**get_order_address**](docs/OrdersV0Api.md#get_order_address) | **GET** /orders/v0/orders/{orderId}/address | *AmzSpApi::OrdersApiModel::OrdersV0Api* | [**get_order_buyer_info**](docs/OrdersV0Api.md#get_order_buyer_info) | **GET** /orders/v0/orders/{orderId}/buyerInfo | @@ -197,15 +209,22 @@ Class | Method | HTTP request | Description - [AmzSpApi::OrdersApiModel::Address](docs/Address.md) - [AmzSpApi::OrdersApiModel::AutomatedShippingSettings](docs/AutomatedShippingSettings.md) + - [AmzSpApi::OrdersApiModel::BusinessHours](docs/BusinessHours.md) - [AmzSpApi::OrdersApiModel::BuyerCustomizedInfoDetail](docs/BuyerCustomizedInfoDetail.md) - [AmzSpApi::OrdersApiModel::BuyerInfo](docs/BuyerInfo.md) - [AmzSpApi::OrdersApiModel::BuyerRequestedCancel](docs/BuyerRequestedCancel.md) - [AmzSpApi::OrdersApiModel::BuyerTaxInfo](docs/BuyerTaxInfo.md) - [AmzSpApi::OrdersApiModel::BuyerTaxInformation](docs/BuyerTaxInformation.md) + - [AmzSpApi::OrdersApiModel::ConfirmShipmentErrorResponse](docs/ConfirmShipmentErrorResponse.md) + - [AmzSpApi::OrdersApiModel::ConfirmShipmentOrderItem](docs/ConfirmShipmentOrderItem.md) + - [AmzSpApi::OrdersApiModel::ConfirmShipmentOrderItemsList](docs/ConfirmShipmentOrderItemsList.md) + - [AmzSpApi::OrdersApiModel::ConfirmShipmentRequest](docs/ConfirmShipmentRequest.md) + - [AmzSpApi::OrdersApiModel::DeliveryPreferences](docs/DeliveryPreferences.md) - [AmzSpApi::OrdersApiModel::EasyShipShipmentStatus](docs/EasyShipShipmentStatus.md) - [AmzSpApi::OrdersApiModel::ElectronicInvoiceStatus](docs/ElectronicInvoiceStatus.md) - [AmzSpApi::OrdersApiModel::Error](docs/Error.md) - [AmzSpApi::OrdersApiModel::ErrorList](docs/ErrorList.md) + - [AmzSpApi::OrdersApiModel::ExceptionDates](docs/ExceptionDates.md) - [AmzSpApi::OrdersApiModel::FulfillmentInstruction](docs/FulfillmentInstruction.md) - [AmzSpApi::OrdersApiModel::GetOrderAddressResponse](docs/GetOrderAddressResponse.md) - [AmzSpApi::OrdersApiModel::GetOrderBuyerInfoResponse](docs/GetOrderBuyerInfoResponse.md) @@ -218,6 +237,8 @@ Class | Method | HTTP request | Description - [AmzSpApi::OrdersApiModel::MarketplaceId](docs/MarketplaceId.md) - [AmzSpApi::OrdersApiModel::MarketplaceTaxInfo](docs/MarketplaceTaxInfo.md) - [AmzSpApi::OrdersApiModel::Money](docs/Money.md) + - [AmzSpApi::OrdersApiModel::OpenInterval](docs/OpenInterval.md) + - [AmzSpApi::OrdersApiModel::OpenTimeInterval](docs/OpenTimeInterval.md) - [AmzSpApi::OrdersApiModel::Order](docs/Order.md) - [AmzSpApi::OrdersApiModel::OrderAddress](docs/OrderAddress.md) - [AmzSpApi::OrdersApiModel::OrderBuyerInfo](docs/OrderBuyerInfo.md) @@ -232,10 +253,14 @@ Class | Method | HTTP request | Description - [AmzSpApi::OrdersApiModel::OrderList](docs/OrderList.md) - [AmzSpApi::OrdersApiModel::OrderRegulatedInfo](docs/OrderRegulatedInfo.md) - [AmzSpApi::OrdersApiModel::OrdersList](docs/OrdersList.md) + - [AmzSpApi::OrdersApiModel::OtherDeliveryAttributes](docs/OtherDeliveryAttributes.md) + - [AmzSpApi::OrdersApiModel::PackageDetail](docs/PackageDetail.md) + - [AmzSpApi::OrdersApiModel::PackageReferenceId](docs/PackageReferenceId.md) - [AmzSpApi::OrdersApiModel::PaymentExecutionDetailItem](docs/PaymentExecutionDetailItem.md) - [AmzSpApi::OrdersApiModel::PaymentExecutionDetailItemList](docs/PaymentExecutionDetailItemList.md) - [AmzSpApi::OrdersApiModel::PaymentMethodDetailItemList](docs/PaymentMethodDetailItemList.md) - [AmzSpApi::OrdersApiModel::PointsGrantedDetail](docs/PointsGrantedDetail.md) + - [AmzSpApi::OrdersApiModel::PreferredDeliveryTime](docs/PreferredDeliveryTime.md) - [AmzSpApi::OrdersApiModel::ProductInfoDetail](docs/ProductInfoDetail.md) - [AmzSpApi::OrdersApiModel::PromotionIdList](docs/PromotionIdList.md) - [AmzSpApi::OrdersApiModel::RegulatedInformation](docs/RegulatedInformation.md) @@ -245,6 +270,8 @@ Class | Method | HTTP request | Description - [AmzSpApi::OrdersApiModel::ShipmentStatus](docs/ShipmentStatus.md) - [AmzSpApi::OrdersApiModel::TaxClassification](docs/TaxClassification.md) - [AmzSpApi::OrdersApiModel::TaxCollection](docs/TaxCollection.md) + - [AmzSpApi::OrdersApiModel::TransparencyCode](docs/TransparencyCode.md) + - [AmzSpApi::OrdersApiModel::TransparencyCodeList](docs/TransparencyCodeList.md) - [AmzSpApi::OrdersApiModel::UpdateShipmentStatusErrorResponse](docs/UpdateShipmentStatusErrorResponse.md) - [AmzSpApi::OrdersApiModel::UpdateShipmentStatusRequest](docs/UpdateShipmentStatusRequest.md) - [AmzSpApi::OrdersApiModel::UpdateVerificationStatusErrorResponse](docs/UpdateVerificationStatusErrorResponse.md) diff --git a/lib/orders-api-model/api/orders_v0_api.rb b/lib/orders-api-model/api/orders_v0_api.rb index 95864c3fe..11e85ca96 100644 --- a/lib/orders-api-model/api/orders_v0_api.rb +++ b/lib/orders-api-model/api/orders_v0_api.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::OrdersApiModel @@ -16,6 +16,68 @@ class OrdersV0Api def initialize(api_client = ApiClient.default) @api_client = api_client end + # Updates the shipment confirmation status for a specified order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # @param body Request body of confirmShipment. + # @param order_id An Amazon-defined order identifier, in 3-7-7 format. + # @param [Hash] opts the optional parameters + # @return [nil] + def confirm_shipment(body, order_id, opts = {}) + confirm_shipment_with_http_info(body, order_id, opts) + nil + end + + # Updates the shipment confirmation status for a specified order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # @param body Request body of confirmShipment. + # @param order_id An Amazon-defined order identifier, in 3-7-7 format. + # @param [Hash] opts the optional parameters + # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers + def confirm_shipment_with_http_info(body, order_id, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: OrdersV0Api.confirm_shipment ...' + end + # verify the required parameter 'body' is set + if @api_client.config.client_side_validation && body.nil? + fail ArgumentError, "Missing the required parameter 'body' when calling OrdersV0Api.confirm_shipment" + end + # verify the required parameter 'order_id' is set + if @api_client.config.client_side_validation && order_id.nil? + fail ArgumentError, "Missing the required parameter 'order_id' when calling OrdersV0Api.confirm_shipment" + end + # resource path + local_var_path = '/orders/v0/orders/{orderId}/shipmentConfirmation'.sub('{' + 'orderId' + '}', order_id.to_s) + + # query parameters + query_params = opts[:query_params] || {} + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:body] || @api_client.object_to_http_body(body) + + return_type = opts[:return_type] + + auth_names = opts[:auth_names] || [] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type) + + if @api_client.config.debugging + @api_client.config.logger.debug "API called: OrdersV0Api#confirm_shipment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end # Returns the order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 20 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). # @param order_id An Amazon-defined order identifier, in 3-7-7 format. # @param [Hash] opts the optional parameters diff --git a/lib/orders-api-model/api/shipment_api.rb b/lib/orders-api-model/api/shipment_api.rb index 841264c72..ab1d769ff 100644 --- a/lib/orders-api-model/api/shipment_api.rb +++ b/lib/orders-api-model/api/shipment_api.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::OrdersApiModel diff --git a/lib/orders-api-model/api_client.rb b/lib/orders-api-model/api_client.rb index 27db003a0..0ebcd47f2 100644 --- a/lib/orders-api-model/api_client.rb +++ b/lib/orders-api-model/api_client.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/api_error.rb b/lib/orders-api-model/api_error.rb index 7c364de55..089c80115 100644 --- a/lib/orders-api-model/api_error.rb +++ b/lib/orders-api-model/api_error.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::OrdersApiModel diff --git a/lib/orders-api-model/configuration.rb b/lib/orders-api-model/configuration.rb index 05091f81b..ca1939a09 100644 --- a/lib/orders-api-model/configuration.rb +++ b/lib/orders-api-model/configuration.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::OrdersApiModel diff --git a/lib/orders-api-model/docs/BusinessHours.md b/lib/orders-api-model/docs/BusinessHours.md new file mode 100644 index 000000000..ddbc44b75 --- /dev/null +++ b/lib/orders-api-model/docs/BusinessHours.md @@ -0,0 +1,8 @@ +# AmzSpApi::OrdersApiModel::BusinessHours + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**day_of_week** | **String** | Day of the week. | [optional] +**open_intervals** | [**Array<OpenInterval>**](OpenInterval.md) | Time window during the day when the business is open. | [optional] + diff --git a/lib/orders-api-model/docs/ConfirmShipmentErrorResponse.md b/lib/orders-api-model/docs/ConfirmShipmentErrorResponse.md new file mode 100644 index 000000000..4595b74ac --- /dev/null +++ b/lib/orders-api-model/docs/ConfirmShipmentErrorResponse.md @@ -0,0 +1,7 @@ +# AmzSpApi::OrdersApiModel::ConfirmShipmentErrorResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**errors** | [**ErrorList**](ErrorList.md) | | [optional] + diff --git a/lib/orders-api-model/docs/ConfirmShipmentOrderItem.md b/lib/orders-api-model/docs/ConfirmShipmentOrderItem.md new file mode 100644 index 000000000..279d9f3ca --- /dev/null +++ b/lib/orders-api-model/docs/ConfirmShipmentOrderItem.md @@ -0,0 +1,9 @@ +# AmzSpApi::OrdersApiModel::ConfirmShipmentOrderItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**order_item_id** | **String** | The unique identifier of the order item. | +**quantity** | **Integer** | The quantity of the item. | +**transparency_codes** | [**TransparencyCodeList**](TransparencyCodeList.md) | | [optional] + diff --git a/lib/product-pricing-api-model/docs/BuyBoxEligibleOffers.md b/lib/orders-api-model/docs/ConfirmShipmentOrderItemsList.md similarity index 65% rename from lib/product-pricing-api-model/docs/BuyBoxEligibleOffers.md rename to lib/orders-api-model/docs/ConfirmShipmentOrderItemsList.md index 4b63577be..6851b79dd 100644 --- a/lib/product-pricing-api-model/docs/BuyBoxEligibleOffers.md +++ b/lib/orders-api-model/docs/ConfirmShipmentOrderItemsList.md @@ -1,4 +1,4 @@ -# AmzSpApi::ProductPricingApiModel::BuyBoxEligibleOffers +# AmzSpApi::OrdersApiModel::ConfirmShipmentOrderItemsList ## Properties Name | Type | Description | Notes diff --git a/lib/orders-api-model/docs/ConfirmShipmentRequest.md b/lib/orders-api-model/docs/ConfirmShipmentRequest.md new file mode 100644 index 000000000..cab694cad --- /dev/null +++ b/lib/orders-api-model/docs/ConfirmShipmentRequest.md @@ -0,0 +1,9 @@ +# AmzSpApi::OrdersApiModel::ConfirmShipmentRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**package_detail** | [**PackageDetail**](PackageDetail.md) | | +**cod_collection_method** | **String** | The cod collection method, support in JP only. | [optional] +**marketplace_id** | [**MarketplaceId**](MarketplaceId.md) | | + diff --git a/lib/orders-api-model/docs/DeliveryPreferences.md b/lib/orders-api-model/docs/DeliveryPreferences.md new file mode 100644 index 000000000..75269b951 --- /dev/null +++ b/lib/orders-api-model/docs/DeliveryPreferences.md @@ -0,0 +1,10 @@ +# AmzSpApi::OrdersApiModel::DeliveryPreferences + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**drop_off_location** | **String** | Drop-off location selected by the customer. | [optional] +**preferred_delivery_time** | [**PreferredDeliveryTime**](PreferredDeliveryTime.md) | | [optional] +**other_attributes** | [**Array<OtherDeliveryAttributes>**](OtherDeliveryAttributes.md) | Enumerated list of miscellaneous delivery attributes associated with the shipping address. | [optional] +**address_instructions** | **String** | Building instructions, nearby landmark or navigation instructions. | [optional] + diff --git a/lib/orders-api-model/docs/ExceptionDates.md b/lib/orders-api-model/docs/ExceptionDates.md new file mode 100644 index 000000000..7b9063b78 --- /dev/null +++ b/lib/orders-api-model/docs/ExceptionDates.md @@ -0,0 +1,9 @@ +# AmzSpApi::OrdersApiModel::ExceptionDates + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**exception_date** | **String** | Date when the business is closed, in ISO-8601 date format. | [optional] +**is_open** | **BOOLEAN** | Boolean indicating if the business is closed or open on that date. | [optional] +**open_intervals** | [**Array<OpenInterval>**](OpenInterval.md) | Time window during the day when the business is open. | [optional] + diff --git a/lib/orders-api-model/docs/OpenInterval.md b/lib/orders-api-model/docs/OpenInterval.md new file mode 100644 index 000000000..2893548b6 --- /dev/null +++ b/lib/orders-api-model/docs/OpenInterval.md @@ -0,0 +1,8 @@ +# AmzSpApi::OrdersApiModel::OpenInterval + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_time** | [**OpenTimeInterval**](OpenTimeInterval.md) | | [optional] +**end_time** | [**OpenTimeInterval**](OpenTimeInterval.md) | | [optional] + diff --git a/lib/orders-api-model/docs/OpenTimeInterval.md b/lib/orders-api-model/docs/OpenTimeInterval.md new file mode 100644 index 000000000..b58a451c2 --- /dev/null +++ b/lib/orders-api-model/docs/OpenTimeInterval.md @@ -0,0 +1,8 @@ +# AmzSpApi::OrdersApiModel::OpenTimeInterval + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hour** | **Integer** | The hour when the business opens or closes. | [optional] +**minute** | **Integer** | The minute when the business opens or closes. | [optional] + diff --git a/lib/orders-api-model/docs/OrderAddress.md b/lib/orders-api-model/docs/OrderAddress.md index c57395bc4..e9f6e5a83 100644 --- a/lib/orders-api-model/docs/OrderAddress.md +++ b/lib/orders-api-model/docs/OrderAddress.md @@ -4,5 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **amazon_order_id** | **String** | An Amazon-defined order identifier, in 3-7-7 format. | +**buyer_company_name** | **String** | Company name of the destination address. | [optional] **shipping_address** | [**Address**](Address.md) | | [optional] +**delivery_preferences** | [**DeliveryPreferences**](DeliveryPreferences.md) | | [optional] diff --git a/lib/orders-api-model/docs/OrderItem.md b/lib/orders-api-model/docs/OrderItem.md index d32a6c366..c1d1f4cab 100644 --- a/lib/orders-api-model/docs/OrderItem.md +++ b/lib/orders-api-model/docs/OrderItem.md @@ -37,4 +37,5 @@ Name | Type | Description | Notes **deemed_reseller_category** | **String** | The category of deemed reseller. This applies to selling partners that are not based in the EU and is used to help them meet the VAT Deemed Reseller tax laws in the EU and UK. | [optional] **buyer_info** | [**ItemBuyerInfo**](ItemBuyerInfo.md) | | [optional] **buyer_requested_cancel** | [**BuyerRequestedCancel**](BuyerRequestedCancel.md) | | [optional] +**serial_numbers** | **Array<String>** | A list of serial numbers for electronic products that are shipped to customers. Returned for FBA orders only. | [optional] diff --git a/lib/orders-api-model/docs/OrdersV0Api.md b/lib/orders-api-model/docs/OrdersV0Api.md index b94d98aa2..1f8828da1 100644 --- a/lib/orders-api-model/docs/OrdersV0Api.md +++ b/lib/orders-api-model/docs/OrdersV0Api.md @@ -4,6 +4,7 @@ All URIs are relative to *https://sellingpartnerapi-na.amazon.com/* Method | HTTP request | Description ------------- | ------------- | ------------- +[**confirm_shipment**](OrdersV0Api.md#confirm_shipment) | **POST** /orders/v0/orders/{orderId}/shipmentConfirmation | [**get_order**](OrdersV0Api.md#get_order) | **GET** /orders/v0/orders/{orderId} | [**get_order_address**](OrdersV0Api.md#get_order_address) | **GET** /orders/v0/orders/{orderId}/address | [**get_order_buyer_info**](OrdersV0Api.md#get_order_buyer_info) | **GET** /orders/v0/orders/{orderId}/buyerInfo | @@ -13,6 +14,52 @@ Method | HTTP request | Description [**get_orders**](OrdersV0Api.md#get_orders) | **GET** /orders/v0/orders | [**update_verification_status**](OrdersV0Api.md#update_verification_status) | **PATCH** /orders/v0/orders/{orderId}/regulatedInfo | +# **confirm_shipment** +> confirm_shipment(bodyorder_id) + + + +Updates the shipment confirmation status for a specified order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + +### Example +```ruby +# load the gem +require 'orders-api-model' + +api_instance = AmzSpApi::OrdersApiModel::OrdersV0Api.new +body = AmzSpApi::OrdersApiModel::ConfirmShipmentRequest.new # ConfirmShipmentRequest | Request body of confirmShipment. +order_id = 'order_id_example' # String | An Amazon-defined order identifier, in 3-7-7 format. + + +begin + api_instance.confirm_shipment(bodyorder_id) +rescue AmzSpApi::OrdersApiModel::ApiError => e + puts "Exception when calling OrdersV0Api->confirm_shipment: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**ConfirmShipmentRequest**](ConfirmShipmentRequest.md)| Request body of confirmShipment. | + **order_id** | **String**| An Amazon-defined order identifier, in 3-7-7 format. | + +### Return type + +nil (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + # **get_order** > GetOrderResponse get_order(order_id) diff --git a/lib/orders-api-model/docs/OtherDeliveryAttributes.md b/lib/orders-api-model/docs/OtherDeliveryAttributes.md new file mode 100644 index 000000000..ada0b77ee --- /dev/null +++ b/lib/orders-api-model/docs/OtherDeliveryAttributes.md @@ -0,0 +1,6 @@ +# AmzSpApi::OrdersApiModel::OtherDeliveryAttributes + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + diff --git a/lib/orders-api-model/docs/PackageDetail.md b/lib/orders-api-model/docs/PackageDetail.md new file mode 100644 index 000000000..393750f40 --- /dev/null +++ b/lib/orders-api-model/docs/PackageDetail.md @@ -0,0 +1,14 @@ +# AmzSpApi::OrdersApiModel::PackageDetail + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**package_reference_id** | [**PackageReferenceId**](PackageReferenceId.md) | | +**carrier_code** | **String** | Identifies the carrier that will deliver the package. This field is required for all marketplaces, see [reference](https://developer-docs.amazon.com/sp-api/changelog/carriercode-value-required-in-shipment-confirmations-for-br-mx-ca-sg-au-in-jp-marketplaces). | +**carrier_name** | **String** | Carrier Name that will deliver the package. Required when carrierCode is \"Others\" | [optional] +**shipping_method** | **String** | Ship method to be used for shipping the order. | [optional] +**tracking_number** | **String** | The tracking number used to obtain tracking and delivery information. | +**ship_date** | **DateTime** | The shipping date for the package. Must be in ISO-8601 date/time format. | +**ship_from_supply_source_id** | **String** | The unique identifier of the supply source. | [optional] +**order_items** | [**ConfirmShipmentOrderItemsList**](ConfirmShipmentOrderItemsList.md) | | + diff --git a/lib/product-pricing-api-model/docs/OffersList.md b/lib/orders-api-model/docs/PackageReferenceId.md similarity index 70% rename from lib/product-pricing-api-model/docs/OffersList.md rename to lib/orders-api-model/docs/PackageReferenceId.md index c6308a683..4c5d1666e 100644 --- a/lib/product-pricing-api-model/docs/OffersList.md +++ b/lib/orders-api-model/docs/PackageReferenceId.md @@ -1,4 +1,4 @@ -# AmzSpApi::ProductPricingApiModel::OffersList +# AmzSpApi::OrdersApiModel::PackageReferenceId ## Properties Name | Type | Description | Notes diff --git a/lib/orders-api-model/docs/PaymentExecutionDetailItem.md b/lib/orders-api-model/docs/PaymentExecutionDetailItem.md index 0aa90623e..ee0725569 100644 --- a/lib/orders-api-model/docs/PaymentExecutionDetailItem.md +++ b/lib/orders-api-model/docs/PaymentExecutionDetailItem.md @@ -4,5 +4,5 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **payment** | [**Money**](Money.md) | | -**payment_method** | **String** | A sub-payment method for a COD order. Possible values: * COD - Cash On Delivery. * GC - Gift Card. * PointsAccount - Amazon Points. | +**payment_method** | **String** | A sub-payment method for a COD order. Possible values: * `COD`: Cash On Delivery. * `GC`: Gift Card. * `PointsAccount`: Amazon Points. * `Invoice`: Invoice. | diff --git a/lib/orders-api-model/docs/PreferredDeliveryTime.md b/lib/orders-api-model/docs/PreferredDeliveryTime.md new file mode 100644 index 000000000..54e3645e3 --- /dev/null +++ b/lib/orders-api-model/docs/PreferredDeliveryTime.md @@ -0,0 +1,8 @@ +# AmzSpApi::OrdersApiModel::PreferredDeliveryTime + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**business_hours** | [**Array<BusinessHours>**](BusinessHours.md) | Business hours when the business is open for deliveries. | [optional] +**exception_dates** | [**Array<ExceptionDates>**](ExceptionDates.md) | Dates when the business is closed in the next 30 days. | [optional] + diff --git a/lib/product-pricing-api-model/docs/PriceList.md b/lib/orders-api-model/docs/TransparencyCode.md similarity index 70% rename from lib/product-pricing-api-model/docs/PriceList.md rename to lib/orders-api-model/docs/TransparencyCode.md index 9049daea5..cf233265e 100644 --- a/lib/product-pricing-api-model/docs/PriceList.md +++ b/lib/orders-api-model/docs/TransparencyCode.md @@ -1,4 +1,4 @@ -# AmzSpApi::ProductPricingApiModel::PriceList +# AmzSpApi::OrdersApiModel::TransparencyCode ## Properties Name | Type | Description | Notes diff --git a/lib/product-pricing-api-model/docs/LowestPrices.md b/lib/orders-api-model/docs/TransparencyCodeList.md similarity index 69% rename from lib/product-pricing-api-model/docs/LowestPrices.md rename to lib/orders-api-model/docs/TransparencyCodeList.md index c93cc3e27..0b0628e29 100644 --- a/lib/product-pricing-api-model/docs/LowestPrices.md +++ b/lib/orders-api-model/docs/TransparencyCodeList.md @@ -1,4 +1,4 @@ -# AmzSpApi::ProductPricingApiModel::LowestPrices +# AmzSpApi::OrdersApiModel::TransparencyCodeList ## Properties Name | Type | Description | Notes diff --git a/lib/orders-api-model/models/address.rb b/lib/orders-api-model/models/address.rb index 8067a8a8c..21402d2d8 100644 --- a/lib/orders-api-model/models/address.rb +++ b/lib/orders-api-model/models/address.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/automated_shipping_settings.rb b/lib/orders-api-model/models/automated_shipping_settings.rb index 96c23a3bb..78598d34a 100644 --- a/lib/orders-api-model/models/automated_shipping_settings.rb +++ b/lib/orders-api-model/models/automated_shipping_settings.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/business_hours.rb b/lib/orders-api-model/models/business_hours.rb new file mode 100644 index 000000000..577918324 --- /dev/null +++ b/lib/orders-api-model/models/business_hours.rb @@ -0,0 +1,254 @@ +=begin +#Selling Partner API for Orders + +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::OrdersApiModel + # Business days and hours when the destination is open for deliveries. + class BusinessHours + # Day of the week. + attr_accessor :day_of_week + + # Time window during the day when the business is open. + attr_accessor :open_intervals + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'day_of_week' => :'DayOfWeek', + :'open_intervals' => :'OpenIntervals' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'day_of_week' => :'Object', + :'open_intervals' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::OrdersApiModel::BusinessHours` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::OrdersApiModel::BusinessHours`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'day_of_week') + self.day_of_week = attributes[:'day_of_week'] + end + + if attributes.key?(:'open_intervals') + if (value = attributes[:'open_intervals']).is_a?(Array) + self.open_intervals = value + end + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + day_of_week_validator = EnumAttributeValidator.new('Object', ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']) + return false unless day_of_week_validator.valid?(@day_of_week) + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] day_of_week Object to be assigned + def day_of_week=(day_of_week) + validator = EnumAttributeValidator.new('Object', ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']) + unless validator.valid?(day_of_week) + fail ArgumentError, "invalid value for \"day_of_week\", must be one of #{validator.allowable_values}." + end + @day_of_week = day_of_week + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + day_of_week == o.day_of_week && + open_intervals == o.open_intervals + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [day_of_week, open_intervals].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::OrdersApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/orders-api-model/models/buyer_customized_info_detail.rb b/lib/orders-api-model/models/buyer_customized_info_detail.rb index dd35d4498..c43edb84d 100644 --- a/lib/orders-api-model/models/buyer_customized_info_detail.rb +++ b/lib/orders-api-model/models/buyer_customized_info_detail.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/buyer_info.rb b/lib/orders-api-model/models/buyer_info.rb index 94dbcc47e..432faf375 100644 --- a/lib/orders-api-model/models/buyer_info.rb +++ b/lib/orders-api-model/models/buyer_info.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/buyer_requested_cancel.rb b/lib/orders-api-model/models/buyer_requested_cancel.rb index 9b157787d..2d7f08ab6 100644 --- a/lib/orders-api-model/models/buyer_requested_cancel.rb +++ b/lib/orders-api-model/models/buyer_requested_cancel.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/buyer_tax_info.rb b/lib/orders-api-model/models/buyer_tax_info.rb index ebbfb1c89..343023c52 100644 --- a/lib/orders-api-model/models/buyer_tax_info.rb +++ b/lib/orders-api-model/models/buyer_tax_info.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/buyer_tax_information.rb b/lib/orders-api-model/models/buyer_tax_information.rb index 25588986d..f9785c1d7 100644 --- a/lib/orders-api-model/models/buyer_tax_information.rb +++ b/lib/orders-api-model/models/buyer_tax_information.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/confirm_shipment_error_response.rb b/lib/orders-api-model/models/confirm_shipment_error_response.rb new file mode 100644 index 000000000..01b96eb04 --- /dev/null +++ b/lib/orders-api-model/models/confirm_shipment_error_response.rb @@ -0,0 +1,207 @@ +=begin +#Selling Partner API for Orders + +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::OrdersApiModel + # The error response schema for an shipment confirmation. + class ConfirmShipmentErrorResponse + attr_accessor :errors + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'errors' => :'errors' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'errors' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::OrdersApiModel::ConfirmShipmentErrorResponse` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::OrdersApiModel::ConfirmShipmentErrorResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'errors') + self.errors = attributes[:'errors'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + errors == o.errors + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [errors].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::OrdersApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/product-pricing-api-model/models/competitive_pricing_type.rb b/lib/orders-api-model/models/confirm_shipment_order_item.rb similarity index 72% rename from lib/product-pricing-api-model/models/competitive_pricing_type.rb rename to lib/orders-api-model/models/confirm_shipment_order_item.rb index 82ffb06a9..d870a5b50 100644 --- a/lib/product-pricing-api-model/models/competitive_pricing_type.rb +++ b/lib/orders-api-model/models/confirm_shipment_order_item.rb @@ -1,40 +1,42 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Orders -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - # Competitive pricing information for the item. - class CompetitivePricingType - attr_accessor :competitive_prices +module AmzSpApi::OrdersApiModel + # A single order item. + class ConfirmShipmentOrderItem + # The unique identifier of the order item. + attr_accessor :order_item_id - attr_accessor :number_of_offer_listings + # The quantity of the item. + attr_accessor :quantity - attr_accessor :trade_in_value + attr_accessor :transparency_codes # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'competitive_prices' => :'CompetitivePrices', - :'number_of_offer_listings' => :'NumberOfOfferListings', - :'trade_in_value' => :'TradeInValue' + :'order_item_id' => :'orderItemId', + :'quantity' => :'quantity', + :'transparency_codes' => :'transparencyCodes' } end # Attribute type mapping. def self.openapi_types { - :'competitive_prices' => :'Object', - :'number_of_offer_listings' => :'Object', - :'trade_in_value' => :'Object' + :'order_item_id' => :'Object', + :'quantity' => :'Object', + :'transparency_codes' => :'Object' } end @@ -48,27 +50,27 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::CompetitivePricingType` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::OrdersApiModel::ConfirmShipmentOrderItem` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::CompetitivePricingType`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::OrdersApiModel::ConfirmShipmentOrderItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - if attributes.key?(:'competitive_prices') - self.competitive_prices = attributes[:'competitive_prices'] + if attributes.key?(:'order_item_id') + self.order_item_id = attributes[:'order_item_id'] end - if attributes.key?(:'number_of_offer_listings') - self.number_of_offer_listings = attributes[:'number_of_offer_listings'] + if attributes.key?(:'quantity') + self.quantity = attributes[:'quantity'] end - if attributes.key?(:'trade_in_value') - self.trade_in_value = attributes[:'trade_in_value'] + if attributes.key?(:'transparency_codes') + self.transparency_codes = attributes[:'transparency_codes'] end end @@ -76,12 +78,12 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @competitive_prices.nil? - invalid_properties.push('invalid value for "competitive_prices", competitive_prices cannot be nil.') + if @order_item_id.nil? + invalid_properties.push('invalid value for "order_item_id", order_item_id cannot be nil.') end - if @number_of_offer_listings.nil? - invalid_properties.push('invalid value for "number_of_offer_listings", number_of_offer_listings cannot be nil.') + if @quantity.nil? + invalid_properties.push('invalid value for "quantity", quantity cannot be nil.') end invalid_properties @@ -90,8 +92,8 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @competitive_prices.nil? - return false if @number_of_offer_listings.nil? + return false if @order_item_id.nil? + return false if @quantity.nil? true end @@ -100,9 +102,9 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - competitive_prices == o.competitive_prices && - number_of_offer_listings == o.number_of_offer_listings && - trade_in_value == o.trade_in_value + order_item_id == o.order_item_id && + quantity == o.quantity && + transparency_codes == o.transparency_codes end # @see the `==` method @@ -114,7 +116,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [competitive_prices, number_of_offer_listings, trade_in_value].hash + [order_item_id, quantity, transparency_codes].hash end # Builds the object from hash @@ -183,7 +185,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::OrdersApiModel.const_get(type).build_from_hash(value) end end diff --git a/lib/product-pricing-api-model/models/item_offers_request_list.rb b/lib/orders-api-model/models/confirm_shipment_order_items_list.rb similarity index 88% rename from lib/product-pricing-api-model/models/item_offers_request_list.rb rename to lib/orders-api-model/models/confirm_shipment_order_items_list.rb index b2565c86f..bf4d980d3 100644 --- a/lib/product-pricing-api-model/models/item_offers_request_list.rb +++ b/lib/orders-api-model/models/confirm_shipment_order_items_list.rb @@ -1,19 +1,19 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Orders -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - # A list of getItemOffers batched requests to run. - class ItemOffersRequestList +module AmzSpApi::OrdersApiModel + # A list of order items. + class ConfirmShipmentOrderItemsList # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -36,13 +36,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::ItemOffersRequestList` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::OrdersApiModel::ConfirmShipmentOrderItemsList` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::ItemOffersRequestList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::OrdersApiModel::ConfirmShipmentOrderItemsList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } @@ -150,7 +150,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::OrdersApiModel.const_get(type).build_from_hash(value) end end diff --git a/lib/product-pricing-api-model/models/detailed_shipping_time_type.rb b/lib/orders-api-model/models/confirm_shipment_request.rb similarity index 66% rename from lib/product-pricing-api-model/models/detailed_shipping_time_type.rb rename to lib/orders-api-model/models/confirm_shipment_request.rb index 6a1e56eac..a98b747c6 100644 --- a/lib/product-pricing-api-model/models/detailed_shipping_time_type.rb +++ b/lib/orders-api-model/models/confirm_shipment_request.rb @@ -1,30 +1,25 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Orders -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - # The time range in which an item will likely be shipped once an order has been placed. - class DetailedShippingTimeType - # The minimum time, in hours, that the item will likely be shipped after the order has been placed. - attr_accessor :minimum_hours +module AmzSpApi::OrdersApiModel + # The request schema for an shipment confirmation. + class ConfirmShipmentRequest + attr_accessor :package_detail - # The maximum time, in hours, that the item will likely be shipped after the order has been placed. - attr_accessor :maximum_hours + # The cod collection method, support in JP only. + attr_accessor :cod_collection_method - # The date when the item will be available for shipping. Only displayed for items that are not currently available for shipping. - attr_accessor :available_date - - # Indicates whether the item is available for shipping now, or on a known or an unknown date in the future. If known, the availableDate property indicates the date that the item will be available for shipping. Possible values: NOW, FUTURE_WITHOUT_DATE, FUTURE_WITH_DATE. - attr_accessor :availability_type + attr_accessor :marketplace_id class EnumAttributeValidator attr_reader :datatype @@ -51,20 +46,18 @@ def valid?(value) # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'minimum_hours' => :'minimumHours', - :'maximum_hours' => :'maximumHours', - :'available_date' => :'availableDate', - :'availability_type' => :'availabilityType' + :'package_detail' => :'packageDetail', + :'cod_collection_method' => :'codCollectionMethod', + :'marketplace_id' => :'marketplaceId' } end # Attribute type mapping. def self.openapi_types { - :'minimum_hours' => :'Object', - :'maximum_hours' => :'Object', - :'available_date' => :'Object', - :'availability_type' => :'Object' + :'package_detail' => :'Object', + :'cod_collection_method' => :'Object', + :'marketplace_id' => :'Object' } end @@ -78,31 +71,27 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::DetailedShippingTimeType` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::OrdersApiModel::ConfirmShipmentRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::DetailedShippingTimeType`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::OrdersApiModel::ConfirmShipmentRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - if attributes.key?(:'minimum_hours') - self.minimum_hours = attributes[:'minimum_hours'] - end - - if attributes.key?(:'maximum_hours') - self.maximum_hours = attributes[:'maximum_hours'] + if attributes.key?(:'package_detail') + self.package_detail = attributes[:'package_detail'] end - if attributes.key?(:'available_date') - self.available_date = attributes[:'available_date'] + if attributes.key?(:'cod_collection_method') + self.cod_collection_method = attributes[:'cod_collection_method'] end - if attributes.key?(:'availability_type') - self.availability_type = attributes[:'availability_type'] + if attributes.key?(:'marketplace_id') + self.marketplace_id = attributes[:'marketplace_id'] end end @@ -110,25 +99,35 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new + if @package_detail.nil? + invalid_properties.push('invalid value for "package_detail", package_detail cannot be nil.') + end + + if @marketplace_id.nil? + invalid_properties.push('invalid value for "marketplace_id", marketplace_id cannot be nil.') + end + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - availability_type_validator = EnumAttributeValidator.new('Object', ['NOW', 'FUTURE_WITHOUT_DATE', 'FUTURE_WITH_DATE']) - return false unless availability_type_validator.valid?(@availability_type) + return false if @package_detail.nil? + cod_collection_method_validator = EnumAttributeValidator.new('Object', ['DirectPayment']) + return false unless cod_collection_method_validator.valid?(@cod_collection_method) + return false if @marketplace_id.nil? true end # Custom attribute writer method checking allowed values (enum). - # @param [Object] availability_type Object to be assigned - def availability_type=(availability_type) - validator = EnumAttributeValidator.new('Object', ['NOW', 'FUTURE_WITHOUT_DATE', 'FUTURE_WITH_DATE']) - unless validator.valid?(availability_type) - fail ArgumentError, "invalid value for \"availability_type\", must be one of #{validator.allowable_values}." + # @param [Object] cod_collection_method Object to be assigned + def cod_collection_method=(cod_collection_method) + validator = EnumAttributeValidator.new('Object', ['DirectPayment']) + unless validator.valid?(cod_collection_method) + fail ArgumentError, "invalid value for \"cod_collection_method\", must be one of #{validator.allowable_values}." end - @availability_type = availability_type + @cod_collection_method = cod_collection_method end # Checks equality by comparing each attribute. @@ -136,10 +135,9 @@ def availability_type=(availability_type) def ==(o) return true if self.equal?(o) self.class == o.class && - minimum_hours == o.minimum_hours && - maximum_hours == o.maximum_hours && - available_date == o.available_date && - availability_type == o.availability_type + package_detail == o.package_detail && + cod_collection_method == o.cod_collection_method && + marketplace_id == o.marketplace_id end # @see the `==` method @@ -151,7 +149,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [minimum_hours, maximum_hours, available_date, availability_type].hash + [package_detail, cod_collection_method, marketplace_id].hash end # Builds the object from hash @@ -220,7 +218,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::OrdersApiModel.const_get(type).build_from_hash(value) end end diff --git a/lib/orders-api-model/models/delivery_preferences.rb b/lib/orders-api-model/models/delivery_preferences.rb new file mode 100644 index 000000000..09fe0c820 --- /dev/null +++ b/lib/orders-api-model/models/delivery_preferences.rb @@ -0,0 +1,239 @@ +=begin +#Selling Partner API for Orders + +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::OrdersApiModel + # Contains all of the delivery instructions provided by the customer for the shipping address. + class DeliveryPreferences + # Drop-off location selected by the customer. + attr_accessor :drop_off_location + + attr_accessor :preferred_delivery_time + + # Enumerated list of miscellaneous delivery attributes associated with the shipping address. + attr_accessor :other_attributes + + # Building instructions, nearby landmark or navigation instructions. + attr_accessor :address_instructions + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'drop_off_location' => :'DropOffLocation', + :'preferred_delivery_time' => :'PreferredDeliveryTime', + :'other_attributes' => :'OtherAttributes', + :'address_instructions' => :'AddressInstructions' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'drop_off_location' => :'Object', + :'preferred_delivery_time' => :'Object', + :'other_attributes' => :'Object', + :'address_instructions' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::OrdersApiModel::DeliveryPreferences` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::OrdersApiModel::DeliveryPreferences`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'drop_off_location') + self.drop_off_location = attributes[:'drop_off_location'] + end + + if attributes.key?(:'preferred_delivery_time') + self.preferred_delivery_time = attributes[:'preferred_delivery_time'] + end + + if attributes.key?(:'other_attributes') + if (value = attributes[:'other_attributes']).is_a?(Array) + self.other_attributes = value + end + end + + if attributes.key?(:'address_instructions') + self.address_instructions = attributes[:'address_instructions'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + drop_off_location == o.drop_off_location && + preferred_delivery_time == o.preferred_delivery_time && + other_attributes == o.other_attributes && + address_instructions == o.address_instructions + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [drop_off_location, preferred_delivery_time, other_attributes, address_instructions].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::OrdersApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/orders-api-model/models/easy_ship_shipment_status.rb b/lib/orders-api-model/models/easy_ship_shipment_status.rb index 3f2596376..1f1383627 100644 --- a/lib/orders-api-model/models/easy_ship_shipment_status.rb +++ b/lib/orders-api-model/models/easy_ship_shipment_status.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/electronic_invoice_status.rb b/lib/orders-api-model/models/electronic_invoice_status.rb index 50ef84a82..4659a23ef 100644 --- a/lib/orders-api-model/models/electronic_invoice_status.rb +++ b/lib/orders-api-model/models/electronic_invoice_status.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/error.rb b/lib/orders-api-model/models/error.rb index 065868c4e..b16167a66 100644 --- a/lib/orders-api-model/models/error.rb +++ b/lib/orders-api-model/models/error.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/error_list.rb b/lib/orders-api-model/models/error_list.rb index b818d411b..c83f4cce8 100644 --- a/lib/orders-api-model/models/error_list.rb +++ b/lib/orders-api-model/models/error_list.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/exception_dates.rb b/lib/orders-api-model/models/exception_dates.rb new file mode 100644 index 000000000..34d76c6f4 --- /dev/null +++ b/lib/orders-api-model/models/exception_dates.rb @@ -0,0 +1,230 @@ +=begin +#Selling Partner API for Orders + +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::OrdersApiModel + # Dates when the business is closed or open with a different time window. + class ExceptionDates + # Date when the business is closed, in ISO-8601 date format. + attr_accessor :exception_date + + # Boolean indicating if the business is closed or open on that date. + attr_accessor :is_open + + # Time window during the day when the business is open. + attr_accessor :open_intervals + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'exception_date' => :'ExceptionDate', + :'is_open' => :'IsOpen', + :'open_intervals' => :'OpenIntervals' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'exception_date' => :'Object', + :'is_open' => :'Object', + :'open_intervals' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::OrdersApiModel::ExceptionDates` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::OrdersApiModel::ExceptionDates`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'exception_date') + self.exception_date = attributes[:'exception_date'] + end + + if attributes.key?(:'is_open') + self.is_open = attributes[:'is_open'] + end + + if attributes.key?(:'open_intervals') + if (value = attributes[:'open_intervals']).is_a?(Array) + self.open_intervals = value + end + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + exception_date == o.exception_date && + is_open == o.is_open && + open_intervals == o.open_intervals + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [exception_date, is_open, open_intervals].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::OrdersApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/orders-api-model/models/fulfillment_instruction.rb b/lib/orders-api-model/models/fulfillment_instruction.rb index 7f5e43d9e..d1cadb435 100644 --- a/lib/orders-api-model/models/fulfillment_instruction.rb +++ b/lib/orders-api-model/models/fulfillment_instruction.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/get_order_address_response.rb b/lib/orders-api-model/models/get_order_address_response.rb index 471b75d0a..369cf7e92 100644 --- a/lib/orders-api-model/models/get_order_address_response.rb +++ b/lib/orders-api-model/models/get_order_address_response.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/get_order_buyer_info_response.rb b/lib/orders-api-model/models/get_order_buyer_info_response.rb index 574d954eb..82306e229 100644 --- a/lib/orders-api-model/models/get_order_buyer_info_response.rb +++ b/lib/orders-api-model/models/get_order_buyer_info_response.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/get_order_items_buyer_info_response.rb b/lib/orders-api-model/models/get_order_items_buyer_info_response.rb index b8232b6da..4014ff279 100644 --- a/lib/orders-api-model/models/get_order_items_buyer_info_response.rb +++ b/lib/orders-api-model/models/get_order_items_buyer_info_response.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/get_order_items_response.rb b/lib/orders-api-model/models/get_order_items_response.rb index 9d5d7431c..840736793 100644 --- a/lib/orders-api-model/models/get_order_items_response.rb +++ b/lib/orders-api-model/models/get_order_items_response.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/get_order_regulated_info_response.rb b/lib/orders-api-model/models/get_order_regulated_info_response.rb index 6102e8dc9..0f8eb54ea 100644 --- a/lib/orders-api-model/models/get_order_regulated_info_response.rb +++ b/lib/orders-api-model/models/get_order_regulated_info_response.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/get_order_response.rb b/lib/orders-api-model/models/get_order_response.rb index 5632b7296..2663b009c 100644 --- a/lib/orders-api-model/models/get_order_response.rb +++ b/lib/orders-api-model/models/get_order_response.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/get_orders_response.rb b/lib/orders-api-model/models/get_orders_response.rb index a7855df7f..609615abc 100644 --- a/lib/orders-api-model/models/get_orders_response.rb +++ b/lib/orders-api-model/models/get_orders_response.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/item_buyer_info.rb b/lib/orders-api-model/models/item_buyer_info.rb index 2e9cd005b..e202e5205 100644 --- a/lib/orders-api-model/models/item_buyer_info.rb +++ b/lib/orders-api-model/models/item_buyer_info.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/marketplace_id.rb b/lib/orders-api-model/models/marketplace_id.rb index b74f60be9..53916acec 100644 --- a/lib/orders-api-model/models/marketplace_id.rb +++ b/lib/orders-api-model/models/marketplace_id.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/marketplace_tax_info.rb b/lib/orders-api-model/models/marketplace_tax_info.rb index f06283846..b6105a4c7 100644 --- a/lib/orders-api-model/models/marketplace_tax_info.rb +++ b/lib/orders-api-model/models/marketplace_tax_info.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/money.rb b/lib/orders-api-model/models/money.rb index 2c462130b..cf0762b9d 100644 --- a/lib/orders-api-model/models/money.rb +++ b/lib/orders-api-model/models/money.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/open_interval.rb b/lib/orders-api-model/models/open_interval.rb new file mode 100644 index 000000000..6fe24073d --- /dev/null +++ b/lib/orders-api-model/models/open_interval.rb @@ -0,0 +1,216 @@ +=begin +#Selling Partner API for Orders + +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::OrdersApiModel + # The time interval for which the business is open. + class OpenInterval + attr_accessor :start_time + + attr_accessor :end_time + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'start_time' => :'StartTime', + :'end_time' => :'EndTime' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'start_time' => :'Object', + :'end_time' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::OrdersApiModel::OpenInterval` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::OrdersApiModel::OpenInterval`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'start_time') + self.start_time = attributes[:'start_time'] + end + + if attributes.key?(:'end_time') + self.end_time = attributes[:'end_time'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + start_time == o.start_time && + end_time == o.end_time + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [start_time, end_time].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::OrdersApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/orders-api-model/models/open_time_interval.rb b/lib/orders-api-model/models/open_time_interval.rb new file mode 100644 index 000000000..9f6ecf63f --- /dev/null +++ b/lib/orders-api-model/models/open_time_interval.rb @@ -0,0 +1,218 @@ +=begin +#Selling Partner API for Orders + +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::OrdersApiModel + # The time when the business opens or closes. + class OpenTimeInterval + # The hour when the business opens or closes. + attr_accessor :hour + + # The minute when the business opens or closes. + attr_accessor :minute + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'hour' => :'Hour', + :'minute' => :'Minute' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'hour' => :'Object', + :'minute' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::OrdersApiModel::OpenTimeInterval` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::OrdersApiModel::OpenTimeInterval`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'hour') + self.hour = attributes[:'hour'] + end + + if attributes.key?(:'minute') + self.minute = attributes[:'minute'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + hour == o.hour && + minute == o.minute + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [hour, minute].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::OrdersApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/orders-api-model/models/order.rb b/lib/orders-api-model/models/order.rb index 2677c91a2..6e70a8ac6 100644 --- a/lib/orders-api-model/models/order.rb +++ b/lib/orders-api-model/models/order.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/order_address.rb b/lib/orders-api-model/models/order_address.rb index 38dd2474c..5a1f7914f 100644 --- a/lib/orders-api-model/models/order_address.rb +++ b/lib/orders-api-model/models/order_address.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' @@ -17,13 +17,20 @@ class OrderAddress # An Amazon-defined order identifier, in 3-7-7 format. attr_accessor :amazon_order_id + # Company name of the destination address. + attr_accessor :buyer_company_name + attr_accessor :shipping_address + attr_accessor :delivery_preferences + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'amazon_order_id' => :'AmazonOrderId', - :'shipping_address' => :'ShippingAddress' + :'buyer_company_name' => :'BuyerCompanyName', + :'shipping_address' => :'ShippingAddress', + :'delivery_preferences' => :'DeliveryPreferences' } end @@ -31,7 +38,9 @@ def self.attribute_map def self.openapi_types { :'amazon_order_id' => :'Object', - :'shipping_address' => :'Object' + :'buyer_company_name' => :'Object', + :'shipping_address' => :'Object', + :'delivery_preferences' => :'Object' } end @@ -60,9 +69,17 @@ def initialize(attributes = {}) self.amazon_order_id = attributes[:'amazon_order_id'] end + if attributes.key?(:'buyer_company_name') + self.buyer_company_name = attributes[:'buyer_company_name'] + end + if attributes.key?(:'shipping_address') self.shipping_address = attributes[:'shipping_address'] end + + if attributes.key?(:'delivery_preferences') + self.delivery_preferences = attributes[:'delivery_preferences'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -89,7 +106,9 @@ def ==(o) return true if self.equal?(o) self.class == o.class && amazon_order_id == o.amazon_order_id && - shipping_address == o.shipping_address + buyer_company_name == o.buyer_company_name && + shipping_address == o.shipping_address && + delivery_preferences == o.delivery_preferences end # @see the `==` method @@ -101,7 +120,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [amazon_order_id, shipping_address].hash + [amazon_order_id, buyer_company_name, shipping_address, delivery_preferences].hash end # Builds the object from hash diff --git a/lib/orders-api-model/models/order_buyer_info.rb b/lib/orders-api-model/models/order_buyer_info.rb index e6b5f3520..741bac269 100644 --- a/lib/orders-api-model/models/order_buyer_info.rb +++ b/lib/orders-api-model/models/order_buyer_info.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/order_item.rb b/lib/orders-api-model/models/order_item.rb index 7336a7fca..a3413a3cc 100644 --- a/lib/orders-api-model/models/order_item.rb +++ b/lib/orders-api-model/models/order_item.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' @@ -100,6 +100,9 @@ class OrderItem attr_accessor :buyer_requested_cancel + # A list of serial numbers for electronic products that are shipped to customers. Returned for FBA orders only. + attr_accessor :serial_numbers + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -158,7 +161,8 @@ def self.attribute_map :'store_chain_store_id' => :'StoreChainStoreId', :'deemed_reseller_category' => :'DeemedResellerCategory', :'buyer_info' => :'BuyerInfo', - :'buyer_requested_cancel' => :'BuyerRequestedCancel' + :'buyer_requested_cancel' => :'BuyerRequestedCancel', + :'serial_numbers' => :'SerialNumbers' } end @@ -198,7 +202,8 @@ def self.openapi_types :'store_chain_store_id' => :'Object', :'deemed_reseller_category' => :'Object', :'buyer_info' => :'Object', - :'buyer_requested_cancel' => :'Object' + :'buyer_requested_cancel' => :'Object', + :'serial_numbers' => :'Object' } end @@ -358,6 +363,12 @@ def initialize(attributes = {}) if attributes.key?(:'buyer_requested_cancel') self.buyer_requested_cancel = attributes[:'buyer_requested_cancel'] end + + if attributes.key?(:'serial_numbers') + if (value = attributes[:'serial_numbers']).is_a?(Array) + self.serial_numbers = value + end + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -438,7 +449,8 @@ def ==(o) store_chain_store_id == o.store_chain_store_id && deemed_reseller_category == o.deemed_reseller_category && buyer_info == o.buyer_info && - buyer_requested_cancel == o.buyer_requested_cancel + buyer_requested_cancel == o.buyer_requested_cancel && + serial_numbers == o.serial_numbers end # @see the `==` method @@ -450,7 +462,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [asin, seller_sku, order_item_id, title, quantity_ordered, quantity_shipped, product_info, points_granted, item_price, shipping_price, item_tax, shipping_tax, shipping_discount, shipping_discount_tax, promotion_discount, promotion_discount_tax, promotion_ids, cod_fee, cod_fee_discount, is_gift, condition_note, condition_id, condition_subtype_id, scheduled_delivery_start_date, scheduled_delivery_end_date, price_designation, tax_collection, serial_number_required, is_transparency, ioss_number, store_chain_store_id, deemed_reseller_category, buyer_info, buyer_requested_cancel].hash + [asin, seller_sku, order_item_id, title, quantity_ordered, quantity_shipped, product_info, points_granted, item_price, shipping_price, item_tax, shipping_tax, shipping_discount, shipping_discount_tax, promotion_discount, promotion_discount_tax, promotion_ids, cod_fee, cod_fee_discount, is_gift, condition_note, condition_id, condition_subtype_id, scheduled_delivery_start_date, scheduled_delivery_end_date, price_designation, tax_collection, serial_number_required, is_transparency, ioss_number, store_chain_store_id, deemed_reseller_category, buyer_info, buyer_requested_cancel, serial_numbers].hash end # Builds the object from hash diff --git a/lib/orders-api-model/models/order_item_buyer_info.rb b/lib/orders-api-model/models/order_item_buyer_info.rb index 6ddc2d876..329d6f1a6 100644 --- a/lib/orders-api-model/models/order_item_buyer_info.rb +++ b/lib/orders-api-model/models/order_item_buyer_info.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/order_item_buyer_info_list.rb b/lib/orders-api-model/models/order_item_buyer_info_list.rb index 5246a98fc..37343d5fe 100644 --- a/lib/orders-api-model/models/order_item_buyer_info_list.rb +++ b/lib/orders-api-model/models/order_item_buyer_info_list.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/order_item_list.rb b/lib/orders-api-model/models/order_item_list.rb index e1a43e5d3..829015702 100644 --- a/lib/orders-api-model/models/order_item_list.rb +++ b/lib/orders-api-model/models/order_item_list.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/order_items.rb b/lib/orders-api-model/models/order_items.rb index c38345f80..82bb5ddc3 100644 --- a/lib/orders-api-model/models/order_items.rb +++ b/lib/orders-api-model/models/order_items.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/order_items_buyer_info_list.rb b/lib/orders-api-model/models/order_items_buyer_info_list.rb index 2128113cc..cd02ef7a8 100644 --- a/lib/orders-api-model/models/order_items_buyer_info_list.rb +++ b/lib/orders-api-model/models/order_items_buyer_info_list.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/order_items_inner.rb b/lib/orders-api-model/models/order_items_inner.rb index 010d6f6e5..b2880de94 100644 --- a/lib/orders-api-model/models/order_items_inner.rb +++ b/lib/orders-api-model/models/order_items_inner.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/order_items_list.rb b/lib/orders-api-model/models/order_items_list.rb index 4f795eb1f..75821d0b4 100644 --- a/lib/orders-api-model/models/order_items_list.rb +++ b/lib/orders-api-model/models/order_items_list.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/order_list.rb b/lib/orders-api-model/models/order_list.rb index 18addcb68..dfd8d411d 100644 --- a/lib/orders-api-model/models/order_list.rb +++ b/lib/orders-api-model/models/order_list.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/order_regulated_info.rb b/lib/orders-api-model/models/order_regulated_info.rb index e0820566f..f57d9db3d 100644 --- a/lib/orders-api-model/models/order_regulated_info.rb +++ b/lib/orders-api-model/models/order_regulated_info.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/orders_list.rb b/lib/orders-api-model/models/orders_list.rb index 4cef9dc00..d46f17ef6 100644 --- a/lib/orders-api-model/models/orders_list.rb +++ b/lib/orders-api-model/models/orders_list.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/other_delivery_attributes.rb b/lib/orders-api-model/models/other_delivery_attributes.rb new file mode 100644 index 000000000..ff6a06c42 --- /dev/null +++ b/lib/orders-api-model/models/other_delivery_attributes.rb @@ -0,0 +1,29 @@ +=begin +#Selling Partner API for Orders + +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::OrdersApiModel + class OtherDeliveryAttributes + HAS_ACCESS_POINT = 'HAS_ACCESS_POINT'.freeze + PALLET_ENABLED = 'PALLET_ENABLED'.freeze + PALLET_DISABLED = 'PALLET_DISABLED'.freeze + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def build_from_hash(value) + constantValues = OtherDeliveryAttributes.constants.select { |c| OtherDeliveryAttributes::const_get(c) == value } + raise "Invalid ENUM value #{value} for class #OtherDeliveryAttributes" if constantValues.empty? + value + end + end +end diff --git a/lib/product-pricing-api-model/models/lowest_price_type.rb b/lib/orders-api-model/models/package_detail.rb similarity index 54% rename from lib/product-pricing-api-model/models/lowest_price_type.rb rename to lib/orders-api-model/models/package_detail.rb index bb99a1559..fb64f5d12 100644 --- a/lib/product-pricing-api-model/models/lowest_price_type.rb +++ b/lib/orders-api-model/models/package_detail.rb @@ -1,66 +1,66 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Orders -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - class LowestPriceType - # Indicates the condition of the item. For example: New, Used, Collectible, Refurbished, or Club. - attr_accessor :condition +module AmzSpApi::OrdersApiModel + # Properties of packages + class PackageDetail + attr_accessor :package_reference_id - # Indicates whether the item is fulfilled by Amazon or by the seller. - attr_accessor :fulfillment_channel + # Identifies the carrier that will deliver the package. This field is required for all marketplaces, see [reference](https://developer-docs.amazon.com/sp-api/changelog/carriercode-value-required-in-shipment-confirmations-for-br-mx-ca-sg-au-in-jp-marketplaces). + attr_accessor :carrier_code - attr_accessor :offer_type + # Carrier Name that will deliver the package. Required when carrierCode is \"Others\" + attr_accessor :carrier_name - # Indicates at what quantity this price becomes active. - attr_accessor :quantity_tier + # Ship method to be used for shipping the order. + attr_accessor :shipping_method - attr_accessor :quantity_discount_type + # The tracking number used to obtain tracking and delivery information. + attr_accessor :tracking_number - attr_accessor :landed_price + # The shipping date for the package. Must be in ISO-8601 date/time format. + attr_accessor :ship_date - attr_accessor :listing_price + # The unique identifier of the supply source. + attr_accessor :ship_from_supply_source_id - attr_accessor :shipping - - attr_accessor :points + attr_accessor :order_items # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'condition' => :'condition', - :'fulfillment_channel' => :'fulfillmentChannel', - :'offer_type' => :'offerType', - :'quantity_tier' => :'quantityTier', - :'quantity_discount_type' => :'quantityDiscountType', - :'landed_price' => :'LandedPrice', - :'listing_price' => :'ListingPrice', - :'shipping' => :'Shipping', - :'points' => :'Points' + :'package_reference_id' => :'packageReferenceId', + :'carrier_code' => :'carrierCode', + :'carrier_name' => :'carrierName', + :'shipping_method' => :'shippingMethod', + :'tracking_number' => :'trackingNumber', + :'ship_date' => :'shipDate', + :'ship_from_supply_source_id' => :'shipFromSupplySourceId', + :'order_items' => :'orderItems' } end # Attribute type mapping. def self.openapi_types { - :'condition' => :'Object', - :'fulfillment_channel' => :'Object', - :'offer_type' => :'Object', - :'quantity_tier' => :'Object', - :'quantity_discount_type' => :'Object', - :'landed_price' => :'Object', - :'listing_price' => :'Object', - :'shipping' => :'Object', - :'points' => :'Object' + :'package_reference_id' => :'Object', + :'carrier_code' => :'Object', + :'carrier_name' => :'Object', + :'shipping_method' => :'Object', + :'tracking_number' => :'Object', + :'ship_date' => :'Object', + :'ship_from_supply_source_id' => :'Object', + :'order_items' => :'Object' } end @@ -74,51 +74,47 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::LowestPriceType` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::OrdersApiModel::PackageDetail` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::LowestPriceType`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::OrdersApiModel::PackageDetail`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - if attributes.key?(:'condition') - self.condition = attributes[:'condition'] - end - - if attributes.key?(:'fulfillment_channel') - self.fulfillment_channel = attributes[:'fulfillment_channel'] + if attributes.key?(:'package_reference_id') + self.package_reference_id = attributes[:'package_reference_id'] end - if attributes.key?(:'offer_type') - self.offer_type = attributes[:'offer_type'] + if attributes.key?(:'carrier_code') + self.carrier_code = attributes[:'carrier_code'] end - if attributes.key?(:'quantity_tier') - self.quantity_tier = attributes[:'quantity_tier'] + if attributes.key?(:'carrier_name') + self.carrier_name = attributes[:'carrier_name'] end - if attributes.key?(:'quantity_discount_type') - self.quantity_discount_type = attributes[:'quantity_discount_type'] + if attributes.key?(:'shipping_method') + self.shipping_method = attributes[:'shipping_method'] end - if attributes.key?(:'landed_price') - self.landed_price = attributes[:'landed_price'] + if attributes.key?(:'tracking_number') + self.tracking_number = attributes[:'tracking_number'] end - if attributes.key?(:'listing_price') - self.listing_price = attributes[:'listing_price'] + if attributes.key?(:'ship_date') + self.ship_date = attributes[:'ship_date'] end - if attributes.key?(:'shipping') - self.shipping = attributes[:'shipping'] + if attributes.key?(:'ship_from_supply_source_id') + self.ship_from_supply_source_id = attributes[:'ship_from_supply_source_id'] end - if attributes.key?(:'points') - self.points = attributes[:'points'] + if attributes.key?(:'order_items') + self.order_items = attributes[:'order_items'] end end @@ -126,24 +122,24 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @condition.nil? - invalid_properties.push('invalid value for "condition", condition cannot be nil.') + if @package_reference_id.nil? + invalid_properties.push('invalid value for "package_reference_id", package_reference_id cannot be nil.') end - if @fulfillment_channel.nil? - invalid_properties.push('invalid value for "fulfillment_channel", fulfillment_channel cannot be nil.') + if @carrier_code.nil? + invalid_properties.push('invalid value for "carrier_code", carrier_code cannot be nil.') end - if @landed_price.nil? - invalid_properties.push('invalid value for "landed_price", landed_price cannot be nil.') + if @tracking_number.nil? + invalid_properties.push('invalid value for "tracking_number", tracking_number cannot be nil.') end - if @listing_price.nil? - invalid_properties.push('invalid value for "listing_price", listing_price cannot be nil.') + if @ship_date.nil? + invalid_properties.push('invalid value for "ship_date", ship_date cannot be nil.') end - if @shipping.nil? - invalid_properties.push('invalid value for "shipping", shipping cannot be nil.') + if @order_items.nil? + invalid_properties.push('invalid value for "order_items", order_items cannot be nil.') end invalid_properties @@ -152,11 +148,11 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @condition.nil? - return false if @fulfillment_channel.nil? - return false if @landed_price.nil? - return false if @listing_price.nil? - return false if @shipping.nil? + return false if @package_reference_id.nil? + return false if @carrier_code.nil? + return false if @tracking_number.nil? + return false if @ship_date.nil? + return false if @order_items.nil? true end @@ -165,15 +161,14 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - condition == o.condition && - fulfillment_channel == o.fulfillment_channel && - offer_type == o.offer_type && - quantity_tier == o.quantity_tier && - quantity_discount_type == o.quantity_discount_type && - landed_price == o.landed_price && - listing_price == o.listing_price && - shipping == o.shipping && - points == o.points + package_reference_id == o.package_reference_id && + carrier_code == o.carrier_code && + carrier_name == o.carrier_name && + shipping_method == o.shipping_method && + tracking_number == o.tracking_number && + ship_date == o.ship_date && + ship_from_supply_source_id == o.ship_from_supply_source_id && + order_items == o.order_items end # @see the `==` method @@ -185,7 +180,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [condition, fulfillment_channel, offer_type, quantity_tier, quantity_discount_type, landed_price, listing_price, shipping, points].hash + [package_reference_id, carrier_code, carrier_name, shipping_method, tracking_number, ship_date, ship_from_supply_source_id, order_items].hash end # Builds the object from hash @@ -254,7 +249,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::OrdersApiModel.const_get(type).build_from_hash(value) end end diff --git a/lib/product-pricing-api-model/models/offers_list.rb b/lib/orders-api-model/models/package_reference_id.rb similarity index 85% rename from lib/product-pricing-api-model/models/offers_list.rb rename to lib/orders-api-model/models/package_reference_id.rb index c797499ba..fa22a8cfe 100644 --- a/lib/product-pricing-api-model/models/offers_list.rb +++ b/lib/orders-api-model/models/package_reference_id.rb @@ -1,19 +1,19 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Orders -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - # A list of offers. - class OffersList +module AmzSpApi::OrdersApiModel + # A seller-supplied identifier that uniquely identifies a package within the scope of an order. Only positive numeric values are supported. + class PackageReferenceId # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -36,25 +36,22 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::OffersList` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::OrdersApiModel::PackageReferenceId` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::OffersList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::OrdersApiModel::PackageReferenceId`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - - # call parent's initialize - super(attributes) end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties - invalid_properties = super + invalid_properties = Array.new invalid_properties end @@ -68,7 +65,7 @@ def valid? # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) - self.class == o.class && super(o) + self.class == o.class end # @see the `==` method @@ -95,7 +92,6 @@ def self.build_from_hash(attributes) # @return [Object] Returns the model itself def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) - super(attributes) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute @@ -150,7 +146,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::OrdersApiModel.const_get(type).build_from_hash(value) end end @@ -169,7 +165,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash - hash = super + hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? diff --git a/lib/orders-api-model/models/payment_execution_detail_item.rb b/lib/orders-api-model/models/payment_execution_detail_item.rb index 37504a903..d27216d3c 100644 --- a/lib/orders-api-model/models/payment_execution_detail_item.rb +++ b/lib/orders-api-model/models/payment_execution_detail_item.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' @@ -16,7 +16,7 @@ module AmzSpApi::OrdersApiModel class PaymentExecutionDetailItem attr_accessor :payment - # A sub-payment method for a COD order. Possible values: * COD - Cash On Delivery. * GC - Gift Card. * PointsAccount - Amazon Points. + # A sub-payment method for a COD order. Possible values: * `COD`: Cash On Delivery. * `GC`: Gift Card. * `PointsAccount`: Amazon Points. * `Invoice`: Invoice. attr_accessor :payment_method # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/orders-api-model/models/payment_execution_detail_item_list.rb b/lib/orders-api-model/models/payment_execution_detail_item_list.rb index 279554c3c..8593ec462 100644 --- a/lib/orders-api-model/models/payment_execution_detail_item_list.rb +++ b/lib/orders-api-model/models/payment_execution_detail_item_list.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/payment_method_detail_item_list.rb b/lib/orders-api-model/models/payment_method_detail_item_list.rb index dceba54ca..619329cf0 100644 --- a/lib/orders-api-model/models/payment_method_detail_item_list.rb +++ b/lib/orders-api-model/models/payment_method_detail_item_list.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/points_granted_detail.rb b/lib/orders-api-model/models/points_granted_detail.rb index 2173f1fad..8d0cb32ed 100644 --- a/lib/orders-api-model/models/points_granted_detail.rb +++ b/lib/orders-api-model/models/points_granted_detail.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-pricing-api-model/models/sales_rank_type.rb b/lib/orders-api-model/models/preferred_delivery_time.rb similarity index 78% rename from lib/product-pricing-api-model/models/sales_rank_type.rb rename to lib/orders-api-model/models/preferred_delivery_time.rb index 66fbf71b7..fee3baa96 100644 --- a/lib/product-pricing-api-model/models/sales_rank_type.rb +++ b/lib/orders-api-model/models/preferred_delivery_time.rb @@ -1,37 +1,38 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Orders -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - class SalesRankType - # Identifies the item category from which the sales rank is taken. - attr_accessor :product_category_id +module AmzSpApi::OrdersApiModel + # The time window when the delivery is preferred. + class PreferredDeliveryTime + # Business hours when the business is open for deliveries. + attr_accessor :business_hours - # The sales rank of the item within the item category. - attr_accessor :rank + # Dates when the business is closed in the next 30 days. + attr_accessor :exception_dates # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'product_category_id' => :'ProductCategoryId', - :'rank' => :'Rank' + :'business_hours' => :'BusinessHours', + :'exception_dates' => :'ExceptionDates' } end # Attribute type mapping. def self.openapi_types { - :'product_category_id' => :'Object', - :'rank' => :'Object' + :'business_hours' => :'Object', + :'exception_dates' => :'Object' } end @@ -45,23 +46,27 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::SalesRankType` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::OrdersApiModel::PreferredDeliveryTime` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::SalesRankType`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::OrdersApiModel::PreferredDeliveryTime`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - if attributes.key?(:'product_category_id') - self.product_category_id = attributes[:'product_category_id'] + if attributes.key?(:'business_hours') + if (value = attributes[:'business_hours']).is_a?(Array) + self.business_hours = value + end end - if attributes.key?(:'rank') - self.rank = attributes[:'rank'] + if attributes.key?(:'exception_dates') + if (value = attributes[:'exception_dates']).is_a?(Array) + self.exception_dates = value + end end end @@ -69,22 +74,12 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @product_category_id.nil? - invalid_properties.push('invalid value for "product_category_id", product_category_id cannot be nil.') - end - - if @rank.nil? - invalid_properties.push('invalid value for "rank", rank cannot be nil.') - end - invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @product_category_id.nil? - return false if @rank.nil? true end @@ -93,8 +88,8 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - product_category_id == o.product_category_id && - rank == o.rank + business_hours == o.business_hours && + exception_dates == o.exception_dates end # @see the `==` method @@ -106,7 +101,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [product_category_id, rank].hash + [business_hours, exception_dates].hash end # Builds the object from hash @@ -175,7 +170,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::OrdersApiModel.const_get(type).build_from_hash(value) end end diff --git a/lib/orders-api-model/models/product_info_detail.rb b/lib/orders-api-model/models/product_info_detail.rb index 741dcc90c..b1b7ae3ee 100644 --- a/lib/orders-api-model/models/product_info_detail.rb +++ b/lib/orders-api-model/models/product_info_detail.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/promotion_id_list.rb b/lib/orders-api-model/models/promotion_id_list.rb index 1784a3cab..a0f50c5df 100644 --- a/lib/orders-api-model/models/promotion_id_list.rb +++ b/lib/orders-api-model/models/promotion_id_list.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/regulated_information.rb b/lib/orders-api-model/models/regulated_information.rb index 9072cf309..84d579aac 100644 --- a/lib/orders-api-model/models/regulated_information.rb +++ b/lib/orders-api-model/models/regulated_information.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/regulated_information_field.rb b/lib/orders-api-model/models/regulated_information_field.rb index ca1b7953d..a30b964e7 100644 --- a/lib/orders-api-model/models/regulated_information_field.rb +++ b/lib/orders-api-model/models/regulated_information_field.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/regulated_order_verification_status.rb b/lib/orders-api-model/models/regulated_order_verification_status.rb index b01e3a88f..5b3edc1b3 100644 --- a/lib/orders-api-model/models/regulated_order_verification_status.rb +++ b/lib/orders-api-model/models/regulated_order_verification_status.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/rejection_reason.rb b/lib/orders-api-model/models/rejection_reason.rb index 8b336d326..d8a44800f 100644 --- a/lib/orders-api-model/models/rejection_reason.rb +++ b/lib/orders-api-model/models/rejection_reason.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/shipment_status.rb b/lib/orders-api-model/models/shipment_status.rb index 21f0d2b6c..c9c8ca304 100644 --- a/lib/orders-api-model/models/shipment_status.rb +++ b/lib/orders-api-model/models/shipment_status.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/tax_classification.rb b/lib/orders-api-model/models/tax_classification.rb index dd2e2fbac..7dd867658 100644 --- a/lib/orders-api-model/models/tax_classification.rb +++ b/lib/orders-api-model/models/tax_classification.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/tax_collection.rb b/lib/orders-api-model/models/tax_collection.rb index c66741bc0..0bb413b37 100644 --- a/lib/orders-api-model/models/tax_collection.rb +++ b/lib/orders-api-model/models/tax_collection.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/transparency_code.rb b/lib/orders-api-model/models/transparency_code.rb new file mode 100644 index 000000000..a6c89cdab --- /dev/null +++ b/lib/orders-api-model/models/transparency_code.rb @@ -0,0 +1,198 @@ +=begin +#Selling Partner API for Orders + +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::OrdersApiModel + # The Transparency code associated with the item. + class TransparencyCode + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + } + end + + # Attribute type mapping. + def self.openapi_types + { + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::OrdersApiModel::TransparencyCode` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::OrdersApiModel::TransparencyCode`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::OrdersApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/product-pricing-api-model/models/lowest_prices.rb b/lib/orders-api-model/models/transparency_code_list.rb similarity index 88% rename from lib/product-pricing-api-model/models/lowest_prices.rb rename to lib/orders-api-model/models/transparency_code_list.rb index e26b2eb46..b743b9829 100644 --- a/lib/product-pricing-api-model/models/lowest_prices.rb +++ b/lib/orders-api-model/models/transparency_code_list.rb @@ -1,18 +1,19 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Orders -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - class LowestPrices +module AmzSpApi::OrdersApiModel + # A list of order items. + class TransparencyCodeList # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -35,13 +36,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::LowestPrices` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::OrdersApiModel::TransparencyCodeList` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::LowestPrices`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::OrdersApiModel::TransparencyCodeList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } @@ -149,7 +150,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::OrdersApiModel.const_get(type).build_from_hash(value) end end diff --git a/lib/orders-api-model/models/update_shipment_status_error_response.rb b/lib/orders-api-model/models/update_shipment_status_error_response.rb index ee404cba9..311c822ca 100644 --- a/lib/orders-api-model/models/update_shipment_status_error_response.rb +++ b/lib/orders-api-model/models/update_shipment_status_error_response.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/update_shipment_status_request.rb b/lib/orders-api-model/models/update_shipment_status_request.rb index d78c6e5be..8ff6f72db 100644 --- a/lib/orders-api-model/models/update_shipment_status_request.rb +++ b/lib/orders-api-model/models/update_shipment_status_request.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/update_verification_status_error_response.rb b/lib/orders-api-model/models/update_verification_status_error_response.rb index db41839c6..398797861 100644 --- a/lib/orders-api-model/models/update_verification_status_error_response.rb +++ b/lib/orders-api-model/models/update_verification_status_error_response.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/update_verification_status_request.rb b/lib/orders-api-model/models/update_verification_status_request.rb index 0c979ed5a..e2f71246d 100644 --- a/lib/orders-api-model/models/update_verification_status_request.rb +++ b/lib/orders-api-model/models/update_verification_status_request.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/update_verification_status_request_body.rb b/lib/orders-api-model/models/update_verification_status_request_body.rb index 4c40f9234..f2b22d607 100644 --- a/lib/orders-api-model/models/update_verification_status_request_body.rb +++ b/lib/orders-api-model/models/update_verification_status_request_body.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/models/verification_status.rb b/lib/orders-api-model/models/verification_status.rb index 113aff0e0..e7683ffd5 100644 --- a/lib/orders-api-model/models/verification_status.rb +++ b/lib/orders-api-model/models/verification_status.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/orders-api-model/spec/api/orders_v0_api_spec.rb b/lib/orders-api-model/spec/api/orders_v0_api_spec.rb index 9a72f786b..e9335a352 100644 --- a/lib/orders-api-model/spec/api/orders_v0_api_spec.rb +++ b/lib/orders-api-model/spec/api/orders_v0_api_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -31,6 +31,18 @@ end end + # unit tests for confirm_shipment + # Updates the shipment confirmation status for a specified order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # @param body Request body of confirmShipment. + # @param order_id An Amazon-defined order identifier, in 3-7-7 format. + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'confirm_shipment test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + # unit tests for get_order # Returns the order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 20 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). # @param order_id An Amazon-defined order identifier, in 3-7-7 format. diff --git a/lib/orders-api-model/spec/api/shipment_api_spec.rb b/lib/orders-api-model/spec/api/shipment_api_spec.rb index 6cd04165c..877d177cd 100644 --- a/lib/orders-api-model/spec/api/shipment_api_spec.rb +++ b/lib/orders-api-model/spec/api/shipment_api_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/api_client_spec.rb b/lib/orders-api-model/spec/api_client_spec.rb index 6b14b76e8..b72a3d253 100644 --- a/lib/orders-api-model/spec/api_client_spec.rb +++ b/lib/orders-api-model/spec/api_client_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/configuration_spec.rb b/lib/orders-api-model/spec/configuration_spec.rb index 0eb443208..598aae714 100644 --- a/lib/orders-api-model/spec/configuration_spec.rb +++ b/lib/orders-api-model/spec/configuration_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/address_spec.rb b/lib/orders-api-model/spec/models/address_spec.rb index 8fd137d2c..af81dfc53 100644 --- a/lib/orders-api-model/spec/models/address_spec.rb +++ b/lib/orders-api-model/spec/models/address_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/automated_shipping_settings_spec.rb b/lib/orders-api-model/spec/models/automated_shipping_settings_spec.rb index ed42aa850..bc6f54e89 100644 --- a/lib/orders-api-model/spec/models/automated_shipping_settings_spec.rb +++ b/lib/orders-api-model/spec/models/automated_shipping_settings_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/business_hours_spec.rb b/lib/orders-api-model/spec/models/business_hours_spec.rb new file mode 100644 index 000000000..7f2db5693 --- /dev/null +++ b/lib/orders-api-model/spec/models/business_hours_spec.rb @@ -0,0 +1,50 @@ +=begin +#Selling Partner API for Orders + +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::OrdersApiModel::BusinessHours +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'BusinessHours' do + before do + # run before each test + @instance = AmzSpApi::OrdersApiModel::BusinessHours.new + end + + after do + # run after each test + end + + describe 'test an instance of BusinessHours' do + it 'should create an instance of BusinessHours' do + expect(@instance).to be_instance_of(AmzSpApi::OrdersApiModel::BusinessHours) + end + end + describe 'test attribute "day_of_week"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]) + # validator.allowable_values.each do |value| + # expect { @instance.day_of_week = value }.not_to raise_error + # end + end + end + + describe 'test attribute "open_intervals"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/orders-api-model/spec/models/buyer_customized_info_detail_spec.rb b/lib/orders-api-model/spec/models/buyer_customized_info_detail_spec.rb index 9b7db7b72..24edca8df 100644 --- a/lib/orders-api-model/spec/models/buyer_customized_info_detail_spec.rb +++ b/lib/orders-api-model/spec/models/buyer_customized_info_detail_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/buyer_info_spec.rb b/lib/orders-api-model/spec/models/buyer_info_spec.rb index 37209e76b..3c7903694 100644 --- a/lib/orders-api-model/spec/models/buyer_info_spec.rb +++ b/lib/orders-api-model/spec/models/buyer_info_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/buyer_requested_cancel_spec.rb b/lib/orders-api-model/spec/models/buyer_requested_cancel_spec.rb index 2c7f512c4..66b36cd73 100644 --- a/lib/orders-api-model/spec/models/buyer_requested_cancel_spec.rb +++ b/lib/orders-api-model/spec/models/buyer_requested_cancel_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/buyer_tax_info_spec.rb b/lib/orders-api-model/spec/models/buyer_tax_info_spec.rb index f0223a0a3..67a9875f0 100644 --- a/lib/orders-api-model/spec/models/buyer_tax_info_spec.rb +++ b/lib/orders-api-model/spec/models/buyer_tax_info_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/buyer_tax_information_spec.rb b/lib/orders-api-model/spec/models/buyer_tax_information_spec.rb index 8b4fefdca..271d404e7 100644 --- a/lib/orders-api-model/spec/models/buyer_tax_information_spec.rb +++ b/lib/orders-api-model/spec/models/buyer_tax_information_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/confirm_shipment_error_response_spec.rb b/lib/orders-api-model/spec/models/confirm_shipment_error_response_spec.rb new file mode 100644 index 000000000..8738de347 --- /dev/null +++ b/lib/orders-api-model/spec/models/confirm_shipment_error_response_spec.rb @@ -0,0 +1,40 @@ +=begin +#Selling Partner API for Orders + +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::OrdersApiModel::ConfirmShipmentErrorResponse +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'ConfirmShipmentErrorResponse' do + before do + # run before each test + @instance = AmzSpApi::OrdersApiModel::ConfirmShipmentErrorResponse.new + end + + after do + # run after each test + end + + describe 'test an instance of ConfirmShipmentErrorResponse' do + it 'should create an instance of ConfirmShipmentErrorResponse' do + expect(@instance).to be_instance_of(AmzSpApi::OrdersApiModel::ConfirmShipmentErrorResponse) + end + end + describe 'test attribute "errors"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/orders-api-model/spec/models/confirm_shipment_order_item_spec.rb b/lib/orders-api-model/spec/models/confirm_shipment_order_item_spec.rb new file mode 100644 index 000000000..dfc4c1c75 --- /dev/null +++ b/lib/orders-api-model/spec/models/confirm_shipment_order_item_spec.rb @@ -0,0 +1,52 @@ +=begin +#Selling Partner API for Orders + +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::OrdersApiModel::ConfirmShipmentOrderItem +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'ConfirmShipmentOrderItem' do + before do + # run before each test + @instance = AmzSpApi::OrdersApiModel::ConfirmShipmentOrderItem.new + end + + after do + # run after each test + end + + describe 'test an instance of ConfirmShipmentOrderItem' do + it 'should create an instance of ConfirmShipmentOrderItem' do + expect(@instance).to be_instance_of(AmzSpApi::OrdersApiModel::ConfirmShipmentOrderItem) + end + end + describe 'test attribute "order_item_id"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "quantity"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "transparency_codes"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/orders-api-model/spec/models/confirm_shipment_order_items_list_spec.rb b/lib/orders-api-model/spec/models/confirm_shipment_order_items_list_spec.rb new file mode 100644 index 000000000..32253a8f2 --- /dev/null +++ b/lib/orders-api-model/spec/models/confirm_shipment_order_items_list_spec.rb @@ -0,0 +1,34 @@ +=begin +#Selling Partner API for Orders + +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::OrdersApiModel::ConfirmShipmentOrderItemsList +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'ConfirmShipmentOrderItemsList' do + before do + # run before each test + @instance = AmzSpApi::OrdersApiModel::ConfirmShipmentOrderItemsList.new + end + + after do + # run after each test + end + + describe 'test an instance of ConfirmShipmentOrderItemsList' do + it 'should create an instance of ConfirmShipmentOrderItemsList' do + expect(@instance).to be_instance_of(AmzSpApi::OrdersApiModel::ConfirmShipmentOrderItemsList) + end + end +end diff --git a/lib/orders-api-model/spec/models/confirm_shipment_request_spec.rb b/lib/orders-api-model/spec/models/confirm_shipment_request_spec.rb new file mode 100644 index 000000000..7a3ca1b63 --- /dev/null +++ b/lib/orders-api-model/spec/models/confirm_shipment_request_spec.rb @@ -0,0 +1,56 @@ +=begin +#Selling Partner API for Orders + +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::OrdersApiModel::ConfirmShipmentRequest +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'ConfirmShipmentRequest' do + before do + # run before each test + @instance = AmzSpApi::OrdersApiModel::ConfirmShipmentRequest.new + end + + after do + # run after each test + end + + describe 'test an instance of ConfirmShipmentRequest' do + it 'should create an instance of ConfirmShipmentRequest' do + expect(@instance).to be_instance_of(AmzSpApi::OrdersApiModel::ConfirmShipmentRequest) + end + end + describe 'test attribute "package_detail"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "cod_collection_method"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["DirectPayment"]) + # validator.allowable_values.each do |value| + # expect { @instance.cod_collection_method = value }.not_to raise_error + # end + end + end + + describe 'test attribute "marketplace_id"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/orders-api-model/spec/models/delivery_preferences_spec.rb b/lib/orders-api-model/spec/models/delivery_preferences_spec.rb new file mode 100644 index 000000000..96802d721 --- /dev/null +++ b/lib/orders-api-model/spec/models/delivery_preferences_spec.rb @@ -0,0 +1,58 @@ +=begin +#Selling Partner API for Orders + +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::OrdersApiModel::DeliveryPreferences +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'DeliveryPreferences' do + before do + # run before each test + @instance = AmzSpApi::OrdersApiModel::DeliveryPreferences.new + end + + after do + # run after each test + end + + describe 'test an instance of DeliveryPreferences' do + it 'should create an instance of DeliveryPreferences' do + expect(@instance).to be_instance_of(AmzSpApi::OrdersApiModel::DeliveryPreferences) + end + end + describe 'test attribute "drop_off_location"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "preferred_delivery_time"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "other_attributes"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "address_instructions"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/orders-api-model/spec/models/easy_ship_shipment_status_spec.rb b/lib/orders-api-model/spec/models/easy_ship_shipment_status_spec.rb index 809ded2f6..9bbd9656f 100644 --- a/lib/orders-api-model/spec/models/easy_ship_shipment_status_spec.rb +++ b/lib/orders-api-model/spec/models/easy_ship_shipment_status_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/electronic_invoice_status_spec.rb b/lib/orders-api-model/spec/models/electronic_invoice_status_spec.rb index 12c6e5868..3d6d27b04 100644 --- a/lib/orders-api-model/spec/models/electronic_invoice_status_spec.rb +++ b/lib/orders-api-model/spec/models/electronic_invoice_status_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/error_list_spec.rb b/lib/orders-api-model/spec/models/error_list_spec.rb index cacc2f7db..6b7809ac0 100644 --- a/lib/orders-api-model/spec/models/error_list_spec.rb +++ b/lib/orders-api-model/spec/models/error_list_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/error_spec.rb b/lib/orders-api-model/spec/models/error_spec.rb index 5050b033a..4a65ed3ab 100644 --- a/lib/orders-api-model/spec/models/error_spec.rb +++ b/lib/orders-api-model/spec/models/error_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/exception_dates_spec.rb b/lib/orders-api-model/spec/models/exception_dates_spec.rb new file mode 100644 index 000000000..43be7b463 --- /dev/null +++ b/lib/orders-api-model/spec/models/exception_dates_spec.rb @@ -0,0 +1,52 @@ +=begin +#Selling Partner API for Orders + +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::OrdersApiModel::ExceptionDates +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'ExceptionDates' do + before do + # run before each test + @instance = AmzSpApi::OrdersApiModel::ExceptionDates.new + end + + after do + # run after each test + end + + describe 'test an instance of ExceptionDates' do + it 'should create an instance of ExceptionDates' do + expect(@instance).to be_instance_of(AmzSpApi::OrdersApiModel::ExceptionDates) + end + end + describe 'test attribute "exception_date"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "is_open"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "open_intervals"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/orders-api-model/spec/models/fulfillment_instruction_spec.rb b/lib/orders-api-model/spec/models/fulfillment_instruction_spec.rb index b82a194ee..65db1c94a 100644 --- a/lib/orders-api-model/spec/models/fulfillment_instruction_spec.rb +++ b/lib/orders-api-model/spec/models/fulfillment_instruction_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/get_order_address_response_spec.rb b/lib/orders-api-model/spec/models/get_order_address_response_spec.rb index eb87e1dfb..715784f85 100644 --- a/lib/orders-api-model/spec/models/get_order_address_response_spec.rb +++ b/lib/orders-api-model/spec/models/get_order_address_response_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/get_order_buyer_info_response_spec.rb b/lib/orders-api-model/spec/models/get_order_buyer_info_response_spec.rb index 5d2a8e4d7..78ddbde9c 100644 --- a/lib/orders-api-model/spec/models/get_order_buyer_info_response_spec.rb +++ b/lib/orders-api-model/spec/models/get_order_buyer_info_response_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/get_order_items_buyer_info_response_spec.rb b/lib/orders-api-model/spec/models/get_order_items_buyer_info_response_spec.rb index 0d2a4aaa2..f567ba161 100644 --- a/lib/orders-api-model/spec/models/get_order_items_buyer_info_response_spec.rb +++ b/lib/orders-api-model/spec/models/get_order_items_buyer_info_response_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/get_order_items_response_spec.rb b/lib/orders-api-model/spec/models/get_order_items_response_spec.rb index 5fc299241..947bb7748 100644 --- a/lib/orders-api-model/spec/models/get_order_items_response_spec.rb +++ b/lib/orders-api-model/spec/models/get_order_items_response_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/get_order_regulated_info_response_spec.rb b/lib/orders-api-model/spec/models/get_order_regulated_info_response_spec.rb index 39637b69a..a77c0378a 100644 --- a/lib/orders-api-model/spec/models/get_order_regulated_info_response_spec.rb +++ b/lib/orders-api-model/spec/models/get_order_regulated_info_response_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/get_order_response_spec.rb b/lib/orders-api-model/spec/models/get_order_response_spec.rb index 763724113..a11d32665 100644 --- a/lib/orders-api-model/spec/models/get_order_response_spec.rb +++ b/lib/orders-api-model/spec/models/get_order_response_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/get_orders_response_spec.rb b/lib/orders-api-model/spec/models/get_orders_response_spec.rb index 5af1a9770..924be8104 100644 --- a/lib/orders-api-model/spec/models/get_orders_response_spec.rb +++ b/lib/orders-api-model/spec/models/get_orders_response_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/item_buyer_info_spec.rb b/lib/orders-api-model/spec/models/item_buyer_info_spec.rb index eeef6de79..36ceec5c6 100644 --- a/lib/orders-api-model/spec/models/item_buyer_info_spec.rb +++ b/lib/orders-api-model/spec/models/item_buyer_info_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/marketplace_id_spec.rb b/lib/orders-api-model/spec/models/marketplace_id_spec.rb index 6cc8ec50c..6842ba810 100644 --- a/lib/orders-api-model/spec/models/marketplace_id_spec.rb +++ b/lib/orders-api-model/spec/models/marketplace_id_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/marketplace_tax_info_spec.rb b/lib/orders-api-model/spec/models/marketplace_tax_info_spec.rb index a5a8b219f..ddc200b6a 100644 --- a/lib/orders-api-model/spec/models/marketplace_tax_info_spec.rb +++ b/lib/orders-api-model/spec/models/marketplace_tax_info_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/money_spec.rb b/lib/orders-api-model/spec/models/money_spec.rb index 2de524c8a..ccdc776c0 100644 --- a/lib/orders-api-model/spec/models/money_spec.rb +++ b/lib/orders-api-model/spec/models/money_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/open_interval_spec.rb b/lib/orders-api-model/spec/models/open_interval_spec.rb new file mode 100644 index 000000000..fe426cd81 --- /dev/null +++ b/lib/orders-api-model/spec/models/open_interval_spec.rb @@ -0,0 +1,46 @@ +=begin +#Selling Partner API for Orders + +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::OrdersApiModel::OpenInterval +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'OpenInterval' do + before do + # run before each test + @instance = AmzSpApi::OrdersApiModel::OpenInterval.new + end + + after do + # run after each test + end + + describe 'test an instance of OpenInterval' do + it 'should create an instance of OpenInterval' do + expect(@instance).to be_instance_of(AmzSpApi::OrdersApiModel::OpenInterval) + end + end + describe 'test attribute "start_time"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "end_time"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/orders-api-model/spec/models/open_time_interval_spec.rb b/lib/orders-api-model/spec/models/open_time_interval_spec.rb new file mode 100644 index 000000000..3ad74d2b0 --- /dev/null +++ b/lib/orders-api-model/spec/models/open_time_interval_spec.rb @@ -0,0 +1,46 @@ +=begin +#Selling Partner API for Orders + +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::OrdersApiModel::OpenTimeInterval +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'OpenTimeInterval' do + before do + # run before each test + @instance = AmzSpApi::OrdersApiModel::OpenTimeInterval.new + end + + after do + # run after each test + end + + describe 'test an instance of OpenTimeInterval' do + it 'should create an instance of OpenTimeInterval' do + expect(@instance).to be_instance_of(AmzSpApi::OrdersApiModel::OpenTimeInterval) + end + end + describe 'test attribute "hour"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "minute"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/orders-api-model/spec/models/order_address_spec.rb b/lib/orders-api-model/spec/models/order_address_spec.rb index 6fb3fd3b8..ddfd2af2f 100644 --- a/lib/orders-api-model/spec/models/order_address_spec.rb +++ b/lib/orders-api-model/spec/models/order_address_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -37,10 +37,22 @@ end end + describe 'test attribute "buyer_company_name"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "shipping_address"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end + describe 'test attribute "delivery_preferences"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/lib/orders-api-model/spec/models/order_buyer_info_spec.rb b/lib/orders-api-model/spec/models/order_buyer_info_spec.rb index 2b4ee8297..28382a9a4 100644 --- a/lib/orders-api-model/spec/models/order_buyer_info_spec.rb +++ b/lib/orders-api-model/spec/models/order_buyer_info_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/order_item_buyer_info_list_spec.rb b/lib/orders-api-model/spec/models/order_item_buyer_info_list_spec.rb index 8af8e0ca5..2abe7bb12 100644 --- a/lib/orders-api-model/spec/models/order_item_buyer_info_list_spec.rb +++ b/lib/orders-api-model/spec/models/order_item_buyer_info_list_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/order_item_buyer_info_spec.rb b/lib/orders-api-model/spec/models/order_item_buyer_info_spec.rb index c29a56aba..81a2c4169 100644 --- a/lib/orders-api-model/spec/models/order_item_buyer_info_spec.rb +++ b/lib/orders-api-model/spec/models/order_item_buyer_info_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/order_item_list_spec.rb b/lib/orders-api-model/spec/models/order_item_list_spec.rb index 9c00ce9b5..c4d2460c1 100644 --- a/lib/orders-api-model/spec/models/order_item_list_spec.rb +++ b/lib/orders-api-model/spec/models/order_item_list_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/order_item_spec.rb b/lib/orders-api-model/spec/models/order_item_spec.rb index a7e3c44a7..9bf76aed5 100644 --- a/lib/orders-api-model/spec/models/order_item_spec.rb +++ b/lib/orders-api-model/spec/models/order_item_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -239,4 +239,10 @@ end end + describe 'test attribute "serial_numbers"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/lib/orders-api-model/spec/models/order_items_buyer_info_list_spec.rb b/lib/orders-api-model/spec/models/order_items_buyer_info_list_spec.rb index d7e6fd47b..690ad9fa0 100644 --- a/lib/orders-api-model/spec/models/order_items_buyer_info_list_spec.rb +++ b/lib/orders-api-model/spec/models/order_items_buyer_info_list_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/order_items_inner_spec.rb b/lib/orders-api-model/spec/models/order_items_inner_spec.rb index fc26b4fc3..5b41fd3d8 100644 --- a/lib/orders-api-model/spec/models/order_items_inner_spec.rb +++ b/lib/orders-api-model/spec/models/order_items_inner_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/order_items_list_spec.rb b/lib/orders-api-model/spec/models/order_items_list_spec.rb index e82e6e113..2e46fdbae 100644 --- a/lib/orders-api-model/spec/models/order_items_list_spec.rb +++ b/lib/orders-api-model/spec/models/order_items_list_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/order_items_spec.rb b/lib/orders-api-model/spec/models/order_items_spec.rb index ab23565bb..d31ac0aec 100644 --- a/lib/orders-api-model/spec/models/order_items_spec.rb +++ b/lib/orders-api-model/spec/models/order_items_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/order_list_spec.rb b/lib/orders-api-model/spec/models/order_list_spec.rb index 56b994366..1e92b237d 100644 --- a/lib/orders-api-model/spec/models/order_list_spec.rb +++ b/lib/orders-api-model/spec/models/order_list_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/order_regulated_info_spec.rb b/lib/orders-api-model/spec/models/order_regulated_info_spec.rb index f98903c71..5adbe832f 100644 --- a/lib/orders-api-model/spec/models/order_regulated_info_spec.rb +++ b/lib/orders-api-model/spec/models/order_regulated_info_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/order_spec.rb b/lib/orders-api-model/spec/models/order_spec.rb index 83a1e751b..6b481edec 100644 --- a/lib/orders-api-model/spec/models/order_spec.rb +++ b/lib/orders-api-model/spec/models/order_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/orders_list_spec.rb b/lib/orders-api-model/spec/models/orders_list_spec.rb index 638b001e0..80baa9592 100644 --- a/lib/orders-api-model/spec/models/orders_list_spec.rb +++ b/lib/orders-api-model/spec/models/orders_list_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/other_delivery_attributes_spec.rb b/lib/orders-api-model/spec/models/other_delivery_attributes_spec.rb new file mode 100644 index 000000000..5aaed0af7 --- /dev/null +++ b/lib/orders-api-model/spec/models/other_delivery_attributes_spec.rb @@ -0,0 +1,34 @@ +=begin +#Selling Partner API for Orders + +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::OrdersApiModel::OtherDeliveryAttributes +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'OtherDeliveryAttributes' do + before do + # run before each test + @instance = AmzSpApi::OrdersApiModel::OtherDeliveryAttributes.new + end + + after do + # run after each test + end + + describe 'test an instance of OtherDeliveryAttributes' do + it 'should create an instance of OtherDeliveryAttributes' do + expect(@instance).to be_instance_of(AmzSpApi::OrdersApiModel::OtherDeliveryAttributes) + end + end +end diff --git a/lib/product-pricing-api-model/spec/models/buy_box_price_type_spec.rb b/lib/orders-api-model/spec/models/package_detail_spec.rb similarity index 56% rename from lib/product-pricing-api-model/spec/models/buy_box_price_type_spec.rb rename to lib/orders-api-model/spec/models/package_detail_spec.rb index a879a7d9f..1987d7807 100644 --- a/lib/product-pricing-api-model/spec/models/buy_box_price_type_spec.rb +++ b/lib/orders-api-model/spec/models/package_detail_spec.rb @@ -1,85 +1,79 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Orders -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' require 'json' require 'date' -# Unit tests for AmzSpApi::ProductPricingApiModel::BuyBoxPriceType +# Unit tests for AmzSpApi::OrdersApiModel::PackageDetail # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'BuyBoxPriceType' do +describe 'PackageDetail' do before do # run before each test - @instance = AmzSpApi::ProductPricingApiModel::BuyBoxPriceType.new + @instance = AmzSpApi::OrdersApiModel::PackageDetail.new end after do # run after each test end - describe 'test an instance of BuyBoxPriceType' do - it 'should create an instance of BuyBoxPriceType' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::BuyBoxPriceType) + describe 'test an instance of PackageDetail' do + it 'should create an instance of PackageDetail' do + expect(@instance).to be_instance_of(AmzSpApi::OrdersApiModel::PackageDetail) end end - describe 'test attribute "condition"' do + describe 'test attribute "package_reference_id"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "offer_type"' do + describe 'test attribute "carrier_code"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "quantity_tier"' do + describe 'test attribute "carrier_name"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "quantity_discount_type"' do + describe 'test attribute "shipping_method"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "landed_price"' do + describe 'test attribute "tracking_number"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "listing_price"' do + describe 'test attribute "ship_date"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "shipping"' do + describe 'test attribute "ship_from_supply_source_id"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "points"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "seller_id"' do + describe 'test attribute "order_items"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/lib/orders-api-model/spec/models/package_reference_id_spec.rb b/lib/orders-api-model/spec/models/package_reference_id_spec.rb new file mode 100644 index 000000000..37668be5c --- /dev/null +++ b/lib/orders-api-model/spec/models/package_reference_id_spec.rb @@ -0,0 +1,34 @@ +=begin +#Selling Partner API for Orders + +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::OrdersApiModel::PackageReferenceId +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'PackageReferenceId' do + before do + # run before each test + @instance = AmzSpApi::OrdersApiModel::PackageReferenceId.new + end + + after do + # run after each test + end + + describe 'test an instance of PackageReferenceId' do + it 'should create an instance of PackageReferenceId' do + expect(@instance).to be_instance_of(AmzSpApi::OrdersApiModel::PackageReferenceId) + end + end +end diff --git a/lib/orders-api-model/spec/models/payment_execution_detail_item_list_spec.rb b/lib/orders-api-model/spec/models/payment_execution_detail_item_list_spec.rb index 5e2ace1e9..c9b7a83de 100644 --- a/lib/orders-api-model/spec/models/payment_execution_detail_item_list_spec.rb +++ b/lib/orders-api-model/spec/models/payment_execution_detail_item_list_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/payment_execution_detail_item_spec.rb b/lib/orders-api-model/spec/models/payment_execution_detail_item_spec.rb index e5f0d22bc..cd8802b54 100644 --- a/lib/orders-api-model/spec/models/payment_execution_detail_item_spec.rb +++ b/lib/orders-api-model/spec/models/payment_execution_detail_item_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/payment_method_detail_item_list_spec.rb b/lib/orders-api-model/spec/models/payment_method_detail_item_list_spec.rb index e1e2640f8..b9d1626b9 100644 --- a/lib/orders-api-model/spec/models/payment_method_detail_item_list_spec.rb +++ b/lib/orders-api-model/spec/models/payment_method_detail_item_list_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/points_granted_detail_spec.rb b/lib/orders-api-model/spec/models/points_granted_detail_spec.rb index c3081b782..4aac11d01 100644 --- a/lib/orders-api-model/spec/models/points_granted_detail_spec.rb +++ b/lib/orders-api-model/spec/models/points_granted_detail_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/preferred_delivery_time_spec.rb b/lib/orders-api-model/spec/models/preferred_delivery_time_spec.rb new file mode 100644 index 000000000..c23898daf --- /dev/null +++ b/lib/orders-api-model/spec/models/preferred_delivery_time_spec.rb @@ -0,0 +1,46 @@ +=begin +#Selling Partner API for Orders + +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::OrdersApiModel::PreferredDeliveryTime +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'PreferredDeliveryTime' do + before do + # run before each test + @instance = AmzSpApi::OrdersApiModel::PreferredDeliveryTime.new + end + + after do + # run after each test + end + + describe 'test an instance of PreferredDeliveryTime' do + it 'should create an instance of PreferredDeliveryTime' do + expect(@instance).to be_instance_of(AmzSpApi::OrdersApiModel::PreferredDeliveryTime) + end + end + describe 'test attribute "business_hours"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "exception_dates"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/orders-api-model/spec/models/product_info_detail_spec.rb b/lib/orders-api-model/spec/models/product_info_detail_spec.rb index f301a03cf..2721bebca 100644 --- a/lib/orders-api-model/spec/models/product_info_detail_spec.rb +++ b/lib/orders-api-model/spec/models/product_info_detail_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/promotion_id_list_spec.rb b/lib/orders-api-model/spec/models/promotion_id_list_spec.rb index e0be420cd..cbc4e2127 100644 --- a/lib/orders-api-model/spec/models/promotion_id_list_spec.rb +++ b/lib/orders-api-model/spec/models/promotion_id_list_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/regulated_information_field_spec.rb b/lib/orders-api-model/spec/models/regulated_information_field_spec.rb index 8f8d0a05b..bf3ce3d49 100644 --- a/lib/orders-api-model/spec/models/regulated_information_field_spec.rb +++ b/lib/orders-api-model/spec/models/regulated_information_field_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/regulated_information_spec.rb b/lib/orders-api-model/spec/models/regulated_information_spec.rb index 9e18a8ac9..c68c73be2 100644 --- a/lib/orders-api-model/spec/models/regulated_information_spec.rb +++ b/lib/orders-api-model/spec/models/regulated_information_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/regulated_order_verification_status_spec.rb b/lib/orders-api-model/spec/models/regulated_order_verification_status_spec.rb index 53e6bd805..c5ce67b56 100644 --- a/lib/orders-api-model/spec/models/regulated_order_verification_status_spec.rb +++ b/lib/orders-api-model/spec/models/regulated_order_verification_status_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/rejection_reason_spec.rb b/lib/orders-api-model/spec/models/rejection_reason_spec.rb index 36862512d..beeda1c02 100644 --- a/lib/orders-api-model/spec/models/rejection_reason_spec.rb +++ b/lib/orders-api-model/spec/models/rejection_reason_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/shipment_status_spec.rb b/lib/orders-api-model/spec/models/shipment_status_spec.rb index e6fb42164..cb2d04bf9 100644 --- a/lib/orders-api-model/spec/models/shipment_status_spec.rb +++ b/lib/orders-api-model/spec/models/shipment_status_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/tax_classification_spec.rb b/lib/orders-api-model/spec/models/tax_classification_spec.rb index b725e082a..33bd50b6f 100644 --- a/lib/orders-api-model/spec/models/tax_classification_spec.rb +++ b/lib/orders-api-model/spec/models/tax_classification_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/tax_collection_spec.rb b/lib/orders-api-model/spec/models/tax_collection_spec.rb index 4fd43befd..6ee228bde 100644 --- a/lib/orders-api-model/spec/models/tax_collection_spec.rb +++ b/lib/orders-api-model/spec/models/tax_collection_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/transparency_code_list_spec.rb b/lib/orders-api-model/spec/models/transparency_code_list_spec.rb new file mode 100644 index 000000000..8618bce42 --- /dev/null +++ b/lib/orders-api-model/spec/models/transparency_code_list_spec.rb @@ -0,0 +1,34 @@ +=begin +#Selling Partner API for Orders + +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::OrdersApiModel::TransparencyCodeList +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'TransparencyCodeList' do + before do + # run before each test + @instance = AmzSpApi::OrdersApiModel::TransparencyCodeList.new + end + + after do + # run after each test + end + + describe 'test an instance of TransparencyCodeList' do + it 'should create an instance of TransparencyCodeList' do + expect(@instance).to be_instance_of(AmzSpApi::OrdersApiModel::TransparencyCodeList) + end + end +end diff --git a/lib/orders-api-model/spec/models/transparency_code_spec.rb b/lib/orders-api-model/spec/models/transparency_code_spec.rb new file mode 100644 index 000000000..d215171bb --- /dev/null +++ b/lib/orders-api-model/spec/models/transparency_code_spec.rb @@ -0,0 +1,34 @@ +=begin +#Selling Partner API for Orders + +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. + +OpenAPI spec version: v0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::OrdersApiModel::TransparencyCode +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'TransparencyCode' do + before do + # run before each test + @instance = AmzSpApi::OrdersApiModel::TransparencyCode.new + end + + after do + # run after each test + end + + describe 'test an instance of TransparencyCode' do + it 'should create an instance of TransparencyCode' do + expect(@instance).to be_instance_of(AmzSpApi::OrdersApiModel::TransparencyCode) + end + end +end diff --git a/lib/orders-api-model/spec/models/update_shipment_status_error_response_spec.rb b/lib/orders-api-model/spec/models/update_shipment_status_error_response_spec.rb index 818300cea..2f6c600df 100644 --- a/lib/orders-api-model/spec/models/update_shipment_status_error_response_spec.rb +++ b/lib/orders-api-model/spec/models/update_shipment_status_error_response_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/update_shipment_status_request_spec.rb b/lib/orders-api-model/spec/models/update_shipment_status_request_spec.rb index b5deb0589..60a3c9756 100644 --- a/lib/orders-api-model/spec/models/update_shipment_status_request_spec.rb +++ b/lib/orders-api-model/spec/models/update_shipment_status_request_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/update_verification_status_error_response_spec.rb b/lib/orders-api-model/spec/models/update_verification_status_error_response_spec.rb index 26ebb0789..84d89fb56 100644 --- a/lib/orders-api-model/spec/models/update_verification_status_error_response_spec.rb +++ b/lib/orders-api-model/spec/models/update_verification_status_error_response_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/update_verification_status_request_body_spec.rb b/lib/orders-api-model/spec/models/update_verification_status_request_body_spec.rb index 74259a28a..e36d77385 100644 --- a/lib/orders-api-model/spec/models/update_verification_status_request_body_spec.rb +++ b/lib/orders-api-model/spec/models/update_verification_status_request_body_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/update_verification_status_request_spec.rb b/lib/orders-api-model/spec/models/update_verification_status_request_spec.rb index badfe4ddb..54de741df 100644 --- a/lib/orders-api-model/spec/models/update_verification_status_request_spec.rb +++ b/lib/orders-api-model/spec/models/update_verification_status_request_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/models/verification_status_spec.rb b/lib/orders-api-model/spec/models/verification_status_spec.rb index 07899fcbc..aaa3edfcd 100644 --- a/lib/orders-api-model/spec/models/verification_status_spec.rb +++ b/lib/orders-api-model/spec/models/verification_status_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/orders-api-model/spec/spec_helper.rb b/lib/orders-api-model/spec/spec_helper.rb index 330ae3b16..4527dfbe1 100644 --- a/lib/orders-api-model/spec/spec_helper.rb +++ b/lib/orders-api-model/spec/spec_helper.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # load the gem diff --git a/lib/orders-api-model/version.rb b/lib/orders-api-model/version.rb index 12b4233eb..89f7816e9 100644 --- a/lib/orders-api-model/version.rb +++ b/lib/orders-api-model/version.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Orders -#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. +#The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::OrdersApiModel diff --git a/lib/product-fees-api-model.rb b/lib/product-fees-api-model.rb index 9846cc5ab..f1abe5342 100644 --- a/lib/product-fees-api-model.rb +++ b/lib/product-fees-api-model.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # Common files diff --git a/lib/product-fees-api-model/.swagger-codegen/VERSION b/lib/product-fees-api-model/.swagger-codegen/VERSION index b39b0b9e0..161761765 100644 --- a/lib/product-fees-api-model/.swagger-codegen/VERSION +++ b/lib/product-fees-api-model/.swagger-codegen/VERSION @@ -1 +1 @@ -3.0.24 \ No newline at end of file +3.0.46 \ No newline at end of file diff --git a/lib/product-fees-api-model/api/fees_api.rb b/lib/product-fees-api-model/api/fees_api.rb index ee1b1b6c7..c45107361 100644 --- a/lib/product-fees-api-model/api/fees_api.rb +++ b/lib/product-fees-api-model/api/fees_api.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::ProductFeesApiModel @@ -16,7 +16,7 @@ class FeesApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Returns the estimated fees for the item indicated by the specified ASIN in the marketplace specified in the request body. You can call `getMyFeesEstimateForASIN` for an item on behalf of a selling partner before the selling partner sets the item's price. The selling partner can then take estimated fees into account. Each fees request must include an original identifier. This identifier is included in the fees estimate so you can correlate a fees estimate with the original request. **Note:** This identifier value is only an estimate, actual costs may vary. Search \"fees\" in [Seller Central](https://sellercentral.amazon.com/) and consult the store-specific fee schedule for the most up-to-date information. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Returns the estimated fees for the item indicated by the specified ASIN in the marketplace specified in the request body. You can call `getMyFeesEstimateForASIN` for an item on behalf of a selling partner before the selling partner sets the item's price. The selling partner can then take estimated fees into account. Each fees request must include an original identifier. This identifier is included in the fees estimate so you can correlate a fees estimate with the original request. **Note:** This identifier value is used to identify an estimate. Actual costs may vary. Search \"fees\" in [Seller Central](https://sellercentral.amazon.com/) and consult the store-specific fee schedule for the most up-to-date information. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param asin The Amazon Standard Identification Number (ASIN) of the item. # @param [Hash] opts the optional parameters @@ -26,7 +26,7 @@ def get_my_fees_estimate_for_asin(body, asin, opts = {}) data end - # Returns the estimated fees for the item indicated by the specified ASIN in the marketplace specified in the request body. You can call `getMyFeesEstimateForASIN` for an item on behalf of a selling partner before the selling partner sets the item's price. The selling partner can then take estimated fees into account. Each fees request must include an original identifier. This identifier is included in the fees estimate so you can correlate a fees estimate with the original request. **Note:** This identifier value is only an estimate, actual costs may vary. Search \"fees\" in [Seller Central](https://sellercentral.amazon.com/) and consult the store-specific fee schedule for the most up-to-date information. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Returns the estimated fees for the item indicated by the specified ASIN in the marketplace specified in the request body. You can call `getMyFeesEstimateForASIN` for an item on behalf of a selling partner before the selling partner sets the item's price. The selling partner can then take estimated fees into account. Each fees request must include an original identifier. This identifier is included in the fees estimate so you can correlate a fees estimate with the original request. **Note:** This identifier value is used to identify an estimate. Actual costs may vary. Search \"fees\" in [Seller Central](https://sellercentral.amazon.com/) and consult the store-specific fee schedule for the most up-to-date information. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param asin The Amazon Standard Identification Number (ASIN) of the item. # @param [Hash] opts the optional parameters @@ -78,7 +78,7 @@ def get_my_fees_estimate_for_asin_with_http_info(body, asin, opts = {}) end return data, status_code, headers end - # Returns the estimated fees for the item indicated by the specified seller SKU in the marketplace specified in the request body. You can call `getMyFeesEstimateForSKU` for an item on behalf of a selling partner before the selling partner sets the item's price. The selling partner can then take any estimated fees into account. Each fees estimate request must include an original identifier. This identifier is included in the fees estimate so that you can correlate a fees estimate with the original request. **Note:** The identifier value is only an estimate, actual costs may vary. Search \"fees\" in [Seller Central](https://sellercentral.amazon.com/) and consult the store-specific fee schedule for the most up-to-date information. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Returns the estimated fees for the item indicated by the specified seller SKU in the marketplace specified in the request body. **Note:** The parameters associated with this operation may contain special characters that require URL encoding to call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). You can call `getMyFeesEstimateForSKU` for an item on behalf of a selling partner before the selling partner sets the item's price. The selling partner can then take any estimated fees into account. Each fees estimate request must include an original identifier. This identifier is included in the fees estimate so that you can correlate a fees estimate with the original request. **Note:** This identifier value is used to identify an estimate. Actual costs may vary. Search \"fees\" in [Seller Central](https://sellercentral.amazon.com/) and consult the store-specific fee schedule for the most up-to-date information. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param seller_sku Used to identify an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. # @param [Hash] opts the optional parameters @@ -88,7 +88,7 @@ def get_my_fees_estimate_for_sku(body, seller_sku, opts = {}) data end - # Returns the estimated fees for the item indicated by the specified seller SKU in the marketplace specified in the request body. You can call `getMyFeesEstimateForSKU` for an item on behalf of a selling partner before the selling partner sets the item's price. The selling partner can then take any estimated fees into account. Each fees estimate request must include an original identifier. This identifier is included in the fees estimate so that you can correlate a fees estimate with the original request. **Note:** The identifier value is only an estimate, actual costs may vary. Search \"fees\" in [Seller Central](https://sellercentral.amazon.com/) and consult the store-specific fee schedule for the most up-to-date information. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Returns the estimated fees for the item indicated by the specified seller SKU in the marketplace specified in the request body. **Note:** The parameters associated with this operation may contain special characters that require URL encoding to call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). You can call `getMyFeesEstimateForSKU` for an item on behalf of a selling partner before the selling partner sets the item's price. The selling partner can then take any estimated fees into account. Each fees estimate request must include an original identifier. This identifier is included in the fees estimate so that you can correlate a fees estimate with the original request. **Note:** This identifier value is used to identify an estimate. Actual costs may vary. Search \"fees\" in [Seller Central](https://sellercentral.amazon.com/) and consult the store-specific fee schedule for the most up-to-date information. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param seller_sku Used to identify an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. # @param [Hash] opts the optional parameters diff --git a/lib/product-fees-api-model/api_client.rb b/lib/product-fees-api-model/api_client.rb index ae75e49e7..d219a399a 100644 --- a/lib/product-fees-api-model/api_client.rb +++ b/lib/product-fees-api-model/api_client.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-fees-api-model/api_error.rb b/lib/product-fees-api-model/api_error.rb index 1e1b0dd05..e2571e6da 100644 --- a/lib/product-fees-api-model/api_error.rb +++ b/lib/product-fees-api-model/api_error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::ProductFeesApiModel diff --git a/lib/product-fees-api-model/configuration.rb b/lib/product-fees-api-model/configuration.rb index 0008348ae..05b8b58ac 100644 --- a/lib/product-fees-api-model/configuration.rb +++ b/lib/product-fees-api-model/configuration.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::ProductFeesApiModel diff --git a/lib/product-fees-api-model/docs/FeesApi.md b/lib/product-fees-api-model/docs/FeesApi.md index fdd407387..c6bd0fbcb 100644 --- a/lib/product-fees-api-model/docs/FeesApi.md +++ b/lib/product-fees-api-model/docs/FeesApi.md @@ -13,7 +13,7 @@ Method | HTTP request | Description -Returns the estimated fees for the item indicated by the specified ASIN in the marketplace specified in the request body. You can call `getMyFeesEstimateForASIN` for an item on behalf of a selling partner before the selling partner sets the item's price. The selling partner can then take estimated fees into account. Each fees request must include an original identifier. This identifier is included in the fees estimate so you can correlate a fees estimate with the original request. **Note:** This identifier value is only an estimate, actual costs may vary. Search \"fees\" in [Seller Central](https://sellercentral.amazon.com/) and consult the store-specific fee schedule for the most up-to-date information. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). +Returns the estimated fees for the item indicated by the specified ASIN in the marketplace specified in the request body. You can call `getMyFeesEstimateForASIN` for an item on behalf of a selling partner before the selling partner sets the item's price. The selling partner can then take estimated fees into account. Each fees request must include an original identifier. This identifier is included in the fees estimate so you can correlate a fees estimate with the original request. **Note:** This identifier value is used to identify an estimate. Actual costs may vary. Search \"fees\" in [Seller Central](https://sellercentral.amazon.com/) and consult the store-specific fee schedule for the most up-to-date information. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -60,7 +60,7 @@ No authorization required -Returns the estimated fees for the item indicated by the specified seller SKU in the marketplace specified in the request body. You can call `getMyFeesEstimateForSKU` for an item on behalf of a selling partner before the selling partner sets the item's price. The selling partner can then take any estimated fees into account. Each fees estimate request must include an original identifier. This identifier is included in the fees estimate so that you can correlate a fees estimate with the original request. **Note:** The identifier value is only an estimate, actual costs may vary. Search \"fees\" in [Seller Central](https://sellercentral.amazon.com/) and consult the store-specific fee schedule for the most up-to-date information. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). +Returns the estimated fees for the item indicated by the specified seller SKU in the marketplace specified in the request body. **Note:** The parameters associated with this operation may contain special characters that require URL encoding to call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). You can call `getMyFeesEstimateForSKU` for an item on behalf of a selling partner before the selling partner sets the item's price. The selling partner can then take any estimated fees into account. Each fees estimate request must include an original identifier. This identifier is included in the fees estimate so that you can correlate a fees estimate with the original request. **Note:** This identifier value is used to identify an estimate. Actual costs may vary. Search \"fees\" in [Seller Central](https://sellercentral.amazon.com/) and consult the store-specific fee schedule for the most up-to-date information. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby diff --git a/lib/product-fees-api-model/models/error.rb b/lib/product-fees-api-model/models/error.rb index bedf7f15b..f4f0d6725 100644 --- a/lib/product-fees-api-model/models/error.rb +++ b/lib/product-fees-api-model/models/error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-fees-api-model/models/error_list.rb b/lib/product-fees-api-model/models/error_list.rb index c2f0a8cd1..0267b9eeb 100644 --- a/lib/product-fees-api-model/models/error_list.rb +++ b/lib/product-fees-api-model/models/error_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-fees-api-model/models/fee_detail.rb b/lib/product-fees-api-model/models/fee_detail.rb index 01a90b89f..f927ea6d6 100644 --- a/lib/product-fees-api-model/models/fee_detail.rb +++ b/lib/product-fees-api-model/models/fee_detail.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-fees-api-model/models/fee_detail_list.rb b/lib/product-fees-api-model/models/fee_detail_list.rb index 20c3b7586..564fe0ba8 100644 --- a/lib/product-fees-api-model/models/fee_detail_list.rb +++ b/lib/product-fees-api-model/models/fee_detail_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-fees-api-model/models/fees_estimate.rb b/lib/product-fees-api-model/models/fees_estimate.rb index 61ced7c78..f9d74885d 100644 --- a/lib/product-fees-api-model/models/fees_estimate.rb +++ b/lib/product-fees-api-model/models/fees_estimate.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-fees-api-model/models/fees_estimate_by_id_request.rb b/lib/product-fees-api-model/models/fees_estimate_by_id_request.rb index e26dfbf38..324895be9 100644 --- a/lib/product-fees-api-model/models/fees_estimate_by_id_request.rb +++ b/lib/product-fees-api-model/models/fees_estimate_by_id_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-fees-api-model/models/fees_estimate_error.rb b/lib/product-fees-api-model/models/fees_estimate_error.rb index 486ae8f9f..dd0899b76 100644 --- a/lib/product-fees-api-model/models/fees_estimate_error.rb +++ b/lib/product-fees-api-model/models/fees_estimate_error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-fees-api-model/models/fees_estimate_error_detail.rb b/lib/product-fees-api-model/models/fees_estimate_error_detail.rb index 1ac4f14ad..5581c825f 100644 --- a/lib/product-fees-api-model/models/fees_estimate_error_detail.rb +++ b/lib/product-fees-api-model/models/fees_estimate_error_detail.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-fees-api-model/models/fees_estimate_identifier.rb b/lib/product-fees-api-model/models/fees_estimate_identifier.rb index 84505830f..3faca1c42 100644 --- a/lib/product-fees-api-model/models/fees_estimate_identifier.rb +++ b/lib/product-fees-api-model/models/fees_estimate_identifier.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-fees-api-model/models/fees_estimate_request.rb b/lib/product-fees-api-model/models/fees_estimate_request.rb index 213b99eff..8dac73f08 100644 --- a/lib/product-fees-api-model/models/fees_estimate_request.rb +++ b/lib/product-fees-api-model/models/fees_estimate_request.rb @@ -6,12 +6,13 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::ProductFeesApiModel + # A product, marketplace, and proposed price used to request estimated fees. class FeesEstimateRequest # A marketplace identifier. attr_accessor :marketplace_id diff --git a/lib/product-fees-api-model/models/fees_estimate_result.rb b/lib/product-fees-api-model/models/fees_estimate_result.rb index 3d9551869..1b504d7c5 100644 --- a/lib/product-fees-api-model/models/fees_estimate_result.rb +++ b/lib/product-fees-api-model/models/fees_estimate_result.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-fees-api-model/models/get_my_fees_estimate_request.rb b/lib/product-fees-api-model/models/get_my_fees_estimate_request.rb index 81eba9508..f7761050f 100644 --- a/lib/product-fees-api-model/models/get_my_fees_estimate_request.rb +++ b/lib/product-fees-api-model/models/get_my_fees_estimate_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-fees-api-model/models/get_my_fees_estimate_response.rb b/lib/product-fees-api-model/models/get_my_fees_estimate_response.rb index e3c4ea239..1ca91cbe8 100644 --- a/lib/product-fees-api-model/models/get_my_fees_estimate_response.rb +++ b/lib/product-fees-api-model/models/get_my_fees_estimate_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-fees-api-model/models/get_my_fees_estimate_result.rb b/lib/product-fees-api-model/models/get_my_fees_estimate_result.rb index f07ff1df7..3c4a996bd 100644 --- a/lib/product-fees-api-model/models/get_my_fees_estimate_result.rb +++ b/lib/product-fees-api-model/models/get_my_fees_estimate_result.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-fees-api-model/models/get_my_fees_estimates_error_list.rb b/lib/product-fees-api-model/models/get_my_fees_estimates_error_list.rb index b7afac9aa..dfc70a124 100644 --- a/lib/product-fees-api-model/models/get_my_fees_estimates_error_list.rb +++ b/lib/product-fees-api-model/models/get_my_fees_estimates_error_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-fees-api-model/models/get_my_fees_estimates_request.rb b/lib/product-fees-api-model/models/get_my_fees_estimates_request.rb index a1e35c685..915b506b8 100644 --- a/lib/product-fees-api-model/models/get_my_fees_estimates_request.rb +++ b/lib/product-fees-api-model/models/get_my_fees_estimates_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-fees-api-model/models/get_my_fees_estimates_response.rb b/lib/product-fees-api-model/models/get_my_fees_estimates_response.rb index a46b9d618..efa3aa33b 100644 --- a/lib/product-fees-api-model/models/get_my_fees_estimates_response.rb +++ b/lib/product-fees-api-model/models/get_my_fees_estimates_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-fees-api-model/models/id_type.rb b/lib/product-fees-api-model/models/id_type.rb index e1d556fac..c7b0ba18b 100644 --- a/lib/product-fees-api-model/models/id_type.rb +++ b/lib/product-fees-api-model/models/id_type.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-fees-api-model/models/included_fee_detail.rb b/lib/product-fees-api-model/models/included_fee_detail.rb index 7b143f00e..3b176d78d 100644 --- a/lib/product-fees-api-model/models/included_fee_detail.rb +++ b/lib/product-fees-api-model/models/included_fee_detail.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-fees-api-model/models/included_fee_detail_list.rb b/lib/product-fees-api-model/models/included_fee_detail_list.rb index 522e529d1..c3c7f1bb4 100644 --- a/lib/product-fees-api-model/models/included_fee_detail_list.rb +++ b/lib/product-fees-api-model/models/included_fee_detail_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-fees-api-model/models/money_type.rb b/lib/product-fees-api-model/models/money_type.rb index a0b1b69b0..e68033001 100644 --- a/lib/product-fees-api-model/models/money_type.rb +++ b/lib/product-fees-api-model/models/money_type.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-fees-api-model/models/optional_fulfillment_program.rb b/lib/product-fees-api-model/models/optional_fulfillment_program.rb index 10d9364cb..6351f814f 100644 --- a/lib/product-fees-api-model/models/optional_fulfillment_program.rb +++ b/lib/product-fees-api-model/models/optional_fulfillment_program.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-fees-api-model/models/points.rb b/lib/product-fees-api-model/models/points.rb index 50cc9837c..1ef44e130 100644 --- a/lib/product-fees-api-model/models/points.rb +++ b/lib/product-fees-api-model/models/points.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-fees-api-model/models/price_to_estimate_fees.rb b/lib/product-fees-api-model/models/price_to_estimate_fees.rb index 14a9fc652..9d96fe7bf 100644 --- a/lib/product-fees-api-model/models/price_to_estimate_fees.rb +++ b/lib/product-fees-api-model/models/price_to_estimate_fees.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-fees-api-model/spec/api/fees_api_spec.rb b/lib/product-fees-api-model/spec/api/fees_api_spec.rb index 478ad9fb5..2990d50ea 100644 --- a/lib/product-fees-api-model/spec/api/fees_api_spec.rb +++ b/lib/product-fees-api-model/spec/api/fees_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -32,7 +32,7 @@ end # unit tests for get_my_fees_estimate_for_asin - # Returns the estimated fees for the item indicated by the specified ASIN in the marketplace specified in the request body. You can call `getMyFeesEstimateForASIN` for an item on behalf of a selling partner before the selling partner sets the item's price. The selling partner can then take estimated fees into account. Each fees request must include an original identifier. This identifier is included in the fees estimate so you can correlate a fees estimate with the original request. **Note:** This identifier value is only an estimate, actual costs may vary. Search \"fees\" in [Seller Central](https://sellercentral.amazon.com/) and consult the store-specific fee schedule for the most up-to-date information. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Returns the estimated fees for the item indicated by the specified ASIN in the marketplace specified in the request body. You can call `getMyFeesEstimateForASIN` for an item on behalf of a selling partner before the selling partner sets the item's price. The selling partner can then take estimated fees into account. Each fees request must include an original identifier. This identifier is included in the fees estimate so you can correlate a fees estimate with the original request. **Note:** This identifier value is used to identify an estimate. Actual costs may vary. Search \"fees\" in [Seller Central](https://sellercentral.amazon.com/) and consult the store-specific fee schedule for the most up-to-date information. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param asin The Amazon Standard Identification Number (ASIN) of the item. # @param [Hash] opts the optional parameters @@ -44,7 +44,7 @@ end # unit tests for get_my_fees_estimate_for_sku - # Returns the estimated fees for the item indicated by the specified seller SKU in the marketplace specified in the request body. You can call `getMyFeesEstimateForSKU` for an item on behalf of a selling partner before the selling partner sets the item's price. The selling partner can then take any estimated fees into account. Each fees estimate request must include an original identifier. This identifier is included in the fees estimate so that you can correlate a fees estimate with the original request. **Note:** The identifier value is only an estimate, actual costs may vary. Search \"fees\" in [Seller Central](https://sellercentral.amazon.com/) and consult the store-specific fee schedule for the most up-to-date information. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Returns the estimated fees for the item indicated by the specified seller SKU in the marketplace specified in the request body. **Note:** The parameters associated with this operation may contain special characters that require URL encoding to call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). You can call `getMyFeesEstimateForSKU` for an item on behalf of a selling partner before the selling partner sets the item's price. The selling partner can then take any estimated fees into account. Each fees estimate request must include an original identifier. This identifier is included in the fees estimate so that you can correlate a fees estimate with the original request. **Note:** This identifier value is used to identify an estimate. Actual costs may vary. Search \"fees\" in [Seller Central](https://sellercentral.amazon.com/) and consult the store-specific fee schedule for the most up-to-date information. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param seller_sku Used to identify an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. # @param [Hash] opts the optional parameters diff --git a/lib/product-fees-api-model/spec/api_client_spec.rb b/lib/product-fees-api-model/spec/api_client_spec.rb index bc46733c6..24a4a25fd 100644 --- a/lib/product-fees-api-model/spec/api_client_spec.rb +++ b/lib/product-fees-api-model/spec/api_client_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-fees-api-model/spec/configuration_spec.rb b/lib/product-fees-api-model/spec/configuration_spec.rb index 459b8133b..95e2c916d 100644 --- a/lib/product-fees-api-model/spec/configuration_spec.rb +++ b/lib/product-fees-api-model/spec/configuration_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-fees-api-model/spec/models/error_list_spec.rb b/lib/product-fees-api-model/spec/models/error_list_spec.rb index 507947a02..1f1418b05 100644 --- a/lib/product-fees-api-model/spec/models/error_list_spec.rb +++ b/lib/product-fees-api-model/spec/models/error_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-fees-api-model/spec/models/error_spec.rb b/lib/product-fees-api-model/spec/models/error_spec.rb index 9a5e3cbac..52bc61312 100644 --- a/lib/product-fees-api-model/spec/models/error_spec.rb +++ b/lib/product-fees-api-model/spec/models/error_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-fees-api-model/spec/models/fee_detail_list_spec.rb b/lib/product-fees-api-model/spec/models/fee_detail_list_spec.rb index 8d4e2865e..e7c28e4ee 100644 --- a/lib/product-fees-api-model/spec/models/fee_detail_list_spec.rb +++ b/lib/product-fees-api-model/spec/models/fee_detail_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-fees-api-model/spec/models/fee_detail_spec.rb b/lib/product-fees-api-model/spec/models/fee_detail_spec.rb index 57f59f5b9..1a7e7387e 100644 --- a/lib/product-fees-api-model/spec/models/fee_detail_spec.rb +++ b/lib/product-fees-api-model/spec/models/fee_detail_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-fees-api-model/spec/models/fees_estimate_by_id_request_spec.rb b/lib/product-fees-api-model/spec/models/fees_estimate_by_id_request_spec.rb index 02169e738..18e766872 100644 --- a/lib/product-fees-api-model/spec/models/fees_estimate_by_id_request_spec.rb +++ b/lib/product-fees-api-model/spec/models/fees_estimate_by_id_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-fees-api-model/spec/models/fees_estimate_error_detail_spec.rb b/lib/product-fees-api-model/spec/models/fees_estimate_error_detail_spec.rb index add00e277..ee50207a1 100644 --- a/lib/product-fees-api-model/spec/models/fees_estimate_error_detail_spec.rb +++ b/lib/product-fees-api-model/spec/models/fees_estimate_error_detail_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-fees-api-model/spec/models/fees_estimate_error_spec.rb b/lib/product-fees-api-model/spec/models/fees_estimate_error_spec.rb index d58c8f311..984eb0a69 100644 --- a/lib/product-fees-api-model/spec/models/fees_estimate_error_spec.rb +++ b/lib/product-fees-api-model/spec/models/fees_estimate_error_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-fees-api-model/spec/models/fees_estimate_identifier_spec.rb b/lib/product-fees-api-model/spec/models/fees_estimate_identifier_spec.rb index 8339885be..900d0b380 100644 --- a/lib/product-fees-api-model/spec/models/fees_estimate_identifier_spec.rb +++ b/lib/product-fees-api-model/spec/models/fees_estimate_identifier_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-fees-api-model/spec/models/fees_estimate_request_spec.rb b/lib/product-fees-api-model/spec/models/fees_estimate_request_spec.rb index 70c584579..2ab389061 100644 --- a/lib/product-fees-api-model/spec/models/fees_estimate_request_spec.rb +++ b/lib/product-fees-api-model/spec/models/fees_estimate_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-fees-api-model/spec/models/fees_estimate_result_spec.rb b/lib/product-fees-api-model/spec/models/fees_estimate_result_spec.rb index bd4deb9f7..60fd3ee7d 100644 --- a/lib/product-fees-api-model/spec/models/fees_estimate_result_spec.rb +++ b/lib/product-fees-api-model/spec/models/fees_estimate_result_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-fees-api-model/spec/models/fees_estimate_spec.rb b/lib/product-fees-api-model/spec/models/fees_estimate_spec.rb index aa219aab2..80eeaab42 100644 --- a/lib/product-fees-api-model/spec/models/fees_estimate_spec.rb +++ b/lib/product-fees-api-model/spec/models/fees_estimate_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-fees-api-model/spec/models/get_my_fees_estimate_request_spec.rb b/lib/product-fees-api-model/spec/models/get_my_fees_estimate_request_spec.rb index 4edac24d1..169cff32a 100644 --- a/lib/product-fees-api-model/spec/models/get_my_fees_estimate_request_spec.rb +++ b/lib/product-fees-api-model/spec/models/get_my_fees_estimate_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-fees-api-model/spec/models/get_my_fees_estimate_response_spec.rb b/lib/product-fees-api-model/spec/models/get_my_fees_estimate_response_spec.rb index e4b924c71..22ec91427 100644 --- a/lib/product-fees-api-model/spec/models/get_my_fees_estimate_response_spec.rb +++ b/lib/product-fees-api-model/spec/models/get_my_fees_estimate_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-fees-api-model/spec/models/get_my_fees_estimate_result_spec.rb b/lib/product-fees-api-model/spec/models/get_my_fees_estimate_result_spec.rb index be650d243..6ee2398f5 100644 --- a/lib/product-fees-api-model/spec/models/get_my_fees_estimate_result_spec.rb +++ b/lib/product-fees-api-model/spec/models/get_my_fees_estimate_result_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-fees-api-model/spec/models/get_my_fees_estimates_error_list_spec.rb b/lib/product-fees-api-model/spec/models/get_my_fees_estimates_error_list_spec.rb index d454443a5..54a3e119f 100644 --- a/lib/product-fees-api-model/spec/models/get_my_fees_estimates_error_list_spec.rb +++ b/lib/product-fees-api-model/spec/models/get_my_fees_estimates_error_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-fees-api-model/spec/models/get_my_fees_estimates_request_spec.rb b/lib/product-fees-api-model/spec/models/get_my_fees_estimates_request_spec.rb index 4a9bd20a9..ac53a7499 100644 --- a/lib/product-fees-api-model/spec/models/get_my_fees_estimates_request_spec.rb +++ b/lib/product-fees-api-model/spec/models/get_my_fees_estimates_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-fees-api-model/spec/models/get_my_fees_estimates_response_spec.rb b/lib/product-fees-api-model/spec/models/get_my_fees_estimates_response_spec.rb index 1f9d4ad5b..37eb2c658 100644 --- a/lib/product-fees-api-model/spec/models/get_my_fees_estimates_response_spec.rb +++ b/lib/product-fees-api-model/spec/models/get_my_fees_estimates_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-fees-api-model/spec/models/id_type_spec.rb b/lib/product-fees-api-model/spec/models/id_type_spec.rb index d507d47be..2c0b6e2ef 100644 --- a/lib/product-fees-api-model/spec/models/id_type_spec.rb +++ b/lib/product-fees-api-model/spec/models/id_type_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-fees-api-model/spec/models/included_fee_detail_list_spec.rb b/lib/product-fees-api-model/spec/models/included_fee_detail_list_spec.rb index d76beeca9..533587119 100644 --- a/lib/product-fees-api-model/spec/models/included_fee_detail_list_spec.rb +++ b/lib/product-fees-api-model/spec/models/included_fee_detail_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-fees-api-model/spec/models/included_fee_detail_spec.rb b/lib/product-fees-api-model/spec/models/included_fee_detail_spec.rb index 9d9fab090..60bc78f32 100644 --- a/lib/product-fees-api-model/spec/models/included_fee_detail_spec.rb +++ b/lib/product-fees-api-model/spec/models/included_fee_detail_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-fees-api-model/spec/models/money_type_spec.rb b/lib/product-fees-api-model/spec/models/money_type_spec.rb index d88a30d48..eb03098c9 100644 --- a/lib/product-fees-api-model/spec/models/money_type_spec.rb +++ b/lib/product-fees-api-model/spec/models/money_type_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-fees-api-model/spec/models/optional_fulfillment_program_spec.rb b/lib/product-fees-api-model/spec/models/optional_fulfillment_program_spec.rb index 3b6a7248b..c59590b3c 100644 --- a/lib/product-fees-api-model/spec/models/optional_fulfillment_program_spec.rb +++ b/lib/product-fees-api-model/spec/models/optional_fulfillment_program_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-fees-api-model/spec/models/points_spec.rb b/lib/product-fees-api-model/spec/models/points_spec.rb index 2a219473c..82144b256 100644 --- a/lib/product-fees-api-model/spec/models/points_spec.rb +++ b/lib/product-fees-api-model/spec/models/points_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-fees-api-model/spec/models/price_to_estimate_fees_spec.rb b/lib/product-fees-api-model/spec/models/price_to_estimate_fees_spec.rb index e8eecfd2b..5ea629d12 100644 --- a/lib/product-fees-api-model/spec/models/price_to_estimate_fees_spec.rb +++ b/lib/product-fees-api-model/spec/models/price_to_estimate_fees_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-fees-api-model/spec/spec_helper.rb b/lib/product-fees-api-model/spec/spec_helper.rb index d4453e390..b6729e65f 100644 --- a/lib/product-fees-api-model/spec/spec_helper.rb +++ b/lib/product-fees-api-model/spec/spec_helper.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # load the gem diff --git a/lib/product-fees-api-model/version.rb b/lib/product-fees-api-model/version.rb index 397bebbcd..0a66028d0 100644 --- a/lib/product-fees-api-model/version.rb +++ b/lib/product-fees-api-model/version.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::ProductFeesApiModel diff --git a/lib/product-pricing-api-model.rb b/lib/product-pricing-api-model.rb index aed0949a1..d3ba1eaa6 100644 --- a/lib/product-pricing-api-model.rb +++ b/lib/product-pricing-api-model.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # Common files @@ -16,78 +16,36 @@ require 'product-pricing-api-model/configuration' # Models -require 'product-pricing-api-model/models/asin_identifier' require 'product-pricing-api-model/models/asin' -require 'product-pricing-api-model/models/attribute_set_list' -require 'product-pricing-api-model/models/batch_offers_request_params' -require 'product-pricing-api-model/models/batch_offers_response' require 'product-pricing-api-model/models/batch_request' -require 'product-pricing-api-model/models/buy_box_eligible_offers' -require 'product-pricing-api-model/models/buy_box_price_type' -require 'product-pricing-api-model/models/buy_box_prices' -require 'product-pricing-api-model/models/competitive_price_list' -require 'product-pricing-api-model/models/competitive_price_type' -require 'product-pricing-api-model/models/competitive_pricing_type' -require 'product-pricing-api-model/models/condition_type' -require 'product-pricing-api-model/models/customer_type' -require 'product-pricing-api-model/models/detailed_shipping_time_type' +require 'product-pricing-api-model/models/batch_response' +require 'product-pricing-api-model/models/condition' require 'product-pricing-api-model/models/error' require 'product-pricing-api-model/models/error_list' require 'product-pricing-api-model/models/errors' -require 'product-pricing-api-model/models/fulfillment_channel_type' -require 'product-pricing-api-model/models/get_item_offers_batch_request' -require 'product-pricing-api-model/models/get_item_offers_batch_response' -require 'product-pricing-api-model/models/get_listing_offers_batch_request' -require 'product-pricing-api-model/models/get_listing_offers_batch_response' -require 'product-pricing-api-model/models/get_offers_http_status_line' -require 'product-pricing-api-model/models/get_offers_response' -require 'product-pricing-api-model/models/get_offers_result' -require 'product-pricing-api-model/models/get_pricing_response' +require 'product-pricing-api-model/models/featured_offer' +require 'product-pricing-api-model/models/featured_offer_expected_price' +require 'product-pricing-api-model/models/featured_offer_expected_price_request' +require 'product-pricing-api-model/models/featured_offer_expected_price_request_list' +require 'product-pricing-api-model/models/featured_offer_expected_price_request_params' +require 'product-pricing-api-model/models/featured_offer_expected_price_response' +require 'product-pricing-api-model/models/featured_offer_expected_price_response_body' +require 'product-pricing-api-model/models/featured_offer_expected_price_response_list' +require 'product-pricing-api-model/models/featured_offer_expected_price_result' +require 'product-pricing-api-model/models/featured_offer_expected_price_result_list' +require 'product-pricing-api-model/models/fulfillment_type' +require 'product-pricing-api-model/models/get_featured_offer_expected_price_batch_request' +require 'product-pricing-api-model/models/get_featured_offer_expected_price_batch_response' +require 'product-pricing-api-model/models/http_body' +require 'product-pricing-api-model/models/http_headers' require 'product-pricing-api-model/models/http_method' -require 'product-pricing-api-model/models/http_request_headers' -require 'product-pricing-api-model/models/http_response_headers' -require 'product-pricing-api-model/models/http_uri' -require 'product-pricing-api-model/models/identifier_type' -require 'product-pricing-api-model/models/item_condition' -require 'product-pricing-api-model/models/item_identifier' -require 'product-pricing-api-model/models/item_offers_request' -require 'product-pricing-api-model/models/item_offers_request_list' -require 'product-pricing-api-model/models/item_offers_request_params' -require 'product-pricing-api-model/models/item_offers_response' -require 'product-pricing-api-model/models/item_offers_response_list' -require 'product-pricing-api-model/models/listing_offers_request' -require 'product-pricing-api-model/models/listing_offers_request_list' -require 'product-pricing-api-model/models/listing_offers_request_params' -require 'product-pricing-api-model/models/listing_offers_response' -require 'product-pricing-api-model/models/listing_offers_response_list' -require 'product-pricing-api-model/models/lowest_price_type' -require 'product-pricing-api-model/models/lowest_prices' +require 'product-pricing-api-model/models/http_status_line' require 'product-pricing-api-model/models/marketplace_id' require 'product-pricing-api-model/models/money_type' -require 'product-pricing-api-model/models/number_of_offer_listings_list' -require 'product-pricing-api-model/models/number_of_offers' -require 'product-pricing-api-model/models/offer_count_type' -require 'product-pricing-api-model/models/offer_customer_type' -require 'product-pricing-api-model/models/offer_detail' -require 'product-pricing-api-model/models/offer_detail_list' -require 'product-pricing-api-model/models/offer_listing_count_type' -require 'product-pricing-api-model/models/offer_type' -require 'product-pricing-api-model/models/offers_list' +require 'product-pricing-api-model/models/offer_identifier' require 'product-pricing-api-model/models/points' require 'product-pricing-api-model/models/price' -require 'product-pricing-api-model/models/price_list' -require 'product-pricing-api-model/models/price_type' -require 'product-pricing-api-model/models/prime_information_type' -require 'product-pricing-api-model/models/product' -require 'product-pricing-api-model/models/quantity_discount_price_type' -require 'product-pricing-api-model/models/quantity_discount_type' -require 'product-pricing-api-model/models/relationship_list' -require 'product-pricing-api-model/models/sales_rank_list' -require 'product-pricing-api-model/models/sales_rank_type' -require 'product-pricing-api-model/models/seller_feedback_type' -require 'product-pricing-api-model/models/seller_sku_identifier' -require 'product-pricing-api-model/models/ships_from_type' -require 'product-pricing-api-model/models/summary' +require 'product-pricing-api-model/models/sku' # APIs require 'product-pricing-api-model/api/product_pricing_api' diff --git a/lib/product-pricing-api-model/.swagger-codegen/VERSION b/lib/product-pricing-api-model/.swagger-codegen/VERSION index b39b0b9e0..161761765 100644 --- a/lib/product-pricing-api-model/.swagger-codegen/VERSION +++ b/lib/product-pricing-api-model/.swagger-codegen/VERSION @@ -1 +1 @@ -3.0.24 \ No newline at end of file +3.0.46 \ No newline at end of file diff --git a/lib/product-pricing-api-model/README.md b/lib/product-pricing-api-model/README.md index 8cf2d3aaf..2f7be997e 100644 --- a/lib/product-pricing-api-model/README.md +++ b/lib/product-pricing-api-model/README.md @@ -2,11 +2,11 @@ AmzSpApi::ProductPricingApiModel - the Ruby gem for the Selling Partner API for Pricing -The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: -- API version: v0 +- API version: 2022-05-01 - Package version: 0.1.0 - Build package: io.swagger.codegen.v3.generators.ruby.RubyClientCodegen For more information, please visit [https://sellercentral.amazon.com/gp/mws/contactus.html](https://sellercentral.amazon.com/gp/mws/contactus.html) @@ -56,88 +56,14 @@ Please follow the [installation](#installation) procedure and then run the follo require 'product-pricing-api-model' api_instance = AmzSpApi::ProductPricingApiModel::ProductPricingApi.new -marketplace_id = 'marketplace_id_example' # String | A marketplace identifier. Specifies the marketplace for which prices are returned. -item_type = 'item_type_example' # String | Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. Possible values: Asin, Sku. -opts = { - asins: ['asins_example'], # Array | A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. - skus: ['skus_example'], # Array | A list of up to twenty seller SKU values used to identify items in the given marketplace. - customer_type: 'customer_type_example' # String | Indicates whether to request pricing information from the point of view of Consumer or Business buyers. Default is Consumer. -} +body = AmzSpApi::ProductPricingApiModel::GetFeaturedOfferExpectedPriceBatchRequest.new # GetFeaturedOfferExpectedPriceBatchRequest | -begin - result = api_instance.get_competitive_pricing(marketplace_id, item_type, opts) - p result -rescue AmzSpApi::ProductPricingApiModel::ApiError => e - puts "Exception when calling ProductPricingApi->get_competitive_pricing: #{e}" -end - -api_instance = AmzSpApi::ProductPricingApiModel::ProductPricingApi.new -marketplace_id = 'marketplace_id_example' # String | A marketplace identifier. Specifies the marketplace for which prices are returned. -item_condition = 'item_condition_example' # String | Filters the offer listings to be considered based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. -asin = 'asin_example' # String | The Amazon Standard Identification Number (ASIN) of the item. -opts = { - customer_type: 'customer_type_example' # String | Indicates whether to request Consumer or Business offers. Default is Consumer. -} - -begin - result = api_instance.get_item_offers(marketplace_id, item_condition, asin, opts) - p result -rescue AmzSpApi::ProductPricingApiModel::ApiError => e - puts "Exception when calling ProductPricingApi->get_item_offers: #{e}" -end - -api_instance = AmzSpApi::ProductPricingApiModel::ProductPricingApi.new -body = AmzSpApi::ProductPricingApiModel::GetItemOffersBatchRequest.new # GetItemOffersBatchRequest | - - -begin - result = api_instance.get_item_offers_batch(body) - p result -rescue AmzSpApi::ProductPricingApiModel::ApiError => e - puts "Exception when calling ProductPricingApi->get_item_offers_batch: #{e}" -end - -api_instance = AmzSpApi::ProductPricingApiModel::ProductPricingApi.new -marketplace_id = 'marketplace_id_example' # String | A marketplace identifier. Specifies the marketplace for which prices are returned. -item_condition = 'item_condition_example' # String | Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. -seller_sku = 'seller_sku_example' # String | Identifies an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. -opts = { - customer_type: 'customer_type_example' # String | Indicates whether to request Consumer or Business offers. Default is Consumer. -} - -begin - result = api_instance.get_listing_offers(marketplace_id, item_condition, seller_sku, opts) - p result -rescue AmzSpApi::ProductPricingApiModel::ApiError => e - puts "Exception when calling ProductPricingApi->get_listing_offers: #{e}" -end - -api_instance = AmzSpApi::ProductPricingApiModel::ProductPricingApi.new -body = AmzSpApi::ProductPricingApiModel::GetListingOffersBatchRequest.new # GetListingOffersBatchRequest | - - -begin - result = api_instance.get_listing_offers_batch(body) - p result -rescue AmzSpApi::ProductPricingApiModel::ApiError => e - puts "Exception when calling ProductPricingApi->get_listing_offers_batch: #{e}" -end - -api_instance = AmzSpApi::ProductPricingApiModel::ProductPricingApi.new -marketplace_id = 'marketplace_id_example' # String | A marketplace identifier. Specifies the marketplace for which prices are returned. -item_type = 'item_type_example' # String | Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. -opts = { - asins: ['asins_example'], # Array | A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. - skus: ['skus_example'], # Array | A list of up to twenty seller SKU values used to identify items in the given marketplace. - item_condition: 'item_condition_example', # String | Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. - offer_type: 'offer_type_example' # String | Indicates whether to request pricing information for the seller's B2C or B2B offers. Default is B2C. -} begin - result = api_instance.get_pricing(marketplace_id, item_type, opts) + result = api_instance.get_featured_offer_expected_price_batch(body) p result rescue AmzSpApi::ProductPricingApiModel::ApiError => e - puts "Exception when calling ProductPricingApi->get_pricing: #{e}" + puts "Exception when calling ProductPricingApi->get_featured_offer_expected_price_batch: #{e}" end ``` @@ -147,87 +73,40 @@ All URIs are relative to *https://sellingpartnerapi-na.amazon.com/* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*AmzSpApi::ProductPricingApiModel::ProductPricingApi* | [**get_competitive_pricing**](docs/ProductPricingApi.md#get_competitive_pricing) | **GET** /products/pricing/v0/competitivePrice | -*AmzSpApi::ProductPricingApiModel::ProductPricingApi* | [**get_item_offers**](docs/ProductPricingApi.md#get_item_offers) | **GET** /products/pricing/v0/items/{Asin}/offers | -*AmzSpApi::ProductPricingApiModel::ProductPricingApi* | [**get_item_offers_batch**](docs/ProductPricingApi.md#get_item_offers_batch) | **POST** /batches/products/pricing/v0/itemOffers | -*AmzSpApi::ProductPricingApiModel::ProductPricingApi* | [**get_listing_offers**](docs/ProductPricingApi.md#get_listing_offers) | **GET** /products/pricing/v0/listings/{SellerSKU}/offers | -*AmzSpApi::ProductPricingApiModel::ProductPricingApi* | [**get_listing_offers_batch**](docs/ProductPricingApi.md#get_listing_offers_batch) | **POST** /batches/products/pricing/v0/listingOffers | -*AmzSpApi::ProductPricingApiModel::ProductPricingApi* | [**get_pricing**](docs/ProductPricingApi.md#get_pricing) | **GET** /products/pricing/v0/price | +*AmzSpApi::ProductPricingApiModel::ProductPricingApi* | [**get_featured_offer_expected_price_batch**](docs/ProductPricingApi.md#get_featured_offer_expected_price_batch) | **POST** /batches/products/pricing/2022-05-01/offer/featuredOfferExpectedPrice | ## Documentation for Models - - [AmzSpApi::ProductPricingApiModel::ASINIdentifier](docs/ASINIdentifier.md) - [AmzSpApi::ProductPricingApiModel::Asin](docs/Asin.md) - - [AmzSpApi::ProductPricingApiModel::AttributeSetList](docs/AttributeSetList.md) - - [AmzSpApi::ProductPricingApiModel::BatchOffersRequestParams](docs/BatchOffersRequestParams.md) - - [AmzSpApi::ProductPricingApiModel::BatchOffersResponse](docs/BatchOffersResponse.md) - [AmzSpApi::ProductPricingApiModel::BatchRequest](docs/BatchRequest.md) - - [AmzSpApi::ProductPricingApiModel::BuyBoxEligibleOffers](docs/BuyBoxEligibleOffers.md) - - [AmzSpApi::ProductPricingApiModel::BuyBoxPriceType](docs/BuyBoxPriceType.md) - - [AmzSpApi::ProductPricingApiModel::BuyBoxPrices](docs/BuyBoxPrices.md) - - [AmzSpApi::ProductPricingApiModel::CompetitivePriceList](docs/CompetitivePriceList.md) - - [AmzSpApi::ProductPricingApiModel::CompetitivePriceType](docs/CompetitivePriceType.md) - - [AmzSpApi::ProductPricingApiModel::CompetitivePricingType](docs/CompetitivePricingType.md) - - [AmzSpApi::ProductPricingApiModel::ConditionType](docs/ConditionType.md) - - [AmzSpApi::ProductPricingApiModel::CustomerType](docs/CustomerType.md) - - [AmzSpApi::ProductPricingApiModel::DetailedShippingTimeType](docs/DetailedShippingTimeType.md) + - [AmzSpApi::ProductPricingApiModel::BatchResponse](docs/BatchResponse.md) + - [AmzSpApi::ProductPricingApiModel::Condition](docs/Condition.md) - [AmzSpApi::ProductPricingApiModel::Error](docs/Error.md) - [AmzSpApi::ProductPricingApiModel::ErrorList](docs/ErrorList.md) - [AmzSpApi::ProductPricingApiModel::Errors](docs/Errors.md) - - [AmzSpApi::ProductPricingApiModel::FulfillmentChannelType](docs/FulfillmentChannelType.md) - - [AmzSpApi::ProductPricingApiModel::GetItemOffersBatchRequest](docs/GetItemOffersBatchRequest.md) - - [AmzSpApi::ProductPricingApiModel::GetItemOffersBatchResponse](docs/GetItemOffersBatchResponse.md) - - [AmzSpApi::ProductPricingApiModel::GetListingOffersBatchRequest](docs/GetListingOffersBatchRequest.md) - - [AmzSpApi::ProductPricingApiModel::GetListingOffersBatchResponse](docs/GetListingOffersBatchResponse.md) - - [AmzSpApi::ProductPricingApiModel::GetOffersHttpStatusLine](docs/GetOffersHttpStatusLine.md) - - [AmzSpApi::ProductPricingApiModel::GetOffersResponse](docs/GetOffersResponse.md) - - [AmzSpApi::ProductPricingApiModel::GetOffersResult](docs/GetOffersResult.md) - - [AmzSpApi::ProductPricingApiModel::GetPricingResponse](docs/GetPricingResponse.md) + - [AmzSpApi::ProductPricingApiModel::FeaturedOffer](docs/FeaturedOffer.md) + - [AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPrice](docs/FeaturedOfferExpectedPrice.md) + - [AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceRequest](docs/FeaturedOfferExpectedPriceRequest.md) + - [AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceRequestList](docs/FeaturedOfferExpectedPriceRequestList.md) + - [AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceRequestParams](docs/FeaturedOfferExpectedPriceRequestParams.md) + - [AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResponse](docs/FeaturedOfferExpectedPriceResponse.md) + - [AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResponseBody](docs/FeaturedOfferExpectedPriceResponseBody.md) + - [AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResponseList](docs/FeaturedOfferExpectedPriceResponseList.md) + - [AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResult](docs/FeaturedOfferExpectedPriceResult.md) + - [AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResultList](docs/FeaturedOfferExpectedPriceResultList.md) + - [AmzSpApi::ProductPricingApiModel::FulfillmentType](docs/FulfillmentType.md) + - [AmzSpApi::ProductPricingApiModel::GetFeaturedOfferExpectedPriceBatchRequest](docs/GetFeaturedOfferExpectedPriceBatchRequest.md) + - [AmzSpApi::ProductPricingApiModel::GetFeaturedOfferExpectedPriceBatchResponse](docs/GetFeaturedOfferExpectedPriceBatchResponse.md) + - [AmzSpApi::ProductPricingApiModel::HttpBody](docs/HttpBody.md) + - [AmzSpApi::ProductPricingApiModel::HttpHeaders](docs/HttpHeaders.md) - [AmzSpApi::ProductPricingApiModel::HttpMethod](docs/HttpMethod.md) - - [AmzSpApi::ProductPricingApiModel::HttpRequestHeaders](docs/HttpRequestHeaders.md) - - [AmzSpApi::ProductPricingApiModel::HttpResponseHeaders](docs/HttpResponseHeaders.md) - - [AmzSpApi::ProductPricingApiModel::HttpUri](docs/HttpUri.md) - - [AmzSpApi::ProductPricingApiModel::IdentifierType](docs/IdentifierType.md) - - [AmzSpApi::ProductPricingApiModel::ItemCondition](docs/ItemCondition.md) - - [AmzSpApi::ProductPricingApiModel::ItemIdentifier](docs/ItemIdentifier.md) - - [AmzSpApi::ProductPricingApiModel::ItemOffersRequest](docs/ItemOffersRequest.md) - - [AmzSpApi::ProductPricingApiModel::ItemOffersRequestList](docs/ItemOffersRequestList.md) - - [AmzSpApi::ProductPricingApiModel::ItemOffersRequestParams](docs/ItemOffersRequestParams.md) - - [AmzSpApi::ProductPricingApiModel::ItemOffersResponse](docs/ItemOffersResponse.md) - - [AmzSpApi::ProductPricingApiModel::ItemOffersResponseList](docs/ItemOffersResponseList.md) - - [AmzSpApi::ProductPricingApiModel::ListingOffersRequest](docs/ListingOffersRequest.md) - - [AmzSpApi::ProductPricingApiModel::ListingOffersRequestList](docs/ListingOffersRequestList.md) - - [AmzSpApi::ProductPricingApiModel::ListingOffersRequestParams](docs/ListingOffersRequestParams.md) - - [AmzSpApi::ProductPricingApiModel::ListingOffersResponse](docs/ListingOffersResponse.md) - - [AmzSpApi::ProductPricingApiModel::ListingOffersResponseList](docs/ListingOffersResponseList.md) - - [AmzSpApi::ProductPricingApiModel::LowestPriceType](docs/LowestPriceType.md) - - [AmzSpApi::ProductPricingApiModel::LowestPrices](docs/LowestPrices.md) + - [AmzSpApi::ProductPricingApiModel::HttpStatusLine](docs/HttpStatusLine.md) - [AmzSpApi::ProductPricingApiModel::MarketplaceId](docs/MarketplaceId.md) - [AmzSpApi::ProductPricingApiModel::MoneyType](docs/MoneyType.md) - - [AmzSpApi::ProductPricingApiModel::NumberOfOfferListingsList](docs/NumberOfOfferListingsList.md) - - [AmzSpApi::ProductPricingApiModel::NumberOfOffers](docs/NumberOfOffers.md) - - [AmzSpApi::ProductPricingApiModel::OfferCountType](docs/OfferCountType.md) - - [AmzSpApi::ProductPricingApiModel::OfferCustomerType](docs/OfferCustomerType.md) - - [AmzSpApi::ProductPricingApiModel::OfferDetail](docs/OfferDetail.md) - - [AmzSpApi::ProductPricingApiModel::OfferDetailList](docs/OfferDetailList.md) - - [AmzSpApi::ProductPricingApiModel::OfferListingCountType](docs/OfferListingCountType.md) - - [AmzSpApi::ProductPricingApiModel::OfferType](docs/OfferType.md) - - [AmzSpApi::ProductPricingApiModel::OffersList](docs/OffersList.md) + - [AmzSpApi::ProductPricingApiModel::OfferIdentifier](docs/OfferIdentifier.md) - [AmzSpApi::ProductPricingApiModel::Points](docs/Points.md) - [AmzSpApi::ProductPricingApiModel::Price](docs/Price.md) - - [AmzSpApi::ProductPricingApiModel::PriceList](docs/PriceList.md) - - [AmzSpApi::ProductPricingApiModel::PriceType](docs/PriceType.md) - - [AmzSpApi::ProductPricingApiModel::PrimeInformationType](docs/PrimeInformationType.md) - - [AmzSpApi::ProductPricingApiModel::Product](docs/Product.md) - - [AmzSpApi::ProductPricingApiModel::QuantityDiscountPriceType](docs/QuantityDiscountPriceType.md) - - [AmzSpApi::ProductPricingApiModel::QuantityDiscountType](docs/QuantityDiscountType.md) - - [AmzSpApi::ProductPricingApiModel::RelationshipList](docs/RelationshipList.md) - - [AmzSpApi::ProductPricingApiModel::SalesRankList](docs/SalesRankList.md) - - [AmzSpApi::ProductPricingApiModel::SalesRankType](docs/SalesRankType.md) - - [AmzSpApi::ProductPricingApiModel::SellerFeedbackType](docs/SellerFeedbackType.md) - - [AmzSpApi::ProductPricingApiModel::SellerSKUIdentifier](docs/SellerSKUIdentifier.md) - - [AmzSpApi::ProductPricingApiModel::ShipsFromType](docs/ShipsFromType.md) - - [AmzSpApi::ProductPricingApiModel::Summary](docs/Summary.md) + - [AmzSpApi::ProductPricingApiModel::Sku](docs/Sku.md) ## Documentation for Authorization diff --git a/lib/product-pricing-api-model/api/product_pricing_api.rb b/lib/product-pricing-api-model/api/product_pricing_api.rb index 55e314f99..b08344655 100644 --- a/lib/product-pricing-api-model/api/product_pricing_api.rb +++ b/lib/product-pricing-api-model/api/product_pricing_api.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::ProductPricingApiModel @@ -16,185 +16,29 @@ class ProductPricingApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Returns competitive pricing information for a seller's offer listings based on seller SKU or ASIN. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). - # @param marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. - # @param item_type Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. Possible values: Asin, Sku. - # @param [Hash] opts the optional parameters - # @option opts [Array] :asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. - # @option opts [Array] :skus A list of up to twenty seller SKU values used to identify items in the given marketplace. - # @option opts [String] :customer_type Indicates whether to request pricing information from the point of view of Consumer or Business buyers. Default is Consumer. - # @return [GetPricingResponse] - def get_competitive_pricing(marketplace_id, item_type, opts = {}) - data, _status_code, _headers = get_competitive_pricing_with_http_info(marketplace_id, item_type, opts) - data - end - - # Returns competitive pricing information for a seller's offer listings based on seller SKU or ASIN. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). - # @param marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. - # @param item_type Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. Possible values: Asin, Sku. - # @param [Hash] opts the optional parameters - # @option opts [Array] :asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. - # @option opts [Array] :skus A list of up to twenty seller SKU values used to identify items in the given marketplace. - # @option opts [String] :customer_type Indicates whether to request pricing information from the point of view of Consumer or Business buyers. Default is Consumer. - # @return [Array<(GetPricingResponse, Integer, Hash)>] GetPricingResponse data, response status code and response headers - def get_competitive_pricing_with_http_info(marketplace_id, item_type, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ProductPricingApi.get_competitive_pricing ...' - end - # verify the required parameter 'marketplace_id' is set - if @api_client.config.client_side_validation && marketplace_id.nil? - fail ArgumentError, "Missing the required parameter 'marketplace_id' when calling ProductPricingApi.get_competitive_pricing" - end - # verify the required parameter 'item_type' is set - if @api_client.config.client_side_validation && item_type.nil? - fail ArgumentError, "Missing the required parameter 'item_type' when calling ProductPricingApi.get_competitive_pricing" - end - # verify enum value - if @api_client.config.client_side_validation && !['Asin', 'Sku'].include?(item_type) - fail ArgumentError, "invalid value for 'item_type', must be one of Asin, Sku" - end - if @api_client.config.client_side_validation && opts[:'customer_type'] && !['Consumer', 'Business'].include?(opts[:'customer_type']) - fail ArgumentError, 'invalid value for "customer_type", must be one of Consumer, Business' - end - # resource path - local_var_path = '/products/pricing/v0/competitivePrice' - - # query parameters - query_params = opts[:query_params] || {} - query_params[:'MarketplaceId'] = marketplace_id - query_params[:'ItemType'] = item_type - query_params[:'Asins'] = @api_client.build_collection_param(opts[:'asins'], :csv) if !opts[:'asins'].nil? - query_params[:'Skus'] = @api_client.build_collection_param(opts[:'skus'], :csv) if !opts[:'skus'].nil? - query_params[:'CustomerType'] = opts[:'customer_type'] if !opts[:'customer_type'].nil? - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - return_type = opts[:return_type] || 'GetPricingResponse' - - auth_names = opts[:auth_names] || [] - data, status_code, headers = @api_client.call_api(:GET, local_var_path, - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type) - - if @api_client.config.debugging - @api_client.config.logger.debug "API called: ProductPricingApi#get_competitive_pricing\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - # Returns the lowest priced offers for a single item based on ASIN. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). - # @param marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. - # @param item_condition Filters the offer listings to be considered based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. - # @param asin The Amazon Standard Identification Number (ASIN) of the item. - # @param [Hash] opts the optional parameters - # @option opts [String] :customer_type Indicates whether to request Consumer or Business offers. Default is Consumer. - # @return [GetOffersResponse] - def get_item_offers(marketplace_id, item_condition, asin, opts = {}) - data, _status_code, _headers = get_item_offers_with_http_info(marketplace_id, item_condition, asin, opts) - data - end - - # Returns the lowest priced offers for a single item based on ASIN. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). - # @param marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. - # @param item_condition Filters the offer listings to be considered based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. - # @param asin The Amazon Standard Identification Number (ASIN) of the item. - # @param [Hash] opts the optional parameters - # @option opts [String] :customer_type Indicates whether to request Consumer or Business offers. Default is Consumer. - # @return [Array<(GetOffersResponse, Integer, Hash)>] GetOffersResponse data, response status code and response headers - def get_item_offers_with_http_info(marketplace_id, item_condition, asin, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ProductPricingApi.get_item_offers ...' - end - # verify the required parameter 'marketplace_id' is set - if @api_client.config.client_side_validation && marketplace_id.nil? - fail ArgumentError, "Missing the required parameter 'marketplace_id' when calling ProductPricingApi.get_item_offers" - end - # verify the required parameter 'item_condition' is set - if @api_client.config.client_side_validation && item_condition.nil? - fail ArgumentError, "Missing the required parameter 'item_condition' when calling ProductPricingApi.get_item_offers" - end - # verify enum value - if @api_client.config.client_side_validation && !['New', 'Used', 'Collectible', 'Refurbished', 'Club'].include?(item_condition) - fail ArgumentError, "invalid value for 'item_condition', must be one of New, Used, Collectible, Refurbished, Club" - end - # verify the required parameter 'asin' is set - if @api_client.config.client_side_validation && asin.nil? - fail ArgumentError, "Missing the required parameter 'asin' when calling ProductPricingApi.get_item_offers" - end - if @api_client.config.client_side_validation && opts[:'customer_type'] && !['Consumer', 'Business'].include?(opts[:'customer_type']) - fail ArgumentError, 'invalid value for "customer_type", must be one of Consumer, Business' - end - # resource path - local_var_path = '/products/pricing/v0/items/{Asin}/offers'.sub('{' + 'Asin' + '}', asin.to_s) - - # query parameters - query_params = opts[:query_params] || {} - query_params[:'MarketplaceId'] = marketplace_id - query_params[:'ItemCondition'] = item_condition - query_params[:'CustomerType'] = opts[:'customer_type'] if !opts[:'customer_type'].nil? - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - return_type = opts[:return_type] || 'GetOffersResponse' - - auth_names = opts[:auth_names] || [] - data, status_code, headers = @api_client.call_api(:GET, local_var_path, - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type) - - if @api_client.config.debugging - @api_client.config.logger.debug "API called: ProductPricingApi#get_item_offers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - # Returns the lowest priced offers for a batch of items based on ASIN. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Returns the set of responses that correspond to the batched list of up to 40 requests defined in the request body. The response for each successful (HTTP status code 200) request in the set includes the computed listing price at or below which a seller can expect to become the featured offer (before applicable promotions). This is called the featured offer expected price (FOEP). Featured offer is not guaranteed, because competing offers may change, and different offers may be featured based on other factors, including fulfillment capabilities to a specific customer. The response to an unsuccessful request includes the available error text. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters - # @return [GetItemOffersBatchResponse] - def get_item_offers_batch(body, opts = {}) - data, _status_code, _headers = get_item_offers_batch_with_http_info(body, opts) + # @return [GetFeaturedOfferExpectedPriceBatchResponse] + def get_featured_offer_expected_price_batch(body, opts = {}) + data, _status_code, _headers = get_featured_offer_expected_price_batch_with_http_info(body, opts) data end - # Returns the lowest priced offers for a batch of items based on ASIN. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Returns the set of responses that correspond to the batched list of up to 40 requests defined in the request body. The response for each successful (HTTP status code 200) request in the set includes the computed listing price at or below which a seller can expect to become the featured offer (before applicable promotions). This is called the featured offer expected price (FOEP). Featured offer is not guaranteed, because competing offers may change, and different offers may be featured based on other factors, including fulfillment capabilities to a specific customer. The response to an unsuccessful request includes the available error text. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters - # @return [Array<(GetItemOffersBatchResponse, Integer, Hash)>] GetItemOffersBatchResponse data, response status code and response headers - def get_item_offers_batch_with_http_info(body, opts = {}) + # @return [Array<(GetFeaturedOfferExpectedPriceBatchResponse, Integer, Hash)>] GetFeaturedOfferExpectedPriceBatchResponse data, response status code and response headers + def get_featured_offer_expected_price_batch_with_http_info(body, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ProductPricingApi.get_item_offers_batch ...' + @api_client.config.logger.debug 'Calling API: ProductPricingApi.get_featured_offer_expected_price_batch ...' end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling ProductPricingApi.get_item_offers_batch" + fail ArgumentError, "Missing the required parameter 'body' when calling ProductPricingApi.get_featured_offer_expected_price_batch" end # resource path - local_var_path = '/batches/products/pricing/v0/itemOffers' + local_var_path = '/batches/products/pricing/2022-05-01/offer/featuredOfferExpectedPrice' # query parameters query_params = opts[:query_params] || {} @@ -212,7 +56,7 @@ def get_item_offers_batch_with_http_info(body, opts = {}) # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(body) - return_type = opts[:return_type] || 'GetItemOffersBatchResponse' + return_type = opts[:return_type] || 'GetFeaturedOfferExpectedPriceBatchResponse' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, @@ -224,225 +68,7 @@ def get_item_offers_batch_with_http_info(body, opts = {}) :return_type => return_type) if @api_client.config.debugging - @api_client.config.logger.debug "API called: ProductPricingApi#get_item_offers_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - # Returns the lowest priced offers for a single SKU listing. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). - # @param marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. - # @param item_condition Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. - # @param seller_sku Identifies an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. - # @param [Hash] opts the optional parameters - # @option opts [String] :customer_type Indicates whether to request Consumer or Business offers. Default is Consumer. - # @return [GetOffersResponse] - def get_listing_offers(marketplace_id, item_condition, seller_sku, opts = {}) - data, _status_code, _headers = get_listing_offers_with_http_info(marketplace_id, item_condition, seller_sku, opts) - data - end - - # Returns the lowest priced offers for a single SKU listing. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). - # @param marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. - # @param item_condition Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. - # @param seller_sku Identifies an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. - # @param [Hash] opts the optional parameters - # @option opts [String] :customer_type Indicates whether to request Consumer or Business offers. Default is Consumer. - # @return [Array<(GetOffersResponse, Integer, Hash)>] GetOffersResponse data, response status code and response headers - def get_listing_offers_with_http_info(marketplace_id, item_condition, seller_sku, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ProductPricingApi.get_listing_offers ...' - end - # verify the required parameter 'marketplace_id' is set - if @api_client.config.client_side_validation && marketplace_id.nil? - fail ArgumentError, "Missing the required parameter 'marketplace_id' when calling ProductPricingApi.get_listing_offers" - end - # verify the required parameter 'item_condition' is set - if @api_client.config.client_side_validation && item_condition.nil? - fail ArgumentError, "Missing the required parameter 'item_condition' when calling ProductPricingApi.get_listing_offers" - end - # verify enum value - if @api_client.config.client_side_validation && !['New', 'Used', 'Collectible', 'Refurbished', 'Club'].include?(item_condition) - fail ArgumentError, "invalid value for 'item_condition', must be one of New, Used, Collectible, Refurbished, Club" - end - # verify the required parameter 'seller_sku' is set - if @api_client.config.client_side_validation && seller_sku.nil? - fail ArgumentError, "Missing the required parameter 'seller_sku' when calling ProductPricingApi.get_listing_offers" - end - if @api_client.config.client_side_validation && opts[:'customer_type'] && !['Consumer', 'Business'].include?(opts[:'customer_type']) - fail ArgumentError, 'invalid value for "customer_type", must be one of Consumer, Business' - end - # resource path - local_var_path = '/products/pricing/v0/listings/{SellerSKU}/offers'.sub('{' + 'SellerSKU' + '}', seller_sku.to_s) - - # query parameters - query_params = opts[:query_params] || {} - query_params[:'MarketplaceId'] = marketplace_id - query_params[:'ItemCondition'] = item_condition - query_params[:'CustomerType'] = opts[:'customer_type'] if !opts[:'customer_type'].nil? - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - return_type = opts[:return_type] || 'GetOffersResponse' - - auth_names = opts[:auth_names] || [] - data, status_code, headers = @api_client.call_api(:GET, local_var_path, - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type) - - if @api_client.config.debugging - @api_client.config.logger.debug "API called: ProductPricingApi#get_listing_offers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - # Returns the lowest priced offers for a batch of listings by SKU. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). - # @param body - # @param [Hash] opts the optional parameters - # @return [GetListingOffersBatchResponse] - def get_listing_offers_batch(body, opts = {}) - data, _status_code, _headers = get_listing_offers_batch_with_http_info(body, opts) - data - end - - # Returns the lowest priced offers for a batch of listings by SKU. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). - # @param body - # @param [Hash] opts the optional parameters - # @return [Array<(GetListingOffersBatchResponse, Integer, Hash)>] GetListingOffersBatchResponse data, response status code and response headers - def get_listing_offers_batch_with_http_info(body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ProductPricingApi.get_listing_offers_batch ...' - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling ProductPricingApi.get_listing_offers_batch" - end - # resource path - local_var_path = '/batches/products/pricing/v0/listingOffers' - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - return_type = opts[:return_type] || 'GetListingOffersBatchResponse' - - auth_names = opts[:auth_names] || [] - data, status_code, headers = @api_client.call_api(:POST, local_var_path, - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type) - - if @api_client.config.debugging - @api_client.config.logger.debug "API called: ProductPricingApi#get_listing_offers_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - # Returns pricing information for a seller's offer listings based on seller SKU or ASIN. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). - # @param marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. - # @param item_type Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. - # @param [Hash] opts the optional parameters - # @option opts [Array] :asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. - # @option opts [Array] :skus A list of up to twenty seller SKU values used to identify items in the given marketplace. - # @option opts [String] :item_condition Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. - # @option opts [String] :offer_type Indicates whether to request pricing information for the seller's B2C or B2B offers. Default is B2C. - # @return [GetPricingResponse] - def get_pricing(marketplace_id, item_type, opts = {}) - data, _status_code, _headers = get_pricing_with_http_info(marketplace_id, item_type, opts) - data - end - - # Returns pricing information for a seller's offer listings based on seller SKU or ASIN. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). - # @param marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. - # @param item_type Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. - # @param [Hash] opts the optional parameters - # @option opts [Array] :asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. - # @option opts [Array] :skus A list of up to twenty seller SKU values used to identify items in the given marketplace. - # @option opts [String] :item_condition Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. - # @option opts [String] :offer_type Indicates whether to request pricing information for the seller's B2C or B2B offers. Default is B2C. - # @return [Array<(GetPricingResponse, Integer, Hash)>] GetPricingResponse data, response status code and response headers - def get_pricing_with_http_info(marketplace_id, item_type, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ProductPricingApi.get_pricing ...' - end - # verify the required parameter 'marketplace_id' is set - if @api_client.config.client_side_validation && marketplace_id.nil? - fail ArgumentError, "Missing the required parameter 'marketplace_id' when calling ProductPricingApi.get_pricing" - end - # verify the required parameter 'item_type' is set - if @api_client.config.client_side_validation && item_type.nil? - fail ArgumentError, "Missing the required parameter 'item_type' when calling ProductPricingApi.get_pricing" - end - # verify enum value - if @api_client.config.client_side_validation && !['Asin', 'Sku'].include?(item_type) - fail ArgumentError, "invalid value for 'item_type', must be one of Asin, Sku" - end - if @api_client.config.client_side_validation && opts[:'item_condition'] && !['New', 'Used', 'Collectible', 'Refurbished', 'Club'].include?(opts[:'item_condition']) - fail ArgumentError, 'invalid value for "item_condition", must be one of New, Used, Collectible, Refurbished, Club' - end - if @api_client.config.client_side_validation && opts[:'offer_type'] && !['B2C', 'B2B'].include?(opts[:'offer_type']) - fail ArgumentError, 'invalid value for "offer_type", must be one of B2C, B2B' - end - # resource path - local_var_path = '/products/pricing/v0/price' - - # query parameters - query_params = opts[:query_params] || {} - query_params[:'MarketplaceId'] = marketplace_id - query_params[:'ItemType'] = item_type - query_params[:'Asins'] = @api_client.build_collection_param(opts[:'asins'], :csv) if !opts[:'asins'].nil? - query_params[:'Skus'] = @api_client.build_collection_param(opts[:'skus'], :csv) if !opts[:'skus'].nil? - query_params[:'ItemCondition'] = opts[:'item_condition'] if !opts[:'item_condition'].nil? - query_params[:'OfferType'] = opts[:'offer_type'] if !opts[:'offer_type'].nil? - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - return_type = opts[:return_type] || 'GetPricingResponse' - - auth_names = opts[:auth_names] || [] - data, status_code, headers = @api_client.call_api(:GET, local_var_path, - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type) - - if @api_client.config.debugging - @api_client.config.logger.debug "API called: ProductPricingApi#get_pricing\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ProductPricingApi#get_featured_offer_expected_price_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end diff --git a/lib/product-pricing-api-model/api_client.rb b/lib/product-pricing-api-model/api_client.rb index 122e47877..d144baf7a 100644 --- a/lib/product-pricing-api-model/api_client.rb +++ b/lib/product-pricing-api-model/api_client.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-pricing-api-model/api_error.rb b/lib/product-pricing-api-model/api_error.rb index f3565cb91..37361144f 100644 --- a/lib/product-pricing-api-model/api_error.rb +++ b/lib/product-pricing-api-model/api_error.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::ProductPricingApiModel diff --git a/lib/product-pricing-api-model/configuration.rb b/lib/product-pricing-api-model/configuration.rb index 2b100e53e..e68d7f0ca 100644 --- a/lib/product-pricing-api-model/configuration.rb +++ b/lib/product-pricing-api-model/configuration.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::ProductPricingApiModel diff --git a/lib/product-pricing-api-model/docs/ASINIdentifier.md b/lib/product-pricing-api-model/docs/ASINIdentifier.md deleted file mode 100644 index f443516e9..000000000 --- a/lib/product-pricing-api-model/docs/ASINIdentifier.md +++ /dev/null @@ -1,8 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::ASINIdentifier - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **String** | A marketplace identifier. | -**asin** | **String** | The Amazon Standard Identification Number (ASIN) of the item. | - diff --git a/lib/product-pricing-api-model/docs/BatchOffersRequestParams.md b/lib/product-pricing-api-model/docs/BatchOffersRequestParams.md deleted file mode 100644 index b821cfc4e..000000000 --- a/lib/product-pricing-api-model/docs/BatchOffersRequestParams.md +++ /dev/null @@ -1,9 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::BatchOffersRequestParams - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | [**MarketplaceId**](MarketplaceId.md) | | -**item_condition** | [**ItemCondition**](ItemCondition.md) | | -**customer_type** | [**CustomerType**](CustomerType.md) | | [optional] - diff --git a/lib/product-pricing-api-model/docs/BatchOffersResponse.md b/lib/product-pricing-api-model/docs/BatchOffersResponse.md deleted file mode 100644 index 5a06c7c12..000000000 --- a/lib/product-pricing-api-model/docs/BatchOffersResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::BatchOffersResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**headers** | [**HttpResponseHeaders**](HttpResponseHeaders.md) | | [optional] -**status** | [**GetOffersHttpStatusLine**](GetOffersHttpStatusLine.md) | | [optional] -**body** | [**GetOffersResponse**](GetOffersResponse.md) | | - diff --git a/lib/product-pricing-api-model/docs/BatchRequest.md b/lib/product-pricing-api-model/docs/BatchRequest.md index a7c991526..99ba3236b 100644 --- a/lib/product-pricing-api-model/docs/BatchRequest.md +++ b/lib/product-pricing-api-model/docs/BatchRequest.md @@ -3,7 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**uri** | **String** | The `getItemOffers` resource path without any query parameters. **Example:** `/products/pricing/v0/items/B000P6Q7MY/offers` | +**uri** | **String** | The URI associated with an individual request within a batch. For FeaturedOfferExpectedPrice, this should be '/products/pricing/2022-05-01/offer/featuredOfferExpectedPrice'. | **method** | [**HttpMethod**](HttpMethod.md) | | -**headers** | [**HttpRequestHeaders**](HttpRequestHeaders.md) | | [optional] +**body** | [**HttpBody**](HttpBody.md) | | [optional] +**headers** | [**HttpHeaders**](HttpHeaders.md) | | [optional] diff --git a/lib/product-pricing-api-model/docs/BatchResponse.md b/lib/product-pricing-api-model/docs/BatchResponse.md new file mode 100644 index 000000000..f5758f957 --- /dev/null +++ b/lib/product-pricing-api-model/docs/BatchResponse.md @@ -0,0 +1,8 @@ +# AmzSpApi::ProductPricingApiModel::BatchResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**headers** | [**HttpHeaders**](HttpHeaders.md) | | +**status** | [**HttpStatusLine**](HttpStatusLine.md) | | + diff --git a/lib/product-pricing-api-model/docs/BuyBoxPriceType.md b/lib/product-pricing-api-model/docs/BuyBoxPriceType.md deleted file mode 100644 index 716172949..000000000 --- a/lib/product-pricing-api-model/docs/BuyBoxPriceType.md +++ /dev/null @@ -1,15 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::BuyBoxPriceType - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**condition** | **String** | Indicates the condition of the item. For example: New, Used, Collectible, Refurbished, or Club. | -**offer_type** | [**OfferCustomerType**](OfferCustomerType.md) | | [optional] -**quantity_tier** | **Integer** | Indicates at what quantity this price becomes active. | [optional] -**quantity_discount_type** | [**QuantityDiscountType**](QuantityDiscountType.md) | | [optional] -**landed_price** | [**MoneyType**](MoneyType.md) | | -**listing_price** | [**MoneyType**](MoneyType.md) | | -**shipping** | [**MoneyType**](MoneyType.md) | | -**points** | [**Points**](Points.md) | | [optional] -**seller_id** | **String** | The seller identifier for the offer. | [optional] - diff --git a/lib/product-pricing-api-model/docs/CompetitivePriceType.md b/lib/product-pricing-api-model/docs/CompetitivePriceType.md deleted file mode 100644 index c7a70522d..000000000 --- a/lib/product-pricing-api-model/docs/CompetitivePriceType.md +++ /dev/null @@ -1,15 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::CompetitivePriceType - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**competitive_price_id** | **String** | The pricing model for each price that is returned. Possible values: * 1 - New Buy Box Price. * 2 - Used Buy Box Price. | -**price** | [**PriceType**](PriceType.md) | | -**condition** | **String** | Indicates the condition of the item whose pricing information is returned. Possible values are: New, Used, Collectible, Refurbished, or Club. | [optional] -**subcondition** | **String** | Indicates the subcondition of the item whose pricing information is returned. Possible values are: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, or Other. | [optional] -**offer_type** | [**OfferCustomerType**](OfferCustomerType.md) | | [optional] -**quantity_tier** | **Integer** | Indicates at what quantity this price becomes active. | [optional] -**quantity_discount_type** | [**QuantityDiscountType**](QuantityDiscountType.md) | | [optional] -**seller_id** | **String** | The seller identifier for the offer. | [optional] -**belongs_to_requester** | **BOOLEAN** | Indicates whether or not the pricing information is for an offer listing that belongs to the requester. The requester is the seller associated with the SellerId that was submitted with the request. Possible values are: true and false. | [optional] - diff --git a/lib/product-pricing-api-model/docs/CompetitivePricingType.md b/lib/product-pricing-api-model/docs/CompetitivePricingType.md deleted file mode 100644 index ce3f5574b..000000000 --- a/lib/product-pricing-api-model/docs/CompetitivePricingType.md +++ /dev/null @@ -1,9 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::CompetitivePricingType - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**competitive_prices** | [**CompetitivePriceList**](CompetitivePriceList.md) | | -**number_of_offer_listings** | [**NumberOfOfferListingsList**](NumberOfOfferListingsList.md) | | -**trade_in_value** | [**MoneyType**](MoneyType.md) | | [optional] - diff --git a/lib/product-pricing-api-model/docs/BuyBoxPrices.md b/lib/product-pricing-api-model/docs/Condition.md similarity index 69% rename from lib/product-pricing-api-model/docs/BuyBoxPrices.md rename to lib/product-pricing-api-model/docs/Condition.md index 9d2ec8d3c..2f9c62560 100644 --- a/lib/product-pricing-api-model/docs/BuyBoxPrices.md +++ b/lib/product-pricing-api-model/docs/Condition.md @@ -1,4 +1,4 @@ -# AmzSpApi::ProductPricingApiModel::BuyBoxPrices +# AmzSpApi::ProductPricingApiModel::Condition ## Properties Name | Type | Description | Notes diff --git a/lib/product-pricing-api-model/docs/DetailedShippingTimeType.md b/lib/product-pricing-api-model/docs/DetailedShippingTimeType.md deleted file mode 100644 index 6ba3a718e..000000000 --- a/lib/product-pricing-api-model/docs/DetailedShippingTimeType.md +++ /dev/null @@ -1,10 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::DetailedShippingTimeType - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**minimum_hours** | **Integer** | The minimum time, in hours, that the item will likely be shipped after the order has been placed. | [optional] -**maximum_hours** | **Integer** | The maximum time, in hours, that the item will likely be shipped after the order has been placed. | [optional] -**available_date** | **String** | The date when the item will be available for shipping. Only displayed for items that are not currently available for shipping. | [optional] -**availability_type** | **String** | Indicates whether the item is available for shipping now, or on a known or an unknown date in the future. If known, the availableDate property indicates the date that the item will be available for shipping. Possible values: NOW, FUTURE_WITHOUT_DATE, FUTURE_WITH_DATE. | [optional] - diff --git a/lib/product-pricing-api-model/docs/Error.md b/lib/product-pricing-api-model/docs/Error.md index f2c7777d2..62c7de01e 100644 --- a/lib/product-pricing-api-model/docs/Error.md +++ b/lib/product-pricing-api-model/docs/Error.md @@ -4,6 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **code** | **String** | An error code that identifies the type of error that occurred. | -**message** | **String** | A message that describes the error condition in a human-readable form. | +**message** | **String** | A message that describes the error condition. | **details** | **String** | Additional information that can help the caller understand or fix the issue. | [optional] diff --git a/lib/product-pricing-api-model/docs/FeaturedOffer.md b/lib/product-pricing-api-model/docs/FeaturedOffer.md new file mode 100644 index 000000000..c71a100fe --- /dev/null +++ b/lib/product-pricing-api-model/docs/FeaturedOffer.md @@ -0,0 +1,9 @@ +# AmzSpApi::ProductPricingApiModel::FeaturedOffer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**offer_identifier** | [**OfferIdentifier**](OfferIdentifier.md) | | +**condition** | [**Condition**](Condition.md) | | [optional] +**price** | [**Price**](Price.md) | | [optional] + diff --git a/lib/product-pricing-api-model/docs/PriceType.md b/lib/product-pricing-api-model/docs/FeaturedOfferExpectedPrice.md similarity index 55% rename from lib/product-pricing-api-model/docs/PriceType.md rename to lib/product-pricing-api-model/docs/FeaturedOfferExpectedPrice.md index 32092f77a..02aafc2a0 100644 --- a/lib/product-pricing-api-model/docs/PriceType.md +++ b/lib/product-pricing-api-model/docs/FeaturedOfferExpectedPrice.md @@ -1,10 +1,8 @@ -# AmzSpApi::ProductPricingApiModel::PriceType +# AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPrice ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**landed_price** | [**MoneyType**](MoneyType.md) | | [optional] **listing_price** | [**MoneyType**](MoneyType.md) | | -**shipping** | [**MoneyType**](MoneyType.md) | | [optional] **points** | [**Points**](Points.md) | | [optional] diff --git a/lib/product-pricing-api-model/docs/FeaturedOfferExpectedPriceRequest.md b/lib/product-pricing-api-model/docs/FeaturedOfferExpectedPriceRequest.md new file mode 100644 index 000000000..8723ebc39 --- /dev/null +++ b/lib/product-pricing-api-model/docs/FeaturedOfferExpectedPriceRequest.md @@ -0,0 +1,12 @@ +# AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**marketplace_id** | [**MarketplaceId**](MarketplaceId.md) | | +**sku** | [**Sku**](Sku.md) | | +**uri** | **String** | The URI associated with an individual request within a batch. For FeaturedOfferExpectedPrice, this should be '/products/pricing/2022-05-01/offer/featuredOfferExpectedPrice'. | +**method** | [**HttpMethod**](HttpMethod.md) | | +**body** | [**HttpBody**](HttpBody.md) | | [optional] +**headers** | [**HttpHeaders**](HttpHeaders.md) | | [optional] + diff --git a/lib/product-pricing-api-model/docs/FeaturedOfferExpectedPriceRequestList.md b/lib/product-pricing-api-model/docs/FeaturedOfferExpectedPriceRequestList.md new file mode 100644 index 000000000..0bcaedffc --- /dev/null +++ b/lib/product-pricing-api-model/docs/FeaturedOfferExpectedPriceRequestList.md @@ -0,0 +1,6 @@ +# AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceRequestList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + diff --git a/lib/product-pricing-api-model/docs/FeaturedOfferExpectedPriceRequestParams.md b/lib/product-pricing-api-model/docs/FeaturedOfferExpectedPriceRequestParams.md new file mode 100644 index 000000000..12a8d8677 --- /dev/null +++ b/lib/product-pricing-api-model/docs/FeaturedOfferExpectedPriceRequestParams.md @@ -0,0 +1,8 @@ +# AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceRequestParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**marketplace_id** | [**MarketplaceId**](MarketplaceId.md) | | +**sku** | [**Sku**](Sku.md) | | + diff --git a/lib/product-pricing-api-model/docs/FeaturedOfferExpectedPriceResponse.md b/lib/product-pricing-api-model/docs/FeaturedOfferExpectedPriceResponse.md new file mode 100644 index 000000000..76d8ec6a7 --- /dev/null +++ b/lib/product-pricing-api-model/docs/FeaturedOfferExpectedPriceResponse.md @@ -0,0 +1,10 @@ +# AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**headers** | [**HttpHeaders**](HttpHeaders.md) | | +**status** | [**HttpStatusLine**](HttpStatusLine.md) | | +**request** | [**FeaturedOfferExpectedPriceRequestParams**](FeaturedOfferExpectedPriceRequestParams.md) | | +**body** | [**FeaturedOfferExpectedPriceResponseBody**](FeaturedOfferExpectedPriceResponseBody.md) | | [optional] + diff --git a/lib/product-pricing-api-model/docs/FeaturedOfferExpectedPriceResponseBody.md b/lib/product-pricing-api-model/docs/FeaturedOfferExpectedPriceResponseBody.md new file mode 100644 index 000000000..ab800536f --- /dev/null +++ b/lib/product-pricing-api-model/docs/FeaturedOfferExpectedPriceResponseBody.md @@ -0,0 +1,9 @@ +# AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResponseBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**offer_identifier** | [**OfferIdentifier**](OfferIdentifier.md) | | +**featured_offer_expected_price_results** | [**FeaturedOfferExpectedPriceResultList**](FeaturedOfferExpectedPriceResultList.md) | | [optional] +**errors** | [**ErrorList**](ErrorList.md) | | [optional] + diff --git a/lib/product-pricing-api-model/docs/FeaturedOfferExpectedPriceResponseList.md b/lib/product-pricing-api-model/docs/FeaturedOfferExpectedPriceResponseList.md new file mode 100644 index 000000000..c9adb0165 --- /dev/null +++ b/lib/product-pricing-api-model/docs/FeaturedOfferExpectedPriceResponseList.md @@ -0,0 +1,6 @@ +# AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResponseList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + diff --git a/lib/product-pricing-api-model/docs/FeaturedOfferExpectedPriceResult.md b/lib/product-pricing-api-model/docs/FeaturedOfferExpectedPriceResult.md new file mode 100644 index 000000000..2b3b53f60 --- /dev/null +++ b/lib/product-pricing-api-model/docs/FeaturedOfferExpectedPriceResult.md @@ -0,0 +1,10 @@ +# AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResult + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**featured_offer_expected_price** | [**FeaturedOfferExpectedPrice**](FeaturedOfferExpectedPrice.md) | | [optional] +**result_status** | **String** | The status of the featured offer expected price computation. Possible values include VALID_FOEP, NO_COMPETING_OFFER, OFFER_NOT_ELIGIBLE, OFFER_NOT_FOUND. | +**competing_featured_offer** | [**FeaturedOffer**](FeaturedOffer.md) | | [optional] +**current_featured_offer** | [**FeaturedOffer**](FeaturedOffer.md) | | [optional] + diff --git a/lib/product-pricing-api-model/docs/FeaturedOfferExpectedPriceResultList.md b/lib/product-pricing-api-model/docs/FeaturedOfferExpectedPriceResultList.md new file mode 100644 index 000000000..37a678ca8 --- /dev/null +++ b/lib/product-pricing-api-model/docs/FeaturedOfferExpectedPriceResultList.md @@ -0,0 +1,6 @@ +# AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResultList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + diff --git a/lib/product-pricing-api-model/docs/FulfillmentChannelType.md b/lib/product-pricing-api-model/docs/FulfillmentChannelType.md deleted file mode 100644 index 7aa3f9e8a..000000000 --- a/lib/product-pricing-api-model/docs/FulfillmentChannelType.md +++ /dev/null @@ -1,6 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::FulfillmentChannelType - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - diff --git a/lib/product-pricing-api-model/docs/FulfillmentType.md b/lib/product-pricing-api-model/docs/FulfillmentType.md new file mode 100644 index 000000000..3324df63c --- /dev/null +++ b/lib/product-pricing-api-model/docs/FulfillmentType.md @@ -0,0 +1,6 @@ +# AmzSpApi::ProductPricingApiModel::FulfillmentType + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + diff --git a/lib/product-pricing-api-model/docs/GetFeaturedOfferExpectedPriceBatchRequest.md b/lib/product-pricing-api-model/docs/GetFeaturedOfferExpectedPriceBatchRequest.md new file mode 100644 index 000000000..6426982cd --- /dev/null +++ b/lib/product-pricing-api-model/docs/GetFeaturedOfferExpectedPriceBatchRequest.md @@ -0,0 +1,7 @@ +# AmzSpApi::ProductPricingApiModel::GetFeaturedOfferExpectedPriceBatchRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requests** | [**FeaturedOfferExpectedPriceRequestList**](FeaturedOfferExpectedPriceRequestList.md) | | [optional] + diff --git a/lib/product-pricing-api-model/docs/GetFeaturedOfferExpectedPriceBatchResponse.md b/lib/product-pricing-api-model/docs/GetFeaturedOfferExpectedPriceBatchResponse.md new file mode 100644 index 000000000..83f703c18 --- /dev/null +++ b/lib/product-pricing-api-model/docs/GetFeaturedOfferExpectedPriceBatchResponse.md @@ -0,0 +1,7 @@ +# AmzSpApi::ProductPricingApiModel::GetFeaturedOfferExpectedPriceBatchResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**responses** | [**FeaturedOfferExpectedPriceResponseList**](FeaturedOfferExpectedPriceResponseList.md) | | [optional] + diff --git a/lib/product-pricing-api-model/docs/GetItemOffersBatchResponse.md b/lib/product-pricing-api-model/docs/GetItemOffersBatchResponse.md deleted file mode 100644 index cb0b9b98e..000000000 --- a/lib/product-pricing-api-model/docs/GetItemOffersBatchResponse.md +++ /dev/null @@ -1,7 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::GetItemOffersBatchResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**responses** | [**ItemOffersResponseList**](ItemOffersResponseList.md) | | [optional] - diff --git a/lib/product-pricing-api-model/docs/GetListingOffersBatchRequest.md b/lib/product-pricing-api-model/docs/GetListingOffersBatchRequest.md deleted file mode 100644 index cf14b24ae..000000000 --- a/lib/product-pricing-api-model/docs/GetListingOffersBatchRequest.md +++ /dev/null @@ -1,7 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::GetListingOffersBatchRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**requests** | [**ListingOffersRequestList**](ListingOffersRequestList.md) | | [optional] - diff --git a/lib/product-pricing-api-model/docs/GetListingOffersBatchResponse.md b/lib/product-pricing-api-model/docs/GetListingOffersBatchResponse.md deleted file mode 100644 index ad99e9543..000000000 --- a/lib/product-pricing-api-model/docs/GetListingOffersBatchResponse.md +++ /dev/null @@ -1,7 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::GetListingOffersBatchResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**responses** | [**ListingOffersResponseList**](ListingOffersResponseList.md) | | [optional] - diff --git a/lib/product-pricing-api-model/docs/GetOffersResult.md b/lib/product-pricing-api-model/docs/GetOffersResult.md deleted file mode 100644 index 0bdf75222..000000000 --- a/lib/product-pricing-api-model/docs/GetOffersResult.md +++ /dev/null @@ -1,14 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::GetOffersResult - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **String** | A marketplace identifier. | -**asin** | **String** | The Amazon Standard Identification Number (ASIN) of the item. | [optional] -**sku** | **String** | The stock keeping unit (SKU) of the item. | [optional] -**item_condition** | [**ConditionType**](ConditionType.md) | | -**status** | **String** | The status of the operation. | -**identifier** | [**ItemIdentifier**](ItemIdentifier.md) | | -**summary** | [**Summary**](Summary.md) | | -**offers** | [**OfferDetailList**](OfferDetailList.md) | | - diff --git a/lib/product-pricing-api-model/docs/CustomerType.md b/lib/product-pricing-api-model/docs/HttpBody.md similarity index 69% rename from lib/product-pricing-api-model/docs/CustomerType.md rename to lib/product-pricing-api-model/docs/HttpBody.md index b8f6f12c0..60608af31 100644 --- a/lib/product-pricing-api-model/docs/CustomerType.md +++ b/lib/product-pricing-api-model/docs/HttpBody.md @@ -1,4 +1,4 @@ -# AmzSpApi::ProductPricingApiModel::CustomerType +# AmzSpApi::ProductPricingApiModel::HttpBody ## Properties Name | Type | Description | Notes diff --git a/lib/product-pricing-api-model/docs/HttpHeaders.md b/lib/product-pricing-api-model/docs/HttpHeaders.md new file mode 100644 index 000000000..19f3ba63c --- /dev/null +++ b/lib/product-pricing-api-model/docs/HttpHeaders.md @@ -0,0 +1,6 @@ +# AmzSpApi::ProductPricingApiModel::HttpHeaders + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + diff --git a/lib/product-pricing-api-model/docs/HttpRequestHeaders.md b/lib/product-pricing-api-model/docs/HttpRequestHeaders.md deleted file mode 100644 index 8234a5af6..000000000 --- a/lib/product-pricing-api-model/docs/HttpRequestHeaders.md +++ /dev/null @@ -1,6 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::HttpRequestHeaders - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - diff --git a/lib/product-pricing-api-model/docs/HttpResponseHeaders.md b/lib/product-pricing-api-model/docs/HttpResponseHeaders.md deleted file mode 100644 index a059aa0ab..000000000 --- a/lib/product-pricing-api-model/docs/HttpResponseHeaders.md +++ /dev/null @@ -1,6 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::HttpResponseHeaders - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - diff --git a/lib/product-pricing-api-model/docs/GetOffersHttpStatusLine.md b/lib/product-pricing-api-model/docs/HttpStatusLine.md similarity index 62% rename from lib/product-pricing-api-model/docs/GetOffersHttpStatusLine.md rename to lib/product-pricing-api-model/docs/HttpStatusLine.md index cc42c2935..880e01ded 100644 --- a/lib/product-pricing-api-model/docs/GetOffersHttpStatusLine.md +++ b/lib/product-pricing-api-model/docs/HttpStatusLine.md @@ -1,8 +1,8 @@ -# AmzSpApi::ProductPricingApiModel::GetOffersHttpStatusLine +# AmzSpApi::ProductPricingApiModel::HttpStatusLine ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status_code** | **Integer** | The HTTP response Status Code. | [optional] +**status_code** | **Integer** | The HTTP response Status-Code. | [optional] **reason_phrase** | **String** | The HTTP response Reason-Phase. | [optional] diff --git a/lib/product-pricing-api-model/docs/IdentifierType.md b/lib/product-pricing-api-model/docs/IdentifierType.md deleted file mode 100644 index 1f8a4a3c7..000000000 --- a/lib/product-pricing-api-model/docs/IdentifierType.md +++ /dev/null @@ -1,8 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::IdentifierType - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_asin** | [**ASINIdentifier**](ASINIdentifier.md) | | -**sku_identifier** | [**SellerSKUIdentifier**](SellerSKUIdentifier.md) | | [optional] - diff --git a/lib/product-pricing-api-model/docs/ItemCondition.md b/lib/product-pricing-api-model/docs/ItemCondition.md deleted file mode 100644 index ba4317f5c..000000000 --- a/lib/product-pricing-api-model/docs/ItemCondition.md +++ /dev/null @@ -1,6 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::ItemCondition - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - diff --git a/lib/product-pricing-api-model/docs/ItemIdentifier.md b/lib/product-pricing-api-model/docs/ItemIdentifier.md deleted file mode 100644 index 4714666d0..000000000 --- a/lib/product-pricing-api-model/docs/ItemIdentifier.md +++ /dev/null @@ -1,10 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::ItemIdentifier - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **String** | A marketplace identifier. Specifies the marketplace from which prices are returned. | -**asin** | **String** | The Amazon Standard Identification Number (ASIN) of the item. | [optional] -**seller_sku** | **String** | The seller stock keeping unit (SKU) of the item. | [optional] -**item_condition** | [**ConditionType**](ConditionType.md) | | - diff --git a/lib/product-pricing-api-model/docs/ItemOffersRequest.md b/lib/product-pricing-api-model/docs/ItemOffersRequest.md deleted file mode 100644 index 3d85019f7..000000000 --- a/lib/product-pricing-api-model/docs/ItemOffersRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::ItemOffersRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | [**MarketplaceId**](MarketplaceId.md) | | -**item_condition** | [**ItemCondition**](ItemCondition.md) | | -**customer_type** | [**CustomerType**](CustomerType.md) | | [optional] -**uri** | **String** | The `getItemOffers` resource path without any query parameters. **Example:** `/products/pricing/v0/items/B000P6Q7MY/offers` | -**method** | [**HttpMethod**](HttpMethod.md) | | -**headers** | [**HttpRequestHeaders**](HttpRequestHeaders.md) | | [optional] - diff --git a/lib/product-pricing-api-model/docs/ItemOffersRequestList.md b/lib/product-pricing-api-model/docs/ItemOffersRequestList.md deleted file mode 100644 index fe59c93bb..000000000 --- a/lib/product-pricing-api-model/docs/ItemOffersRequestList.md +++ /dev/null @@ -1,6 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::ItemOffersRequestList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - diff --git a/lib/product-pricing-api-model/docs/ItemOffersRequestParams.md b/lib/product-pricing-api-model/docs/ItemOffersRequestParams.md deleted file mode 100644 index 0f31d0b1f..000000000 --- a/lib/product-pricing-api-model/docs/ItemOffersRequestParams.md +++ /dev/null @@ -1,10 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::ItemOffersRequestParams - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | [**MarketplaceId**](MarketplaceId.md) | | -**item_condition** | [**ItemCondition**](ItemCondition.md) | | -**customer_type** | [**CustomerType**](CustomerType.md) | | [optional] -**asin** | **String** | The Amazon Standard Identification Number (ASIN) of the item. This is the same Asin passed as a request parameter. | [optional] - diff --git a/lib/product-pricing-api-model/docs/ItemOffersResponse.md b/lib/product-pricing-api-model/docs/ItemOffersResponse.md deleted file mode 100644 index 8d57cb49d..000000000 --- a/lib/product-pricing-api-model/docs/ItemOffersResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::ItemOffersResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**headers** | [**HttpResponseHeaders**](HttpResponseHeaders.md) | | [optional] -**status** | [**GetOffersHttpStatusLine**](GetOffersHttpStatusLine.md) | | [optional] -**body** | [**GetOffersResponse**](GetOffersResponse.md) | | -**request** | [**ItemOffersRequestParams**](ItemOffersRequestParams.md) | | - diff --git a/lib/product-pricing-api-model/docs/ItemOffersResponseList.md b/lib/product-pricing-api-model/docs/ItemOffersResponseList.md deleted file mode 100644 index 62b879b38..000000000 --- a/lib/product-pricing-api-model/docs/ItemOffersResponseList.md +++ /dev/null @@ -1,6 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::ItemOffersResponseList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - diff --git a/lib/product-pricing-api-model/docs/ListingOffersRequest.md b/lib/product-pricing-api-model/docs/ListingOffersRequest.md deleted file mode 100644 index 3e9c649a3..000000000 --- a/lib/product-pricing-api-model/docs/ListingOffersRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::ListingOffersRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | [**MarketplaceId**](MarketplaceId.md) | | -**item_condition** | [**ItemCondition**](ItemCondition.md) | | -**customer_type** | [**CustomerType**](CustomerType.md) | | [optional] -**uri** | **String** | The `getItemOffers` resource path without any query parameters. **Example:** `/products/pricing/v0/items/B000P6Q7MY/offers` | -**method** | [**HttpMethod**](HttpMethod.md) | | -**headers** | [**HttpRequestHeaders**](HttpRequestHeaders.md) | | [optional] - diff --git a/lib/product-pricing-api-model/docs/ListingOffersRequestList.md b/lib/product-pricing-api-model/docs/ListingOffersRequestList.md deleted file mode 100644 index 2361402e7..000000000 --- a/lib/product-pricing-api-model/docs/ListingOffersRequestList.md +++ /dev/null @@ -1,6 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::ListingOffersRequestList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - diff --git a/lib/product-pricing-api-model/docs/ListingOffersRequestParams.md b/lib/product-pricing-api-model/docs/ListingOffersRequestParams.md deleted file mode 100644 index 5518ee3cb..000000000 --- a/lib/product-pricing-api-model/docs/ListingOffersRequestParams.md +++ /dev/null @@ -1,10 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::ListingOffersRequestParams - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | [**MarketplaceId**](MarketplaceId.md) | | -**item_condition** | [**ItemCondition**](ItemCondition.md) | | -**customer_type** | [**CustomerType**](CustomerType.md) | | [optional] -**seller_sku** | **String** | The seller stock keeping unit (SKU) of the item. This is the same SKU passed as a path parameter. | - diff --git a/lib/product-pricing-api-model/docs/ListingOffersResponse.md b/lib/product-pricing-api-model/docs/ListingOffersResponse.md deleted file mode 100644 index f5824f5a0..000000000 --- a/lib/product-pricing-api-model/docs/ListingOffersResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::ListingOffersResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**headers** | [**HttpResponseHeaders**](HttpResponseHeaders.md) | | [optional] -**status** | [**GetOffersHttpStatusLine**](GetOffersHttpStatusLine.md) | | [optional] -**body** | [**GetOffersResponse**](GetOffersResponse.md) | | -**request** | [**ListingOffersRequestParams**](ListingOffersRequestParams.md) | | [optional] - diff --git a/lib/product-pricing-api-model/docs/ListingOffersResponseList.md b/lib/product-pricing-api-model/docs/ListingOffersResponseList.md deleted file mode 100644 index 931daf377..000000000 --- a/lib/product-pricing-api-model/docs/ListingOffersResponseList.md +++ /dev/null @@ -1,6 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::ListingOffersResponseList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - diff --git a/lib/product-pricing-api-model/docs/LowestPriceType.md b/lib/product-pricing-api-model/docs/LowestPriceType.md deleted file mode 100644 index 6372946fe..000000000 --- a/lib/product-pricing-api-model/docs/LowestPriceType.md +++ /dev/null @@ -1,15 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::LowestPriceType - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**condition** | **String** | Indicates the condition of the item. For example: New, Used, Collectible, Refurbished, or Club. | -**fulfillment_channel** | **String** | Indicates whether the item is fulfilled by Amazon or by the seller. | -**offer_type** | [**OfferCustomerType**](OfferCustomerType.md) | | [optional] -**quantity_tier** | **Integer** | Indicates at what quantity this price becomes active. | [optional] -**quantity_discount_type** | [**QuantityDiscountType**](QuantityDiscountType.md) | | [optional] -**landed_price** | [**MoneyType**](MoneyType.md) | | -**listing_price** | [**MoneyType**](MoneyType.md) | | -**shipping** | [**MoneyType**](MoneyType.md) | | -**points** | [**Points**](Points.md) | | [optional] - diff --git a/lib/product-pricing-api-model/docs/NumberOfOfferListingsList.md b/lib/product-pricing-api-model/docs/NumberOfOfferListingsList.md deleted file mode 100644 index ca2f7f614..000000000 --- a/lib/product-pricing-api-model/docs/NumberOfOfferListingsList.md +++ /dev/null @@ -1,6 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::NumberOfOfferListingsList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - diff --git a/lib/product-pricing-api-model/docs/NumberOfOffers.md b/lib/product-pricing-api-model/docs/NumberOfOffers.md deleted file mode 100644 index 2868c414b..000000000 --- a/lib/product-pricing-api-model/docs/NumberOfOffers.md +++ /dev/null @@ -1,6 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::NumberOfOffers - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - diff --git a/lib/product-pricing-api-model/docs/OfferCountType.md b/lib/product-pricing-api-model/docs/OfferCountType.md deleted file mode 100644 index fffccdea2..000000000 --- a/lib/product-pricing-api-model/docs/OfferCountType.md +++ /dev/null @@ -1,9 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::OfferCountType - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**condition** | **String** | Indicates the condition of the item. For example: New, Used, Collectible, Refurbished, or Club. | [optional] -**fulfillment_channel** | [**FulfillmentChannelType**](FulfillmentChannelType.md) | | [optional] -**offer_count** | **Integer** | The number of offers in a fulfillment channel that meet a specific condition. | [optional] - diff --git a/lib/product-pricing-api-model/docs/OfferCustomerType.md b/lib/product-pricing-api-model/docs/OfferCustomerType.md deleted file mode 100644 index 7e1eecf36..000000000 --- a/lib/product-pricing-api-model/docs/OfferCustomerType.md +++ /dev/null @@ -1,6 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::OfferCustomerType - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - diff --git a/lib/product-pricing-api-model/docs/OfferDetail.md b/lib/product-pricing-api-model/docs/OfferDetail.md deleted file mode 100644 index b5188c5ba..000000000 --- a/lib/product-pricing-api-model/docs/OfferDetail.md +++ /dev/null @@ -1,22 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::OfferDetail - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**my_offer** | **BOOLEAN** | When true, this is the seller's offer. | [optional] -**offer_type** | [**OfferCustomerType**](OfferCustomerType.md) | | [optional] -**sub_condition** | **String** | The subcondition of the item. Subcondition values: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, or Other. | -**seller_id** | **String** | The seller identifier for the offer. | [optional] -**condition_notes** | **String** | Information about the condition of the item. | [optional] -**seller_feedback_rating** | [**SellerFeedbackType**](SellerFeedbackType.md) | | [optional] -**shipping_time** | [**DetailedShippingTimeType**](DetailedShippingTimeType.md) | | -**listing_price** | [**MoneyType**](MoneyType.md) | | -**quantity_discount_prices** | [**Array<QuantityDiscountPriceType>**](QuantityDiscountPriceType.md) | | [optional] -**points** | [**Points**](Points.md) | | [optional] -**shipping** | [**MoneyType**](MoneyType.md) | | -**ships_from** | [**ShipsFromType**](ShipsFromType.md) | | [optional] -**is_fulfilled_by_amazon** | **BOOLEAN** | When true, the offer is fulfilled by Amazon. | -**prime_information** | [**PrimeInformationType**](PrimeInformationType.md) | | [optional] -**is_buy_box_winner** | **BOOLEAN** | When true, the offer is currently in the Buy Box. There can be up to two Buy Box winners at any time per ASIN, one that is eligible for Prime and one that is not eligible for Prime. | [optional] -**is_featured_merchant** | **BOOLEAN** | When true, the seller of the item is eligible to win the Buy Box. | [optional] - diff --git a/lib/product-pricing-api-model/docs/OfferDetailList.md b/lib/product-pricing-api-model/docs/OfferDetailList.md deleted file mode 100644 index 25eb2dc99..000000000 --- a/lib/product-pricing-api-model/docs/OfferDetailList.md +++ /dev/null @@ -1,6 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::OfferDetailList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - diff --git a/lib/product-pricing-api-model/docs/OfferIdentifier.md b/lib/product-pricing-api-model/docs/OfferIdentifier.md new file mode 100644 index 000000000..c156aff7b --- /dev/null +++ b/lib/product-pricing-api-model/docs/OfferIdentifier.md @@ -0,0 +1,11 @@ +# AmzSpApi::ProductPricingApiModel::OfferIdentifier + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**marketplace_id** | [**MarketplaceId**](MarketplaceId.md) | | +**seller_id** | **String** | The seller identifier for the offer. | [optional] +**sku** | **String** | The seller stock keeping unit (SKU) of the item. This will only be present for the target offer, which belongs to the requesting seller. | [optional] +**asin** | [**Asin**](Asin.md) | | +**fulfillment_type** | [**FulfillmentType**](FulfillmentType.md) | | [optional] + diff --git a/lib/product-pricing-api-model/docs/OfferListingCountType.md b/lib/product-pricing-api-model/docs/OfferListingCountType.md deleted file mode 100644 index 0c82187c5..000000000 --- a/lib/product-pricing-api-model/docs/OfferListingCountType.md +++ /dev/null @@ -1,8 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::OfferListingCountType - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**count** | **Integer** | The number of offer listings. | -**condition** | **String** | The condition of the item. | - diff --git a/lib/product-pricing-api-model/docs/OfferType.md b/lib/product-pricing-api-model/docs/OfferType.md deleted file mode 100644 index d77e71e62..000000000 --- a/lib/product-pricing-api-model/docs/OfferType.md +++ /dev/null @@ -1,15 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::OfferType - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**offer_type** | [**OfferCustomerType**](OfferCustomerType.md) | | [optional] -**buying_price** | [**PriceType**](PriceType.md) | | -**regular_price** | [**MoneyType**](MoneyType.md) | | -**business_price** | [**MoneyType**](MoneyType.md) | | [optional] -**quantity_discount_prices** | [**Array<QuantityDiscountPriceType>**](QuantityDiscountPriceType.md) | | [optional] -**fulfillment_channel** | **String** | The fulfillment channel for the offer listing. Possible values: * Amazon - Fulfilled by Amazon. * Merchant - Fulfilled by the seller. | -**item_condition** | **String** | The item condition for the offer listing. Possible values: New, Used, Collectible, Refurbished, or Club. | -**item_sub_condition** | **String** | The item subcondition for the offer listing. Possible values: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, or Other. | -**seller_sku** | **String** | The seller stock keeping unit (SKU) of the item. | - diff --git a/lib/product-pricing-api-model/docs/Price.md b/lib/product-pricing-api-model/docs/Price.md index 89f7722f8..b3aa343d8 100644 --- a/lib/product-pricing-api-model/docs/Price.md +++ b/lib/product-pricing-api-model/docs/Price.md @@ -3,8 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **String** | The status of the operation. | -**seller_sku** | **String** | The seller stock keeping unit (SKU) of the item. | [optional] -**asin** | **String** | The Amazon Standard Identification Number (ASIN) of the item. | [optional] -**product** | [**Product**](Product.md) | | [optional] +**listing_price** | [**MoneyType**](MoneyType.md) | | +**shipping_price** | [**MoneyType**](MoneyType.md) | | [optional] +**points** | [**Points**](Points.md) | | [optional] diff --git a/lib/product-pricing-api-model/docs/PrimeInformationType.md b/lib/product-pricing-api-model/docs/PrimeInformationType.md deleted file mode 100644 index 4447fa044..000000000 --- a/lib/product-pricing-api-model/docs/PrimeInformationType.md +++ /dev/null @@ -1,8 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::PrimeInformationType - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**is_prime** | **BOOLEAN** | Indicates whether the offer is an Amazon Prime offer. | -**is_national_prime** | **BOOLEAN** | Indicates whether the offer is an Amazon Prime offer throughout the entire marketplace where it is listed. | - diff --git a/lib/product-pricing-api-model/docs/Product.md b/lib/product-pricing-api-model/docs/Product.md deleted file mode 100644 index a09a24c82..000000000 --- a/lib/product-pricing-api-model/docs/Product.md +++ /dev/null @@ -1,12 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::Product - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**identifiers** | [**IdentifierType**](IdentifierType.md) | | -**attribute_sets** | [**AttributeSetList**](AttributeSetList.md) | | [optional] -**relationships** | [**RelationshipList**](RelationshipList.md) | | [optional] -**competitive_pricing** | [**CompetitivePricingType**](CompetitivePricingType.md) | | [optional] -**sales_rankings** | [**SalesRankList**](SalesRankList.md) | | [optional] -**offers** | [**OffersList**](OffersList.md) | | [optional] - diff --git a/lib/product-pricing-api-model/docs/ProductPricingApi.md b/lib/product-pricing-api-model/docs/ProductPricingApi.md index bbca8e722..6d69decc0 100644 --- a/lib/product-pricing-api-model/docs/ProductPricingApi.md +++ b/lib/product-pricing-api-model/docs/ProductPricingApi.md @@ -4,19 +4,14 @@ All URIs are relative to *https://sellingpartnerapi-na.amazon.com/* Method | HTTP request | Description ------------- | ------------- | ------------- -[**get_competitive_pricing**](ProductPricingApi.md#get_competitive_pricing) | **GET** /products/pricing/v0/competitivePrice | -[**get_item_offers**](ProductPricingApi.md#get_item_offers) | **GET** /products/pricing/v0/items/{Asin}/offers | -[**get_item_offers_batch**](ProductPricingApi.md#get_item_offers_batch) | **POST** /batches/products/pricing/v0/itemOffers | -[**get_listing_offers**](ProductPricingApi.md#get_listing_offers) | **GET** /products/pricing/v0/listings/{SellerSKU}/offers | -[**get_listing_offers_batch**](ProductPricingApi.md#get_listing_offers_batch) | **POST** /batches/products/pricing/v0/listingOffers | -[**get_pricing**](ProductPricingApi.md#get_pricing) | **GET** /products/pricing/v0/price | +[**get_featured_offer_expected_price_batch**](ProductPricingApi.md#get_featured_offer_expected_price_batch) | **POST** /batches/products/pricing/2022-05-01/offer/featuredOfferExpectedPrice | -# **get_competitive_pricing** -> GetPricingResponse get_competitive_pricing(marketplace_id, item_type, opts) +# **get_featured_offer_expected_price_batch** +> GetFeaturedOfferExpectedPriceBatchResponse get_featured_offer_expected_price_batch(body) -Returns competitive pricing information for a seller's offer listings based on seller SKU or ASIN. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). +Returns the set of responses that correspond to the batched list of up to 40 requests defined in the request body. The response for each successful (HTTP status code 200) request in the set includes the computed listing price at or below which a seller can expect to become the featured offer (before applicable promotions). This is called the featured offer expected price (FOEP). Featured offer is not guaranteed, because competing offers may change, and different offers may be featured based on other factors, including fulfillment capabilities to a specific customer. The response to an unsuccessful request includes the available error text. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -24,72 +19,14 @@ Returns competitive pricing information for a seller's offer listings based on s require 'product-pricing-api-model' api_instance = AmzSpApi::ProductPricingApiModel::ProductPricingApi.new -marketplace_id = 'marketplace_id_example' # String | A marketplace identifier. Specifies the marketplace for which prices are returned. -item_type = 'item_type_example' # String | Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. Possible values: Asin, Sku. -opts = { - asins: ['asins_example'], # Array | A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. - skus: ['skus_example'], # Array | A list of up to twenty seller SKU values used to identify items in the given marketplace. - customer_type: 'customer_type_example' # String | Indicates whether to request pricing information from the point of view of Consumer or Business buyers. Default is Consumer. -} - -begin - result = api_instance.get_competitive_pricing(marketplace_id, item_type, opts) - p result -rescue AmzSpApi::ProductPricingApiModel::ApiError => e - puts "Exception when calling ProductPricingApi->get_competitive_pricing: #{e}" -end -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marketplace_id** | **String**| A marketplace identifier. Specifies the marketplace for which prices are returned. | - **item_type** | **String**| Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. Possible values: Asin, Sku. | - **asins** | [**Array<String>**](String.md)| A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. | [optional] - **skus** | [**Array<String>**](String.md)| A list of up to twenty seller SKU values used to identify items in the given marketplace. | [optional] - **customer_type** | **String**| Indicates whether to request pricing information from the point of view of Consumer or Business buyers. Default is Consumer. | [optional] - -### Return type - -[**GetPricingResponse**](GetPricingResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - +body = AmzSpApi::ProductPricingApiModel::GetFeaturedOfferExpectedPriceBatchRequest.new # GetFeaturedOfferExpectedPriceBatchRequest | -# **get_item_offers** -> GetOffersResponse get_item_offers(marketplace_id, item_condition, asin, opts) - - - -Returns the lowest priced offers for a single item based on ASIN. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). - -### Example -```ruby -# load the gem -require 'product-pricing-api-model' - -api_instance = AmzSpApi::ProductPricingApiModel::ProductPricingApi.new -marketplace_id = 'marketplace_id_example' # String | A marketplace identifier. Specifies the marketplace for which prices are returned. -item_condition = 'item_condition_example' # String | Filters the offer listings to be considered based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. -asin = 'asin_example' # String | The Amazon Standard Identification Number (ASIN) of the item. -opts = { - customer_type: 'customer_type_example' # String | Indicates whether to request Consumer or Business offers. Default is Consumer. -} - begin - result = api_instance.get_item_offers(marketplace_id, item_condition, asin, opts) + result = api_instance.get_featured_offer_expected_price_batch(body) p result rescue AmzSpApi::ProductPricingApiModel::ApiError => e - puts "Exception when calling ProductPricingApi->get_item_offers: #{e}" + puts "Exception when calling ProductPricingApi->get_featured_offer_expected_price_batch: #{e}" end ``` @@ -97,59 +34,11 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **marketplace_id** | **String**| A marketplace identifier. Specifies the marketplace for which prices are returned. | - **item_condition** | **String**| Filters the offer listings to be considered based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. | - **asin** | **String**| The Amazon Standard Identification Number (ASIN) of the item. | - **customer_type** | **String**| Indicates whether to request Consumer or Business offers. Default is Consumer. | [optional] + **body** | [**GetFeaturedOfferExpectedPriceBatchRequest**](GetFeaturedOfferExpectedPriceBatchRequest.md)| | ### Return type -[**GetOffersResponse**](GetOffersResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - - -# **get_item_offers_batch** -> GetItemOffersBatchResponse get_item_offers_batch(body) - - - -Returns the lowest priced offers for a batch of items based on ASIN. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). - -### Example -```ruby -# load the gem -require 'product-pricing-api-model' - -api_instance = AmzSpApi::ProductPricingApiModel::ProductPricingApi.new -body = AmzSpApi::ProductPricingApiModel::GetItemOffersBatchRequest.new # GetItemOffersBatchRequest | - - -begin - result = api_instance.get_item_offers_batch(body) - p result -rescue AmzSpApi::ProductPricingApiModel::ApiError => e - puts "Exception when calling ProductPricingApi->get_item_offers_batch: #{e}" -end -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**GetItemOffersBatchRequest**](GetItemOffersBatchRequest.md)| | - -### Return type - -[**GetItemOffersBatchResponse**](GetItemOffersBatchResponse.md) +[**GetFeaturedOfferExpectedPriceBatchResponse**](GetFeaturedOfferExpectedPriceBatchResponse.md) ### Authorization @@ -162,156 +51,3 @@ No authorization required -# **get_listing_offers** -> GetOffersResponse get_listing_offers(marketplace_id, item_condition, seller_sku, opts) - - - -Returns the lowest priced offers for a single SKU listing. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). - -### Example -```ruby -# load the gem -require 'product-pricing-api-model' - -api_instance = AmzSpApi::ProductPricingApiModel::ProductPricingApi.new -marketplace_id = 'marketplace_id_example' # String | A marketplace identifier. Specifies the marketplace for which prices are returned. -item_condition = 'item_condition_example' # String | Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. -seller_sku = 'seller_sku_example' # String | Identifies an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. -opts = { - customer_type: 'customer_type_example' # String | Indicates whether to request Consumer or Business offers. Default is Consumer. -} - -begin - result = api_instance.get_listing_offers(marketplace_id, item_condition, seller_sku, opts) - p result -rescue AmzSpApi::ProductPricingApiModel::ApiError => e - puts "Exception when calling ProductPricingApi->get_listing_offers: #{e}" -end -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marketplace_id** | **String**| A marketplace identifier. Specifies the marketplace for which prices are returned. | - **item_condition** | **String**| Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. | - **seller_sku** | **String**| Identifies an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. | - **customer_type** | **String**| Indicates whether to request Consumer or Business offers. Default is Consumer. | [optional] - -### Return type - -[**GetOffersResponse**](GetOffersResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - - -# **get_listing_offers_batch** -> GetListingOffersBatchResponse get_listing_offers_batch(body) - - - -Returns the lowest priced offers for a batch of listings by SKU. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). - -### Example -```ruby -# load the gem -require 'product-pricing-api-model' - -api_instance = AmzSpApi::ProductPricingApiModel::ProductPricingApi.new -body = AmzSpApi::ProductPricingApiModel::GetListingOffersBatchRequest.new # GetListingOffersBatchRequest | - - -begin - result = api_instance.get_listing_offers_batch(body) - p result -rescue AmzSpApi::ProductPricingApiModel::ApiError => e - puts "Exception when calling ProductPricingApi->get_listing_offers_batch: #{e}" -end -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**GetListingOffersBatchRequest**](GetListingOffersBatchRequest.md)| | - -### Return type - -[**GetListingOffersBatchResponse**](GetListingOffersBatchResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - - -# **get_pricing** -> GetPricingResponse get_pricing(marketplace_id, item_type, opts) - - - -Returns pricing information for a seller's offer listings based on seller SKU or ASIN. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). - -### Example -```ruby -# load the gem -require 'product-pricing-api-model' - -api_instance = AmzSpApi::ProductPricingApiModel::ProductPricingApi.new -marketplace_id = 'marketplace_id_example' # String | A marketplace identifier. Specifies the marketplace for which prices are returned. -item_type = 'item_type_example' # String | Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. -opts = { - asins: ['asins_example'], # Array | A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. - skus: ['skus_example'], # Array | A list of up to twenty seller SKU values used to identify items in the given marketplace. - item_condition: 'item_condition_example', # String | Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. - offer_type: 'offer_type_example' # String | Indicates whether to request pricing information for the seller's B2C or B2B offers. Default is B2C. -} - -begin - result = api_instance.get_pricing(marketplace_id, item_type, opts) - p result -rescue AmzSpApi::ProductPricingApiModel::ApiError => e - puts "Exception when calling ProductPricingApi->get_pricing: #{e}" -end -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marketplace_id** | **String**| A marketplace identifier. Specifies the marketplace for which prices are returned. | - **item_type** | **String**| Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. | - **asins** | [**Array<String>**](String.md)| A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. | [optional] - **skus** | [**Array<String>**](String.md)| A list of up to twenty seller SKU values used to identify items in the given marketplace. | [optional] - **item_condition** | **String**| Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. | [optional] - **offer_type** | **String**| Indicates whether to request pricing information for the seller's B2C or B2B offers. Default is B2C. | [optional] - -### Return type - -[**GetPricingResponse**](GetPricingResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - - diff --git a/lib/product-pricing-api-model/docs/QuantityDiscountPriceType.md b/lib/product-pricing-api-model/docs/QuantityDiscountPriceType.md deleted file mode 100644 index 46cb3fa0f..000000000 --- a/lib/product-pricing-api-model/docs/QuantityDiscountPriceType.md +++ /dev/null @@ -1,9 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::QuantityDiscountPriceType - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**quantity_tier** | **Integer** | Indicates at what quantity this price becomes active. | -**quantity_discount_type** | [**QuantityDiscountType**](QuantityDiscountType.md) | | -**listing_price** | [**MoneyType**](MoneyType.md) | | - diff --git a/lib/product-pricing-api-model/docs/QuantityDiscountType.md b/lib/product-pricing-api-model/docs/QuantityDiscountType.md deleted file mode 100644 index fed191bfe..000000000 --- a/lib/product-pricing-api-model/docs/QuantityDiscountType.md +++ /dev/null @@ -1,6 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::QuantityDiscountType - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - diff --git a/lib/product-pricing-api-model/docs/RelationshipList.md b/lib/product-pricing-api-model/docs/RelationshipList.md deleted file mode 100644 index d1492db84..000000000 --- a/lib/product-pricing-api-model/docs/RelationshipList.md +++ /dev/null @@ -1,6 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::RelationshipList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - diff --git a/lib/product-pricing-api-model/docs/SalesRankList.md b/lib/product-pricing-api-model/docs/SalesRankList.md deleted file mode 100644 index b59d15867..000000000 --- a/lib/product-pricing-api-model/docs/SalesRankList.md +++ /dev/null @@ -1,6 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::SalesRankList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - diff --git a/lib/product-pricing-api-model/docs/SalesRankType.md b/lib/product-pricing-api-model/docs/SalesRankType.md deleted file mode 100644 index f3fd55a62..000000000 --- a/lib/product-pricing-api-model/docs/SalesRankType.md +++ /dev/null @@ -1,8 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::SalesRankType - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**product_category_id** | **String** | Identifies the item category from which the sales rank is taken. | -**rank** | **Integer** | The sales rank of the item within the item category. | - diff --git a/lib/product-pricing-api-model/docs/SellerFeedbackType.md b/lib/product-pricing-api-model/docs/SellerFeedbackType.md deleted file mode 100644 index ee9566d2f..000000000 --- a/lib/product-pricing-api-model/docs/SellerFeedbackType.md +++ /dev/null @@ -1,8 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::SellerFeedbackType - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**seller_positive_feedback_rating** | **Float** | The percentage of positive feedback for the seller in the past 365 days. | [optional] -**feedback_count** | **Integer** | The number of ratings received about the seller. | - diff --git a/lib/product-pricing-api-model/docs/SellerSKUIdentifier.md b/lib/product-pricing-api-model/docs/SellerSKUIdentifier.md deleted file mode 100644 index afdba9a48..000000000 --- a/lib/product-pricing-api-model/docs/SellerSKUIdentifier.md +++ /dev/null @@ -1,9 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::SellerSKUIdentifier - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **String** | A marketplace identifier. | -**seller_id** | **String** | The seller identifier submitted for the operation. | -**seller_sku** | **String** | The seller stock keeping unit (SKU) of the item. | - diff --git a/lib/product-pricing-api-model/docs/ShipsFromType.md b/lib/product-pricing-api-model/docs/ShipsFromType.md deleted file mode 100644 index 0ae7ed79b..000000000 --- a/lib/product-pricing-api-model/docs/ShipsFromType.md +++ /dev/null @@ -1,8 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::ShipsFromType - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**state** | **String** | The state from where the item is shipped. | [optional] -**country** | **String** | The country from where the item is shipped. | [optional] - diff --git a/lib/product-pricing-api-model/docs/HttpUri.md b/lib/product-pricing-api-model/docs/Sku.md similarity index 71% rename from lib/product-pricing-api-model/docs/HttpUri.md rename to lib/product-pricing-api-model/docs/Sku.md index 8a3dd7027..99b317d5a 100644 --- a/lib/product-pricing-api-model/docs/HttpUri.md +++ b/lib/product-pricing-api-model/docs/Sku.md @@ -1,4 +1,4 @@ -# AmzSpApi::ProductPricingApiModel::HttpUri +# AmzSpApi::ProductPricingApiModel::Sku ## Properties Name | Type | Description | Notes diff --git a/lib/product-pricing-api-model/docs/Summary.md b/lib/product-pricing-api-model/docs/Summary.md deleted file mode 100644 index 47509d51a..000000000 --- a/lib/product-pricing-api-model/docs/Summary.md +++ /dev/null @@ -1,16 +0,0 @@ -# AmzSpApi::ProductPricingApiModel::Summary - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_offer_count** | **Integer** | The number of unique offers contained in NumberOfOffers. | -**number_of_offers** | [**NumberOfOffers**](NumberOfOffers.md) | | [optional] -**lowest_prices** | [**LowestPrices**](LowestPrices.md) | | [optional] -**buy_box_prices** | [**BuyBoxPrices**](BuyBoxPrices.md) | | [optional] -**list_price** | [**MoneyType**](MoneyType.md) | | [optional] -**competitive_price_threshold** | [**MoneyType**](MoneyType.md) | | [optional] -**suggested_lower_price_plus_shipping** | [**MoneyType**](MoneyType.md) | | [optional] -**sales_rankings** | [**SalesRankList**](SalesRankList.md) | | [optional] -**buy_box_eligible_offers** | [**BuyBoxEligibleOffers**](BuyBoxEligibleOffers.md) | | [optional] -**offers_available_time** | **DateTime** | When the status is ActiveButTooSoonForProcessing, this is the time when the offers will be available for processing. | [optional] - diff --git a/lib/product-pricing-api-model/models/asin.rb b/lib/product-pricing-api-model/models/asin.rb index 8434689f3..d12413b18 100644 --- a/lib/product-pricing-api-model/models/asin.rb +++ b/lib/product-pricing-api-model/models/asin.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-pricing-api-model/models/batch_request.rb b/lib/product-pricing-api-model/models/batch_request.rb index 4019fcda1..477ed2d25 100644 --- a/lib/product-pricing-api-model/models/batch_request.rb +++ b/lib/product-pricing-api-model/models/batch_request.rb @@ -1,24 +1,26 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::ProductPricingApiModel - # Common properties of batch requests against individual APIs. + # The common properties for individual requests within a batch. class BatchRequest - # The `getItemOffers` resource path without any query parameters. **Example:** `/products/pricing/v0/items/B000P6Q7MY/offers` + # The URI associated with an individual request within a batch. For FeaturedOfferExpectedPrice, this should be '/products/pricing/2022-05-01/offer/featuredOfferExpectedPrice'. attr_accessor :uri attr_accessor :method + attr_accessor :body + attr_accessor :headers # Attribute mapping from ruby-style variable name to JSON key. @@ -26,6 +28,7 @@ def self.attribute_map { :'uri' => :'uri', :'method' => :'method', + :'body' => :'body', :'headers' => :'headers' } end @@ -35,6 +38,7 @@ def self.openapi_types { :'uri' => :'Object', :'method' => :'Object', + :'body' => :'Object', :'headers' => :'Object' } end @@ -68,6 +72,10 @@ def initialize(attributes = {}) self.method = attributes[:'method'] end + if attributes.key?(:'body') + self.body = attributes[:'body'] + end + if attributes.key?(:'headers') self.headers = attributes[:'headers'] end @@ -103,6 +111,7 @@ def ==(o) self.class == o.class && uri == o.uri && method == o.method && + body == o.body && headers == o.headers end @@ -115,7 +124,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [uri, method, headers].hash + [uri, method, body, headers].hash end # Builds the object from hash diff --git a/lib/product-pricing-api-model/models/batch_offers_response.rb b/lib/product-pricing-api-model/models/batch_response.rb similarity index 85% rename from lib/product-pricing-api-model/models/batch_offers_response.rb rename to lib/product-pricing-api-model/models/batch_response.rb index 7c2a7a84e..3cccef604 100644 --- a/lib/product-pricing-api-model/models/batch_offers_response.rb +++ b/lib/product-pricing-api-model/models/batch_response.rb @@ -1,30 +1,28 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::ProductPricingApiModel - class BatchOffersResponse + # The common properties for responses to individual requests within a batch. + class BatchResponse attr_accessor :headers attr_accessor :status - attr_accessor :body - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'headers' => :'headers', - :'status' => :'status', - :'body' => :'body' + :'status' => :'status' } end @@ -32,8 +30,7 @@ def self.attribute_map def self.openapi_types { :'headers' => :'Object', - :'status' => :'Object', - :'body' => :'Object' + :'status' => :'Object' } end @@ -47,13 +44,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::BatchOffersResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::BatchResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::BatchOffersResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::BatchResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } @@ -65,18 +62,18 @@ def initialize(attributes = {}) if attributes.key?(:'status') self.status = attributes[:'status'] end - - if attributes.key?(:'body') - self.body = attributes[:'body'] - end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @body.nil? - invalid_properties.push('invalid value for "body", body cannot be nil.') + if @headers.nil? + invalid_properties.push('invalid value for "headers", headers cannot be nil.') + end + + if @status.nil? + invalid_properties.push('invalid value for "status", status cannot be nil.') end invalid_properties @@ -85,7 +82,8 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @body.nil? + return false if @headers.nil? + return false if @status.nil? true end @@ -95,8 +93,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && headers == o.headers && - status == o.status && - body == o.body + status == o.status end # @see the `==` method @@ -108,7 +105,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [headers, status, body].hash + [headers, status].hash end # Builds the object from hash diff --git a/lib/product-pricing-api-model/models/condition_type.rb b/lib/product-pricing-api-model/models/condition.rb similarity index 54% rename from lib/product-pricing-api-model/models/condition_type.rb rename to lib/product-pricing-api-model/models/condition.rb index d911b87ba..6e586de76 100644 --- a/lib/product-pricing-api-model/models/condition_type.rb +++ b/lib/product-pricing-api-model/models/condition.rb @@ -1,18 +1,18 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::ProductPricingApiModel - class ConditionType + class Condition NEW = 'New'.freeze USED = 'Used'.freeze COLLECTIBLE = 'Collectible'.freeze @@ -23,8 +23,8 @@ class ConditionType # @param [String] The enum value in the form of the string # @return [String] The enum value def build_from_hash(value) - constantValues = ConditionType.constants.select { |c| ConditionType::const_get(c) == value } - raise "Invalid ENUM value #{value} for class #ConditionType" if constantValues.empty? + constantValues = Condition.constants.select { |c| Condition::const_get(c) == value } + raise "Invalid ENUM value #{value} for class #Condition" if constantValues.empty? value end end diff --git a/lib/product-pricing-api-model/models/customer_type.rb b/lib/product-pricing-api-model/models/customer_type.rb deleted file mode 100644 index e684b4fff..000000000 --- a/lib/product-pricing-api-model/models/customer_type.rb +++ /dev/null @@ -1,28 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'date' - -module AmzSpApi::ProductPricingApiModel - class CustomerType - CONSUMER = 'Consumer'.freeze - BUSINESS = 'Business'.freeze - - # Builds the enum from string - # @param [String] The enum value in the form of the string - # @return [String] The enum value - def build_from_hash(value) - constantValues = CustomerType.constants.select { |c| CustomerType::const_get(c) == value } - raise "Invalid ENUM value #{value} for class #CustomerType" if constantValues.empty? - value - end - end -end diff --git a/lib/product-pricing-api-model/models/error.rb b/lib/product-pricing-api-model/models/error.rb index 94d86ab8a..01ba8f6e9 100644 --- a/lib/product-pricing-api-model/models/error.rb +++ b/lib/product-pricing-api-model/models/error.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' @@ -17,7 +17,7 @@ class Error # An error code that identifies the type of error that occurred. attr_accessor :code - # A message that describes the error condition in a human-readable form. + # A message that describes the error condition. attr_accessor :message # Additional information that can help the caller understand or fix the issue. diff --git a/lib/product-pricing-api-model/models/error_list.rb b/lib/product-pricing-api-model/models/error_list.rb index e924e17a3..1cab66394 100644 --- a/lib/product-pricing-api-model/models/error_list.rb +++ b/lib/product-pricing-api-model/models/error_list.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-pricing-api-model/models/errors.rb b/lib/product-pricing-api-model/models/errors.rb index da0f55cf4..fb04d6796 100644 --- a/lib/product-pricing-api-model/models/errors.rb +++ b/lib/product-pricing-api-model/models/errors.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-pricing-api-model/models/offer_count_type.rb b/lib/product-pricing-api-model/models/featured_offer.rb similarity index 82% rename from lib/product-pricing-api-model/models/offer_count_type.rb rename to lib/product-pricing-api-model/models/featured_offer.rb index 34d6558a7..87e0c920e 100644 --- a/lib/product-pricing-api-model/models/offer_count_type.rb +++ b/lib/product-pricing-api-model/models/featured_offer.rb @@ -1,42 +1,39 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::ProductPricingApiModel - # The total number of offers for the specified condition and fulfillment channel. - class OfferCountType - # Indicates the condition of the item. For example: New, Used, Collectible, Refurbished, or Club. - attr_accessor :condition + class FeaturedOffer + attr_accessor :offer_identifier - attr_accessor :fulfillment_channel + attr_accessor :condition - # The number of offers in a fulfillment channel that meet a specific condition. - attr_accessor :offer_count + attr_accessor :price # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'offer_identifier' => :'offerIdentifier', :'condition' => :'condition', - :'fulfillment_channel' => :'fulfillmentChannel', - :'offer_count' => :'OfferCount' + :'price' => :'price' } end # Attribute type mapping. def self.openapi_types { + :'offer_identifier' => :'Object', :'condition' => :'Object', - :'fulfillment_channel' => :'Object', - :'offer_count' => :'Object' + :'price' => :'Object' } end @@ -50,27 +47,27 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::OfferCountType` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::FeaturedOffer` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::OfferCountType`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::FeaturedOffer`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - if attributes.key?(:'condition') - self.condition = attributes[:'condition'] + if attributes.key?(:'offer_identifier') + self.offer_identifier = attributes[:'offer_identifier'] end - if attributes.key?(:'fulfillment_channel') - self.fulfillment_channel = attributes[:'fulfillment_channel'] + if attributes.key?(:'condition') + self.condition = attributes[:'condition'] end - if attributes.key?(:'offer_count') - self.offer_count = attributes[:'offer_count'] + if attributes.key?(:'price') + self.price = attributes[:'price'] end end @@ -78,12 +75,17 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new + if @offer_identifier.nil? + invalid_properties.push('invalid value for "offer_identifier", offer_identifier cannot be nil.') + end + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + return false if @offer_identifier.nil? true end @@ -92,9 +94,9 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + offer_identifier == o.offer_identifier && condition == o.condition && - fulfillment_channel == o.fulfillment_channel && - offer_count == o.offer_count + price == o.price end # @see the `==` method @@ -106,7 +108,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [condition, fulfillment_channel, offer_count].hash + [offer_identifier, condition, price].hash end # Builds the object from hash diff --git a/lib/product-pricing-api-model/models/price_type.rb b/lib/product-pricing-api-model/models/featured_offer_expected_price.rb similarity index 85% rename from lib/product-pricing-api-model/models/price_type.rb rename to lib/product-pricing-api-model/models/featured_offer_expected_price.rb index 3adbe8110..762621fcf 100644 --- a/lib/product-pricing-api-model/models/price_type.rb +++ b/lib/product-pricing-api-model/models/featured_offer_expected_price.rb @@ -1,42 +1,35 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::ProductPricingApiModel - class PriceType - attr_accessor :landed_price - + # The item price at or below which the target offer may be featured. + class FeaturedOfferExpectedPrice attr_accessor :listing_price - attr_accessor :shipping - attr_accessor :points # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'landed_price' => :'LandedPrice', - :'listing_price' => :'ListingPrice', - :'shipping' => :'Shipping', - :'points' => :'Points' + :'listing_price' => :'listingPrice', + :'points' => :'points' } end # Attribute type mapping. def self.openapi_types { - :'landed_price' => :'Object', :'listing_price' => :'Object', - :'shipping' => :'Object', :'points' => :'Object' } end @@ -51,29 +44,21 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::PriceType` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPrice` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::PriceType`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPrice`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - if attributes.key?(:'landed_price') - self.landed_price = attributes[:'landed_price'] - end - if attributes.key?(:'listing_price') self.listing_price = attributes[:'listing_price'] end - if attributes.key?(:'shipping') - self.shipping = attributes[:'shipping'] - end - if attributes.key?(:'points') self.points = attributes[:'points'] end @@ -102,9 +87,7 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - landed_price == o.landed_price && listing_price == o.listing_price && - shipping == o.shipping && points == o.points end @@ -117,7 +100,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [landed_price, listing_price, shipping, points].hash + [listing_price, points].hash end # Builds the object from hash diff --git a/lib/product-pricing-api-model/models/listing_offers_request.rb b/lib/product-pricing-api-model/models/featured_offer_expected_price_request.rb similarity index 83% rename from lib/product-pricing-api-model/models/listing_offers_request.rb rename to lib/product-pricing-api-model/models/featured_offer_expected_price_request.rb index f105b4bdb..dcacf3383 100644 --- a/lib/product-pricing-api-model/models/listing_offers_request.rb +++ b/lib/product-pricing-api-model/models/featured_offer_expected_price_request.rb @@ -1,39 +1,40 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::ProductPricingApiModel - class ListingOffersRequest + # An individual featured offer expected price request for a particular SKU. + class FeaturedOfferExpectedPriceRequest attr_accessor :marketplace_id - attr_accessor :item_condition + attr_accessor :sku - attr_accessor :customer_type - - # The `getItemOffers` resource path without any query parameters. **Example:** `/products/pricing/v0/items/B000P6Q7MY/offers` + # The URI associated with an individual request within a batch. For FeaturedOfferExpectedPrice, this should be '/products/pricing/2022-05-01/offer/featuredOfferExpectedPrice'. attr_accessor :uri attr_accessor :method + attr_accessor :body + attr_accessor :headers # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'marketplace_id' => :'MarketplaceId', - :'item_condition' => :'ItemCondition', - :'customer_type' => :'CustomerType', + :'marketplace_id' => :'marketplaceId', + :'sku' => :'sku', :'uri' => :'uri', :'method' => :'method', + :'body' => :'body', :'headers' => :'headers' } end @@ -42,10 +43,10 @@ def self.attribute_map def self.openapi_types { :'marketplace_id' => :'', - :'item_condition' => :'', - :'customer_type' => :'', + :'sku' => :'', :'uri' => :'', :'method' => :'', + :'body' => :'', :'headers' => :'' } end @@ -60,13 +61,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::ListingOffersRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::ListingOffersRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } @@ -78,12 +79,8 @@ def initialize(attributes = {}) self.marketplace_id = attributes[:'marketplace_id'] end - if attributes.key?(:'item_condition') - self.item_condition = attributes[:'item_condition'] - end - - if attributes.key?(:'customer_type') - self.customer_type = attributes[:'customer_type'] + if attributes.key?(:'sku') + self.sku = attributes[:'sku'] end if attributes.key?(:'uri') @@ -94,6 +91,10 @@ def initialize(attributes = {}) self.method = attributes[:'method'] end + if attributes.key?(:'body') + self.body = attributes[:'body'] + end + if attributes.key?(:'headers') self.headers = attributes[:'headers'] end @@ -107,8 +108,8 @@ def list_invalid_properties invalid_properties.push('invalid value for "marketplace_id", marketplace_id cannot be nil.') end - if @item_condition.nil? - invalid_properties.push('invalid value for "item_condition", item_condition cannot be nil.') + if @sku.nil? + invalid_properties.push('invalid value for "sku", sku cannot be nil.') end if @uri.nil? @@ -126,7 +127,7 @@ def list_invalid_properties # @return true if the model is valid def valid? return false if @marketplace_id.nil? - return false if @item_condition.nil? + return false if @sku.nil? return false if @uri.nil? return false if @method.nil? true @@ -138,10 +139,10 @@ def ==(o) return true if self.equal?(o) self.class == o.class && marketplace_id == o.marketplace_id && - item_condition == o.item_condition && - customer_type == o.customer_type && + sku == o.sku && uri == o.uri && method == o.method && + body == o.body && headers == o.headers && super(o) end @@ -154,7 +155,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [marketplace_id, item_condition, customer_type, uri, method, headers].hash + [marketplace_id, sku, uri, method, body, headers].hash end # Builds the object from hash diff --git a/lib/product-pricing-api-model/models/buy_box_eligible_offers.rb b/lib/product-pricing-api-model/models/featured_offer_expected_price_request_list.rb similarity index 89% rename from lib/product-pricing-api-model/models/buy_box_eligible_offers.rb rename to lib/product-pricing-api-model/models/featured_offer_expected_price_request_list.rb index d793d1e69..e69a8e3ae 100644 --- a/lib/product-pricing-api-model/models/buy_box_eligible_offers.rb +++ b/lib/product-pricing-api-model/models/featured_offer_expected_price_request_list.rb @@ -1,18 +1,19 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::ProductPricingApiModel - class BuyBoxEligibleOffers + # A batched list of featured offer expected price requests. + class FeaturedOfferExpectedPriceRequestList # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -35,13 +36,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::BuyBoxEligibleOffers` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceRequestList` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::BuyBoxEligibleOffers`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceRequestList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/product-pricing-api-model/models/asin_identifier.rb b/lib/product-pricing-api-model/models/featured_offer_expected_price_request_params.rb similarity index 85% rename from lib/product-pricing-api-model/models/asin_identifier.rb rename to lib/product-pricing-api-model/models/featured_offer_expected_price_request_params.rb index 369bb03d4..fcb5746c3 100644 --- a/lib/product-pricing-api-model/models/asin_identifier.rb +++ b/lib/product-pricing-api-model/models/featured_offer_expected_price_request_params.rb @@ -1,29 +1,28 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::ProductPricingApiModel - class ASINIdentifier - # A marketplace identifier. + # The parameters for an individual request. + class FeaturedOfferExpectedPriceRequestParams attr_accessor :marketplace_id - # The Amazon Standard Identification Number (ASIN) of the item. - attr_accessor :asin + attr_accessor :sku # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'marketplace_id' => :'MarketplaceId', - :'asin' => :'ASIN' + :'marketplace_id' => :'marketplaceId', + :'sku' => :'sku' } end @@ -31,7 +30,7 @@ def self.attribute_map def self.openapi_types { :'marketplace_id' => :'Object', - :'asin' => :'Object' + :'sku' => :'Object' } end @@ -45,13 +44,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::ASINIdentifier` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceRequestParams` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::ASINIdentifier`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceRequestParams`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } @@ -60,8 +59,8 @@ def initialize(attributes = {}) self.marketplace_id = attributes[:'marketplace_id'] end - if attributes.key?(:'asin') - self.asin = attributes[:'asin'] + if attributes.key?(:'sku') + self.sku = attributes[:'sku'] end end @@ -73,8 +72,8 @@ def list_invalid_properties invalid_properties.push('invalid value for "marketplace_id", marketplace_id cannot be nil.') end - if @asin.nil? - invalid_properties.push('invalid value for "asin", asin cannot be nil.') + if @sku.nil? + invalid_properties.push('invalid value for "sku", sku cannot be nil.') end invalid_properties @@ -84,7 +83,7 @@ def list_invalid_properties # @return true if the model is valid def valid? return false if @marketplace_id.nil? - return false if @asin.nil? + return false if @sku.nil? true end @@ -94,7 +93,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && marketplace_id == o.marketplace_id && - asin == o.asin + sku == o.sku end # @see the `==` method @@ -106,7 +105,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [marketplace_id, asin].hash + [marketplace_id, sku].hash end # Builds the object from hash diff --git a/lib/product-pricing-api-model/models/item_offers_response.rb b/lib/product-pricing-api-model/models/featured_offer_expected_price_response.rb similarity index 85% rename from lib/product-pricing-api-model/models/item_offers_response.rb rename to lib/product-pricing-api-model/models/featured_offer_expected_price_response.rb index 8411dd4d5..326fb4d2d 100644 --- a/lib/product-pricing-api-model/models/item_offers_response.rb +++ b/lib/product-pricing-api-model/models/featured_offer_expected_price_response.rb @@ -1,33 +1,33 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::ProductPricingApiModel - class ItemOffersResponse + class FeaturedOfferExpectedPriceResponse attr_accessor :headers attr_accessor :status - attr_accessor :body - attr_accessor :request + attr_accessor :body + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'headers' => :'headers', :'status' => :'status', - :'body' => :'body', - :'request' => :'request' + :'request' => :'request', + :'body' => :'body' } end @@ -36,8 +36,8 @@ def self.openapi_types { :'headers' => :'', :'status' => :'', - :'body' => :'', - :'request' => :'' + :'request' => :'', + :'body' => :'' } end @@ -51,13 +51,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::ItemOffersResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::ItemOffersResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } @@ -73,21 +73,25 @@ def initialize(attributes = {}) self.status = attributes[:'status'] end - if attributes.key?(:'body') - self.body = attributes[:'body'] - end - if attributes.key?(:'request') self.request = attributes[:'request'] end + + if attributes.key?(:'body') + self.body = attributes[:'body'] + end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = super - if @body.nil? - invalid_properties.push('invalid value for "body", body cannot be nil.') + if @headers.nil? + invalid_properties.push('invalid value for "headers", headers cannot be nil.') + end + + if @status.nil? + invalid_properties.push('invalid value for "status", status cannot be nil.') end if @request.nil? @@ -100,7 +104,8 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @body.nil? + return false if @headers.nil? + return false if @status.nil? return false if @request.nil? true end @@ -112,8 +117,8 @@ def ==(o) self.class == o.class && headers == o.headers && status == o.status && - body == o.body && - request == o.request && super(o) + request == o.request && + body == o.body && super(o) end # @see the `==` method @@ -125,7 +130,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [headers, status, body, request].hash + [headers, status, request, body].hash end # Builds the object from hash diff --git a/lib/product-pricing-api-model/models/batch_offers_request_params.rb b/lib/product-pricing-api-model/models/featured_offer_expected_price_response_body.rb similarity index 74% rename from lib/product-pricing-api-model/models/batch_offers_request_params.rb rename to lib/product-pricing-api-model/models/featured_offer_expected_price_response_body.rb index 689db62ee..fa457800d 100644 --- a/lib/product-pricing-api-model/models/batch_offers_request_params.rb +++ b/lib/product-pricing-api-model/models/featured_offer_expected_price_response_body.rb @@ -1,39 +1,40 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::ProductPricingApiModel - class BatchOffersRequestParams - attr_accessor :marketplace_id + # The featured offer expected price response data for a requested SKU. + class FeaturedOfferExpectedPriceResponseBody + attr_accessor :offer_identifier - attr_accessor :item_condition + attr_accessor :featured_offer_expected_price_results - attr_accessor :customer_type + attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'marketplace_id' => :'MarketplaceId', - :'item_condition' => :'ItemCondition', - :'customer_type' => :'CustomerType' + :'offer_identifier' => :'offerIdentifier', + :'featured_offer_expected_price_results' => :'featuredOfferExpectedPriceResults', + :'errors' => :'errors' } end # Attribute type mapping. def self.openapi_types { - :'marketplace_id' => :'Object', - :'item_condition' => :'Object', - :'customer_type' => :'Object' + :'offer_identifier' => :'Object', + :'featured_offer_expected_price_results' => :'Object', + :'errors' => :'Object' } end @@ -47,27 +48,27 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::BatchOffersRequestParams` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResponseBody` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::BatchOffersRequestParams`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResponseBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - if attributes.key?(:'marketplace_id') - self.marketplace_id = attributes[:'marketplace_id'] + if attributes.key?(:'offer_identifier') + self.offer_identifier = attributes[:'offer_identifier'] end - if attributes.key?(:'item_condition') - self.item_condition = attributes[:'item_condition'] + if attributes.key?(:'featured_offer_expected_price_results') + self.featured_offer_expected_price_results = attributes[:'featured_offer_expected_price_results'] end - if attributes.key?(:'customer_type') - self.customer_type = attributes[:'customer_type'] + if attributes.key?(:'errors') + self.errors = attributes[:'errors'] end end @@ -75,12 +76,8 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @marketplace_id.nil? - invalid_properties.push('invalid value for "marketplace_id", marketplace_id cannot be nil.') - end - - if @item_condition.nil? - invalid_properties.push('invalid value for "item_condition", item_condition cannot be nil.') + if @offer_identifier.nil? + invalid_properties.push('invalid value for "offer_identifier", offer_identifier cannot be nil.') end invalid_properties @@ -89,8 +86,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @marketplace_id.nil? - return false if @item_condition.nil? + return false if @offer_identifier.nil? true end @@ -99,9 +95,9 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - marketplace_id == o.marketplace_id && - item_condition == o.item_condition && - customer_type == o.customer_type + offer_identifier == o.offer_identifier && + featured_offer_expected_price_results == o.featured_offer_expected_price_results && + errors == o.errors end # @see the `==` method @@ -113,7 +109,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [marketplace_id, item_condition, customer_type].hash + [offer_identifier, featured_offer_expected_price_results, errors].hash end # Builds the object from hash diff --git a/lib/product-pricing-api-model/models/competitive_price_list.rb b/lib/product-pricing-api-model/models/featured_offer_expected_price_response_list.rb similarity index 89% rename from lib/product-pricing-api-model/models/competitive_price_list.rb rename to lib/product-pricing-api-model/models/featured_offer_expected_price_response_list.rb index b27c3d37c..89be24fb3 100644 --- a/lib/product-pricing-api-model/models/competitive_price_list.rb +++ b/lib/product-pricing-api-model/models/featured_offer_expected_price_response_list.rb @@ -1,19 +1,19 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::ProductPricingApiModel - # A list of competitive pricing information. - class CompetitivePriceList + # A batched list of featured offer expected price responses. + class FeaturedOfferExpectedPriceResponseList # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -36,13 +36,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::CompetitivePriceList` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResponseList` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::CompetitivePriceList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/product-pricing-api-model/models/offer_listing_count_type.rb b/lib/product-pricing-api-model/models/featured_offer_expected_price_result.rb similarity index 70% rename from lib/product-pricing-api-model/models/offer_listing_count_type.rb rename to lib/product-pricing-api-model/models/featured_offer_expected_price_result.rb index f86a28aaa..5095c8f79 100644 --- a/lib/product-pricing-api-model/models/offer_listing_count_type.rb +++ b/lib/product-pricing-api-model/models/featured_offer_expected_price_result.rb @@ -1,38 +1,45 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::ProductPricingApiModel - # The number of offer listings with the specified condition. - class OfferListingCountType - # The number of offer listings. - attr_accessor :count + # The featured offer expected price result data for the requested offer. + class FeaturedOfferExpectedPriceResult + attr_accessor :featured_offer_expected_price - # The condition of the item. - attr_accessor :condition + # The status of the featured offer expected price computation. Possible values include VALID_FOEP, NO_COMPETING_OFFER, OFFER_NOT_ELIGIBLE, OFFER_NOT_FOUND. + attr_accessor :result_status + + attr_accessor :competing_featured_offer + + attr_accessor :current_featured_offer # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'count' => :'Count', - :'condition' => :'condition' + :'featured_offer_expected_price' => :'featuredOfferExpectedPrice', + :'result_status' => :'resultStatus', + :'competing_featured_offer' => :'competingFeaturedOffer', + :'current_featured_offer' => :'currentFeaturedOffer' } end # Attribute type mapping. def self.openapi_types { - :'count' => :'Object', - :'condition' => :'Object' + :'featured_offer_expected_price' => :'Object', + :'result_status' => :'Object', + :'competing_featured_offer' => :'Object', + :'current_featured_offer' => :'Object' } end @@ -46,23 +53,31 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::OfferListingCountType` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResult` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::OfferListingCountType`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - if attributes.key?(:'count') - self.count = attributes[:'count'] + if attributes.key?(:'featured_offer_expected_price') + self.featured_offer_expected_price = attributes[:'featured_offer_expected_price'] + end + + if attributes.key?(:'result_status') + self.result_status = attributes[:'result_status'] end - if attributes.key?(:'condition') - self.condition = attributes[:'condition'] + if attributes.key?(:'competing_featured_offer') + self.competing_featured_offer = attributes[:'competing_featured_offer'] + end + + if attributes.key?(:'current_featured_offer') + self.current_featured_offer = attributes[:'current_featured_offer'] end end @@ -70,12 +85,8 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @count.nil? - invalid_properties.push('invalid value for "count", count cannot be nil.') - end - - if @condition.nil? - invalid_properties.push('invalid value for "condition", condition cannot be nil.') + if @result_status.nil? + invalid_properties.push('invalid value for "result_status", result_status cannot be nil.') end invalid_properties @@ -84,8 +95,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @count.nil? - return false if @condition.nil? + return false if @result_status.nil? true end @@ -94,8 +104,10 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - count == o.count && - condition == o.condition + featured_offer_expected_price == o.featured_offer_expected_price && + result_status == o.result_status && + competing_featured_offer == o.competing_featured_offer && + current_featured_offer == o.current_featured_offer end # @see the `==` method @@ -107,7 +119,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [count, condition].hash + [featured_offer_expected_price, result_status, competing_featured_offer, current_featured_offer].hash end # Builds the object from hash diff --git a/lib/product-pricing-api-model/models/featured_offer_expected_price_result_list.rb b/lib/product-pricing-api-model/models/featured_offer_expected_price_result_list.rb new file mode 100644 index 000000000..734693e2f --- /dev/null +++ b/lib/product-pricing-api-model/models/featured_offer_expected_price_result_list.rb @@ -0,0 +1,202 @@ +=begin +#Selling Partner API for Pricing + +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). + +OpenAPI spec version: 2022-05-01 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::ProductPricingApiModel + # A list of featured offer expected price results for the requested offer. + class FeaturedOfferExpectedPriceResultList + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + } + end + + # Attribute type mapping. + def self.openapi_types + { + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResultList` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResultList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + # call parent's initialize + super(attributes) + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = super + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && super(o) + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + super(attributes) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = super + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/product-pricing-api-model/models/fulfillment_channel_type.rb b/lib/product-pricing-api-model/models/fulfillment_channel_type.rb deleted file mode 100644 index 8f3de6799..000000000 --- a/lib/product-pricing-api-model/models/fulfillment_channel_type.rb +++ /dev/null @@ -1,28 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'date' - -module AmzSpApi::ProductPricingApiModel - class FulfillmentChannelType - AMAZON = 'Amazon'.freeze - MERCHANT = 'Merchant'.freeze - - # Builds the enum from string - # @param [String] The enum value in the form of the string - # @return [String] The enum value - def build_from_hash(value) - constantValues = FulfillmentChannelType.constants.select { |c| FulfillmentChannelType::const_get(c) == value } - raise "Invalid ENUM value #{value} for class #FulfillmentChannelType" if constantValues.empty? - value - end - end -end diff --git a/lib/product-pricing-api-model/models/fulfillment_type.rb b/lib/product-pricing-api-model/models/fulfillment_type.rb new file mode 100644 index 000000000..c9b7c799d --- /dev/null +++ b/lib/product-pricing-api-model/models/fulfillment_type.rb @@ -0,0 +1,28 @@ +=begin +#Selling Partner API for Pricing + +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). + +OpenAPI spec version: 2022-05-01 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::ProductPricingApiModel + class FulfillmentType + AFN = 'AFN'.freeze + MFN = 'MFN'.freeze + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def build_from_hash(value) + constantValues = FulfillmentType.constants.select { |c| FulfillmentType::const_get(c) == value } + raise "Invalid ENUM value #{value} for class #FulfillmentType" if constantValues.empty? + value + end + end +end diff --git a/lib/product-pricing-api-model/models/get_item_offers_batch_request.rb b/lib/product-pricing-api-model/models/get_featured_offer_expected_price_batch_request.rb similarity index 89% rename from lib/product-pricing-api-model/models/get_item_offers_batch_request.rb rename to lib/product-pricing-api-model/models/get_featured_offer_expected_price_batch_request.rb index eb42ef338..aa4553646 100644 --- a/lib/product-pricing-api-model/models/get_item_offers_batch_request.rb +++ b/lib/product-pricing-api-model/models/get_featured_offer_expected_price_batch_request.rb @@ -1,19 +1,19 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::ProductPricingApiModel - # The request associated with the getItemOffersBatch API call. - class GetItemOffersBatchRequest + # The request body for the getFeaturedOfferExpectedPriceBatch operation. + class GetFeaturedOfferExpectedPriceBatchRequest attr_accessor :requests # Attribute mapping from ruby-style variable name to JSON key. @@ -40,13 +40,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::GetItemOffersBatchRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::GetFeaturedOfferExpectedPriceBatchRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::GetItemOffersBatchRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::GetFeaturedOfferExpectedPriceBatchRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/product-pricing-api-model/models/get_item_offers_batch_response.rb b/lib/product-pricing-api-model/models/get_featured_offer_expected_price_batch_response.rb similarity index 89% rename from lib/product-pricing-api-model/models/get_item_offers_batch_response.rb rename to lib/product-pricing-api-model/models/get_featured_offer_expected_price_batch_response.rb index f256c80e7..7b3da5f8f 100644 --- a/lib/product-pricing-api-model/models/get_item_offers_batch_response.rb +++ b/lib/product-pricing-api-model/models/get_featured_offer_expected_price_batch_response.rb @@ -1,19 +1,19 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::ProductPricingApiModel - # The response associated with the getItemOffersBatch API call. - class GetItemOffersBatchResponse + # The response schema for the getFeaturedOfferExpectedPriceBatch operation. + class GetFeaturedOfferExpectedPriceBatchResponse attr_accessor :responses # Attribute mapping from ruby-style variable name to JSON key. @@ -40,13 +40,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::GetItemOffersBatchResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::GetFeaturedOfferExpectedPriceBatchResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::GetItemOffersBatchResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::GetFeaturedOfferExpectedPriceBatchResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/product-pricing-api-model/models/buy_box_prices.rb b/lib/product-pricing-api-model/models/http_body.rb similarity index 90% rename from lib/product-pricing-api-model/models/buy_box_prices.rb rename to lib/product-pricing-api-model/models/http_body.rb index 01c21e1a3..b93928dc9 100644 --- a/lib/product-pricing-api-model/models/buy_box_prices.rb +++ b/lib/product-pricing-api-model/models/http_body.rb @@ -1,18 +1,19 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::ProductPricingApiModel - class BuyBoxPrices + # Additional HTTP body information associated with an individual request within a batch. + class HttpBody # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -35,13 +36,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::BuyBoxPrices` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::HttpBody` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::BuyBoxPrices`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::HttpBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/product-pricing-api-model/models/attribute_set_list.rb b/lib/product-pricing-api-model/models/http_headers.rb similarity index 90% rename from lib/product-pricing-api-model/models/attribute_set_list.rb rename to lib/product-pricing-api-model/models/http_headers.rb index 6fc72c798..6feac759c 100644 --- a/lib/product-pricing-api-model/models/attribute_set_list.rb +++ b/lib/product-pricing-api-model/models/http_headers.rb @@ -1,19 +1,19 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::ProductPricingApiModel - # A list of product attributes if they are applicable to the product that is returned. - class AttributeSetList + # A mapping of additional HTTP headers to send/receive for an individual request within a batch. + class HttpHeaders # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -36,13 +36,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::AttributeSetList` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::HttpHeaders` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::AttributeSetList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::HttpHeaders`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/product-pricing-api-model/models/http_method.rb b/lib/product-pricing-api-model/models/http_method.rb index 96a16514a..be50e86cb 100644 --- a/lib/product-pricing-api-model/models/http_method.rb +++ b/lib/product-pricing-api-model/models/http_method.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-pricing-api-model/models/http_request_headers.rb b/lib/product-pricing-api-model/models/http_request_headers.rb deleted file mode 100644 index fab678e99..000000000 --- a/lib/product-pricing-api-model/models/http_request_headers.rb +++ /dev/null @@ -1,202 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'date' - -module AmzSpApi::ProductPricingApiModel - # A mapping of additional HTTP headers to send/receive for the individual batch request. - class HttpRequestHeaders - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - } - end - - # Attribute type mapping. - def self.openapi_types - { - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::HttpRequestHeaders` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::HttpRequestHeaders`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - # call parent's initialize - super(attributes) - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = super - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && super(o) - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - super(attributes) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = super - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end end -end diff --git a/lib/product-pricing-api-model/models/get_offers_http_status_line.rb b/lib/product-pricing-api-model/models/http_status_line.rb similarity index 88% rename from lib/product-pricing-api-model/models/get_offers_http_status_line.rb rename to lib/product-pricing-api-model/models/http_status_line.rb index 210fb0dda..0991f122a 100644 --- a/lib/product-pricing-api-model/models/get_offers_http_status_line.rb +++ b/lib/product-pricing-api-model/models/http_status_line.rb @@ -1,20 +1,20 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::ProductPricingApiModel - # The HTTP status line associated with the response. For more information, consult [RFC 2616](https://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html). - class GetOffersHttpStatusLine - # The HTTP response Status Code. + # The HTTP status line associated with the response to an individual request within a batch. For more information, consult [RFC 2616](https://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html). + class HttpStatusLine + # The HTTP response Status-Code. attr_accessor :status_code # The HTTP response Reason-Phase. @@ -46,13 +46,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::GetOffersHttpStatusLine` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::HttpStatusLine` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::GetOffersHttpStatusLine`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::HttpStatusLine`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/product-pricing-api-model/models/item_condition.rb b/lib/product-pricing-api-model/models/item_condition.rb deleted file mode 100644 index d6bf974d4..000000000 --- a/lib/product-pricing-api-model/models/item_condition.rb +++ /dev/null @@ -1,31 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'date' - -module AmzSpApi::ProductPricingApiModel - class ItemCondition - NEW = 'New'.freeze - USED = 'Used'.freeze - COLLECTIBLE = 'Collectible'.freeze - REFURBISHED = 'Refurbished'.freeze - CLUB = 'Club'.freeze - - # Builds the enum from string - # @param [String] The enum value in the form of the string - # @return [String] The enum value - def build_from_hash(value) - constantValues = ItemCondition.constants.select { |c| ItemCondition::const_get(c) == value } - raise "Invalid ENUM value #{value} for class #ItemCondition" if constantValues.empty? - value - end - end -end diff --git a/lib/product-pricing-api-model/models/item_offers_request_params.rb b/lib/product-pricing-api-model/models/item_offers_request_params.rb deleted file mode 100644 index 0b3fcac1d..000000000 --- a/lib/product-pricing-api-model/models/item_offers_request_params.rb +++ /dev/null @@ -1,248 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'date' - -module AmzSpApi::ProductPricingApiModel - class ItemOffersRequestParams - attr_accessor :marketplace_id - - attr_accessor :item_condition - - attr_accessor :customer_type - - # The Amazon Standard Identification Number (ASIN) of the item. This is the same Asin passed as a request parameter. - attr_accessor :asin - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'marketplace_id' => :'MarketplaceId', - :'item_condition' => :'ItemCondition', - :'customer_type' => :'CustomerType', - :'asin' => :'Asin' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'marketplace_id' => :'', - :'item_condition' => :'', - :'customer_type' => :'', - :'asin' => :'' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::ItemOffersRequestParams` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::ItemOffersRequestParams`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - # call parent's initialize - super(attributes) - - if attributes.key?(:'marketplace_id') - self.marketplace_id = attributes[:'marketplace_id'] - end - - if attributes.key?(:'item_condition') - self.item_condition = attributes[:'item_condition'] - end - - if attributes.key?(:'customer_type') - self.customer_type = attributes[:'customer_type'] - end - - if attributes.key?(:'asin') - self.asin = attributes[:'asin'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = super - if @marketplace_id.nil? - invalid_properties.push('invalid value for "marketplace_id", marketplace_id cannot be nil.') - end - - if @item_condition.nil? - invalid_properties.push('invalid value for "item_condition", item_condition cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @marketplace_id.nil? - return false if @item_condition.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - marketplace_id == o.marketplace_id && - item_condition == o.item_condition && - customer_type == o.customer_type && - asin == o.asin && super(o) - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [marketplace_id, item_condition, customer_type, asin].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - super(attributes) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = super - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end end -end diff --git a/lib/product-pricing-api-model/models/item_offers_response_list.rb b/lib/product-pricing-api-model/models/item_offers_response_list.rb deleted file mode 100644 index f77ec930d..000000000 --- a/lib/product-pricing-api-model/models/item_offers_response_list.rb +++ /dev/null @@ -1,202 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'date' - -module AmzSpApi::ProductPricingApiModel - # A list of getItemOffers batched responses. - class ItemOffersResponseList - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - } - end - - # Attribute type mapping. - def self.openapi_types - { - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::ItemOffersResponseList` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::ItemOffersResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - # call parent's initialize - super(attributes) - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = super - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && super(o) - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - super(attributes) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = super - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end end -end diff --git a/lib/product-pricing-api-model/models/listing_offers_request_list.rb b/lib/product-pricing-api-model/models/listing_offers_request_list.rb deleted file mode 100644 index b067f74bf..000000000 --- a/lib/product-pricing-api-model/models/listing_offers_request_list.rb +++ /dev/null @@ -1,202 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'date' - -module AmzSpApi::ProductPricingApiModel - # A list of getItemOffers batched requests to run. - class ListingOffersRequestList - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - } - end - - # Attribute type mapping. - def self.openapi_types - { - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::ListingOffersRequestList` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::ListingOffersRequestList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - # call parent's initialize - super(attributes) - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = super - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && super(o) - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - super(attributes) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = super - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end end -end diff --git a/lib/product-pricing-api-model/models/listing_offers_request_params.rb b/lib/product-pricing-api-model/models/listing_offers_request_params.rb deleted file mode 100644 index 47735b5e3..000000000 --- a/lib/product-pricing-api-model/models/listing_offers_request_params.rb +++ /dev/null @@ -1,253 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'date' - -module AmzSpApi::ProductPricingApiModel - class ListingOffersRequestParams - attr_accessor :marketplace_id - - attr_accessor :item_condition - - attr_accessor :customer_type - - # The seller stock keeping unit (SKU) of the item. This is the same SKU passed as a path parameter. - attr_accessor :seller_sku - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'marketplace_id' => :'MarketplaceId', - :'item_condition' => :'ItemCondition', - :'customer_type' => :'CustomerType', - :'seller_sku' => :'SellerSKU' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'marketplace_id' => :'', - :'item_condition' => :'', - :'customer_type' => :'', - :'seller_sku' => :'' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::ListingOffersRequestParams` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::ListingOffersRequestParams`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - # call parent's initialize - super(attributes) - - if attributes.key?(:'marketplace_id') - self.marketplace_id = attributes[:'marketplace_id'] - end - - if attributes.key?(:'item_condition') - self.item_condition = attributes[:'item_condition'] - end - - if attributes.key?(:'customer_type') - self.customer_type = attributes[:'customer_type'] - end - - if attributes.key?(:'seller_sku') - self.seller_sku = attributes[:'seller_sku'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = super - if @marketplace_id.nil? - invalid_properties.push('invalid value for "marketplace_id", marketplace_id cannot be nil.') - end - - if @item_condition.nil? - invalid_properties.push('invalid value for "item_condition", item_condition cannot be nil.') - end - - if @seller_sku.nil? - invalid_properties.push('invalid value for "seller_sku", seller_sku cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @marketplace_id.nil? - return false if @item_condition.nil? - return false if @seller_sku.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - marketplace_id == o.marketplace_id && - item_condition == o.item_condition && - customer_type == o.customer_type && - seller_sku == o.seller_sku && super(o) - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [marketplace_id, item_condition, customer_type, seller_sku].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - super(attributes) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = super - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end end -end diff --git a/lib/product-pricing-api-model/models/marketplace_id.rb b/lib/product-pricing-api-model/models/marketplace_id.rb index 994880474..b6f3be98b 100644 --- a/lib/product-pricing-api-model/models/marketplace_id.rb +++ b/lib/product-pricing-api-model/models/marketplace_id.rb @@ -1,18 +1,18 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::ProductPricingApiModel - # A marketplace identifier. Specifies the marketplace for which prices are returned. + # A marketplace identifier. Specifies the marketplace for which data is returned. class MarketplaceId # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map diff --git a/lib/product-pricing-api-model/models/money_type.rb b/lib/product-pricing-api-model/models/money_type.rb index e6a8a5467..3108487a3 100644 --- a/lib/product-pricing-api-model/models/money_type.rb +++ b/lib/product-pricing-api-model/models/money_type.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' @@ -22,8 +22,8 @@ class MoneyType # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'currency_code' => :'CurrencyCode', - :'amount' => :'Amount' + :'currency_code' => :'currencyCode', + :'amount' => :'amount' } end diff --git a/lib/product-pricing-api-model/models/offer_customer_type.rb b/lib/product-pricing-api-model/models/offer_customer_type.rb deleted file mode 100644 index 9a9984927..000000000 --- a/lib/product-pricing-api-model/models/offer_customer_type.rb +++ /dev/null @@ -1,28 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'date' - -module AmzSpApi::ProductPricingApiModel - class OfferCustomerType - B2_C = 'B2C'.freeze - B2_B = 'B2B'.freeze - - # Builds the enum from string - # @param [String] The enum value in the form of the string - # @return [String] The enum value - def build_from_hash(value) - constantValues = OfferCustomerType.constants.select { |c| OfferCustomerType::const_get(c) == value } - raise "Invalid ENUM value #{value} for class #OfferCustomerType" if constantValues.empty? - value - end - end -end diff --git a/lib/product-pricing-api-model/models/offer_detail.rb b/lib/product-pricing-api-model/models/offer_detail.rb deleted file mode 100644 index 41680f745..000000000 --- a/lib/product-pricing-api-model/models/offer_detail.rb +++ /dev/null @@ -1,375 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'date' - -module AmzSpApi::ProductPricingApiModel - class OfferDetail - # When true, this is the seller's offer. - attr_accessor :my_offer - - attr_accessor :offer_type - - # The subcondition of the item. Subcondition values: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, or Other. - attr_accessor :sub_condition - - # The seller identifier for the offer. - attr_accessor :seller_id - - # Information about the condition of the item. - attr_accessor :condition_notes - - attr_accessor :seller_feedback_rating - - attr_accessor :shipping_time - - attr_accessor :listing_price - - attr_accessor :quantity_discount_prices - - attr_accessor :points - - attr_accessor :shipping - - attr_accessor :ships_from - - # When true, the offer is fulfilled by Amazon. - attr_accessor :is_fulfilled_by_amazon - - attr_accessor :prime_information - - # When true, the offer is currently in the Buy Box. There can be up to two Buy Box winners at any time per ASIN, one that is eligible for Prime and one that is not eligible for Prime. - attr_accessor :is_buy_box_winner - - # When true, the seller of the item is eligible to win the Buy Box. - attr_accessor :is_featured_merchant - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'my_offer' => :'MyOffer', - :'offer_type' => :'offerType', - :'sub_condition' => :'SubCondition', - :'seller_id' => :'SellerId', - :'condition_notes' => :'ConditionNotes', - :'seller_feedback_rating' => :'SellerFeedbackRating', - :'shipping_time' => :'ShippingTime', - :'listing_price' => :'ListingPrice', - :'quantity_discount_prices' => :'quantityDiscountPrices', - :'points' => :'Points', - :'shipping' => :'Shipping', - :'ships_from' => :'ShipsFrom', - :'is_fulfilled_by_amazon' => :'IsFulfilledByAmazon', - :'prime_information' => :'PrimeInformation', - :'is_buy_box_winner' => :'IsBuyBoxWinner', - :'is_featured_merchant' => :'IsFeaturedMerchant' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'my_offer' => :'Object', - :'offer_type' => :'Object', - :'sub_condition' => :'Object', - :'seller_id' => :'Object', - :'condition_notes' => :'Object', - :'seller_feedback_rating' => :'Object', - :'shipping_time' => :'Object', - :'listing_price' => :'Object', - :'quantity_discount_prices' => :'Object', - :'points' => :'Object', - :'shipping' => :'Object', - :'ships_from' => :'Object', - :'is_fulfilled_by_amazon' => :'Object', - :'prime_information' => :'Object', - :'is_buy_box_winner' => :'Object', - :'is_featured_merchant' => :'Object' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::OfferDetail` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::OfferDetail`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'my_offer') - self.my_offer = attributes[:'my_offer'] - end - - if attributes.key?(:'offer_type') - self.offer_type = attributes[:'offer_type'] - end - - if attributes.key?(:'sub_condition') - self.sub_condition = attributes[:'sub_condition'] - end - - if attributes.key?(:'seller_id') - self.seller_id = attributes[:'seller_id'] - end - - if attributes.key?(:'condition_notes') - self.condition_notes = attributes[:'condition_notes'] - end - - if attributes.key?(:'seller_feedback_rating') - self.seller_feedback_rating = attributes[:'seller_feedback_rating'] - end - - if attributes.key?(:'shipping_time') - self.shipping_time = attributes[:'shipping_time'] - end - - if attributes.key?(:'listing_price') - self.listing_price = attributes[:'listing_price'] - end - - if attributes.key?(:'quantity_discount_prices') - if (value = attributes[:'quantity_discount_prices']).is_a?(Array) - self.quantity_discount_prices = value - end - end - - if attributes.key?(:'points') - self.points = attributes[:'points'] - end - - if attributes.key?(:'shipping') - self.shipping = attributes[:'shipping'] - end - - if attributes.key?(:'ships_from') - self.ships_from = attributes[:'ships_from'] - end - - if attributes.key?(:'is_fulfilled_by_amazon') - self.is_fulfilled_by_amazon = attributes[:'is_fulfilled_by_amazon'] - end - - if attributes.key?(:'prime_information') - self.prime_information = attributes[:'prime_information'] - end - - if attributes.key?(:'is_buy_box_winner') - self.is_buy_box_winner = attributes[:'is_buy_box_winner'] - end - - if attributes.key?(:'is_featured_merchant') - self.is_featured_merchant = attributes[:'is_featured_merchant'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @sub_condition.nil? - invalid_properties.push('invalid value for "sub_condition", sub_condition cannot be nil.') - end - - if @shipping_time.nil? - invalid_properties.push('invalid value for "shipping_time", shipping_time cannot be nil.') - end - - if @listing_price.nil? - invalid_properties.push('invalid value for "listing_price", listing_price cannot be nil.') - end - - if @shipping.nil? - invalid_properties.push('invalid value for "shipping", shipping cannot be nil.') - end - - if @is_fulfilled_by_amazon.nil? - invalid_properties.push('invalid value for "is_fulfilled_by_amazon", is_fulfilled_by_amazon cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @sub_condition.nil? - return false if @shipping_time.nil? - return false if @listing_price.nil? - return false if @shipping.nil? - return false if @is_fulfilled_by_amazon.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - my_offer == o.my_offer && - offer_type == o.offer_type && - sub_condition == o.sub_condition && - seller_id == o.seller_id && - condition_notes == o.condition_notes && - seller_feedback_rating == o.seller_feedback_rating && - shipping_time == o.shipping_time && - listing_price == o.listing_price && - quantity_discount_prices == o.quantity_discount_prices && - points == o.points && - shipping == o.shipping && - ships_from == o.ships_from && - is_fulfilled_by_amazon == o.is_fulfilled_by_amazon && - prime_information == o.prime_information && - is_buy_box_winner == o.is_buy_box_winner && - is_featured_merchant == o.is_featured_merchant - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [my_offer, offer_type, sub_condition, seller_id, condition_notes, seller_feedback_rating, shipping_time, listing_price, quantity_discount_prices, points, shipping, ships_from, is_fulfilled_by_amazon, prime_information, is_buy_box_winner, is_featured_merchant].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end end -end diff --git a/lib/product-pricing-api-model/models/seller_sku_identifier.rb b/lib/product-pricing-api-model/models/offer_identifier.rb similarity index 78% rename from lib/product-pricing-api-model/models/seller_sku_identifier.rb rename to lib/product-pricing-api-model/models/offer_identifier.rb index 3f7ce706c..0878078fb 100644 --- a/lib/product-pricing-api-model/models/seller_sku_identifier.rb +++ b/lib/product-pricing-api-model/models/offer_identifier.rb @@ -1,33 +1,39 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::ProductPricingApiModel - class SellerSKUIdentifier - # A marketplace identifier. + # Identifies an offer from a particular seller on an ASIN. + class OfferIdentifier attr_accessor :marketplace_id - # The seller identifier submitted for the operation. + # The seller identifier for the offer. attr_accessor :seller_id - # The seller stock keeping unit (SKU) of the item. - attr_accessor :seller_sku + # The seller stock keeping unit (SKU) of the item. This will only be present for the target offer, which belongs to the requesting seller. + attr_accessor :sku + + attr_accessor :asin + + attr_accessor :fulfillment_type # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'marketplace_id' => :'MarketplaceId', - :'seller_id' => :'SellerId', - :'seller_sku' => :'SellerSKU' + :'marketplace_id' => :'marketplaceId', + :'seller_id' => :'sellerId', + :'sku' => :'sku', + :'asin' => :'asin', + :'fulfillment_type' => :'fulfillmentType' } end @@ -36,7 +42,9 @@ def self.openapi_types { :'marketplace_id' => :'Object', :'seller_id' => :'Object', - :'seller_sku' => :'Object' + :'sku' => :'Object', + :'asin' => :'Object', + :'fulfillment_type' => :'Object' } end @@ -50,13 +58,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::SellerSKUIdentifier` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::OfferIdentifier` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::SellerSKUIdentifier`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::OfferIdentifier`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } @@ -69,8 +77,16 @@ def initialize(attributes = {}) self.seller_id = attributes[:'seller_id'] end - if attributes.key?(:'seller_sku') - self.seller_sku = attributes[:'seller_sku'] + if attributes.key?(:'sku') + self.sku = attributes[:'sku'] + end + + if attributes.key?(:'asin') + self.asin = attributes[:'asin'] + end + + if attributes.key?(:'fulfillment_type') + self.fulfillment_type = attributes[:'fulfillment_type'] end end @@ -82,12 +98,8 @@ def list_invalid_properties invalid_properties.push('invalid value for "marketplace_id", marketplace_id cannot be nil.') end - if @seller_id.nil? - invalid_properties.push('invalid value for "seller_id", seller_id cannot be nil.') - end - - if @seller_sku.nil? - invalid_properties.push('invalid value for "seller_sku", seller_sku cannot be nil.') + if @asin.nil? + invalid_properties.push('invalid value for "asin", asin cannot be nil.') end invalid_properties @@ -97,8 +109,7 @@ def list_invalid_properties # @return true if the model is valid def valid? return false if @marketplace_id.nil? - return false if @seller_id.nil? - return false if @seller_sku.nil? + return false if @asin.nil? true end @@ -109,7 +120,9 @@ def ==(o) self.class == o.class && marketplace_id == o.marketplace_id && seller_id == o.seller_id && - seller_sku == o.seller_sku + sku == o.sku && + asin == o.asin && + fulfillment_type == o.fulfillment_type end # @see the `==` method @@ -121,7 +134,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [marketplace_id, seller_id, seller_sku].hash + [marketplace_id, seller_id, sku, asin, fulfillment_type].hash end # Builds the object from hash diff --git a/lib/product-pricing-api-model/models/points.rb b/lib/product-pricing-api-model/models/points.rb index b1103d4ce..543cc6e96 100644 --- a/lib/product-pricing-api-model/models/points.rb +++ b/lib/product-pricing-api-model/models/points.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' @@ -21,8 +21,8 @@ class Points # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'points_number' => :'PointsNumber', - :'points_monetary_value' => :'PointsMonetaryValue' + :'points_number' => :'pointsNumber', + :'points_monetary_value' => :'pointsMonetaryValue' } end diff --git a/lib/product-pricing-api-model/models/price.rb b/lib/product-pricing-api-model/models/price.rb index 4810678fb..a2c9583aa 100644 --- a/lib/product-pricing-api-model/models/price.rb +++ b/lib/product-pricing-api-model/models/price.rb @@ -1,46 +1,39 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::ProductPricingApiModel class Price - # The status of the operation. - attr_accessor :status + attr_accessor :listing_price - # The seller stock keeping unit (SKU) of the item. - attr_accessor :seller_sku + attr_accessor :shipping_price - # The Amazon Standard Identification Number (ASIN) of the item. - attr_accessor :asin - - attr_accessor :product + attr_accessor :points # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'status' => :'status', - :'seller_sku' => :'SellerSKU', - :'asin' => :'ASIN', - :'product' => :'Product' + :'listing_price' => :'listingPrice', + :'shipping_price' => :'shippingPrice', + :'points' => :'points' } end # Attribute type mapping. def self.openapi_types { - :'status' => :'Object', - :'seller_sku' => :'Object', - :'asin' => :'Object', - :'product' => :'Object' + :'listing_price' => :'Object', + :'shipping_price' => :'Object', + :'points' => :'Object' } end @@ -65,20 +58,16 @@ def initialize(attributes = {}) h[k.to_sym] = v } - if attributes.key?(:'status') - self.status = attributes[:'status'] - end - - if attributes.key?(:'seller_sku') - self.seller_sku = attributes[:'seller_sku'] + if attributes.key?(:'listing_price') + self.listing_price = attributes[:'listing_price'] end - if attributes.key?(:'asin') - self.asin = attributes[:'asin'] + if attributes.key?(:'shipping_price') + self.shipping_price = attributes[:'shipping_price'] end - if attributes.key?(:'product') - self.product = attributes[:'product'] + if attributes.key?(:'points') + self.points = attributes[:'points'] end end @@ -86,8 +75,8 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @status.nil? - invalid_properties.push('invalid value for "status", status cannot be nil.') + if @listing_price.nil? + invalid_properties.push('invalid value for "listing_price", listing_price cannot be nil.') end invalid_properties @@ -96,7 +85,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @status.nil? + return false if @listing_price.nil? true end @@ -105,10 +94,9 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - status == o.status && - seller_sku == o.seller_sku && - asin == o.asin && - product == o.product + listing_price == o.listing_price && + shipping_price == o.shipping_price && + points == o.points end # @see the `==` method @@ -120,7 +108,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [status, seller_sku, asin, product].hash + [listing_price, shipping_price, points].hash end # Builds the object from hash diff --git a/lib/product-pricing-api-model/models/quantity_discount_type.rb b/lib/product-pricing-api-model/models/quantity_discount_type.rb deleted file mode 100644 index 516baaaab..000000000 --- a/lib/product-pricing-api-model/models/quantity_discount_type.rb +++ /dev/null @@ -1,27 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'date' - -module AmzSpApi::ProductPricingApiModel - class QuantityDiscountType - DISCOUNT = 'QUANTITY_DISCOUNT'.freeze - - # Builds the enum from string - # @param [String] The enum value in the form of the string - # @return [String] The enum value - def build_from_hash(value) - constantValues = QuantityDiscountType.constants.select { |c| QuantityDiscountType::const_get(c) == value } - raise "Invalid ENUM value #{value} for class #QuantityDiscountType" if constantValues.empty? - value - end - end -end diff --git a/lib/product-pricing-api-model/models/sales_rank_list.rb b/lib/product-pricing-api-model/models/sales_rank_list.rb deleted file mode 100644 index cf323845b..000000000 --- a/lib/product-pricing-api-model/models/sales_rank_list.rb +++ /dev/null @@ -1,202 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'date' - -module AmzSpApi::ProductPricingApiModel - # A list of sales rank information for the item, by category. - class SalesRankList - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - } - end - - # Attribute type mapping. - def self.openapi_types - { - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::SalesRankList` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::SalesRankList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - # call parent's initialize - super(attributes) - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = super - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && super(o) - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - super(attributes) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = super - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end end -end diff --git a/lib/product-pricing-api-model/models/seller_feedback_type.rb b/lib/product-pricing-api-model/models/seller_feedback_type.rb deleted file mode 100644 index 9074aff0b..000000000 --- a/lib/product-pricing-api-model/models/seller_feedback_type.rb +++ /dev/null @@ -1,223 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'date' - -module AmzSpApi::ProductPricingApiModel - # Information about the seller's feedback, including the percentage of positive feedback, and the total number of ratings received. - class SellerFeedbackType - # The percentage of positive feedback for the seller in the past 365 days. - attr_accessor :seller_positive_feedback_rating - - # The number of ratings received about the seller. - attr_accessor :feedback_count - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'seller_positive_feedback_rating' => :'SellerPositiveFeedbackRating', - :'feedback_count' => :'FeedbackCount' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'seller_positive_feedback_rating' => :'Object', - :'feedback_count' => :'Object' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::SellerFeedbackType` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::SellerFeedbackType`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'seller_positive_feedback_rating') - self.seller_positive_feedback_rating = attributes[:'seller_positive_feedback_rating'] - end - - if attributes.key?(:'feedback_count') - self.feedback_count = attributes[:'feedback_count'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @feedback_count.nil? - invalid_properties.push('invalid value for "feedback_count", feedback_count cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @feedback_count.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - seller_positive_feedback_rating == o.seller_positive_feedback_rating && - feedback_count == o.feedback_count - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [seller_positive_feedback_rating, feedback_count].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end end -end diff --git a/lib/product-pricing-api-model/models/http_uri.rb b/lib/product-pricing-api-model/models/sku.rb similarity index 91% rename from lib/product-pricing-api-model/models/http_uri.rb rename to lib/product-pricing-api-model/models/sku.rb index b4dd01af3..dc02883f0 100644 --- a/lib/product-pricing-api-model/models/http_uri.rb +++ b/lib/product-pricing-api-model/models/sku.rb @@ -1,19 +1,19 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::ProductPricingApiModel - # The URI associated with the individual APIs being called as part of the batch request. - class HttpUri + # The seller SKU of the item. + class Sku # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -36,13 +36,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::HttpUri` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::Sku` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::HttpUri`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::Sku`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/product-pricing-api-model/models/summary.rb b/lib/product-pricing-api-model/models/summary.rb deleted file mode 100644 index d933e1c26..000000000 --- a/lib/product-pricing-api-model/models/summary.rb +++ /dev/null @@ -1,295 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'date' - -module AmzSpApi::ProductPricingApiModel - # Contains price information about the product, including the LowestPrices and BuyBoxPrices, the ListPrice, the SuggestedLowerPricePlusShipping, and NumberOfOffers and NumberOfBuyBoxEligibleOffers. - class Summary - # The number of unique offers contained in NumberOfOffers. - attr_accessor :total_offer_count - - attr_accessor :number_of_offers - - attr_accessor :lowest_prices - - attr_accessor :buy_box_prices - - attr_accessor :list_price - - attr_accessor :competitive_price_threshold - - attr_accessor :suggested_lower_price_plus_shipping - - attr_accessor :sales_rankings - - attr_accessor :buy_box_eligible_offers - - # When the status is ActiveButTooSoonForProcessing, this is the time when the offers will be available for processing. - attr_accessor :offers_available_time - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'total_offer_count' => :'TotalOfferCount', - :'number_of_offers' => :'NumberOfOffers', - :'lowest_prices' => :'LowestPrices', - :'buy_box_prices' => :'BuyBoxPrices', - :'list_price' => :'ListPrice', - :'competitive_price_threshold' => :'CompetitivePriceThreshold', - :'suggested_lower_price_plus_shipping' => :'SuggestedLowerPricePlusShipping', - :'sales_rankings' => :'SalesRankings', - :'buy_box_eligible_offers' => :'BuyBoxEligibleOffers', - :'offers_available_time' => :'OffersAvailableTime' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'total_offer_count' => :'Object', - :'number_of_offers' => :'Object', - :'lowest_prices' => :'Object', - :'buy_box_prices' => :'Object', - :'list_price' => :'Object', - :'competitive_price_threshold' => :'Object', - :'suggested_lower_price_plus_shipping' => :'Object', - :'sales_rankings' => :'Object', - :'buy_box_eligible_offers' => :'Object', - :'offers_available_time' => :'Object' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::Summary` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::Summary`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'total_offer_count') - self.total_offer_count = attributes[:'total_offer_count'] - end - - if attributes.key?(:'number_of_offers') - self.number_of_offers = attributes[:'number_of_offers'] - end - - if attributes.key?(:'lowest_prices') - self.lowest_prices = attributes[:'lowest_prices'] - end - - if attributes.key?(:'buy_box_prices') - self.buy_box_prices = attributes[:'buy_box_prices'] - end - - if attributes.key?(:'list_price') - self.list_price = attributes[:'list_price'] - end - - if attributes.key?(:'competitive_price_threshold') - self.competitive_price_threshold = attributes[:'competitive_price_threshold'] - end - - if attributes.key?(:'suggested_lower_price_plus_shipping') - self.suggested_lower_price_plus_shipping = attributes[:'suggested_lower_price_plus_shipping'] - end - - if attributes.key?(:'sales_rankings') - self.sales_rankings = attributes[:'sales_rankings'] - end - - if attributes.key?(:'buy_box_eligible_offers') - self.buy_box_eligible_offers = attributes[:'buy_box_eligible_offers'] - end - - if attributes.key?(:'offers_available_time') - self.offers_available_time = attributes[:'offers_available_time'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @total_offer_count.nil? - invalid_properties.push('invalid value for "total_offer_count", total_offer_count cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @total_offer_count.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - total_offer_count == o.total_offer_count && - number_of_offers == o.number_of_offers && - lowest_prices == o.lowest_prices && - buy_box_prices == o.buy_box_prices && - list_price == o.list_price && - competitive_price_threshold == o.competitive_price_threshold && - suggested_lower_price_plus_shipping == o.suggested_lower_price_plus_shipping && - sales_rankings == o.sales_rankings && - buy_box_eligible_offers == o.buy_box_eligible_offers && - offers_available_time == o.offers_available_time - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [total_offer_count, number_of_offers, lowest_prices, buy_box_prices, list_price, competitive_price_threshold, suggested_lower_price_plus_shipping, sales_rankings, buy_box_eligible_offers, offers_available_time].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end end -end diff --git a/lib/product-pricing-api-model/spec/api/product_pricing_api_spec.rb b/lib/product-pricing-api-model/spec/api/product_pricing_api_spec.rb index 06cb285d0..a30e3ff58 100644 --- a/lib/product-pricing-api-model/spec/api/product_pricing_api_spec.rb +++ b/lib/product-pricing-api-model/spec/api/product_pricing_api_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -31,82 +31,12 @@ end end - # unit tests for get_competitive_pricing - # Returns competitive pricing information for a seller's offer listings based on seller SKU or ASIN. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). - # @param marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. - # @param item_type Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. Possible values: Asin, Sku. - # @param [Hash] opts the optional parameters - # @option opts [Array] :asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. - # @option opts [Array] :skus A list of up to twenty seller SKU values used to identify items in the given marketplace. - # @option opts [String] :customer_type Indicates whether to request pricing information from the point of view of Consumer or Business buyers. Default is Consumer. - # @return [GetPricingResponse] - describe 'get_competitive_pricing test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for get_item_offers - # Returns the lowest priced offers for a single item based on ASIN. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). - # @param marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. - # @param item_condition Filters the offer listings to be considered based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. - # @param asin The Amazon Standard Identification Number (ASIN) of the item. - # @param [Hash] opts the optional parameters - # @option opts [String] :customer_type Indicates whether to request Consumer or Business offers. Default is Consumer. - # @return [GetOffersResponse] - describe 'get_item_offers test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for get_item_offers_batch - # Returns the lowest priced offers for a batch of items based on ASIN. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # unit tests for get_featured_offer_expected_price_batch + # Returns the set of responses that correspond to the batched list of up to 40 requests defined in the request body. The response for each successful (HTTP status code 200) request in the set includes the computed listing price at or below which a seller can expect to become the featured offer (before applicable promotions). This is called the featured offer expected price (FOEP). Featured offer is not guaranteed, because competing offers may change, and different offers may be featured based on other factors, including fulfillment capabilities to a specific customer. The response to an unsuccessful request includes the available error text. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.033 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters - # @return [GetItemOffersBatchResponse] - describe 'get_item_offers_batch test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for get_listing_offers - # Returns the lowest priced offers for a single SKU listing. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). - # @param marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. - # @param item_condition Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. - # @param seller_sku Identifies an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. - # @param [Hash] opts the optional parameters - # @option opts [String] :customer_type Indicates whether to request Consumer or Business offers. Default is Consumer. - # @return [GetOffersResponse] - describe 'get_listing_offers test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for get_listing_offers_batch - # Returns the lowest priced offers for a batch of listings by SKU. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). - # @param body - # @param [Hash] opts the optional parameters - # @return [GetListingOffersBatchResponse] - describe 'get_listing_offers_batch test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for get_pricing - # Returns pricing information for a seller's offer listings based on seller SKU or ASIN. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). - # @param marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. - # @param item_type Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. - # @param [Hash] opts the optional parameters - # @option opts [Array] :asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. - # @option opts [Array] :skus A list of up to twenty seller SKU values used to identify items in the given marketplace. - # @option opts [String] :item_condition Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. - # @option opts [String] :offer_type Indicates whether to request pricing information for the seller's B2C or B2B offers. Default is B2C. - # @return [GetPricingResponse] - describe 'get_pricing test' do + # @return [GetFeaturedOfferExpectedPriceBatchResponse] + describe 'get_featured_offer_expected_price_batch test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/lib/product-pricing-api-model/spec/api_client_spec.rb b/lib/product-pricing-api-model/spec/api_client_spec.rb index 8956f7a0a..1a8c4e76c 100644 --- a/lib/product-pricing-api-model/spec/api_client_spec.rb +++ b/lib/product-pricing-api-model/spec/api_client_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-pricing-api-model/spec/configuration_spec.rb b/lib/product-pricing-api-model/spec/configuration_spec.rb index 4f05a6641..7023a0601 100644 --- a/lib/product-pricing-api-model/spec/configuration_spec.rb +++ b/lib/product-pricing-api-model/spec/configuration_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-pricing-api-model/spec/models/asin_spec.rb b/lib/product-pricing-api-model/spec/models/asin_spec.rb index d6bda9b92..33569145f 100644 --- a/lib/product-pricing-api-model/spec/models/asin_spec.rb +++ b/lib/product-pricing-api-model/spec/models/asin_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-pricing-api-model/spec/models/attribute_set_list_spec.rb b/lib/product-pricing-api-model/spec/models/attribute_set_list_spec.rb deleted file mode 100644 index 5ca1e2fd8..000000000 --- a/lib/product-pricing-api-model/spec/models/attribute_set_list_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::AttributeSetList -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'AttributeSetList' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::AttributeSetList.new - end - - after do - # run after each test - end - - describe 'test an instance of AttributeSetList' do - it 'should create an instance of AttributeSetList' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::AttributeSetList) - end - end -end diff --git a/lib/product-pricing-api-model/spec/models/batch_request_spec.rb b/lib/product-pricing-api-model/spec/models/batch_request_spec.rb index 7e99551e3..9c1a01e77 100644 --- a/lib/product-pricing-api-model/spec/models/batch_request_spec.rb +++ b/lib/product-pricing-api-model/spec/models/batch_request_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -43,6 +43,12 @@ end end + describe 'test attribute "body"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "headers"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/lib/product-pricing-api-model/spec/models/batch_offers_response_spec.rb b/lib/product-pricing-api-model/spec/models/batch_response_spec.rb similarity index 58% rename from lib/product-pricing-api-model/spec/models/batch_offers_response_spec.rb rename to lib/product-pricing-api-model/spec/models/batch_response_spec.rb index df6d1ab0b..75558806e 100644 --- a/lib/product-pricing-api-model/spec/models/batch_offers_response_spec.rb +++ b/lib/product-pricing-api-model/spec/models/batch_response_spec.rb @@ -1,34 +1,34 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' require 'json' require 'date' -# Unit tests for AmzSpApi::ProductPricingApiModel::BatchOffersResponse +# Unit tests for AmzSpApi::ProductPricingApiModel::BatchResponse # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'BatchOffersResponse' do +describe 'BatchResponse' do before do # run before each test - @instance = AmzSpApi::ProductPricingApiModel::BatchOffersResponse.new + @instance = AmzSpApi::ProductPricingApiModel::BatchResponse.new end after do # run after each test end - describe 'test an instance of BatchOffersResponse' do - it 'should create an instance of BatchOffersResponse' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::BatchOffersResponse) + describe 'test an instance of BatchResponse' do + it 'should create an instance of BatchResponse' do + expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::BatchResponse) end end describe 'test attribute "headers"' do @@ -43,10 +43,4 @@ end end - describe 'test attribute "body"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - end diff --git a/lib/product-pricing-api-model/spec/models/buy_box_eligible_offers_spec.rb b/lib/product-pricing-api-model/spec/models/buy_box_eligible_offers_spec.rb deleted file mode 100644 index 17c08ea7a..000000000 --- a/lib/product-pricing-api-model/spec/models/buy_box_eligible_offers_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::BuyBoxEligibleOffers -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'BuyBoxEligibleOffers' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::BuyBoxEligibleOffers.new - end - - after do - # run after each test - end - - describe 'test an instance of BuyBoxEligibleOffers' do - it 'should create an instance of BuyBoxEligibleOffers' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::BuyBoxEligibleOffers) - end - end -end diff --git a/lib/product-pricing-api-model/spec/models/buy_box_prices_spec.rb b/lib/product-pricing-api-model/spec/models/buy_box_prices_spec.rb deleted file mode 100644 index f43514e01..000000000 --- a/lib/product-pricing-api-model/spec/models/buy_box_prices_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::BuyBoxPrices -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'BuyBoxPrices' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::BuyBoxPrices.new - end - - after do - # run after each test - end - - describe 'test an instance of BuyBoxPrices' do - it 'should create an instance of BuyBoxPrices' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::BuyBoxPrices) - end - end -end diff --git a/lib/product-pricing-api-model/spec/models/competitive_pricing_type_spec.rb b/lib/product-pricing-api-model/spec/models/competitive_pricing_type_spec.rb deleted file mode 100644 index 624ca1b88..000000000 --- a/lib/product-pricing-api-model/spec/models/competitive_pricing_type_spec.rb +++ /dev/null @@ -1,52 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::CompetitivePricingType -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'CompetitivePricingType' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::CompetitivePricingType.new - end - - after do - # run after each test - end - - describe 'test an instance of CompetitivePricingType' do - it 'should create an instance of CompetitivePricingType' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::CompetitivePricingType) - end - end - describe 'test attribute "competitive_prices"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "number_of_offer_listings"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "trade_in_value"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/lib/product-pricing-api-model/spec/models/condition_spec.rb b/lib/product-pricing-api-model/spec/models/condition_spec.rb new file mode 100644 index 000000000..dffb00d60 --- /dev/null +++ b/lib/product-pricing-api-model/spec/models/condition_spec.rb @@ -0,0 +1,34 @@ +=begin +#Selling Partner API for Pricing + +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). + +OpenAPI spec version: 2022-05-01 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::ProductPricingApiModel::Condition +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'Condition' do + before do + # run before each test + @instance = AmzSpApi::ProductPricingApiModel::Condition.new + end + + after do + # run after each test + end + + describe 'test an instance of Condition' do + it 'should create an instance of Condition' do + expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::Condition) + end + end +end diff --git a/lib/product-pricing-api-model/spec/models/condition_type_spec.rb b/lib/product-pricing-api-model/spec/models/condition_type_spec.rb deleted file mode 100644 index b2a73b2c6..000000000 --- a/lib/product-pricing-api-model/spec/models/condition_type_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::ConditionType -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'ConditionType' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::ConditionType.new - end - - after do - # run after each test - end - - describe 'test an instance of ConditionType' do - it 'should create an instance of ConditionType' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::ConditionType) - end - end -end diff --git a/lib/product-pricing-api-model/spec/models/customer_type_spec.rb b/lib/product-pricing-api-model/spec/models/customer_type_spec.rb deleted file mode 100644 index 0f6dbfc4a..000000000 --- a/lib/product-pricing-api-model/spec/models/customer_type_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::CustomerType -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'CustomerType' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::CustomerType.new - end - - after do - # run after each test - end - - describe 'test an instance of CustomerType' do - it 'should create an instance of CustomerType' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::CustomerType) - end - end -end diff --git a/lib/product-pricing-api-model/spec/models/error_list_spec.rb b/lib/product-pricing-api-model/spec/models/error_list_spec.rb index fee50ce4c..fd188bf6a 100644 --- a/lib/product-pricing-api-model/spec/models/error_list_spec.rb +++ b/lib/product-pricing-api-model/spec/models/error_list_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-pricing-api-model/spec/models/error_spec.rb b/lib/product-pricing-api-model/spec/models/error_spec.rb index 1f7d7d4a2..401b63fcb 100644 --- a/lib/product-pricing-api-model/spec/models/error_spec.rb +++ b/lib/product-pricing-api-model/spec/models/error_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-pricing-api-model/spec/models/errors_spec.rb b/lib/product-pricing-api-model/spec/models/errors_spec.rb index f83a597fc..13df3fe21 100644 --- a/lib/product-pricing-api-model/spec/models/errors_spec.rb +++ b/lib/product-pricing-api-model/spec/models/errors_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-pricing-api-model/spec/models/featured_offer_expected_price_request_list_spec.rb b/lib/product-pricing-api-model/spec/models/featured_offer_expected_price_request_list_spec.rb new file mode 100644 index 000000000..417213fe1 --- /dev/null +++ b/lib/product-pricing-api-model/spec/models/featured_offer_expected_price_request_list_spec.rb @@ -0,0 +1,34 @@ +=begin +#Selling Partner API for Pricing + +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). + +OpenAPI spec version: 2022-05-01 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceRequestList +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'FeaturedOfferExpectedPriceRequestList' do + before do + # run before each test + @instance = AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceRequestList.new + end + + after do + # run after each test + end + + describe 'test an instance of FeaturedOfferExpectedPriceRequestList' do + it 'should create an instance of FeaturedOfferExpectedPriceRequestList' do + expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceRequestList) + end + end +end diff --git a/lib/product-pricing-api-model/spec/models/asin_identifier_spec.rb b/lib/product-pricing-api-model/spec/models/featured_offer_expected_price_request_params_spec.rb similarity index 52% rename from lib/product-pricing-api-model/spec/models/asin_identifier_spec.rb rename to lib/product-pricing-api-model/spec/models/featured_offer_expected_price_request_params_spec.rb index 3b68ad55b..25ba31660 100644 --- a/lib/product-pricing-api-model/spec/models/asin_identifier_spec.rb +++ b/lib/product-pricing-api-model/spec/models/featured_offer_expected_price_request_params_spec.rb @@ -1,34 +1,34 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' require 'json' require 'date' -# Unit tests for AmzSpApi::ProductPricingApiModel::ASINIdentifier +# Unit tests for AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceRequestParams # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'ASINIdentifier' do +describe 'FeaturedOfferExpectedPriceRequestParams' do before do # run before each test - @instance = AmzSpApi::ProductPricingApiModel::ASINIdentifier.new + @instance = AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceRequestParams.new end after do # run after each test end - describe 'test an instance of ASINIdentifier' do - it 'should create an instance of ASINIdentifier' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::ASINIdentifier) + describe 'test an instance of FeaturedOfferExpectedPriceRequestParams' do + it 'should create an instance of FeaturedOfferExpectedPriceRequestParams' do + expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceRequestParams) end end describe 'test attribute "marketplace_id"' do @@ -37,7 +37,7 @@ end end - describe 'test attribute "asin"' do + describe 'test attribute "sku"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/lib/product-pricing-api-model/spec/models/item_offers_request_spec.rb b/lib/product-pricing-api-model/spec/models/featured_offer_expected_price_request_spec.rb similarity index 66% rename from lib/product-pricing-api-model/spec/models/item_offers_request_spec.rb rename to lib/product-pricing-api-model/spec/models/featured_offer_expected_price_request_spec.rb index 355f6c05c..f128200bc 100644 --- a/lib/product-pricing-api-model/spec/models/item_offers_request_spec.rb +++ b/lib/product-pricing-api-model/spec/models/featured_offer_expected_price_request_spec.rb @@ -1,34 +1,34 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' require 'json' require 'date' -# Unit tests for AmzSpApi::ProductPricingApiModel::ItemOffersRequest +# Unit tests for AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceRequest # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'ItemOffersRequest' do +describe 'FeaturedOfferExpectedPriceRequest' do before do # run before each test - @instance = AmzSpApi::ProductPricingApiModel::ItemOffersRequest.new + @instance = AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceRequest.new end after do # run after each test end - describe 'test an instance of ItemOffersRequest' do - it 'should create an instance of ItemOffersRequest' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::ItemOffersRequest) + describe 'test an instance of FeaturedOfferExpectedPriceRequest' do + it 'should create an instance of FeaturedOfferExpectedPriceRequest' do + expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceRequest) end end describe 'test attribute "marketplace_id"' do @@ -37,25 +37,25 @@ end end - describe 'test attribute "item_condition"' do + describe 'test attribute "sku"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "customer_type"' do + describe 'test attribute "uri"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "uri"' do + describe 'test attribute "method"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "method"' do + describe 'test attribute "body"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/lib/product-pricing-api-model/spec/models/batch_offers_request_params_spec.rb b/lib/product-pricing-api-model/spec/models/featured_offer_expected_price_response_body_spec.rb similarity index 51% rename from lib/product-pricing-api-model/spec/models/batch_offers_request_params_spec.rb rename to lib/product-pricing-api-model/spec/models/featured_offer_expected_price_response_body_spec.rb index 24afde366..8e520d553 100644 --- a/lib/product-pricing-api-model/spec/models/batch_offers_request_params_spec.rb +++ b/lib/product-pricing-api-model/spec/models/featured_offer_expected_price_response_body_spec.rb @@ -1,49 +1,49 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' require 'json' require 'date' -# Unit tests for AmzSpApi::ProductPricingApiModel::BatchOffersRequestParams +# Unit tests for AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResponseBody # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'BatchOffersRequestParams' do +describe 'FeaturedOfferExpectedPriceResponseBody' do before do # run before each test - @instance = AmzSpApi::ProductPricingApiModel::BatchOffersRequestParams.new + @instance = AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResponseBody.new end after do # run after each test end - describe 'test an instance of BatchOffersRequestParams' do - it 'should create an instance of BatchOffersRequestParams' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::BatchOffersRequestParams) + describe 'test an instance of FeaturedOfferExpectedPriceResponseBody' do + it 'should create an instance of FeaturedOfferExpectedPriceResponseBody' do + expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResponseBody) end end - describe 'test attribute "marketplace_id"' do + describe 'test attribute "offer_identifier"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "item_condition"' do + describe 'test attribute "featured_offer_expected_price_results"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "customer_type"' do + describe 'test attribute "errors"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/lib/product-pricing-api-model/spec/models/featured_offer_expected_price_response_list_spec.rb b/lib/product-pricing-api-model/spec/models/featured_offer_expected_price_response_list_spec.rb new file mode 100644 index 000000000..293f0ae7d --- /dev/null +++ b/lib/product-pricing-api-model/spec/models/featured_offer_expected_price_response_list_spec.rb @@ -0,0 +1,34 @@ +=begin +#Selling Partner API for Pricing + +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). + +OpenAPI spec version: 2022-05-01 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResponseList +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'FeaturedOfferExpectedPriceResponseList' do + before do + # run before each test + @instance = AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResponseList.new + end + + after do + # run after each test + end + + describe 'test an instance of FeaturedOfferExpectedPriceResponseList' do + it 'should create an instance of FeaturedOfferExpectedPriceResponseList' do + expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResponseList) + end + end +end diff --git a/lib/product-pricing-api-model/spec/models/item_offers_response_spec.rb b/lib/product-pricing-api-model/spec/models/featured_offer_expected_price_response_spec.rb similarity index 64% rename from lib/product-pricing-api-model/spec/models/item_offers_response_spec.rb rename to lib/product-pricing-api-model/spec/models/featured_offer_expected_price_response_spec.rb index 352020e37..393cce6cd 100644 --- a/lib/product-pricing-api-model/spec/models/item_offers_response_spec.rb +++ b/lib/product-pricing-api-model/spec/models/featured_offer_expected_price_response_spec.rb @@ -1,34 +1,34 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' require 'json' require 'date' -# Unit tests for AmzSpApi::ProductPricingApiModel::ItemOffersResponse +# Unit tests for AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResponse # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'ItemOffersResponse' do +describe 'FeaturedOfferExpectedPriceResponse' do before do # run before each test - @instance = AmzSpApi::ProductPricingApiModel::ItemOffersResponse.new + @instance = AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResponse.new end after do # run after each test end - describe 'test an instance of ItemOffersResponse' do - it 'should create an instance of ItemOffersResponse' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::ItemOffersResponse) + describe 'test an instance of FeaturedOfferExpectedPriceResponse' do + it 'should create an instance of FeaturedOfferExpectedPriceResponse' do + expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResponse) end end describe 'test attribute "headers"' do @@ -43,13 +43,13 @@ end end - describe 'test attribute "body"' do + describe 'test attribute "request"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "request"' do + describe 'test attribute "body"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/lib/product-pricing-api-model/spec/models/featured_offer_expected_price_result_list_spec.rb b/lib/product-pricing-api-model/spec/models/featured_offer_expected_price_result_list_spec.rb new file mode 100644 index 000000000..f66793643 --- /dev/null +++ b/lib/product-pricing-api-model/spec/models/featured_offer_expected_price_result_list_spec.rb @@ -0,0 +1,34 @@ +=begin +#Selling Partner API for Pricing + +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). + +OpenAPI spec version: 2022-05-01 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResultList +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'FeaturedOfferExpectedPriceResultList' do + before do + # run before each test + @instance = AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResultList.new + end + + after do + # run after each test + end + + describe 'test an instance of FeaturedOfferExpectedPriceResultList' do + it 'should create an instance of FeaturedOfferExpectedPriceResultList' do + expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResultList) + end + end +end diff --git a/lib/product-pricing-api-model/spec/models/item_identifier_spec.rb b/lib/product-pricing-api-model/spec/models/featured_offer_expected_price_result_spec.rb similarity index 54% rename from lib/product-pricing-api-model/spec/models/item_identifier_spec.rb rename to lib/product-pricing-api-model/spec/models/featured_offer_expected_price_result_spec.rb index 1f36eaaa2..3635e5f79 100644 --- a/lib/product-pricing-api-model/spec/models/item_identifier_spec.rb +++ b/lib/product-pricing-api-model/spec/models/featured_offer_expected_price_result_spec.rb @@ -1,55 +1,55 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' require 'json' require 'date' -# Unit tests for AmzSpApi::ProductPricingApiModel::ItemIdentifier +# Unit tests for AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResult # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'ItemIdentifier' do +describe 'FeaturedOfferExpectedPriceResult' do before do # run before each test - @instance = AmzSpApi::ProductPricingApiModel::ItemIdentifier.new + @instance = AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResult.new end after do # run after each test end - describe 'test an instance of ItemIdentifier' do - it 'should create an instance of ItemIdentifier' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::ItemIdentifier) + describe 'test an instance of FeaturedOfferExpectedPriceResult' do + it 'should create an instance of FeaturedOfferExpectedPriceResult' do + expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPriceResult) end end - describe 'test attribute "marketplace_id"' do + describe 'test attribute "featured_offer_expected_price"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "asin"' do + describe 'test attribute "result_status"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "seller_sku"' do + describe 'test attribute "competing_featured_offer"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "item_condition"' do + describe 'test attribute "current_featured_offer"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/lib/product-pricing-api-model/spec/models/quantity_discount_price_type_spec.rb b/lib/product-pricing-api-model/spec/models/featured_offer_expected_price_spec.rb similarity index 53% rename from lib/product-pricing-api-model/spec/models/quantity_discount_price_type_spec.rb rename to lib/product-pricing-api-model/spec/models/featured_offer_expected_price_spec.rb index 99892d6bc..082bc5368 100644 --- a/lib/product-pricing-api-model/spec/models/quantity_discount_price_type_spec.rb +++ b/lib/product-pricing-api-model/spec/models/featured_offer_expected_price_spec.rb @@ -1,49 +1,43 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' require 'json' require 'date' -# Unit tests for AmzSpApi::ProductPricingApiModel::QuantityDiscountPriceType +# Unit tests for AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPrice # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'QuantityDiscountPriceType' do +describe 'FeaturedOfferExpectedPrice' do before do # run before each test - @instance = AmzSpApi::ProductPricingApiModel::QuantityDiscountPriceType.new + @instance = AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPrice.new end after do # run after each test end - describe 'test an instance of QuantityDiscountPriceType' do - it 'should create an instance of QuantityDiscountPriceType' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::QuantityDiscountPriceType) + describe 'test an instance of FeaturedOfferExpectedPrice' do + it 'should create an instance of FeaturedOfferExpectedPrice' do + expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::FeaturedOfferExpectedPrice) end end - describe 'test attribute "quantity_tier"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "quantity_discount_type"' do + describe 'test attribute "listing_price"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "listing_price"' do + describe 'test attribute "points"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/lib/product-pricing-api-model/spec/models/offer_count_type_spec.rb b/lib/product-pricing-api-model/spec/models/featured_offer_spec.rb similarity index 60% rename from lib/product-pricing-api-model/spec/models/offer_count_type_spec.rb rename to lib/product-pricing-api-model/spec/models/featured_offer_spec.rb index 4d16a3f46..d612db695 100644 --- a/lib/product-pricing-api-model/spec/models/offer_count_type_spec.rb +++ b/lib/product-pricing-api-model/spec/models/featured_offer_spec.rb @@ -1,49 +1,49 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' require 'json' require 'date' -# Unit tests for AmzSpApi::ProductPricingApiModel::OfferCountType +# Unit tests for AmzSpApi::ProductPricingApiModel::FeaturedOffer # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'OfferCountType' do +describe 'FeaturedOffer' do before do # run before each test - @instance = AmzSpApi::ProductPricingApiModel::OfferCountType.new + @instance = AmzSpApi::ProductPricingApiModel::FeaturedOffer.new end after do # run after each test end - describe 'test an instance of OfferCountType' do - it 'should create an instance of OfferCountType' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::OfferCountType) + describe 'test an instance of FeaturedOffer' do + it 'should create an instance of FeaturedOffer' do + expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::FeaturedOffer) end end - describe 'test attribute "condition"' do + describe 'test attribute "offer_identifier"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "fulfillment_channel"' do + describe 'test attribute "condition"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "offer_count"' do + describe 'test attribute "price"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/lib/product-pricing-api-model/spec/models/fulfillment_channel_type_spec.rb b/lib/product-pricing-api-model/spec/models/fulfillment_channel_type_spec.rb deleted file mode 100644 index 95ba93c9a..000000000 --- a/lib/product-pricing-api-model/spec/models/fulfillment_channel_type_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::FulfillmentChannelType -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'FulfillmentChannelType' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::FulfillmentChannelType.new - end - - after do - # run after each test - end - - describe 'test an instance of FulfillmentChannelType' do - it 'should create an instance of FulfillmentChannelType' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::FulfillmentChannelType) - end - end -end diff --git a/lib/product-pricing-api-model/spec/models/fulfillment_type_spec.rb b/lib/product-pricing-api-model/spec/models/fulfillment_type_spec.rb new file mode 100644 index 000000000..1457ece55 --- /dev/null +++ b/lib/product-pricing-api-model/spec/models/fulfillment_type_spec.rb @@ -0,0 +1,34 @@ +=begin +#Selling Partner API for Pricing + +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). + +OpenAPI spec version: 2022-05-01 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::ProductPricingApiModel::FulfillmentType +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'FulfillmentType' do + before do + # run before each test + @instance = AmzSpApi::ProductPricingApiModel::FulfillmentType.new + end + + after do + # run after each test + end + + describe 'test an instance of FulfillmentType' do + it 'should create an instance of FulfillmentType' do + expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::FulfillmentType) + end + end +end diff --git a/lib/product-pricing-api-model/spec/models/get_featured_offer_expected_price_batch_request_spec.rb b/lib/product-pricing-api-model/spec/models/get_featured_offer_expected_price_batch_request_spec.rb new file mode 100644 index 000000000..fab2f2b7d --- /dev/null +++ b/lib/product-pricing-api-model/spec/models/get_featured_offer_expected_price_batch_request_spec.rb @@ -0,0 +1,40 @@ +=begin +#Selling Partner API for Pricing + +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). + +OpenAPI spec version: 2022-05-01 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::ProductPricingApiModel::GetFeaturedOfferExpectedPriceBatchRequest +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'GetFeaturedOfferExpectedPriceBatchRequest' do + before do + # run before each test + @instance = AmzSpApi::ProductPricingApiModel::GetFeaturedOfferExpectedPriceBatchRequest.new + end + + after do + # run after each test + end + + describe 'test an instance of GetFeaturedOfferExpectedPriceBatchRequest' do + it 'should create an instance of GetFeaturedOfferExpectedPriceBatchRequest' do + expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::GetFeaturedOfferExpectedPriceBatchRequest) + end + end + describe 'test attribute "requests"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/product-pricing-api-model/spec/models/get_featured_offer_expected_price_batch_response_spec.rb b/lib/product-pricing-api-model/spec/models/get_featured_offer_expected_price_batch_response_spec.rb new file mode 100644 index 000000000..30c0c51c5 --- /dev/null +++ b/lib/product-pricing-api-model/spec/models/get_featured_offer_expected_price_batch_response_spec.rb @@ -0,0 +1,40 @@ +=begin +#Selling Partner API for Pricing + +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). + +OpenAPI spec version: 2022-05-01 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::ProductPricingApiModel::GetFeaturedOfferExpectedPriceBatchResponse +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'GetFeaturedOfferExpectedPriceBatchResponse' do + before do + # run before each test + @instance = AmzSpApi::ProductPricingApiModel::GetFeaturedOfferExpectedPriceBatchResponse.new + end + + after do + # run after each test + end + + describe 'test an instance of GetFeaturedOfferExpectedPriceBatchResponse' do + it 'should create an instance of GetFeaturedOfferExpectedPriceBatchResponse' do + expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::GetFeaturedOfferExpectedPriceBatchResponse) + end + end + describe 'test attribute "responses"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/product-pricing-api-model/spec/models/get_item_offers_batch_request_spec.rb b/lib/product-pricing-api-model/spec/models/get_item_offers_batch_request_spec.rb deleted file mode 100644 index 7422776ae..000000000 --- a/lib/product-pricing-api-model/spec/models/get_item_offers_batch_request_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::GetItemOffersBatchRequest -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'GetItemOffersBatchRequest' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::GetItemOffersBatchRequest.new - end - - after do - # run after each test - end - - describe 'test an instance of GetItemOffersBatchRequest' do - it 'should create an instance of GetItemOffersBatchRequest' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::GetItemOffersBatchRequest) - end - end - describe 'test attribute "requests"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/lib/product-pricing-api-model/spec/models/get_item_offers_batch_response_spec.rb b/lib/product-pricing-api-model/spec/models/get_item_offers_batch_response_spec.rb deleted file mode 100644 index b63fdfd90..000000000 --- a/lib/product-pricing-api-model/spec/models/get_item_offers_batch_response_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::GetItemOffersBatchResponse -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'GetItemOffersBatchResponse' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::GetItemOffersBatchResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of GetItemOffersBatchResponse' do - it 'should create an instance of GetItemOffersBatchResponse' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::GetItemOffersBatchResponse) - end - end - describe 'test attribute "responses"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/lib/product-pricing-api-model/spec/models/get_listing_offers_batch_request_spec.rb b/lib/product-pricing-api-model/spec/models/get_listing_offers_batch_request_spec.rb deleted file mode 100644 index 957d70d79..000000000 --- a/lib/product-pricing-api-model/spec/models/get_listing_offers_batch_request_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::GetListingOffersBatchRequest -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'GetListingOffersBatchRequest' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::GetListingOffersBatchRequest.new - end - - after do - # run after each test - end - - describe 'test an instance of GetListingOffersBatchRequest' do - it 'should create an instance of GetListingOffersBatchRequest' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::GetListingOffersBatchRequest) - end - end - describe 'test attribute "requests"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/lib/product-pricing-api-model/spec/models/get_listing_offers_batch_response_spec.rb b/lib/product-pricing-api-model/spec/models/get_listing_offers_batch_response_spec.rb deleted file mode 100644 index 75dbee60d..000000000 --- a/lib/product-pricing-api-model/spec/models/get_listing_offers_batch_response_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::GetListingOffersBatchResponse -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'GetListingOffersBatchResponse' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::GetListingOffersBatchResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of GetListingOffersBatchResponse' do - it 'should create an instance of GetListingOffersBatchResponse' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::GetListingOffersBatchResponse) - end - end - describe 'test attribute "responses"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/lib/product-pricing-api-model/spec/models/http_body_spec.rb b/lib/product-pricing-api-model/spec/models/http_body_spec.rb new file mode 100644 index 000000000..6008ea7bd --- /dev/null +++ b/lib/product-pricing-api-model/spec/models/http_body_spec.rb @@ -0,0 +1,34 @@ +=begin +#Selling Partner API for Pricing + +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). + +OpenAPI spec version: 2022-05-01 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::ProductPricingApiModel::HttpBody +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'HttpBody' do + before do + # run before each test + @instance = AmzSpApi::ProductPricingApiModel::HttpBody.new + end + + after do + # run after each test + end + + describe 'test an instance of HttpBody' do + it 'should create an instance of HttpBody' do + expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::HttpBody) + end + end +end diff --git a/lib/product-pricing-api-model/spec/models/http_headers_spec.rb b/lib/product-pricing-api-model/spec/models/http_headers_spec.rb new file mode 100644 index 000000000..81b22aa24 --- /dev/null +++ b/lib/product-pricing-api-model/spec/models/http_headers_spec.rb @@ -0,0 +1,34 @@ +=begin +#Selling Partner API for Pricing + +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). + +OpenAPI spec version: 2022-05-01 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::ProductPricingApiModel::HttpHeaders +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'HttpHeaders' do + before do + # run before each test + @instance = AmzSpApi::ProductPricingApiModel::HttpHeaders.new + end + + after do + # run after each test + end + + describe 'test an instance of HttpHeaders' do + it 'should create an instance of HttpHeaders' do + expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::HttpHeaders) + end + end +end diff --git a/lib/product-pricing-api-model/spec/models/http_method_spec.rb b/lib/product-pricing-api-model/spec/models/http_method_spec.rb index 34e01ea46..39e0a047c 100644 --- a/lib/product-pricing-api-model/spec/models/http_method_spec.rb +++ b/lib/product-pricing-api-model/spec/models/http_method_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-pricing-api-model/spec/models/http_request_headers_spec.rb b/lib/product-pricing-api-model/spec/models/http_request_headers_spec.rb deleted file mode 100644 index d1d9e357d..000000000 --- a/lib/product-pricing-api-model/spec/models/http_request_headers_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::HttpRequestHeaders -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'HttpRequestHeaders' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::HttpRequestHeaders.new - end - - after do - # run after each test - end - - describe 'test an instance of HttpRequestHeaders' do - it 'should create an instance of HttpRequestHeaders' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::HttpRequestHeaders) - end - end -end diff --git a/lib/product-pricing-api-model/spec/models/http_response_headers_spec.rb b/lib/product-pricing-api-model/spec/models/http_response_headers_spec.rb deleted file mode 100644 index 2ec4975a5..000000000 --- a/lib/product-pricing-api-model/spec/models/http_response_headers_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::HttpResponseHeaders -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'HttpResponseHeaders' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::HttpResponseHeaders.new - end - - after do - # run after each test - end - - describe 'test an instance of HttpResponseHeaders' do - it 'should create an instance of HttpResponseHeaders' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::HttpResponseHeaders) - end - end -end diff --git a/lib/product-pricing-api-model/spec/models/get_offers_http_status_line_spec.rb b/lib/product-pricing-api-model/spec/models/http_status_line_spec.rb similarity index 60% rename from lib/product-pricing-api-model/spec/models/get_offers_http_status_line_spec.rb rename to lib/product-pricing-api-model/spec/models/http_status_line_spec.rb index 85a9e85f1..9cfdd9d65 100644 --- a/lib/product-pricing-api-model/spec/models/get_offers_http_status_line_spec.rb +++ b/lib/product-pricing-api-model/spec/models/http_status_line_spec.rb @@ -1,34 +1,34 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' require 'json' require 'date' -# Unit tests for AmzSpApi::ProductPricingApiModel::GetOffersHttpStatusLine +# Unit tests for AmzSpApi::ProductPricingApiModel::HttpStatusLine # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'GetOffersHttpStatusLine' do +describe 'HttpStatusLine' do before do # run before each test - @instance = AmzSpApi::ProductPricingApiModel::GetOffersHttpStatusLine.new + @instance = AmzSpApi::ProductPricingApiModel::HttpStatusLine.new end after do # run after each test end - describe 'test an instance of GetOffersHttpStatusLine' do - it 'should create an instance of GetOffersHttpStatusLine' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::GetOffersHttpStatusLine) + describe 'test an instance of HttpStatusLine' do + it 'should create an instance of HttpStatusLine' do + expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::HttpStatusLine) end end describe 'test attribute "status_code"' do diff --git a/lib/product-pricing-api-model/spec/models/http_uri_spec.rb b/lib/product-pricing-api-model/spec/models/http_uri_spec.rb deleted file mode 100644 index 9c8ca025e..000000000 --- a/lib/product-pricing-api-model/spec/models/http_uri_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::HttpUri -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'HttpUri' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::HttpUri.new - end - - after do - # run after each test - end - - describe 'test an instance of HttpUri' do - it 'should create an instance of HttpUri' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::HttpUri) - end - end -end diff --git a/lib/product-pricing-api-model/spec/models/identifier_type_spec.rb b/lib/product-pricing-api-model/spec/models/identifier_type_spec.rb deleted file mode 100644 index 13d057cca..000000000 --- a/lib/product-pricing-api-model/spec/models/identifier_type_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::IdentifierType -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'IdentifierType' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::IdentifierType.new - end - - after do - # run after each test - end - - describe 'test an instance of IdentifierType' do - it 'should create an instance of IdentifierType' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::IdentifierType) - end - end - describe 'test attribute "marketplace_asin"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "sku_identifier"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/lib/product-pricing-api-model/spec/models/item_condition_spec.rb b/lib/product-pricing-api-model/spec/models/item_condition_spec.rb deleted file mode 100644 index 4b6b89ac4..000000000 --- a/lib/product-pricing-api-model/spec/models/item_condition_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::ItemCondition -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'ItemCondition' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::ItemCondition.new - end - - after do - # run after each test - end - - describe 'test an instance of ItemCondition' do - it 'should create an instance of ItemCondition' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::ItemCondition) - end - end -end diff --git a/lib/product-pricing-api-model/spec/models/item_offers_request_list_spec.rb b/lib/product-pricing-api-model/spec/models/item_offers_request_list_spec.rb deleted file mode 100644 index 4285f7ddd..000000000 --- a/lib/product-pricing-api-model/spec/models/item_offers_request_list_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::ItemOffersRequestList -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'ItemOffersRequestList' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::ItemOffersRequestList.new - end - - after do - # run after each test - end - - describe 'test an instance of ItemOffersRequestList' do - it 'should create an instance of ItemOffersRequestList' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::ItemOffersRequestList) - end - end -end diff --git a/lib/product-pricing-api-model/spec/models/item_offers_response_list_spec.rb b/lib/product-pricing-api-model/spec/models/item_offers_response_list_spec.rb deleted file mode 100644 index 02a1a36c4..000000000 --- a/lib/product-pricing-api-model/spec/models/item_offers_response_list_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::ItemOffersResponseList -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'ItemOffersResponseList' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::ItemOffersResponseList.new - end - - after do - # run after each test - end - - describe 'test an instance of ItemOffersResponseList' do - it 'should create an instance of ItemOffersResponseList' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::ItemOffersResponseList) - end - end -end diff --git a/lib/product-pricing-api-model/spec/models/listing_offers_request_list_spec.rb b/lib/product-pricing-api-model/spec/models/listing_offers_request_list_spec.rb deleted file mode 100644 index 8448a93ee..000000000 --- a/lib/product-pricing-api-model/spec/models/listing_offers_request_list_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::ListingOffersRequestList -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'ListingOffersRequestList' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::ListingOffersRequestList.new - end - - after do - # run after each test - end - - describe 'test an instance of ListingOffersRequestList' do - it 'should create an instance of ListingOffersRequestList' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::ListingOffersRequestList) - end - end -end diff --git a/lib/product-pricing-api-model/spec/models/listing_offers_response_list_spec.rb b/lib/product-pricing-api-model/spec/models/listing_offers_response_list_spec.rb deleted file mode 100644 index 9116eeb78..000000000 --- a/lib/product-pricing-api-model/spec/models/listing_offers_response_list_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::ListingOffersResponseList -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'ListingOffersResponseList' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::ListingOffersResponseList.new - end - - after do - # run after each test - end - - describe 'test an instance of ListingOffersResponseList' do - it 'should create an instance of ListingOffersResponseList' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::ListingOffersResponseList) - end - end -end diff --git a/lib/product-pricing-api-model/spec/models/listing_offers_response_spec.rb b/lib/product-pricing-api-model/spec/models/listing_offers_response_spec.rb deleted file mode 100644 index 95cc688fd..000000000 --- a/lib/product-pricing-api-model/spec/models/listing_offers_response_spec.rb +++ /dev/null @@ -1,58 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::ListingOffersResponse -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'ListingOffersResponse' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::ListingOffersResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of ListingOffersResponse' do - it 'should create an instance of ListingOffersResponse' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::ListingOffersResponse) - end - end - describe 'test attribute "headers"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "status"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "body"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "request"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/lib/product-pricing-api-model/spec/models/lowest_price_type_spec.rb b/lib/product-pricing-api-model/spec/models/lowest_price_type_spec.rb deleted file mode 100644 index dd3a6a03c..000000000 --- a/lib/product-pricing-api-model/spec/models/lowest_price_type_spec.rb +++ /dev/null @@ -1,88 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::LowestPriceType -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'LowestPriceType' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::LowestPriceType.new - end - - after do - # run after each test - end - - describe 'test an instance of LowestPriceType' do - it 'should create an instance of LowestPriceType' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::LowestPriceType) - end - end - describe 'test attribute "condition"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "fulfillment_channel"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "offer_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "quantity_tier"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "quantity_discount_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "landed_price"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "listing_price"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "shipping"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "points"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/lib/product-pricing-api-model/spec/models/lowest_prices_spec.rb b/lib/product-pricing-api-model/spec/models/lowest_prices_spec.rb deleted file mode 100644 index 6e4358c32..000000000 --- a/lib/product-pricing-api-model/spec/models/lowest_prices_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::LowestPrices -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'LowestPrices' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::LowestPrices.new - end - - after do - # run after each test - end - - describe 'test an instance of LowestPrices' do - it 'should create an instance of LowestPrices' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::LowestPrices) - end - end -end diff --git a/lib/product-pricing-api-model/spec/models/marketplace_id_spec.rb b/lib/product-pricing-api-model/spec/models/marketplace_id_spec.rb index c4a7f5c7c..0feb82f55 100644 --- a/lib/product-pricing-api-model/spec/models/marketplace_id_spec.rb +++ b/lib/product-pricing-api-model/spec/models/marketplace_id_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-pricing-api-model/spec/models/money_type_spec.rb b/lib/product-pricing-api-model/spec/models/money_type_spec.rb index 7d3a7f8cc..0d7fa39dc 100644 --- a/lib/product-pricing-api-model/spec/models/money_type_spec.rb +++ b/lib/product-pricing-api-model/spec/models/money_type_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-pricing-api-model/spec/models/number_of_offer_listings_list_spec.rb b/lib/product-pricing-api-model/spec/models/number_of_offer_listings_list_spec.rb deleted file mode 100644 index a95371f55..000000000 --- a/lib/product-pricing-api-model/spec/models/number_of_offer_listings_list_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::NumberOfOfferListingsList -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'NumberOfOfferListingsList' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::NumberOfOfferListingsList.new - end - - after do - # run after each test - end - - describe 'test an instance of NumberOfOfferListingsList' do - it 'should create an instance of NumberOfOfferListingsList' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::NumberOfOfferListingsList) - end - end -end diff --git a/lib/product-pricing-api-model/spec/models/number_of_offers_spec.rb b/lib/product-pricing-api-model/spec/models/number_of_offers_spec.rb deleted file mode 100644 index 1ef29c403..000000000 --- a/lib/product-pricing-api-model/spec/models/number_of_offers_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::NumberOfOffers -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'NumberOfOffers' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::NumberOfOffers.new - end - - after do - # run after each test - end - - describe 'test an instance of NumberOfOffers' do - it 'should create an instance of NumberOfOffers' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::NumberOfOffers) - end - end -end diff --git a/lib/product-pricing-api-model/spec/models/offer_customer_type_spec.rb b/lib/product-pricing-api-model/spec/models/offer_customer_type_spec.rb deleted file mode 100644 index f7d07441b..000000000 --- a/lib/product-pricing-api-model/spec/models/offer_customer_type_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::OfferCustomerType -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'OfferCustomerType' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::OfferCustomerType.new - end - - after do - # run after each test - end - - describe 'test an instance of OfferCustomerType' do - it 'should create an instance of OfferCustomerType' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::OfferCustomerType) - end - end -end diff --git a/lib/product-pricing-api-model/spec/models/offer_detail_list_spec.rb b/lib/product-pricing-api-model/spec/models/offer_detail_list_spec.rb deleted file mode 100644 index 341c711bf..000000000 --- a/lib/product-pricing-api-model/spec/models/offer_detail_list_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::OfferDetailList -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'OfferDetailList' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::OfferDetailList.new - end - - after do - # run after each test - end - - describe 'test an instance of OfferDetailList' do - it 'should create an instance of OfferDetailList' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::OfferDetailList) - end - end -end diff --git a/lib/product-pricing-api-model/spec/models/offer_detail_spec.rb b/lib/product-pricing-api-model/spec/models/offer_detail_spec.rb deleted file mode 100644 index 151d7bc7d..000000000 --- a/lib/product-pricing-api-model/spec/models/offer_detail_spec.rb +++ /dev/null @@ -1,130 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::OfferDetail -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'OfferDetail' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::OfferDetail.new - end - - after do - # run after each test - end - - describe 'test an instance of OfferDetail' do - it 'should create an instance of OfferDetail' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::OfferDetail) - end - end - describe 'test attribute "my_offer"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "offer_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "sub_condition"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "seller_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "condition_notes"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "seller_feedback_rating"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "shipping_time"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "listing_price"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "quantity_discount_prices"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "points"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "shipping"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "ships_from"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_fulfilled_by_amazon"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "prime_information"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_buy_box_winner"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_featured_merchant"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/lib/product-pricing-api-model/spec/models/listing_offers_request_spec.rb b/lib/product-pricing-api-model/spec/models/offer_identifier_spec.rb similarity index 60% rename from lib/product-pricing-api-model/spec/models/listing_offers_request_spec.rb rename to lib/product-pricing-api-model/spec/models/offer_identifier_spec.rb index 4a1883701..4fce1a28b 100644 --- a/lib/product-pricing-api-model/spec/models/listing_offers_request_spec.rb +++ b/lib/product-pricing-api-model/spec/models/offer_identifier_spec.rb @@ -1,34 +1,34 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' require 'json' require 'date' -# Unit tests for AmzSpApi::ProductPricingApiModel::ListingOffersRequest +# Unit tests for AmzSpApi::ProductPricingApiModel::OfferIdentifier # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'ListingOffersRequest' do +describe 'OfferIdentifier' do before do # run before each test - @instance = AmzSpApi::ProductPricingApiModel::ListingOffersRequest.new + @instance = AmzSpApi::ProductPricingApiModel::OfferIdentifier.new end after do # run after each test end - describe 'test an instance of ListingOffersRequest' do - it 'should create an instance of ListingOffersRequest' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::ListingOffersRequest) + describe 'test an instance of OfferIdentifier' do + it 'should create an instance of OfferIdentifier' do + expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::OfferIdentifier) end end describe 'test attribute "marketplace_id"' do @@ -37,31 +37,25 @@ end end - describe 'test attribute "item_condition"' do + describe 'test attribute "seller_id"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "customer_type"' do + describe 'test attribute "sku"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "uri"' do + describe 'test attribute "asin"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "method"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "headers"' do + describe 'test attribute "fulfillment_type"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/lib/product-pricing-api-model/spec/models/offer_listing_count_type_spec.rb b/lib/product-pricing-api-model/spec/models/offer_listing_count_type_spec.rb deleted file mode 100644 index ce91baecd..000000000 --- a/lib/product-pricing-api-model/spec/models/offer_listing_count_type_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::OfferListingCountType -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'OfferListingCountType' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::OfferListingCountType.new - end - - after do - # run after each test - end - - describe 'test an instance of OfferListingCountType' do - it 'should create an instance of OfferListingCountType' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::OfferListingCountType) - end - end - describe 'test attribute "count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "condition"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/lib/product-pricing-api-model/spec/models/offer_type_spec.rb b/lib/product-pricing-api-model/spec/models/offer_type_spec.rb deleted file mode 100644 index a6668ed3b..000000000 --- a/lib/product-pricing-api-model/spec/models/offer_type_spec.rb +++ /dev/null @@ -1,88 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::OfferType -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'OfferType' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::OfferType.new - end - - after do - # run after each test - end - - describe 'test an instance of OfferType' do - it 'should create an instance of OfferType' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::OfferType) - end - end - describe 'test attribute "offer_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "buying_price"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "regular_price"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "business_price"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "quantity_discount_prices"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "fulfillment_channel"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "item_condition"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "item_sub_condition"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "seller_sku"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/lib/product-pricing-api-model/spec/models/offers_list_spec.rb b/lib/product-pricing-api-model/spec/models/offers_list_spec.rb deleted file mode 100644 index 7c5e08825..000000000 --- a/lib/product-pricing-api-model/spec/models/offers_list_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::OffersList -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'OffersList' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::OffersList.new - end - - after do - # run after each test - end - - describe 'test an instance of OffersList' do - it 'should create an instance of OffersList' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::OffersList) - end - end -end diff --git a/lib/product-pricing-api-model/spec/models/points_spec.rb b/lib/product-pricing-api-model/spec/models/points_spec.rb index 9b851624c..1b9fc2a19 100644 --- a/lib/product-pricing-api-model/spec/models/points_spec.rb +++ b/lib/product-pricing-api-model/spec/models/points_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-pricing-api-model/spec/models/price_list_spec.rb b/lib/product-pricing-api-model/spec/models/price_list_spec.rb deleted file mode 100644 index 9723accbe..000000000 --- a/lib/product-pricing-api-model/spec/models/price_list_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::PriceList -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'PriceList' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::PriceList.new - end - - after do - # run after each test - end - - describe 'test an instance of PriceList' do - it 'should create an instance of PriceList' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::PriceList) - end - end -end diff --git a/lib/product-pricing-api-model/spec/models/price_spec.rb b/lib/product-pricing-api-model/spec/models/price_spec.rb index 5c8d54a03..58d20df0f 100644 --- a/lib/product-pricing-api-model/spec/models/price_spec.rb +++ b/lib/product-pricing-api-model/spec/models/price_spec.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -31,25 +31,19 @@ expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::Price) end end - describe 'test attribute "status"' do + describe 'test attribute "listing_price"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "seller_sku"' do + describe 'test attribute "shipping_price"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "asin"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "product"' do + describe 'test attribute "points"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/lib/product-pricing-api-model/spec/models/prime_information_type_spec.rb b/lib/product-pricing-api-model/spec/models/prime_information_type_spec.rb deleted file mode 100644 index 25c40fc06..000000000 --- a/lib/product-pricing-api-model/spec/models/prime_information_type_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::PrimeInformationType -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'PrimeInformationType' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::PrimeInformationType.new - end - - after do - # run after each test - end - - describe 'test an instance of PrimeInformationType' do - it 'should create an instance of PrimeInformationType' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::PrimeInformationType) - end - end - describe 'test attribute "is_prime"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_national_prime"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/lib/product-pricing-api-model/spec/models/quantity_discount_type_spec.rb b/lib/product-pricing-api-model/spec/models/quantity_discount_type_spec.rb deleted file mode 100644 index cb1ced331..000000000 --- a/lib/product-pricing-api-model/spec/models/quantity_discount_type_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::QuantityDiscountType -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'QuantityDiscountType' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::QuantityDiscountType.new - end - - after do - # run after each test - end - - describe 'test an instance of QuantityDiscountType' do - it 'should create an instance of QuantityDiscountType' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::QuantityDiscountType) - end - end -end diff --git a/lib/product-pricing-api-model/spec/models/relationship_list_spec.rb b/lib/product-pricing-api-model/spec/models/relationship_list_spec.rb deleted file mode 100644 index 7a1b215ca..000000000 --- a/lib/product-pricing-api-model/spec/models/relationship_list_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::RelationshipList -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'RelationshipList' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::RelationshipList.new - end - - after do - # run after each test - end - - describe 'test an instance of RelationshipList' do - it 'should create an instance of RelationshipList' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::RelationshipList) - end - end -end diff --git a/lib/product-pricing-api-model/spec/models/sales_rank_list_spec.rb b/lib/product-pricing-api-model/spec/models/sales_rank_list_spec.rb deleted file mode 100644 index 03049561a..000000000 --- a/lib/product-pricing-api-model/spec/models/sales_rank_list_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::SalesRankList -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'SalesRankList' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::SalesRankList.new - end - - after do - # run after each test - end - - describe 'test an instance of SalesRankList' do - it 'should create an instance of SalesRankList' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::SalesRankList) - end - end -end diff --git a/lib/product-pricing-api-model/spec/models/sales_rank_type_spec.rb b/lib/product-pricing-api-model/spec/models/sales_rank_type_spec.rb deleted file mode 100644 index 06eb8464b..000000000 --- a/lib/product-pricing-api-model/spec/models/sales_rank_type_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::SalesRankType -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'SalesRankType' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::SalesRankType.new - end - - after do - # run after each test - end - - describe 'test an instance of SalesRankType' do - it 'should create an instance of SalesRankType' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::SalesRankType) - end - end - describe 'test attribute "product_category_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "rank"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/lib/product-pricing-api-model/spec/models/seller_feedback_type_spec.rb b/lib/product-pricing-api-model/spec/models/seller_feedback_type_spec.rb deleted file mode 100644 index 93e03abe0..000000000 --- a/lib/product-pricing-api-model/spec/models/seller_feedback_type_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::SellerFeedbackType -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'SellerFeedbackType' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::SellerFeedbackType.new - end - - after do - # run after each test - end - - describe 'test an instance of SellerFeedbackType' do - it 'should create an instance of SellerFeedbackType' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::SellerFeedbackType) - end - end - describe 'test attribute "seller_positive_feedback_rating"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "feedback_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/lib/product-pricing-api-model/spec/models/ships_from_type_spec.rb b/lib/product-pricing-api-model/spec/models/ships_from_type_spec.rb deleted file mode 100644 index 2a2b4eb1d..000000000 --- a/lib/product-pricing-api-model/spec/models/ships_from_type_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -#Selling Partner API for Pricing - -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. - -OpenAPI spec version: v0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for AmzSpApi::ProductPricingApiModel::ShipsFromType -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'ShipsFromType' do - before do - # run before each test - @instance = AmzSpApi::ProductPricingApiModel::ShipsFromType.new - end - - after do - # run after each test - end - - describe 'test an instance of ShipsFromType' do - it 'should create an instance of ShipsFromType' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::ShipsFromType) - end - end - describe 'test attribute "state"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "country"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/lib/product-pricing-api-model/spec/models/competitive_price_list_spec.rb b/lib/product-pricing-api-model/spec/models/sku_spec.rb similarity index 50% rename from lib/product-pricing-api-model/spec/models/competitive_price_list_spec.rb rename to lib/product-pricing-api-model/spec/models/sku_spec.rb index fd38509c8..c69c99b60 100644 --- a/lib/product-pricing-api-model/spec/models/competitive_price_list_spec.rb +++ b/lib/product-pricing-api-model/spec/models/sku_spec.rb @@ -1,34 +1,34 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' require 'json' require 'date' -# Unit tests for AmzSpApi::ProductPricingApiModel::CompetitivePriceList +# Unit tests for AmzSpApi::ProductPricingApiModel::Sku # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'CompetitivePriceList' do +describe 'Sku' do before do # run before each test - @instance = AmzSpApi::ProductPricingApiModel::CompetitivePriceList.new + @instance = AmzSpApi::ProductPricingApiModel::Sku.new end after do # run after each test end - describe 'test an instance of CompetitivePriceList' do - it 'should create an instance of CompetitivePriceList' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::CompetitivePriceList) + describe 'test an instance of Sku' do + it 'should create an instance of Sku' do + expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::Sku) end end end diff --git a/lib/product-pricing-api-model/spec/spec_helper.rb b/lib/product-pricing-api-model/spec/spec_helper.rb index 21f5b8376..7dd957e73 100644 --- a/lib/product-pricing-api-model/spec/spec_helper.rb +++ b/lib/product-pricing-api-model/spec/spec_helper.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # load the gem diff --git a/lib/product-pricing-api-model/version.rb b/lib/product-pricing-api-model/version.rb index c77f0e2e1..6a6bfe2be 100644 --- a/lib/product-pricing-api-model/version.rb +++ b/lib/product-pricing-api-model/version.rb @@ -1,12 +1,12 @@ =begin #Selling Partner API for Pricing -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, see the [Product Pricing v2022-05-01 Use Case Guide](doc:product-pricing-api-v2022-05-01-use-case-guide). -OpenAPI spec version: v0 +OpenAPI spec version: 2022-05-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::ProductPricingApiModel diff --git a/lib/sellers-api-model.rb b/lib/sellers-api-model.rb index a4d840d38..b6614a6ba 100644 --- a/lib/sellers-api-model.rb +++ b/lib/sellers-api-model.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # Common files diff --git a/lib/sellers-api-model/.swagger-codegen/VERSION b/lib/sellers-api-model/.swagger-codegen/VERSION index b39b0b9e0..161761765 100644 --- a/lib/sellers-api-model/.swagger-codegen/VERSION +++ b/lib/sellers-api-model/.swagger-codegen/VERSION @@ -1 +1 @@ -3.0.24 \ No newline at end of file +3.0.46 \ No newline at end of file diff --git a/lib/sellers-api-model/api/sellers_api.rb b/lib/sellers-api-model/api/sellers_api.rb index c6faa173d..831fe2f77 100644 --- a/lib/sellers-api-model/api/sellers_api.rb +++ b/lib/sellers-api-model/api/sellers_api.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::SellersApiModel @@ -16,7 +16,7 @@ class SellersApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Returns a list of marketplaces that the seller submitting the request can sell in and information about the seller's participation in those marketplaces. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | .016 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of marketplaces that the seller submitting the request can sell in and information about the seller's participation in those marketplaces. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.016 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param [Hash] opts the optional parameters # @return [GetMarketplaceParticipationsResponse] def get_marketplace_participations(opts = {}) @@ -24,7 +24,7 @@ def get_marketplace_participations(opts = {}) data end - # Returns a list of marketplaces that the seller submitting the request can sell in and information about the seller's participation in those marketplaces. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | .016 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of marketplaces that the seller submitting the request can sell in and information about the seller's participation in those marketplaces. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.016 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param [Hash] opts the optional parameters # @return [Array<(GetMarketplaceParticipationsResponse, Integer, Hash)>] GetMarketplaceParticipationsResponse data, response status code and response headers def get_marketplace_participations_with_http_info(opts = {}) diff --git a/lib/sellers-api-model/api_client.rb b/lib/sellers-api-model/api_client.rb index 23c34f080..59560f06a 100644 --- a/lib/sellers-api-model/api_client.rb +++ b/lib/sellers-api-model/api_client.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/sellers-api-model/api_error.rb b/lib/sellers-api-model/api_error.rb index 6cb9544df..9bd93ee00 100644 --- a/lib/sellers-api-model/api_error.rb +++ b/lib/sellers-api-model/api_error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::SellersApiModel diff --git a/lib/sellers-api-model/configuration.rb b/lib/sellers-api-model/configuration.rb index b0e8101e4..b177d6e1b 100644 --- a/lib/sellers-api-model/configuration.rb +++ b/lib/sellers-api-model/configuration.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::SellersApiModel diff --git a/lib/sellers-api-model/docs/SellersApi.md b/lib/sellers-api-model/docs/SellersApi.md index 0952cfd74..564154d97 100644 --- a/lib/sellers-api-model/docs/SellersApi.md +++ b/lib/sellers-api-model/docs/SellersApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description -Returns a list of marketplaces that the seller submitting the request can sell in and information about the seller's participation in those marketplaces. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | .016 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns a list of marketplaces that the seller submitting the request can sell in and information about the seller's participation in those marketplaces. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.016 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby diff --git a/lib/sellers-api-model/models/error.rb b/lib/sellers-api-model/models/error.rb index bc2c04a35..0f5af5286 100644 --- a/lib/sellers-api-model/models/error.rb +++ b/lib/sellers-api-model/models/error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/sellers-api-model/models/error_list.rb b/lib/sellers-api-model/models/error_list.rb index 65ac14b4d..ce1d345bd 100644 --- a/lib/sellers-api-model/models/error_list.rb +++ b/lib/sellers-api-model/models/error_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/sellers-api-model/models/get_marketplace_participations_response.rb b/lib/sellers-api-model/models/get_marketplace_participations_response.rb index 871dea1fd..a67154f43 100644 --- a/lib/sellers-api-model/models/get_marketplace_participations_response.rb +++ b/lib/sellers-api-model/models/get_marketplace_participations_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/sellers-api-model/models/marketplace.rb b/lib/sellers-api-model/models/marketplace.rb index f6b1acdb2..63971886c 100644 --- a/lib/sellers-api-model/models/marketplace.rb +++ b/lib/sellers-api-model/models/marketplace.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/sellers-api-model/models/marketplace_participation.rb b/lib/sellers-api-model/models/marketplace_participation.rb index 9bf1cca92..4eef35666 100644 --- a/lib/sellers-api-model/models/marketplace_participation.rb +++ b/lib/sellers-api-model/models/marketplace_participation.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/sellers-api-model/models/marketplace_participation_list.rb b/lib/sellers-api-model/models/marketplace_participation_list.rb index b7af62356..395309541 100644 --- a/lib/sellers-api-model/models/marketplace_participation_list.rb +++ b/lib/sellers-api-model/models/marketplace_participation_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/sellers-api-model/models/participation.rb b/lib/sellers-api-model/models/participation.rb index da044b83d..2e750b920 100644 --- a/lib/sellers-api-model/models/participation.rb +++ b/lib/sellers-api-model/models/participation.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/sellers-api-model/spec/api/sellers_api_spec.rb b/lib/sellers-api-model/spec/api/sellers_api_spec.rb index 1d30a951c..a0c33141b 100644 --- a/lib/sellers-api-model/spec/api/sellers_api_spec.rb +++ b/lib/sellers-api-model/spec/api/sellers_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -32,7 +32,7 @@ end # unit tests for get_marketplace_participations - # Returns a list of marketplaces that the seller submitting the request can sell in and information about the seller's participation in those marketplaces. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | .016 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns a list of marketplaces that the seller submitting the request can sell in and information about the seller's participation in those marketplaces. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.016 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param [Hash] opts the optional parameters # @return [GetMarketplaceParticipationsResponse] describe 'get_marketplace_participations test' do diff --git a/lib/sellers-api-model/spec/api_client_spec.rb b/lib/sellers-api-model/spec/api_client_spec.rb index ba1ccb6bd..7f78277ab 100644 --- a/lib/sellers-api-model/spec/api_client_spec.rb +++ b/lib/sellers-api-model/spec/api_client_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/sellers-api-model/spec/configuration_spec.rb b/lib/sellers-api-model/spec/configuration_spec.rb index 01f46016e..af7b6c769 100644 --- a/lib/sellers-api-model/spec/configuration_spec.rb +++ b/lib/sellers-api-model/spec/configuration_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/sellers-api-model/spec/models/error_list_spec.rb b/lib/sellers-api-model/spec/models/error_list_spec.rb index 337988f11..cf2a849ff 100644 --- a/lib/sellers-api-model/spec/models/error_list_spec.rb +++ b/lib/sellers-api-model/spec/models/error_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/sellers-api-model/spec/models/error_spec.rb b/lib/sellers-api-model/spec/models/error_spec.rb index ea8577917..47626a1ba 100644 --- a/lib/sellers-api-model/spec/models/error_spec.rb +++ b/lib/sellers-api-model/spec/models/error_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/sellers-api-model/spec/models/get_marketplace_participations_response_spec.rb b/lib/sellers-api-model/spec/models/get_marketplace_participations_response_spec.rb index fbdc7f7b2..2c41fd3bc 100644 --- a/lib/sellers-api-model/spec/models/get_marketplace_participations_response_spec.rb +++ b/lib/sellers-api-model/spec/models/get_marketplace_participations_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/sellers-api-model/spec/models/marketplace_participation_list_spec.rb b/lib/sellers-api-model/spec/models/marketplace_participation_list_spec.rb index 3e963d340..5c6e78408 100644 --- a/lib/sellers-api-model/spec/models/marketplace_participation_list_spec.rb +++ b/lib/sellers-api-model/spec/models/marketplace_participation_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/sellers-api-model/spec/models/marketplace_participation_spec.rb b/lib/sellers-api-model/spec/models/marketplace_participation_spec.rb index 75a668273..40a71516b 100644 --- a/lib/sellers-api-model/spec/models/marketplace_participation_spec.rb +++ b/lib/sellers-api-model/spec/models/marketplace_participation_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/sellers-api-model/spec/models/marketplace_spec.rb b/lib/sellers-api-model/spec/models/marketplace_spec.rb index a6198d0ae..9b1f68a6c 100644 --- a/lib/sellers-api-model/spec/models/marketplace_spec.rb +++ b/lib/sellers-api-model/spec/models/marketplace_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/sellers-api-model/spec/models/participation_spec.rb b/lib/sellers-api-model/spec/models/participation_spec.rb index 76c86e9b3..fd25b94de 100644 --- a/lib/sellers-api-model/spec/models/participation_spec.rb +++ b/lib/sellers-api-model/spec/models/participation_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/sellers-api-model/spec/spec_helper.rb b/lib/sellers-api-model/spec/spec_helper.rb index 36a967683..7ea1ebc66 100644 --- a/lib/sellers-api-model/spec/spec_helper.rb +++ b/lib/sellers-api-model/spec/spec_helper.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # load the gem diff --git a/lib/sellers-api-model/version.rb b/lib/sellers-api-model/version.rb index f2b519231..5d20297df 100644 --- a/lib/sellers-api-model/version.rb +++ b/lib/sellers-api-model/version.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::SellersApiModel diff --git a/lib/shipment-invoicing-api-model.rb b/lib/shipment-invoicing-api-model.rb index f911e1133..1dc132064 100644 --- a/lib/shipment-invoicing-api-model.rb +++ b/lib/shipment-invoicing-api-model.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # Common files diff --git a/lib/shipment-invoicing-api-model/.swagger-codegen/VERSION b/lib/shipment-invoicing-api-model/.swagger-codegen/VERSION index b39b0b9e0..161761765 100644 --- a/lib/shipment-invoicing-api-model/.swagger-codegen/VERSION +++ b/lib/shipment-invoicing-api-model/.swagger-codegen/VERSION @@ -1 +1 @@ -3.0.24 \ No newline at end of file +3.0.46 \ No newline at end of file diff --git a/lib/shipment-invoicing-api-model/api/shipment_invoice_api.rb b/lib/shipment-invoicing-api-model/api/shipment_invoice_api.rb index 44def890e..e2740a5e7 100644 --- a/lib/shipment-invoicing-api-model/api/shipment_invoice_api.rb +++ b/lib/shipment-invoicing-api-model/api/shipment_invoice_api.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::ShipmentInvoicingApiModel @@ -16,7 +16,7 @@ class ShipmentInvoiceApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Returns the invoice status for the shipment you specify. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 1.133 | 25 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns the invoice status for the shipment you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). # @param shipment_id The shipment identifier for the shipment. # @param [Hash] opts the optional parameters # @return [GetInvoiceStatusResponse] @@ -25,7 +25,7 @@ def get_invoice_status(shipment_id, opts = {}) data end - # Returns the invoice status for the shipment you specify. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 1.133 | 25 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns the invoice status for the shipment you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). # @param shipment_id The shipment identifier for the shipment. # @param [Hash] opts the optional parameters # @return [Array<(GetInvoiceStatusResponse, Integer, Hash)>] GetInvoiceStatusResponse data, response status code and response headers @@ -70,7 +70,7 @@ def get_invoice_status_with_http_info(shipment_id, opts = {}) end return data, status_code, headers end - # Returns the shipment details required to issue an invoice for the specified shipment. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 1.133 | 25 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns the shipment details required to issue an invoice for the specified shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). # @param shipment_id The identifier for the shipment. Get this value from the FBAOutboundShipmentStatus notification. For information about subscribing to notifications, see the [Notifications API Use Case Guide](doc:notifications-api-v1-use-case-guide). # @param [Hash] opts the optional parameters # @return [GetShipmentDetailsResponse] @@ -79,7 +79,7 @@ def get_shipment_details(shipment_id, opts = {}) data end - # Returns the shipment details required to issue an invoice for the specified shipment. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 1.133 | 25 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns the shipment details required to issue an invoice for the specified shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). # @param shipment_id The identifier for the shipment. Get this value from the FBAOutboundShipmentStatus notification. For information about subscribing to notifications, see the [Notifications API Use Case Guide](doc:notifications-api-v1-use-case-guide). # @param [Hash] opts the optional parameters # @return [Array<(GetShipmentDetailsResponse, Integer, Hash)>] GetShipmentDetailsResponse data, response status code and response headers @@ -124,7 +124,7 @@ def get_shipment_details_with_http_info(shipment_id, opts = {}) end return data, status_code, headers end - # Submits a shipment invoice document for a given shipment. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 1.133 | 25 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Submits a shipment invoice document for a given shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param shipment_id The identifier for the shipment. # @param [Hash] opts the optional parameters @@ -134,7 +134,7 @@ def submit_invoice(body, shipment_id, opts = {}) data end - # Submits a shipment invoice document for a given shipment. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 1.133 | 25 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Submits a shipment invoice document for a given shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param shipment_id The identifier for the shipment. # @param [Hash] opts the optional parameters diff --git a/lib/shipment-invoicing-api-model/api_client.rb b/lib/shipment-invoicing-api-model/api_client.rb index 111641262..351f7d399 100644 --- a/lib/shipment-invoicing-api-model/api_client.rb +++ b/lib/shipment-invoicing-api-model/api_client.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/shipment-invoicing-api-model/api_error.rb b/lib/shipment-invoicing-api-model/api_error.rb index 21c7c286d..c2501c3e7 100644 --- a/lib/shipment-invoicing-api-model/api_error.rb +++ b/lib/shipment-invoicing-api-model/api_error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::ShipmentInvoicingApiModel diff --git a/lib/shipment-invoicing-api-model/configuration.rb b/lib/shipment-invoicing-api-model/configuration.rb index ee59490a1..c6075e494 100644 --- a/lib/shipment-invoicing-api-model/configuration.rb +++ b/lib/shipment-invoicing-api-model/configuration.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::ShipmentInvoicingApiModel diff --git a/lib/shipment-invoicing-api-model/docs/ShipmentInvoiceApi.md b/lib/shipment-invoicing-api-model/docs/ShipmentInvoiceApi.md index 2fa676e70..a8335b0df 100644 --- a/lib/shipment-invoicing-api-model/docs/ShipmentInvoiceApi.md +++ b/lib/shipment-invoicing-api-model/docs/ShipmentInvoiceApi.md @@ -13,7 +13,7 @@ Method | HTTP request | Description -Returns the invoice status for the shipment you specify. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 1.133 | 25 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns the invoice status for the shipment you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -58,7 +58,7 @@ No authorization required -Returns the shipment details required to issue an invoice for the specified shipment. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 1.133 | 25 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns the shipment details required to issue an invoice for the specified shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -103,7 +103,7 @@ No authorization required -Submits a shipment invoice document for a given shipment. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 1.133 | 25 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Submits a shipment invoice document for a given shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby diff --git a/lib/shipment-invoicing-api-model/models/address.rb b/lib/shipment-invoicing-api-model/models/address.rb index 623ed3d56..0a368d4a1 100644 --- a/lib/shipment-invoicing-api-model/models/address.rb +++ b/lib/shipment-invoicing-api-model/models/address.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/shipment-invoicing-api-model/models/address_type_enum.rb b/lib/shipment-invoicing-api-model/models/address_type_enum.rb index 14eda8c70..69cab0331 100644 --- a/lib/shipment-invoicing-api-model/models/address_type_enum.rb +++ b/lib/shipment-invoicing-api-model/models/address_type_enum.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/shipment-invoicing-api-model/models/blob.rb b/lib/shipment-invoicing-api-model/models/blob.rb index 348ea93ae..9f6ae5be6 100644 --- a/lib/shipment-invoicing-api-model/models/blob.rb +++ b/lib/shipment-invoicing-api-model/models/blob.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/shipment-invoicing-api-model/models/buyer_tax_info.rb b/lib/shipment-invoicing-api-model/models/buyer_tax_info.rb index ff0a94f10..231e85d9c 100644 --- a/lib/shipment-invoicing-api-model/models/buyer_tax_info.rb +++ b/lib/shipment-invoicing-api-model/models/buyer_tax_info.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/shipment-invoicing-api-model/models/error.rb b/lib/shipment-invoicing-api-model/models/error.rb index daa898a1f..eb480359f 100644 --- a/lib/shipment-invoicing-api-model/models/error.rb +++ b/lib/shipment-invoicing-api-model/models/error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/shipment-invoicing-api-model/models/error_list.rb b/lib/shipment-invoicing-api-model/models/error_list.rb index 224c1c203..b6ad12a4f 100644 --- a/lib/shipment-invoicing-api-model/models/error_list.rb +++ b/lib/shipment-invoicing-api-model/models/error_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/shipment-invoicing-api-model/models/get_invoice_status_response.rb b/lib/shipment-invoicing-api-model/models/get_invoice_status_response.rb index 93a76724c..c24a624cf 100644 --- a/lib/shipment-invoicing-api-model/models/get_invoice_status_response.rb +++ b/lib/shipment-invoicing-api-model/models/get_invoice_status_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/shipment-invoicing-api-model/models/get_shipment_details_response.rb b/lib/shipment-invoicing-api-model/models/get_shipment_details_response.rb index 52d488e49..1ce08bf16 100644 --- a/lib/shipment-invoicing-api-model/models/get_shipment_details_response.rb +++ b/lib/shipment-invoicing-api-model/models/get_shipment_details_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/shipment-invoicing-api-model/models/marketplace_tax_info.rb b/lib/shipment-invoicing-api-model/models/marketplace_tax_info.rb index 4b53544ba..505c87750 100644 --- a/lib/shipment-invoicing-api-model/models/marketplace_tax_info.rb +++ b/lib/shipment-invoicing-api-model/models/marketplace_tax_info.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/shipment-invoicing-api-model/models/money.rb b/lib/shipment-invoicing-api-model/models/money.rb index b65484996..cbc1e97d5 100644 --- a/lib/shipment-invoicing-api-model/models/money.rb +++ b/lib/shipment-invoicing-api-model/models/money.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/shipment-invoicing-api-model/models/payment_method_detail_item_list.rb b/lib/shipment-invoicing-api-model/models/payment_method_detail_item_list.rb index b1d4be418..75a2943e8 100644 --- a/lib/shipment-invoicing-api-model/models/payment_method_detail_item_list.rb +++ b/lib/shipment-invoicing-api-model/models/payment_method_detail_item_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/shipment-invoicing-api-model/models/serial_numbers_list.rb b/lib/shipment-invoicing-api-model/models/serial_numbers_list.rb index cf6b7a754..8e2acf1d3 100644 --- a/lib/shipment-invoicing-api-model/models/serial_numbers_list.rb +++ b/lib/shipment-invoicing-api-model/models/serial_numbers_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/shipment-invoicing-api-model/models/shipment_detail.rb b/lib/shipment-invoicing-api-model/models/shipment_detail.rb index 5b4c8da80..37d636b75 100644 --- a/lib/shipment-invoicing-api-model/models/shipment_detail.rb +++ b/lib/shipment-invoicing-api-model/models/shipment_detail.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/shipment-invoicing-api-model/models/shipment_invoice_status.rb b/lib/shipment-invoicing-api-model/models/shipment_invoice_status.rb index dc545f5f0..39753b8ac 100644 --- a/lib/shipment-invoicing-api-model/models/shipment_invoice_status.rb +++ b/lib/shipment-invoicing-api-model/models/shipment_invoice_status.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/shipment-invoicing-api-model/models/shipment_invoice_status_info.rb b/lib/shipment-invoicing-api-model/models/shipment_invoice_status_info.rb index 973cf7eff..9b923b2fb 100644 --- a/lib/shipment-invoicing-api-model/models/shipment_invoice_status_info.rb +++ b/lib/shipment-invoicing-api-model/models/shipment_invoice_status_info.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/shipment-invoicing-api-model/models/shipment_invoice_status_response.rb b/lib/shipment-invoicing-api-model/models/shipment_invoice_status_response.rb index c5e22e6a7..b144fd59f 100644 --- a/lib/shipment-invoicing-api-model/models/shipment_invoice_status_response.rb +++ b/lib/shipment-invoicing-api-model/models/shipment_invoice_status_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/shipment-invoicing-api-model/models/shipment_item.rb b/lib/shipment-invoicing-api-model/models/shipment_item.rb index 026279772..2e6230250 100644 --- a/lib/shipment-invoicing-api-model/models/shipment_item.rb +++ b/lib/shipment-invoicing-api-model/models/shipment_item.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/shipment-invoicing-api-model/models/shipment_items.rb b/lib/shipment-invoicing-api-model/models/shipment_items.rb index ac716968b..496362ac0 100644 --- a/lib/shipment-invoicing-api-model/models/shipment_items.rb +++ b/lib/shipment-invoicing-api-model/models/shipment_items.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/shipment-invoicing-api-model/models/submit_invoice_request.rb b/lib/shipment-invoicing-api-model/models/submit_invoice_request.rb index 0d5bf381c..dd92bd458 100644 --- a/lib/shipment-invoicing-api-model/models/submit_invoice_request.rb +++ b/lib/shipment-invoicing-api-model/models/submit_invoice_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/shipment-invoicing-api-model/models/submit_invoice_response.rb b/lib/shipment-invoicing-api-model/models/submit_invoice_response.rb index 03917547e..96063799d 100644 --- a/lib/shipment-invoicing-api-model/models/submit_invoice_response.rb +++ b/lib/shipment-invoicing-api-model/models/submit_invoice_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/shipment-invoicing-api-model/models/tax_classification.rb b/lib/shipment-invoicing-api-model/models/tax_classification.rb index 7f52c2bb4..b8201ae09 100644 --- a/lib/shipment-invoicing-api-model/models/tax_classification.rb +++ b/lib/shipment-invoicing-api-model/models/tax_classification.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/shipment-invoicing-api-model/models/tax_classification_list.rb b/lib/shipment-invoicing-api-model/models/tax_classification_list.rb index 299a2ecb4..80b2df5e2 100644 --- a/lib/shipment-invoicing-api-model/models/tax_classification_list.rb +++ b/lib/shipment-invoicing-api-model/models/tax_classification_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/shipment-invoicing-api-model/spec/api/shipment_invoice_api_spec.rb b/lib/shipment-invoicing-api-model/spec/api/shipment_invoice_api_spec.rb index ffb87e260..37da2c16d 100644 --- a/lib/shipment-invoicing-api-model/spec/api/shipment_invoice_api_spec.rb +++ b/lib/shipment-invoicing-api-model/spec/api/shipment_invoice_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -32,7 +32,7 @@ end # unit tests for get_invoice_status - # Returns the invoice status for the shipment you specify. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 1.133 | 25 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns the invoice status for the shipment you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). # @param shipment_id The shipment identifier for the shipment. # @param [Hash] opts the optional parameters # @return [GetInvoiceStatusResponse] @@ -43,7 +43,7 @@ end # unit tests for get_shipment_details - # Returns the shipment details required to issue an invoice for the specified shipment. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 1.133 | 25 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns the shipment details required to issue an invoice for the specified shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). # @param shipment_id The identifier for the shipment. Get this value from the FBAOutboundShipmentStatus notification. For information about subscribing to notifications, see the [Notifications API Use Case Guide](doc:notifications-api-v1-use-case-guide). # @param [Hash] opts the optional parameters # @return [GetShipmentDetailsResponse] @@ -54,7 +54,7 @@ end # unit tests for submit_invoice - # Submits a shipment invoice document for a given shipment. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 1.133 | 25 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Submits a shipment invoice document for a given shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param shipment_id The identifier for the shipment. # @param [Hash] opts the optional parameters diff --git a/lib/shipment-invoicing-api-model/spec/api_client_spec.rb b/lib/shipment-invoicing-api-model/spec/api_client_spec.rb index 21beebd7b..63e921781 100644 --- a/lib/shipment-invoicing-api-model/spec/api_client_spec.rb +++ b/lib/shipment-invoicing-api-model/spec/api_client_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/shipment-invoicing-api-model/spec/configuration_spec.rb b/lib/shipment-invoicing-api-model/spec/configuration_spec.rb index 1e298de25..1aea49dde 100644 --- a/lib/shipment-invoicing-api-model/spec/configuration_spec.rb +++ b/lib/shipment-invoicing-api-model/spec/configuration_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/shipment-invoicing-api-model/spec/models/address_spec.rb b/lib/shipment-invoicing-api-model/spec/models/address_spec.rb index 72ec8c239..81fee9ac3 100644 --- a/lib/shipment-invoicing-api-model/spec/models/address_spec.rb +++ b/lib/shipment-invoicing-api-model/spec/models/address_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/shipment-invoicing-api-model/spec/models/address_type_enum_spec.rb b/lib/shipment-invoicing-api-model/spec/models/address_type_enum_spec.rb index 45ad977ca..05069c2bc 100644 --- a/lib/shipment-invoicing-api-model/spec/models/address_type_enum_spec.rb +++ b/lib/shipment-invoicing-api-model/spec/models/address_type_enum_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/shipment-invoicing-api-model/spec/models/blob_spec.rb b/lib/shipment-invoicing-api-model/spec/models/blob_spec.rb index 17972f744..f085615cb 100644 --- a/lib/shipment-invoicing-api-model/spec/models/blob_spec.rb +++ b/lib/shipment-invoicing-api-model/spec/models/blob_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/shipment-invoicing-api-model/spec/models/buyer_tax_info_spec.rb b/lib/shipment-invoicing-api-model/spec/models/buyer_tax_info_spec.rb index 39e4b0aa9..4a8918c8e 100644 --- a/lib/shipment-invoicing-api-model/spec/models/buyer_tax_info_spec.rb +++ b/lib/shipment-invoicing-api-model/spec/models/buyer_tax_info_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/shipment-invoicing-api-model/spec/models/error_list_spec.rb b/lib/shipment-invoicing-api-model/spec/models/error_list_spec.rb index db4ae97ba..35889a982 100644 --- a/lib/shipment-invoicing-api-model/spec/models/error_list_spec.rb +++ b/lib/shipment-invoicing-api-model/spec/models/error_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/shipment-invoicing-api-model/spec/models/error_spec.rb b/lib/shipment-invoicing-api-model/spec/models/error_spec.rb index aebb8891c..03892b974 100644 --- a/lib/shipment-invoicing-api-model/spec/models/error_spec.rb +++ b/lib/shipment-invoicing-api-model/spec/models/error_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/shipment-invoicing-api-model/spec/models/get_invoice_status_response_spec.rb b/lib/shipment-invoicing-api-model/spec/models/get_invoice_status_response_spec.rb index 6c1084643..87f805058 100644 --- a/lib/shipment-invoicing-api-model/spec/models/get_invoice_status_response_spec.rb +++ b/lib/shipment-invoicing-api-model/spec/models/get_invoice_status_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/shipment-invoicing-api-model/spec/models/get_shipment_details_response_spec.rb b/lib/shipment-invoicing-api-model/spec/models/get_shipment_details_response_spec.rb index 766e3b9e6..55698e472 100644 --- a/lib/shipment-invoicing-api-model/spec/models/get_shipment_details_response_spec.rb +++ b/lib/shipment-invoicing-api-model/spec/models/get_shipment_details_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/shipment-invoicing-api-model/spec/models/marketplace_tax_info_spec.rb b/lib/shipment-invoicing-api-model/spec/models/marketplace_tax_info_spec.rb index 32a283e49..b02d4b20c 100644 --- a/lib/shipment-invoicing-api-model/spec/models/marketplace_tax_info_spec.rb +++ b/lib/shipment-invoicing-api-model/spec/models/marketplace_tax_info_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/shipment-invoicing-api-model/spec/models/money_spec.rb b/lib/shipment-invoicing-api-model/spec/models/money_spec.rb index bd8ddd528..bab83db7c 100644 --- a/lib/shipment-invoicing-api-model/spec/models/money_spec.rb +++ b/lib/shipment-invoicing-api-model/spec/models/money_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/shipment-invoicing-api-model/spec/models/payment_method_detail_item_list_spec.rb b/lib/shipment-invoicing-api-model/spec/models/payment_method_detail_item_list_spec.rb index 20a604628..d92e251b1 100644 --- a/lib/shipment-invoicing-api-model/spec/models/payment_method_detail_item_list_spec.rb +++ b/lib/shipment-invoicing-api-model/spec/models/payment_method_detail_item_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/shipment-invoicing-api-model/spec/models/serial_numbers_list_spec.rb b/lib/shipment-invoicing-api-model/spec/models/serial_numbers_list_spec.rb index 3e264ca9e..227de9123 100644 --- a/lib/shipment-invoicing-api-model/spec/models/serial_numbers_list_spec.rb +++ b/lib/shipment-invoicing-api-model/spec/models/serial_numbers_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/shipment-invoicing-api-model/spec/models/shipment_detail_spec.rb b/lib/shipment-invoicing-api-model/spec/models/shipment_detail_spec.rb index 6a96552f3..4c0accb1a 100644 --- a/lib/shipment-invoicing-api-model/spec/models/shipment_detail_spec.rb +++ b/lib/shipment-invoicing-api-model/spec/models/shipment_detail_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/shipment-invoicing-api-model/spec/models/shipment_invoice_status_info_spec.rb b/lib/shipment-invoicing-api-model/spec/models/shipment_invoice_status_info_spec.rb index a7fe933bb..2d009f58a 100644 --- a/lib/shipment-invoicing-api-model/spec/models/shipment_invoice_status_info_spec.rb +++ b/lib/shipment-invoicing-api-model/spec/models/shipment_invoice_status_info_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/shipment-invoicing-api-model/spec/models/shipment_invoice_status_response_spec.rb b/lib/shipment-invoicing-api-model/spec/models/shipment_invoice_status_response_spec.rb index 75a9f8860..837a0df54 100644 --- a/lib/shipment-invoicing-api-model/spec/models/shipment_invoice_status_response_spec.rb +++ b/lib/shipment-invoicing-api-model/spec/models/shipment_invoice_status_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/shipment-invoicing-api-model/spec/models/shipment_invoice_status_spec.rb b/lib/shipment-invoicing-api-model/spec/models/shipment_invoice_status_spec.rb index 2fc5cd725..6701b0d3b 100644 --- a/lib/shipment-invoicing-api-model/spec/models/shipment_invoice_status_spec.rb +++ b/lib/shipment-invoicing-api-model/spec/models/shipment_invoice_status_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/shipment-invoicing-api-model/spec/models/shipment_item_spec.rb b/lib/shipment-invoicing-api-model/spec/models/shipment_item_spec.rb index 8be9bf32f..42c620aa3 100644 --- a/lib/shipment-invoicing-api-model/spec/models/shipment_item_spec.rb +++ b/lib/shipment-invoicing-api-model/spec/models/shipment_item_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/shipment-invoicing-api-model/spec/models/shipment_items_spec.rb b/lib/shipment-invoicing-api-model/spec/models/shipment_items_spec.rb index 3c505eab7..770f2c5e1 100644 --- a/lib/shipment-invoicing-api-model/spec/models/shipment_items_spec.rb +++ b/lib/shipment-invoicing-api-model/spec/models/shipment_items_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/shipment-invoicing-api-model/spec/models/submit_invoice_request_spec.rb b/lib/shipment-invoicing-api-model/spec/models/submit_invoice_request_spec.rb index 393603aba..bd8748dda 100644 --- a/lib/shipment-invoicing-api-model/spec/models/submit_invoice_request_spec.rb +++ b/lib/shipment-invoicing-api-model/spec/models/submit_invoice_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/shipment-invoicing-api-model/spec/models/submit_invoice_response_spec.rb b/lib/shipment-invoicing-api-model/spec/models/submit_invoice_response_spec.rb index 4963f2a21..40d5425b3 100644 --- a/lib/shipment-invoicing-api-model/spec/models/submit_invoice_response_spec.rb +++ b/lib/shipment-invoicing-api-model/spec/models/submit_invoice_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/shipment-invoicing-api-model/spec/models/tax_classification_list_spec.rb b/lib/shipment-invoicing-api-model/spec/models/tax_classification_list_spec.rb index e9393b087..510c68ade 100644 --- a/lib/shipment-invoicing-api-model/spec/models/tax_classification_list_spec.rb +++ b/lib/shipment-invoicing-api-model/spec/models/tax_classification_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/shipment-invoicing-api-model/spec/models/tax_classification_spec.rb b/lib/shipment-invoicing-api-model/spec/models/tax_classification_spec.rb index 56d14f078..a306aeb6f 100644 --- a/lib/shipment-invoicing-api-model/spec/models/tax_classification_spec.rb +++ b/lib/shipment-invoicing-api-model/spec/models/tax_classification_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/shipment-invoicing-api-model/spec/spec_helper.rb b/lib/shipment-invoicing-api-model/spec/spec_helper.rb index d0833176d..8b6d9f632 100644 --- a/lib/shipment-invoicing-api-model/spec/spec_helper.rb +++ b/lib/shipment-invoicing-api-model/spec/spec_helper.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # load the gem diff --git a/lib/shipment-invoicing-api-model/version.rb b/lib/shipment-invoicing-api-model/version.rb index 6d929907d..dd0179988 100644 --- a/lib/shipment-invoicing-api-model/version.rb +++ b/lib/shipment-invoicing-api-model/version.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::ShipmentInvoicingApiModel diff --git a/lib/uploads-api-model.rb b/lib/uploads-api-model.rb index 996964c5d..30e53d865 100644 --- a/lib/uploads-api-model.rb +++ b/lib/uploads-api-model.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-11-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # Common files diff --git a/lib/uploads-api-model/.swagger-codegen/VERSION b/lib/uploads-api-model/.swagger-codegen/VERSION index b39b0b9e0..161761765 100644 --- a/lib/uploads-api-model/.swagger-codegen/VERSION +++ b/lib/uploads-api-model/.swagger-codegen/VERSION @@ -1 +1 @@ -3.0.24 \ No newline at end of file +3.0.46 \ No newline at end of file diff --git a/lib/uploads-api-model/api/uploads_api.rb b/lib/uploads-api-model/api/uploads_api.rb index 52a6e50cc..aa71192f0 100644 --- a/lib/uploads-api-model/api/uploads_api.rb +++ b/lib/uploads-api-model/api/uploads_api.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-11-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::UploadsApiModel @@ -16,7 +16,7 @@ class UploadsApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Creates an upload destination, returning the information required to upload a file to the destination and to programmatically access the file. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | .1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Creates an upload destination, returning the information required to upload a file to the destination and to programmatically access the file. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param marketplace_ids A list of marketplace identifiers. This specifies the marketplaces where the upload will be available. Only one marketplace can be specified. # @param content_md5 An MD5 hash of the content to be submitted to the upload destination. This value is used to determine if the data has been corrupted or tampered with during transit. # @param resource The resource for the upload destination that you are creating. For example, if you are creating an upload destination for the createLegalDisclosure operation of the Messaging API, the `{resource}` would be `/messaging/v1/orders/{amazonOrderId}/messages/legalDisclosure`, and the entire path would be `/uploads/2020-11-01/uploadDestinations/messaging/v1/orders/{amazonOrderId}/messages/legalDisclosure`. If you are creating an upload destination for an Aplus content document, the `{resource}` would be `aplus/2020-11-01/contentDocuments` and the path would be `/uploads/v1/uploadDestinations/aplus/2020-11-01/contentDocuments`. @@ -28,7 +28,7 @@ def create_upload_destination_for_resource(marketplace_ids, content_md5, resourc data end - # Creates an upload destination, returning the information required to upload a file to the destination and to programmatically access the file. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | .1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Creates an upload destination, returning the information required to upload a file to the destination and to programmatically access the file. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param marketplace_ids A list of marketplace identifiers. This specifies the marketplaces where the upload will be available. Only one marketplace can be specified. # @param content_md5 An MD5 hash of the content to be submitted to the upload destination. This value is used to determine if the data has been corrupted or tampered with during transit. # @param resource The resource for the upload destination that you are creating. For example, if you are creating an upload destination for the createLegalDisclosure operation of the Messaging API, the `{resource}` would be `/messaging/v1/orders/{amazonOrderId}/messages/legalDisclosure`, and the entire path would be `/uploads/2020-11-01/uploadDestinations/messaging/v1/orders/{amazonOrderId}/messages/legalDisclosure`. If you are creating an upload destination for an Aplus content document, the `{resource}` would be `aplus/2020-11-01/contentDocuments` and the path would be `/uploads/v1/uploadDestinations/aplus/2020-11-01/contentDocuments`. diff --git a/lib/uploads-api-model/api_client.rb b/lib/uploads-api-model/api_client.rb index 19154d3da..840012687 100644 --- a/lib/uploads-api-model/api_client.rb +++ b/lib/uploads-api-model/api_client.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-11-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/uploads-api-model/api_error.rb b/lib/uploads-api-model/api_error.rb index 12ee3fd19..db2f4efbd 100644 --- a/lib/uploads-api-model/api_error.rb +++ b/lib/uploads-api-model/api_error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-11-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::UploadsApiModel diff --git a/lib/uploads-api-model/configuration.rb b/lib/uploads-api-model/configuration.rb index ccf7ef104..e3c583bc0 100644 --- a/lib/uploads-api-model/configuration.rb +++ b/lib/uploads-api-model/configuration.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-11-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::UploadsApiModel diff --git a/lib/uploads-api-model/docs/UploadsApi.md b/lib/uploads-api-model/docs/UploadsApi.md index 92b36e163..c323740c7 100644 --- a/lib/uploads-api-model/docs/UploadsApi.md +++ b/lib/uploads-api-model/docs/UploadsApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description -Creates an upload destination, returning the information required to upload a file to the destination and to programmatically access the file. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | .1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Creates an upload destination, returning the information required to upload a file to the destination and to programmatically access the file. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby diff --git a/lib/uploads-api-model/models/create_upload_destination_response.rb b/lib/uploads-api-model/models/create_upload_destination_response.rb index 5bd5e4d55..f8619e9c3 100644 --- a/lib/uploads-api-model/models/create_upload_destination_response.rb +++ b/lib/uploads-api-model/models/create_upload_destination_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-11-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/uploads-api-model/models/error.rb b/lib/uploads-api-model/models/error.rb index 9010677dc..52396f527 100644 --- a/lib/uploads-api-model/models/error.rb +++ b/lib/uploads-api-model/models/error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-11-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/uploads-api-model/models/error_list.rb b/lib/uploads-api-model/models/error_list.rb index 7ff5abb6e..3821c0600 100644 --- a/lib/uploads-api-model/models/error_list.rb +++ b/lib/uploads-api-model/models/error_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-11-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/uploads-api-model/models/upload_destination.rb b/lib/uploads-api-model/models/upload_destination.rb index ef3b3a397..564055e8d 100644 --- a/lib/uploads-api-model/models/upload_destination.rb +++ b/lib/uploads-api-model/models/upload_destination.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-11-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/uploads-api-model/spec/api/uploads_api_spec.rb b/lib/uploads-api-model/spec/api/uploads_api_spec.rb index b1ac7b58d..3175c8556 100644 --- a/lib/uploads-api-model/spec/api/uploads_api_spec.rb +++ b/lib/uploads-api-model/spec/api/uploads_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-11-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -32,7 +32,7 @@ end # unit tests for create_upload_destination_for_resource - # Creates an upload destination, returning the information required to upload a file to the destination and to programmatically access the file. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | .1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Creates an upload destination, returning the information required to upload a file to the destination and to programmatically access the file. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param marketplace_ids A list of marketplace identifiers. This specifies the marketplaces where the upload will be available. Only one marketplace can be specified. # @param content_md5 An MD5 hash of the content to be submitted to the upload destination. This value is used to determine if the data has been corrupted or tampered with during transit. # @param resource The resource for the upload destination that you are creating. For example, if you are creating an upload destination for the createLegalDisclosure operation of the Messaging API, the `{resource}` would be `/messaging/v1/orders/{amazonOrderId}/messages/legalDisclosure`, and the entire path would be `/uploads/2020-11-01/uploadDestinations/messaging/v1/orders/{amazonOrderId}/messages/legalDisclosure`. If you are creating an upload destination for an Aplus content document, the `{resource}` would be `aplus/2020-11-01/contentDocuments` and the path would be `/uploads/v1/uploadDestinations/aplus/2020-11-01/contentDocuments`. diff --git a/lib/uploads-api-model/spec/api_client_spec.rb b/lib/uploads-api-model/spec/api_client_spec.rb index 5a50b7f53..6f3f1d110 100644 --- a/lib/uploads-api-model/spec/api_client_spec.rb +++ b/lib/uploads-api-model/spec/api_client_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-11-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/uploads-api-model/spec/configuration_spec.rb b/lib/uploads-api-model/spec/configuration_spec.rb index 20155b246..684b22ee2 100644 --- a/lib/uploads-api-model/spec/configuration_spec.rb +++ b/lib/uploads-api-model/spec/configuration_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-11-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/uploads-api-model/spec/models/create_upload_destination_response_spec.rb b/lib/uploads-api-model/spec/models/create_upload_destination_response_spec.rb index 62e2c8cd7..cdefee8b8 100644 --- a/lib/uploads-api-model/spec/models/create_upload_destination_response_spec.rb +++ b/lib/uploads-api-model/spec/models/create_upload_destination_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-11-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/uploads-api-model/spec/models/error_list_spec.rb b/lib/uploads-api-model/spec/models/error_list_spec.rb index d857c6e4f..7e1320056 100644 --- a/lib/uploads-api-model/spec/models/error_list_spec.rb +++ b/lib/uploads-api-model/spec/models/error_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-11-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/uploads-api-model/spec/models/error_spec.rb b/lib/uploads-api-model/spec/models/error_spec.rb index f02984a20..e9bdd3cf8 100644 --- a/lib/uploads-api-model/spec/models/error_spec.rb +++ b/lib/uploads-api-model/spec/models/error_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-11-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/uploads-api-model/spec/models/upload_destination_spec.rb b/lib/uploads-api-model/spec/models/upload_destination_spec.rb index cff71bed3..48e56a257 100644 --- a/lib/uploads-api-model/spec/models/upload_destination_spec.rb +++ b/lib/uploads-api-model/spec/models/upload_destination_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-11-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/uploads-api-model/spec/spec_helper.rb b/lib/uploads-api-model/spec/spec_helper.rb index ef9a13bcd..02048321f 100644 --- a/lib/uploads-api-model/spec/spec_helper.rb +++ b/lib/uploads-api-model/spec/spec_helper.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-11-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # load the gem diff --git a/lib/uploads-api-model/version.rb b/lib/uploads-api-model/version.rb index 1ec5afdec..7ffd99909 100644 --- a/lib/uploads-api-model/version.rb +++ b/lib/uploads-api-model/version.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2020-11-01 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::UploadsApiModel diff --git a/lib/vendor-direct-fulfillment-orders-api-model.rb b/lib/vendor-direct-fulfillment-orders-api-model.rb index 02b42a17e..9a3fd70e7 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # Common files @@ -21,14 +21,18 @@ require 'vendor-direct-fulfillment-orders-api-model/models/decimal' require 'vendor-direct-fulfillment-orders-api-model/models/error' require 'vendor-direct-fulfillment-orders-api-model/models/error_list' +require 'vendor-direct-fulfillment-orders-api-model/models/get_order_response' +require 'vendor-direct-fulfillment-orders-api-model/models/get_orders_response' require 'vendor-direct-fulfillment-orders-api-model/models/gift_details' require 'vendor-direct-fulfillment-orders-api-model/models/item_quantity' require 'vendor-direct-fulfillment-orders-api-model/models/money' require 'vendor-direct-fulfillment-orders-api-model/models/order' require 'vendor-direct-fulfillment-orders-api-model/models/order_acknowledgement_item' require 'vendor-direct-fulfillment-orders-api-model/models/order_details' +require 'vendor-direct-fulfillment-orders-api-model/models/order_details_tax_total' require 'vendor-direct-fulfillment-orders-api-model/models/order_item' require 'vendor-direct-fulfillment-orders-api-model/models/order_item_acknowledgement' +require 'vendor-direct-fulfillment-orders-api-model/models/order_item_tax_details' require 'vendor-direct-fulfillment-orders-api-model/models/order_list' require 'vendor-direct-fulfillment-orders-api-model/models/pagination' require 'vendor-direct-fulfillment-orders-api-model/models/party_identification' @@ -38,7 +42,6 @@ require 'vendor-direct-fulfillment-orders-api-model/models/submit_acknowledgement_request' require 'vendor-direct-fulfillment-orders-api-model/models/submit_acknowledgement_response' require 'vendor-direct-fulfillment-orders-api-model/models/tax_details' -require 'vendor-direct-fulfillment-orders-api-model/models/tax_item_details' require 'vendor-direct-fulfillment-orders-api-model/models/tax_line_item' require 'vendor-direct-fulfillment-orders-api-model/models/tax_registration_details' require 'vendor-direct-fulfillment-orders-api-model/models/transaction_id' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/.swagger-codegen/VERSION b/lib/vendor-direct-fulfillment-orders-api-model/.swagger-codegen/VERSION index b39b0b9e0..161761765 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/.swagger-codegen/VERSION +++ b/lib/vendor-direct-fulfillment-orders-api-model/.swagger-codegen/VERSION @@ -1 +1 @@ -3.0.24 \ No newline at end of file +3.0.46 \ No newline at end of file diff --git a/lib/vendor-direct-fulfillment-orders-api-model/README.md b/lib/vendor-direct-fulfillment-orders-api-model/README.md index 6379596c5..dadb6c495 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/README.md +++ b/lib/vendor-direct-fulfillment-orders-api-model/README.md @@ -6,7 +6,7 @@ The Selling Partner API for Direct Fulfillment Orders provides programmatic acce This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: -- API version: 2021-12-28 +- API version: v1 - Package version: 0.1.0 - Build package: io.swagger.codegen.v3.generators.ruby.RubyClientCodegen For more information, please visit [https://sellercentral.amazon.com/gp/mws/contactus.html](https://sellercentral.amazon.com/gp/mws/contactus.html) @@ -103,9 +103,9 @@ All URIs are relative to *https://sellingpartnerapi-na.amazon.com/* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*AmzSpApi::VendorDirectFulfillmentOrdersApiModel::VendorOrdersApi* | [**get_order**](docs/VendorOrdersApi.md#get_order) | **GET** /vendor/directFulfillment/orders/2021-12-28/purchaseOrders/{purchaseOrderNumber} | -*AmzSpApi::VendorDirectFulfillmentOrdersApiModel::VendorOrdersApi* | [**get_orders**](docs/VendorOrdersApi.md#get_orders) | **GET** /vendor/directFulfillment/orders/2021-12-28/purchaseOrders | -*AmzSpApi::VendorDirectFulfillmentOrdersApiModel::VendorOrdersApi* | [**submit_acknowledgement**](docs/VendorOrdersApi.md#submit_acknowledgement) | **POST** /vendor/directFulfillment/orders/2021-12-28/acknowledgements | +*AmzSpApi::VendorDirectFulfillmentOrdersApiModel::VendorOrdersApi* | [**get_order**](docs/VendorOrdersApi.md#get_order) | **GET** /vendor/directFulfillment/orders/v1/purchaseOrders/{purchaseOrderNumber} | +*AmzSpApi::VendorDirectFulfillmentOrdersApiModel::VendorOrdersApi* | [**get_orders**](docs/VendorOrdersApi.md#get_orders) | **GET** /vendor/directFulfillment/orders/v1/purchaseOrders | +*AmzSpApi::VendorDirectFulfillmentOrdersApiModel::VendorOrdersApi* | [**submit_acknowledgement**](docs/VendorOrdersApi.md#submit_acknowledgement) | **POST** /vendor/directFulfillment/orders/v1/acknowledgements | ## Documentation for Models @@ -114,14 +114,18 @@ Class | Method | HTTP request | Description - [AmzSpApi::VendorDirectFulfillmentOrdersApiModel::Decimal](docs/Decimal.md) - [AmzSpApi::VendorDirectFulfillmentOrdersApiModel::Error](docs/Error.md) - [AmzSpApi::VendorDirectFulfillmentOrdersApiModel::ErrorList](docs/ErrorList.md) + - [AmzSpApi::VendorDirectFulfillmentOrdersApiModel::GetOrderResponse](docs/GetOrderResponse.md) + - [AmzSpApi::VendorDirectFulfillmentOrdersApiModel::GetOrdersResponse](docs/GetOrdersResponse.md) - [AmzSpApi::VendorDirectFulfillmentOrdersApiModel::GiftDetails](docs/GiftDetails.md) - [AmzSpApi::VendorDirectFulfillmentOrdersApiModel::ItemQuantity](docs/ItemQuantity.md) - [AmzSpApi::VendorDirectFulfillmentOrdersApiModel::Money](docs/Money.md) - [AmzSpApi::VendorDirectFulfillmentOrdersApiModel::Order](docs/Order.md) - [AmzSpApi::VendorDirectFulfillmentOrdersApiModel::OrderAcknowledgementItem](docs/OrderAcknowledgementItem.md) - [AmzSpApi::VendorDirectFulfillmentOrdersApiModel::OrderDetails](docs/OrderDetails.md) + - [AmzSpApi::VendorDirectFulfillmentOrdersApiModel::OrderDetailsTaxTotal](docs/OrderDetailsTaxTotal.md) - [AmzSpApi::VendorDirectFulfillmentOrdersApiModel::OrderItem](docs/OrderItem.md) - [AmzSpApi::VendorDirectFulfillmentOrdersApiModel::OrderItemAcknowledgement](docs/OrderItemAcknowledgement.md) + - [AmzSpApi::VendorDirectFulfillmentOrdersApiModel::OrderItemTaxDetails](docs/OrderItemTaxDetails.md) - [AmzSpApi::VendorDirectFulfillmentOrdersApiModel::OrderList](docs/OrderList.md) - [AmzSpApi::VendorDirectFulfillmentOrdersApiModel::Pagination](docs/Pagination.md) - [AmzSpApi::VendorDirectFulfillmentOrdersApiModel::PartyIdentification](docs/PartyIdentification.md) @@ -131,7 +135,6 @@ Class | Method | HTTP request | Description - [AmzSpApi::VendorDirectFulfillmentOrdersApiModel::SubmitAcknowledgementRequest](docs/SubmitAcknowledgementRequest.md) - [AmzSpApi::VendorDirectFulfillmentOrdersApiModel::SubmitAcknowledgementResponse](docs/SubmitAcknowledgementResponse.md) - [AmzSpApi::VendorDirectFulfillmentOrdersApiModel::TaxDetails](docs/TaxDetails.md) - - [AmzSpApi::VendorDirectFulfillmentOrdersApiModel::TaxItemDetails](docs/TaxItemDetails.md) - [AmzSpApi::VendorDirectFulfillmentOrdersApiModel::TaxLineItem](docs/TaxLineItem.md) - [AmzSpApi::VendorDirectFulfillmentOrdersApiModel::TaxRegistrationDetails](docs/TaxRegistrationDetails.md) - [AmzSpApi::VendorDirectFulfillmentOrdersApiModel::TransactionId](docs/TransactionId.md) diff --git a/lib/vendor-direct-fulfillment-orders-api-model/api/vendor_orders_api.rb b/lib/vendor-direct-fulfillment-orders-api-model/api/vendor_orders_api.rb index f42c32873..0aa9ca29c 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/api/vendor_orders_api.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/api/vendor_orders_api.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::VendorDirectFulfillmentOrdersApiModel @@ -16,19 +16,19 @@ class VendorOrdersApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Returns purchase order information for the purchaseOrderNumber that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Returns purchase order information for the purchaseOrderNumber that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param purchase_order_number The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code. # @param [Hash] opts the optional parameters - # @return [Order] + # @return [GetOrderResponse] def get_order(purchase_order_number, opts = {}) data, _status_code, _headers = get_order_with_http_info(purchase_order_number, opts) data end - # Returns purchase order information for the purchaseOrderNumber that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Returns purchase order information for the purchaseOrderNumber that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param purchase_order_number The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code. # @param [Hash] opts the optional parameters - # @return [Array<(Order, Integer, Hash)>] Order data, response status code and response headers + # @return [Array<(GetOrderResponse, Integer, Hash)>] GetOrderResponse data, response status code and response headers def get_order_with_http_info(purchase_order_number, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: VendorOrdersApi.get_order ...' @@ -38,7 +38,7 @@ def get_order_with_http_info(purchase_order_number, opts = {}) fail ArgumentError, "Missing the required parameter 'purchase_order_number' when calling VendorOrdersApi.get_order" end # resource path - local_var_path = '/vendor/directFulfillment/orders/2021-12-28/purchaseOrders/{purchaseOrderNumber}'.sub('{' + 'purchaseOrderNumber' + '}', purchase_order_number.to_s) + local_var_path = '/vendor/directFulfillment/orders/v1/purchaseOrders/{purchaseOrderNumber}'.sub('{' + 'purchaseOrderNumber' + '}', purchase_order_number.to_s) # query parameters query_params = opts[:query_params] || {} @@ -54,7 +54,7 @@ def get_order_with_http_info(purchase_order_number, opts = {}) # http body (model) post_body = opts[:body] - return_type = opts[:return_type] || 'Order' + return_type = opts[:return_type] || 'GetOrderResponse' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -70,7 +70,7 @@ def get_order_with_http_info(purchase_order_number, opts = {}) end return data, status_code, headers end - # Returns a list of purchase orders created during the time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both parameters. You can choose to get only the purchase order numbers by setting the includeDetails parameter to false. In that case, the operation returns a list of purchase order numbers. You can then call the getOrder operation to return the details of a specific order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Returns a list of purchase orders created during the time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both parameters. You can choose to get only the purchase order numbers by setting the includeDetails parameter to false. In that case, the operation returns a list of purchase order numbers. You can then call the getOrder operation to return the details of a specific order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param created_after Purchase orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. # @param created_before Purchase orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. # @param [Hash] opts the optional parameters @@ -80,13 +80,13 @@ def get_order_with_http_info(purchase_order_number, opts = {}) # @option opts [String] :sort_order Sort the list in ascending or descending order by order creation date. # @option opts [String] :next_token Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. # @option opts [String] :include_details When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned. (default to true) - # @return [OrderList] + # @return [GetOrdersResponse] def get_orders(created_after, created_before, opts = {}) data, _status_code, _headers = get_orders_with_http_info(created_after, created_before, opts) data end - # Returns a list of purchase orders created during the time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both parameters. You can choose to get only the purchase order numbers by setting the includeDetails parameter to false. In that case, the operation returns a list of purchase order numbers. You can then call the getOrder operation to return the details of a specific order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Returns a list of purchase orders created during the time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both parameters. You can choose to get only the purchase order numbers by setting the includeDetails parameter to false. In that case, the operation returns a list of purchase order numbers. You can then call the getOrder operation to return the details of a specific order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param created_after Purchase orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. # @param created_before Purchase orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. # @param [Hash] opts the optional parameters @@ -96,7 +96,7 @@ def get_orders(created_after, created_before, opts = {}) # @option opts [String] :sort_order Sort the list in ascending or descending order by order creation date. # @option opts [String] :next_token Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. # @option opts [String] :include_details When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned. - # @return [Array<(OrderList, Integer, Hash)>] OrderList data, response status code and response headers + # @return [Array<(GetOrdersResponse, Integer, Hash)>] GetOrdersResponse data, response status code and response headers def get_orders_with_http_info(created_after, created_before, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: VendorOrdersApi.get_orders ...' @@ -116,7 +116,7 @@ def get_orders_with_http_info(created_after, created_before, opts = {}) fail ArgumentError, 'invalid value for "sort_order", must be one of ASC, DESC' end # resource path - local_var_path = '/vendor/directFulfillment/orders/2021-12-28/purchaseOrders' + local_var_path = '/vendor/directFulfillment/orders/v1/purchaseOrders' # query parameters query_params = opts[:query_params] || {} @@ -132,7 +132,7 @@ def get_orders_with_http_info(created_after, created_before, opts = {}) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json', 'pagination', 'orders']) + header_params['Accept'] = @api_client.select_header_accept(['application/json', 'payload']) # form parameters form_params = opts[:form_params] || {} @@ -140,7 +140,7 @@ def get_orders_with_http_info(created_after, created_before, opts = {}) # http body (model) post_body = opts[:body] - return_type = opts[:return_type] || 'OrderList' + return_type = opts[:return_type] || 'GetOrdersResponse' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -156,19 +156,19 @@ def get_orders_with_http_info(created_after, created_before, opts = {}) end return data, status_code, headers end - # Submits acknowledgements for one or more purchase orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Submits acknowledgements for one or more purchase orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters - # @return [TransactionId] + # @return [SubmitAcknowledgementResponse] def submit_acknowledgement(body, opts = {}) data, _status_code, _headers = submit_acknowledgement_with_http_info(body, opts) data end - # Submits acknowledgements for one or more purchase orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Submits acknowledgements for one or more purchase orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters - # @return [Array<(TransactionId, Integer, Hash)>] TransactionId data, response status code and response headers + # @return [Array<(SubmitAcknowledgementResponse, Integer, Hash)>] SubmitAcknowledgementResponse data, response status code and response headers def submit_acknowledgement_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: VendorOrdersApi.submit_acknowledgement ...' @@ -178,7 +178,7 @@ def submit_acknowledgement_with_http_info(body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling VendorOrdersApi.submit_acknowledgement" end # resource path - local_var_path = '/vendor/directFulfillment/orders/2021-12-28/acknowledgements' + local_var_path = '/vendor/directFulfillment/orders/v1/acknowledgements' # query parameters query_params = opts[:query_params] || {} @@ -196,7 +196,7 @@ def submit_acknowledgement_with_http_info(body, opts = {}) # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(body) - return_type = opts[:return_type] || 'TransactionId' + return_type = opts[:return_type] || 'SubmitAcknowledgementResponse' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/vendor-direct-fulfillment-orders-api-model/api_client.rb b/lib/vendor-direct-fulfillment-orders-api-model/api_client.rb index 10569c832..0596f071a 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/api_client.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/api_client.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/api_error.rb b/lib/vendor-direct-fulfillment-orders-api-model/api_error.rb index e0009f832..6c8170995 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/api_error.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/api_error.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::VendorDirectFulfillmentOrdersApiModel diff --git a/lib/vendor-direct-fulfillment-orders-api-model/configuration.rb b/lib/vendor-direct-fulfillment-orders-api-model/configuration.rb index 2f5cf3f6a..07712e41e 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/configuration.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/configuration.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::VendorDirectFulfillmentOrdersApiModel diff --git a/lib/vendor-direct-fulfillment-orders-api-model/docs/ErrorList.md b/lib/vendor-direct-fulfillment-orders-api-model/docs/ErrorList.md index 4afcbc63a..31604e2a4 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/docs/ErrorList.md +++ b/lib/vendor-direct-fulfillment-orders-api-model/docs/ErrorList.md @@ -3,5 +3,4 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**errors** | [**Array<Error>**](Error.md) | | diff --git a/lib/vendor-direct-fulfillment-orders-api-model/docs/GetOrderResponse.md b/lib/vendor-direct-fulfillment-orders-api-model/docs/GetOrderResponse.md new file mode 100644 index 000000000..21214cea6 --- /dev/null +++ b/lib/vendor-direct-fulfillment-orders-api-model/docs/GetOrderResponse.md @@ -0,0 +1,8 @@ +# AmzSpApi::VendorDirectFulfillmentOrdersApiModel::GetOrderResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payload** | [**Order**](Order.md) | | [optional] +**errors** | [**ErrorList**](ErrorList.md) | | [optional] + diff --git a/lib/vendor-direct-fulfillment-orders-api-model/docs/GetOrdersResponse.md b/lib/vendor-direct-fulfillment-orders-api-model/docs/GetOrdersResponse.md new file mode 100644 index 000000000..8cad6efb4 --- /dev/null +++ b/lib/vendor-direct-fulfillment-orders-api-model/docs/GetOrdersResponse.md @@ -0,0 +1,8 @@ +# AmzSpApi::VendorDirectFulfillmentOrdersApiModel::GetOrdersResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payload** | [**OrderList**](OrderList.md) | | [optional] +**errors** | [**ErrorList**](ErrorList.md) | | [optional] + diff --git a/lib/vendor-direct-fulfillment-orders-api-model/docs/OrderDetails.md b/lib/vendor-direct-fulfillment-orders-api-model/docs/OrderDetails.md index 5deff6fa4..bc32938e3 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/docs/OrderDetails.md +++ b/lib/vendor-direct-fulfillment-orders-api-model/docs/OrderDetails.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **customer_order_number** | **String** | The customer order number. | -**order_date** | **DateTime** | The date the order was placed. This field is expected to be in ISO-8601 date/time format, for example:2018-07-16T23:00:00Z/ 2018-07-16T23:00:00-05:00 /2018-07-16T23:00:00-08:00. If no time zone is specified, UTC should be assumed. | +**order_date** | **DateTime** | The date the order was placed. This field is expected to be in ISO-8601 date/time format, for example:2018-07-16T23:00:00Z/ 2018-07-16T23:00:00-05:00 /2018-07-16T23:00:00-08:00. If no time zone is specified, UTC should be assumed. | **order_status** | **String** | Current status of the order. | [optional] **shipment_details** | [**ShipmentDetails**](ShipmentDetails.md) | | -**tax_total** | [**TaxItemDetails**](TaxItemDetails.md) | | [optional] +**tax_total** | [**OrderDetailsTaxTotal**](OrderDetailsTaxTotal.md) | | [optional] **selling_party** | [**PartyIdentification**](PartyIdentification.md) | | **ship_from_party** | [**PartyIdentification**](PartyIdentification.md) | | **ship_to_party** | [**Address**](Address.md) | | diff --git a/lib/vendor-direct-fulfillment-orders-api-model/docs/OrderDetailsTaxTotal.md b/lib/vendor-direct-fulfillment-orders-api-model/docs/OrderDetailsTaxTotal.md new file mode 100644 index 000000000..3c44046c0 --- /dev/null +++ b/lib/vendor-direct-fulfillment-orders-api-model/docs/OrderDetailsTaxTotal.md @@ -0,0 +1,7 @@ +# AmzSpApi::VendorDirectFulfillmentOrdersApiModel::OrderDetailsTaxTotal + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tax_line_item** | [**TaxLineItem**](TaxLineItem.md) | | [optional] + diff --git a/lib/vendor-direct-fulfillment-orders-api-model/docs/OrderItem.md b/lib/vendor-direct-fulfillment-orders-api-model/docs/OrderItem.md index 8dd89d2c8..826eab08a 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/docs/OrderItem.md +++ b/lib/vendor-direct-fulfillment-orders-api-model/docs/OrderItem.md @@ -11,6 +11,6 @@ Name | Type | Description | Notes **scheduled_delivery_shipment** | [**ScheduledDeliveryShipment**](ScheduledDeliveryShipment.md) | | [optional] **gift_details** | [**GiftDetails**](GiftDetails.md) | | [optional] **net_price** | [**Money**](Money.md) | | -**tax_details** | [**TaxItemDetails**](TaxItemDetails.md) | | [optional] +**tax_details** | [**OrderItemTaxDetails**](OrderItemTaxDetails.md) | | [optional] **total_price** | [**Money**](Money.md) | | [optional] diff --git a/lib/vendor-direct-fulfillment-orders-api-model/docs/TaxItemDetails.md b/lib/vendor-direct-fulfillment-orders-api-model/docs/OrderItemTaxDetails.md similarity index 71% rename from lib/vendor-direct-fulfillment-orders-api-model/docs/TaxItemDetails.md rename to lib/vendor-direct-fulfillment-orders-api-model/docs/OrderItemTaxDetails.md index bbc09b3bc..c378bff35 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/docs/TaxItemDetails.md +++ b/lib/vendor-direct-fulfillment-orders-api-model/docs/OrderItemTaxDetails.md @@ -1,4 +1,4 @@ -# AmzSpApi::VendorDirectFulfillmentOrdersApiModel::TaxItemDetails +# AmzSpApi::VendorDirectFulfillmentOrdersApiModel::OrderItemTaxDetails ## Properties Name | Type | Description | Notes diff --git a/lib/vendor-direct-fulfillment-orders-api-model/docs/VendorOrdersApi.md b/lib/vendor-direct-fulfillment-orders-api-model/docs/VendorOrdersApi.md index 1750b1281..a29014717 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/docs/VendorOrdersApi.md +++ b/lib/vendor-direct-fulfillment-orders-api-model/docs/VendorOrdersApi.md @@ -4,16 +4,16 @@ All URIs are relative to *https://sellingpartnerapi-na.amazon.com/* Method | HTTP request | Description ------------- | ------------- | ------------- -[**get_order**](VendorOrdersApi.md#get_order) | **GET** /vendor/directFulfillment/orders/2021-12-28/purchaseOrders/{purchaseOrderNumber} | -[**get_orders**](VendorOrdersApi.md#get_orders) | **GET** /vendor/directFulfillment/orders/2021-12-28/purchaseOrders | -[**submit_acknowledgement**](VendorOrdersApi.md#submit_acknowledgement) | **POST** /vendor/directFulfillment/orders/2021-12-28/acknowledgements | +[**get_order**](VendorOrdersApi.md#get_order) | **GET** /vendor/directFulfillment/orders/v1/purchaseOrders/{purchaseOrderNumber} | +[**get_orders**](VendorOrdersApi.md#get_orders) | **GET** /vendor/directFulfillment/orders/v1/purchaseOrders | +[**submit_acknowledgement**](VendorOrdersApi.md#submit_acknowledgement) | **POST** /vendor/directFulfillment/orders/v1/acknowledgements | # **get_order** -> Order get_order(purchase_order_number) +> GetOrderResponse get_order(purchase_order_number) -Returns purchase order information for the purchaseOrderNumber that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). +Returns purchase order information for the purchaseOrderNumber that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -40,7 +40,7 @@ Name | Type | Description | Notes ### Return type -[**Order**](Order.md) +[**GetOrderResponse**](GetOrderResponse.md) ### Authorization @@ -54,11 +54,11 @@ No authorization required # **get_orders** -> OrderList get_orders(created_after, created_before, opts) +> GetOrdersResponse get_orders(created_after, created_before, opts) -Returns a list of purchase orders created during the time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both parameters. You can choose to get only the purchase order numbers by setting the includeDetails parameter to false. In that case, the operation returns a list of purchase order numbers. You can then call the getOrder operation to return the details of a specific order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). +Returns a list of purchase orders created during the time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both parameters. You can choose to get only the purchase order numbers by setting the includeDetails parameter to false. In that case, the operation returns a list of purchase order numbers. You can then call the getOrder operation to return the details of a specific order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -100,7 +100,7 @@ Name | Type | Description | Notes ### Return type -[**OrderList**](OrderList.md) +[**GetOrdersResponse**](GetOrdersResponse.md) ### Authorization @@ -109,16 +109,16 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, pagination, orders + - **Accept**: application/json, payload # **submit_acknowledgement** -> TransactionId submit_acknowledgement(body) +> SubmitAcknowledgementResponse submit_acknowledgement(body) -Submits acknowledgements for one or more purchase orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). +Submits acknowledgements for one or more purchase orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -145,7 +145,7 @@ Name | Type | Description | Notes ### Return type -[**TransactionId**](TransactionId.md) +[**SubmitAcknowledgementResponse**](SubmitAcknowledgementResponse.md) ### Authorization diff --git a/lib/vendor-direct-fulfillment-orders-api-model/models/acknowledgement_status.rb b/lib/vendor-direct-fulfillment-orders-api-model/models/acknowledgement_status.rb index 1429739d4..d195afbca 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/models/acknowledgement_status.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/models/acknowledgement_status.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/models/address.rb b/lib/vendor-direct-fulfillment-orders-api-model/models/address.rb index 11305f916..7d72d85cc 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/models/address.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/models/address.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/models/decimal.rb b/lib/vendor-direct-fulfillment-orders-api-model/models/decimal.rb index 9d7d6f951..d60797fcd 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/models/decimal.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/models/decimal.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/models/error.rb b/lib/vendor-direct-fulfillment-orders-api-model/models/error.rb index add885ad4..a8e43e59f 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/models/error.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/models/error.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/models/error_list.rb b/lib/vendor-direct-fulfillment-orders-api-model/models/error_list.rb index 25f23c0ef..7fa1fa122 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/models/error_list.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/models/error_list.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' @@ -14,19 +14,15 @@ module AmzSpApi::VendorDirectFulfillmentOrdersApiModel # A list of error responses returned when a request is unsuccessful. class ErrorList - attr_accessor :errors - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'errors' => :'errors' } end # Attribute type mapping. def self.openapi_types { - :'errors' => :'Object' } end @@ -51,28 +47,20 @@ def initialize(attributes = {}) h[k.to_sym] = v } - if attributes.key?(:'errors') - if (value = attributes[:'errors']).is_a?(Array) - self.errors = value - end - end + # call parent's initialize + super(attributes) end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties - invalid_properties = Array.new - if @errors.nil? - invalid_properties.push('invalid value for "errors", errors cannot be nil.') - end - + invalid_properties = super invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @errors.nil? true end @@ -80,8 +68,7 @@ def valid? # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) - self.class == o.class && - errors == o.errors + self.class == o.class && super(o) end # @see the `==` method @@ -93,7 +80,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [errors].hash + [].hash end # Builds the object from hash @@ -108,6 +95,7 @@ def self.build_from_hash(attributes) # @return [Object] Returns the model itself def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) + super(attributes) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute @@ -181,7 +169,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash - hash = {} + hash = super self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? diff --git a/lib/vendor-direct-fulfillment-orders-api-model/models/get_order_response.rb b/lib/vendor-direct-fulfillment-orders-api-model/models/get_order_response.rb new file mode 100644 index 000000000..cbd5d9d4f --- /dev/null +++ b/lib/vendor-direct-fulfillment-orders-api-model/models/get_order_response.rb @@ -0,0 +1,216 @@ +=begin +#Selling Partner API for Direct Fulfillment Orders + +#The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::VendorDirectFulfillmentOrdersApiModel + # The response schema for the getOrder operation. + class GetOrderResponse + attr_accessor :payload + + attr_accessor :errors + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'payload' => :'payload', + :'errors' => :'errors' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'payload' => :'Object', + :'errors' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorDirectFulfillmentOrdersApiModel::GetOrderResponse` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorDirectFulfillmentOrdersApiModel::GetOrderResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'payload') + self.payload = attributes[:'payload'] + end + + if attributes.key?(:'errors') + self.errors = attributes[:'errors'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + payload == o.payload && + errors == o.errors + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [payload, errors].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::VendorDirectFulfillmentOrdersApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/vendor-direct-fulfillment-orders-api-model/models/get_orders_response.rb b/lib/vendor-direct-fulfillment-orders-api-model/models/get_orders_response.rb new file mode 100644 index 000000000..339ceda81 --- /dev/null +++ b/lib/vendor-direct-fulfillment-orders-api-model/models/get_orders_response.rb @@ -0,0 +1,216 @@ +=begin +#Selling Partner API for Direct Fulfillment Orders + +#The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::VendorDirectFulfillmentOrdersApiModel + # The response schema for the getOrders operation. + class GetOrdersResponse + attr_accessor :payload + + attr_accessor :errors + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'payload' => :'payload', + :'errors' => :'errors' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'payload' => :'Object', + :'errors' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorDirectFulfillmentOrdersApiModel::GetOrdersResponse` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorDirectFulfillmentOrdersApiModel::GetOrdersResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'payload') + self.payload = attributes[:'payload'] + end + + if attributes.key?(:'errors') + self.errors = attributes[:'errors'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + payload == o.payload && + errors == o.errors + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [payload, errors].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::VendorDirectFulfillmentOrdersApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/vendor-direct-fulfillment-orders-api-model/models/gift_details.rb b/lib/vendor-direct-fulfillment-orders-api-model/models/gift_details.rb index 55cd141de..15936247d 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/models/gift_details.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/models/gift_details.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/models/item_quantity.rb b/lib/vendor-direct-fulfillment-orders-api-model/models/item_quantity.rb index ae307793e..526bf847d 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/models/item_quantity.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/models/item_quantity.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/models/money.rb b/lib/vendor-direct-fulfillment-orders-api-model/models/money.rb index 47e012669..7c8747e60 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/models/money.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/models/money.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/models/order.rb b/lib/vendor-direct-fulfillment-orders-api-model/models/order.rb index 310aa1ec8..717961e9a 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/models/order.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/models/order.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/models/order_acknowledgement_item.rb b/lib/vendor-direct-fulfillment-orders-api-model/models/order_acknowledgement_item.rb index 886398ea5..0d657b01d 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/models/order_acknowledgement_item.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/models/order_acknowledgement_item.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/models/order_details.rb b/lib/vendor-direct-fulfillment-orders-api-model/models/order_details.rb index 922ec1b49..7ea52ad53 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/models/order_details.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/models/order_details.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' @@ -17,7 +17,7 @@ class OrderDetails # The customer order number. attr_accessor :customer_order_number - # The date the order was placed. This field is expected to be in ISO-8601 date/time format, for example:2018-07-16T23:00:00Z/ 2018-07-16T23:00:00-05:00 /2018-07-16T23:00:00-08:00. If no time zone is specified, UTC should be assumed. + # The date the order was placed. This field is expected to be in ISO-8601 date/time format, for example:2018-07-16T23:00:00Z/ 2018-07-16T23:00:00-05:00 /2018-07-16T23:00:00-08:00. If no time zone is specified, UTC should be assumed. attr_accessor :order_date # Current status of the order. diff --git a/lib/product-pricing-api-model/models/get_listing_offers_batch_request.rb b/lib/vendor-direct-fulfillment-orders-api-model/models/order_details_tax_total.rb similarity index 84% rename from lib/product-pricing-api-model/models/get_listing_offers_batch_request.rb rename to lib/vendor-direct-fulfillment-orders-api-model/models/order_details_tax_total.rb index a3a104d0a..326c76120 100644 --- a/lib/product-pricing-api-model/models/get_listing_offers_batch_request.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/models/order_details_tax_total.rb @@ -1,32 +1,31 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Direct Fulfillment Orders -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: v0 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - # The request associated with the getListingOffersBatch API call. - class GetListingOffersBatchRequest - attr_accessor :requests +module AmzSpApi::VendorDirectFulfillmentOrdersApiModel + class OrderDetailsTaxTotal + attr_accessor :tax_line_item # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'requests' => :'requests' + :'tax_line_item' => :'taxLineItem' } end # Attribute type mapping. def self.openapi_types { - :'requests' => :'Object' + :'tax_line_item' => :'Object' } end @@ -40,19 +39,19 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::GetListingOffersBatchRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorDirectFulfillmentOrdersApiModel::OrderDetailsTaxTotal` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::GetListingOffersBatchRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorDirectFulfillmentOrdersApiModel::OrderDetailsTaxTotal`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - if attributes.key?(:'requests') - self.requests = attributes[:'requests'] + if attributes.key?(:'tax_line_item') + self.tax_line_item = attributes[:'tax_line_item'] end end @@ -74,7 +73,7 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - requests == o.requests + tax_line_item == o.tax_line_item end # @see the `==` method @@ -86,7 +85,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [requests].hash + [tax_line_item].hash end # Builds the object from hash @@ -155,7 +154,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::VendorDirectFulfillmentOrdersApiModel.const_get(type).build_from_hash(value) end end diff --git a/lib/vendor-direct-fulfillment-orders-api-model/models/order_item.rb b/lib/vendor-direct-fulfillment-orders-api-model/models/order_item.rb index f8646625c..c8b4be917 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/models/order_item.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/models/order_item.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/models/order_item_acknowledgement.rb b/lib/vendor-direct-fulfillment-orders-api-model/models/order_item_acknowledgement.rb index c8ad37b0d..e2aa564a6 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/models/order_item_acknowledgement.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/models/order_item_acknowledgement.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/models/tax_item_details.rb b/lib/vendor-direct-fulfillment-orders-api-model/models/order_item_tax_details.rb similarity index 95% rename from lib/vendor-direct-fulfillment-orders-api-model/models/tax_item_details.rb rename to lib/vendor-direct-fulfillment-orders-api-model/models/order_item_tax_details.rb index 7e2c471a8..217a85c15 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/models/tax_item_details.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/models/order_item_tax_details.rb @@ -3,17 +3,17 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::VendorDirectFulfillmentOrdersApiModel # Total tax details for the line item. - class TaxItemDetails + class OrderItemTaxDetails attr_accessor :tax_line_item # Attribute mapping from ruby-style variable name to JSON key. @@ -40,13 +40,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorDirectFulfillmentOrdersApiModel::TaxItemDetails` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorDirectFulfillmentOrdersApiModel::OrderItemTaxDetails` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorDirectFulfillmentOrdersApiModel::TaxItemDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorDirectFulfillmentOrdersApiModel::OrderItemTaxDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/vendor-direct-fulfillment-orders-api-model/models/order_list.rb b/lib/vendor-direct-fulfillment-orders-api-model/models/order_list.rb index 83be01cab..fdbd3e7ee 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/models/order_list.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/models/order_list.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/models/pagination.rb b/lib/vendor-direct-fulfillment-orders-api-model/models/pagination.rb index 78fdac5ba..2a40ef916 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/models/pagination.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/models/pagination.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/models/party_identification.rb b/lib/vendor-direct-fulfillment-orders-api-model/models/party_identification.rb index 4e12fcc7b..30054ae71 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/models/party_identification.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/models/party_identification.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/models/scheduled_delivery_shipment.rb b/lib/vendor-direct-fulfillment-orders-api-model/models/scheduled_delivery_shipment.rb index 132c58c15..bd2b98741 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/models/scheduled_delivery_shipment.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/models/scheduled_delivery_shipment.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/models/shipment_dates.rb b/lib/vendor-direct-fulfillment-orders-api-model/models/shipment_dates.rb index 17417447b..12e53be70 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/models/shipment_dates.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/models/shipment_dates.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/models/shipment_details.rb b/lib/vendor-direct-fulfillment-orders-api-model/models/shipment_details.rb index 3dd54c074..5e42e4ed1 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/models/shipment_details.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/models/shipment_details.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/models/submit_acknowledgement_request.rb b/lib/vendor-direct-fulfillment-orders-api-model/models/submit_acknowledgement_request.rb index 24e8893f1..32461027f 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/models/submit_acknowledgement_request.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/models/submit_acknowledgement_request.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/models/submit_acknowledgement_response.rb b/lib/vendor-direct-fulfillment-orders-api-model/models/submit_acknowledgement_response.rb index 48024480a..d0279ef7c 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/models/submit_acknowledgement_response.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/models/submit_acknowledgement_response.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/models/tax_details.rb b/lib/vendor-direct-fulfillment-orders-api-model/models/tax_details.rb index 1125da83b..28885c3e0 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/models/tax_details.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/models/tax_details.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/models/tax_line_item.rb b/lib/vendor-direct-fulfillment-orders-api-model/models/tax_line_item.rb index 0ebc6c270..9a24b64fe 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/models/tax_line_item.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/models/tax_line_item.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/models/tax_registration_details.rb b/lib/vendor-direct-fulfillment-orders-api-model/models/tax_registration_details.rb index 29a888c74..2d5b1063b 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/models/tax_registration_details.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/models/tax_registration_details.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/models/transaction_id.rb b/lib/vendor-direct-fulfillment-orders-api-model/models/transaction_id.rb index 010c22d36..596aedb71 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/models/transaction_id.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/models/transaction_id.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/api/vendor_orders_api_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/api/vendor_orders_api_spec.rb index 2642f9d31..e769737ad 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/api/vendor_orders_api_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/api/vendor_orders_api_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -32,10 +32,10 @@ end # unit tests for get_order - # Returns purchase order information for the purchaseOrderNumber that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Returns purchase order information for the purchaseOrderNumber that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param purchase_order_number The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code. # @param [Hash] opts the optional parameters - # @return [Order] + # @return [GetOrderResponse] describe 'get_order test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -43,7 +43,7 @@ end # unit tests for get_orders - # Returns a list of purchase orders created during the time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both parameters. You can choose to get only the purchase order numbers by setting the includeDetails parameter to false. In that case, the operation returns a list of purchase order numbers. You can then call the getOrder operation to return the details of a specific order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Returns a list of purchase orders created during the time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both parameters. You can choose to get only the purchase order numbers by setting the includeDetails parameter to false. In that case, the operation returns a list of purchase order numbers. You can then call the getOrder operation to return the details of a specific order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param created_after Purchase orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. # @param created_before Purchase orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. # @param [Hash] opts the optional parameters @@ -53,7 +53,7 @@ # @option opts [String] :sort_order Sort the list in ascending or descending order by order creation date. # @option opts [String] :next_token Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. # @option opts [String] :include_details When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned. - # @return [OrderList] + # @return [GetOrdersResponse] describe 'get_orders test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -61,10 +61,10 @@ end # unit tests for submit_acknowledgement - # Submits acknowledgements for one or more purchase orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Submits acknowledgements for one or more purchase orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters - # @return [TransactionId] + # @return [SubmitAcknowledgementResponse] describe 'submit_acknowledgement test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/api_client_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/api_client_spec.rb index 721085390..cd9123edc 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/api_client_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/api_client_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/configuration_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/configuration_spec.rb index 3789fdd58..6e67b05cf 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/configuration_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/configuration_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/acknowledgement_status_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/acknowledgement_status_spec.rb index 4f9bdef07..0b13646d6 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/acknowledgement_status_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/acknowledgement_status_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/address_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/address_spec.rb index f272d9212..4ea075302 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/address_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/address_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/decimal_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/decimal_spec.rb index b717f7c06..7664d98ba 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/decimal_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/decimal_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/error_list_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/error_list_spec.rb index 8beb9437f..8a6f811cb 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/error_list_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/error_list_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -31,10 +31,4 @@ expect(@instance).to be_instance_of(AmzSpApi::VendorDirectFulfillmentOrdersApiModel::ErrorList) end end - describe 'test attribute "errors"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - end diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/error_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/error_spec.rb index 2a22a280f..c0921da24 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/error_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/error_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-pricing-api-model/spec/models/get_pricing_response_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/get_order_response_spec.rb similarity index 52% rename from lib/product-pricing-api-model/spec/models/get_pricing_response_spec.rb rename to lib/vendor-direct-fulfillment-orders-api-model/spec/models/get_order_response_spec.rb index 517f70431..38a22d81e 100644 --- a/lib/product-pricing-api-model/spec/models/get_pricing_response_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/get_order_response_spec.rb @@ -1,34 +1,34 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Direct Fulfillment Orders -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: v0 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' require 'json' require 'date' -# Unit tests for AmzSpApi::ProductPricingApiModel::GetPricingResponse +# Unit tests for AmzSpApi::VendorDirectFulfillmentOrdersApiModel::GetOrderResponse # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'GetPricingResponse' do +describe 'GetOrderResponse' do before do # run before each test - @instance = AmzSpApi::ProductPricingApiModel::GetPricingResponse.new + @instance = AmzSpApi::VendorDirectFulfillmentOrdersApiModel::GetOrderResponse.new end after do # run after each test end - describe 'test an instance of GetPricingResponse' do - it 'should create an instance of GetPricingResponse' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::GetPricingResponse) + describe 'test an instance of GetOrderResponse' do + it 'should create an instance of GetOrderResponse' do + expect(@instance).to be_instance_of(AmzSpApi::VendorDirectFulfillmentOrdersApiModel::GetOrderResponse) end end describe 'test attribute "payload"' do diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/get_orders_response_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/get_orders_response_spec.rb new file mode 100644 index 000000000..fa24fcf03 --- /dev/null +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/get_orders_response_spec.rb @@ -0,0 +1,46 @@ +=begin +#Selling Partner API for Direct Fulfillment Orders + +#The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorDirectFulfillmentOrdersApiModel::GetOrdersResponse +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'GetOrdersResponse' do + before do + # run before each test + @instance = AmzSpApi::VendorDirectFulfillmentOrdersApiModel::GetOrdersResponse.new + end + + after do + # run after each test + end + + describe 'test an instance of GetOrdersResponse' do + it 'should create an instance of GetOrdersResponse' do + expect(@instance).to be_instance_of(AmzSpApi::VendorDirectFulfillmentOrdersApiModel::GetOrdersResponse) + end + end + describe 'test attribute "payload"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "errors"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/gift_details_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/gift_details_spec.rb index b2c53a7df..6881d4373 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/gift_details_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/gift_details_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/item_quantity_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/item_quantity_spec.rb index c9f633e82..7cc1b37dc 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/item_quantity_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/item_quantity_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/money_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/money_spec.rb index 012cdfdd1..ed35eec96 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/money_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/money_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_acknowledgement_item_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_acknowledgement_item_spec.rb index 2ccda84eb..61470c7a5 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_acknowledgement_item_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_acknowledgement_item_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_details_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_details_spec.rb index 53e60c655..f7108590d 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_details_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_details_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_details_tax_total_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_details_tax_total_spec.rb new file mode 100644 index 000000000..371a59ac1 --- /dev/null +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_details_tax_total_spec.rb @@ -0,0 +1,40 @@ +=begin +#Selling Partner API for Direct Fulfillment Orders + +#The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorDirectFulfillmentOrdersApiModel::OrderDetailsTaxTotal +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'OrderDetailsTaxTotal' do + before do + # run before each test + @instance = AmzSpApi::VendorDirectFulfillmentOrdersApiModel::OrderDetailsTaxTotal.new + end + + after do + # run after each test + end + + describe 'test an instance of OrderDetailsTaxTotal' do + it 'should create an instance of OrderDetailsTaxTotal' do + expect(@instance).to be_instance_of(AmzSpApi::VendorDirectFulfillmentOrdersApiModel::OrderDetailsTaxTotal) + end + end + describe 'test attribute "tax_line_item"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_item_acknowledgement_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_item_acknowledgement_spec.rb index fe89a8fac..94edb1d57 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_item_acknowledgement_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_item_acknowledgement_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_item_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_item_spec.rb index 3a7cfc8c1..ce9868315 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_item_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_item_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/tax_item_details_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_item_tax_details_spec.rb similarity index 75% rename from lib/vendor-direct-fulfillment-orders-api-model/spec/models/tax_item_details_spec.rb rename to lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_item_tax_details_spec.rb index bbd3fab44..38703ce3f 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/tax_item_details_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_item_tax_details_spec.rb @@ -3,32 +3,32 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' require 'json' require 'date' -# Unit tests for AmzSpApi::VendorDirectFulfillmentOrdersApiModel::TaxItemDetails +# Unit tests for AmzSpApi::VendorDirectFulfillmentOrdersApiModel::OrderItemTaxDetails # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'TaxItemDetails' do +describe 'OrderItemTaxDetails' do before do # run before each test - @instance = AmzSpApi::VendorDirectFulfillmentOrdersApiModel::TaxItemDetails.new + @instance = AmzSpApi::VendorDirectFulfillmentOrdersApiModel::OrderItemTaxDetails.new end after do # run after each test end - describe 'test an instance of TaxItemDetails' do - it 'should create an instance of TaxItemDetails' do - expect(@instance).to be_instance_of(AmzSpApi::VendorDirectFulfillmentOrdersApiModel::TaxItemDetails) + describe 'test an instance of OrderItemTaxDetails' do + it 'should create an instance of OrderItemTaxDetails' do + expect(@instance).to be_instance_of(AmzSpApi::VendorDirectFulfillmentOrdersApiModel::OrderItemTaxDetails) end end describe 'test attribute "tax_line_item"' do diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_list_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_list_spec.rb index 208c2b448..e1ab3c179 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_list_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_list_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_spec.rb index 6665b189f..97711cee8 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/pagination_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/pagination_spec.rb index 6d9de76b4..84e0d1b23 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/pagination_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/pagination_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/party_identification_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/party_identification_spec.rb index e6784eb44..a8fc89d23 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/party_identification_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/party_identification_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/scheduled_delivery_shipment_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/scheduled_delivery_shipment_spec.rb index 00d1ce8fb..8aeaeabae 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/scheduled_delivery_shipment_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/scheduled_delivery_shipment_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/shipment_dates_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/shipment_dates_spec.rb index 07300436b..221f15556 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/shipment_dates_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/shipment_dates_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/shipment_details_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/shipment_details_spec.rb index db964320b..68e202a7c 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/shipment_details_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/shipment_details_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/submit_acknowledgement_request_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/submit_acknowledgement_request_spec.rb index dd9d8d20f..8f91c0d95 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/submit_acknowledgement_request_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/submit_acknowledgement_request_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/submit_acknowledgement_response_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/submit_acknowledgement_response_spec.rb index 52d1843ae..552ac1805 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/submit_acknowledgement_response_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/submit_acknowledgement_response_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/tax_details_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/tax_details_spec.rb index 3872d007f..46b331e89 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/tax_details_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/tax_details_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/tax_line_item_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/tax_line_item_spec.rb index 3182f1d18..7dd845e89 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/tax_line_item_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/tax_line_item_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/tax_registration_details_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/tax_registration_details_spec.rb index d67ae0c28..a52c9c152 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/tax_registration_details_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/tax_registration_details_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/transaction_id_spec.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/transaction_id_spec.rb index 66c97fdcb..b9c0e295e 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/models/transaction_id_spec.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/models/transaction_id_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-orders-api-model/spec/spec_helper.rb b/lib/vendor-direct-fulfillment-orders-api-model/spec/spec_helper.rb index 30527b0e3..8b30fcedb 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/spec/spec_helper.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/spec/spec_helper.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # load the gem diff --git a/lib/vendor-direct-fulfillment-orders-api-model/version.rb b/lib/vendor-direct-fulfillment-orders-api-model/version.rb index 92a55329e..d1f650aed 100644 --- a/lib/vendor-direct-fulfillment-orders-api-model/version.rb +++ b/lib/vendor-direct-fulfillment-orders-api-model/version.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::VendorDirectFulfillmentOrdersApiModel diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model.rb index 0733fcfdd..946e8fd40 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # Common files diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/.swagger-codegen/VERSION b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/.swagger-codegen/VERSION index b39b0b9e0..161761765 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/.swagger-codegen/VERSION +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/.swagger-codegen/VERSION @@ -1 +1 @@ -3.0.24 \ No newline at end of file +3.0.46 \ No newline at end of file diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/api/vendor_df_sandbox_api.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/api/vendor_df_sandbox_api.rb index 13ad06260..f36f6587a 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/api/vendor_df_sandbox_api.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/api/vendor_df_sandbox_api.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::VendorDirectFulfillmentSandboxTestDataApiModel diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/api/vendor_df_sandboxtransactionstatus_api.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/api/vendor_df_sandboxtransactionstatus_api.rb index 5e2781d11..004db177d 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/api/vendor_df_sandboxtransactionstatus_api.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/api/vendor_df_sandboxtransactionstatus_api.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::VendorDirectFulfillmentSandboxTestDataApiModel diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/api_client.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/api_client.rb index b5d5cd034..51e622391 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/api_client.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/api_client.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/api_error.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/api_error.rb index 25fb44b08..0ce8226bc 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/api_error.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/api_error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::VendorDirectFulfillmentSandboxTestDataApiModel diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/configuration.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/configuration.rb index e40e170ea..8399a52d9 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/configuration.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/configuration.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::VendorDirectFulfillmentSandboxTestDataApiModel diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/error.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/error.rb index cc4c28ac3..04c9537fb 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/error.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/error_list.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/error_list.rb index 572d1cc83..e9633985f 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/error_list.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/error_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/generate_order_scenario_request.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/generate_order_scenario_request.rb index 41f2d4a20..97ae25561 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/generate_order_scenario_request.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/generate_order_scenario_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/order_scenario_request.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/order_scenario_request.rb index 2b4423c42..255b275a2 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/order_scenario_request.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/order_scenario_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/pagination.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/pagination.rb index 64cacaefc..fa55fdb3f 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/pagination.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/pagination.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/party_identification.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/party_identification.rb index be7d595df..75772b2b4 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/party_identification.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/party_identification.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/scenario.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/scenario.rb index 3d30a4eac..22ec4bbd6 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/scenario.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/scenario.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/test_case_data.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/test_case_data.rb index 3856a4b08..1da27c327 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/test_case_data.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/test_case_data.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/test_order.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/test_order.rb index a9d6fe0a3..ebecc5325 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/test_order.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/test_order.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/transaction.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/transaction.rb index aace9c340..3b1b8f652 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/transaction.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/transaction.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/transaction_reference.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/transaction_reference.rb index d3ba4234e..389913cc0 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/transaction_reference.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/transaction_reference.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/transaction_status.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/transaction_status.rb index 55a110fcb..87cca85d7 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/transaction_status.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/models/transaction_status.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/api/vendor_df_sandbox_api_spec.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/api/vendor_df_sandbox_api_spec.rb index ec23ff773..12ffa721c 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/api/vendor_df_sandbox_api_spec.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/api/vendor_df_sandbox_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/api/vendor_df_sandboxtransactionstatus_api_spec.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/api/vendor_df_sandboxtransactionstatus_api_spec.rb index 94b65088a..e9d822ba6 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/api/vendor_df_sandboxtransactionstatus_api_spec.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/api/vendor_df_sandboxtransactionstatus_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/api_client_spec.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/api_client_spec.rb index e7bf335e9..227a82c14 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/api_client_spec.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/api_client_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/configuration_spec.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/configuration_spec.rb index ac9050156..a3b59739b 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/configuration_spec.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/configuration_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/error_list_spec.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/error_list_spec.rb index 60da46913..ea8e5c230 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/error_list_spec.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/error_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/error_spec.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/error_spec.rb index d2cd3fd1b..379ccc545 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/error_spec.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/error_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/generate_order_scenario_request_spec.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/generate_order_scenario_request_spec.rb index 9d92b41ac..19f368eac 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/generate_order_scenario_request_spec.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/generate_order_scenario_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/order_scenario_request_spec.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/order_scenario_request_spec.rb index 17b6c529d..7ae005016 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/order_scenario_request_spec.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/order_scenario_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/pagination_spec.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/pagination_spec.rb index dec499456..44c7b8b20 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/pagination_spec.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/pagination_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/party_identification_spec.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/party_identification_spec.rb index d5934ae8c..eecffc71e 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/party_identification_spec.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/party_identification_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/scenario_spec.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/scenario_spec.rb index 041b945ec..e54b82d04 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/scenario_spec.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/scenario_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/test_case_data_spec.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/test_case_data_spec.rb index 6ee4d50bb..abaac423f 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/test_case_data_spec.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/test_case_data_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/test_order_spec.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/test_order_spec.rb index 7ef3ad655..13beff20a 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/test_order_spec.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/test_order_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/transaction_reference_spec.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/transaction_reference_spec.rb index 03e5a2bb8..c61996f42 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/transaction_reference_spec.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/transaction_reference_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/transaction_spec.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/transaction_spec.rb index f67d6237f..d987e9a2e 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/transaction_spec.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/transaction_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/transaction_status_spec.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/transaction_status_spec.rb index 7d2842931..241358324 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/transaction_status_spec.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/models/transaction_status_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/spec_helper.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/spec_helper.rb index 630219185..572789e8b 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/spec_helper.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/spec/spec_helper.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # load the gem diff --git a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/version.rb b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/version.rb index b1e3b8b81..06e99691a 100644 --- a/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/version.rb +++ b/lib/vendor-direct-fulfillment-sandbox-test-data-api-model/version.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-10-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::VendorDirectFulfillmentSandboxTestDataApiModel diff --git a/lib/vendor-direct-fulfillment-shipping-api-model.rb b/lib/vendor-direct-fulfillment-shipping-api-model.rb index 091cd372f..6d5d5d41e 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # Common files @@ -26,17 +26,30 @@ require 'vendor-direct-fulfillment-shipping-api-model/models/error_list' require 'vendor-direct-fulfillment-shipping-api-model/models/get_customer_invoice_response' require 'vendor-direct-fulfillment-shipping-api-model/models/get_customer_invoices_response' +require 'vendor-direct-fulfillment-shipping-api-model/models/get_packing_slip_list_response' +require 'vendor-direct-fulfillment-shipping-api-model/models/get_packing_slip_response' require 'vendor-direct-fulfillment-shipping-api-model/models/get_shipping_label_list_response' require 'vendor-direct-fulfillment-shipping-api-model/models/get_shipping_label_response' require 'vendor-direct-fulfillment-shipping-api-model/models/item' require 'vendor-direct-fulfillment-shipping-api-model/models/item_quantity' require 'vendor-direct-fulfillment-shipping-api-model/models/label_data' require 'vendor-direct-fulfillment-shipping-api-model/models/packed_item' +require 'vendor-direct-fulfillment-shipping-api-model/models/packing_slip' +require 'vendor-direct-fulfillment-shipping-api-model/models/packing_slip_list' require 'vendor-direct-fulfillment-shipping-api-model/models/pagination' require 'vendor-direct-fulfillment-shipping-api-model/models/party_identification' +require 'vendor-direct-fulfillment-shipping-api-model/models/shipment_confirmation' +require 'vendor-direct-fulfillment-shipping-api-model/models/shipment_details' +require 'vendor-direct-fulfillment-shipping-api-model/models/shipment_status_update' require 'vendor-direct-fulfillment-shipping-api-model/models/shipping_label' require 'vendor-direct-fulfillment-shipping-api-model/models/shipping_label_list' require 'vendor-direct-fulfillment-shipping-api-model/models/shipping_label_request' +require 'vendor-direct-fulfillment-shipping-api-model/models/status_update_details' +require 'vendor-direct-fulfillment-shipping-api-model/models/status_update_details_shipment_schedule' +require 'vendor-direct-fulfillment-shipping-api-model/models/submit_shipment_confirmations_request' +require 'vendor-direct-fulfillment-shipping-api-model/models/submit_shipment_confirmations_response' +require 'vendor-direct-fulfillment-shipping-api-model/models/submit_shipment_status_updates_request' +require 'vendor-direct-fulfillment-shipping-api-model/models/submit_shipment_status_updates_response' require 'vendor-direct-fulfillment-shipping-api-model/models/submit_shipping_labels_request' require 'vendor-direct-fulfillment-shipping-api-model/models/submit_shipping_labels_response' require 'vendor-direct-fulfillment-shipping-api-model/models/tax_registration_details' @@ -44,6 +57,8 @@ require 'vendor-direct-fulfillment-shipping-api-model/models/weight' # APIs +require 'vendor-direct-fulfillment-shipping-api-model/api/customer_invoices_api' +require 'vendor-direct-fulfillment-shipping-api-model/api/vendor_shipping_api' require 'vendor-direct-fulfillment-shipping-api-model/api/vendor_shipping_labels_api' module AmzSpApi::VendorDirectFulfillmentShippingApiModel diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/.swagger-codegen/VERSION b/lib/vendor-direct-fulfillment-shipping-api-model/.swagger-codegen/VERSION index b39b0b9e0..161761765 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/.swagger-codegen/VERSION +++ b/lib/vendor-direct-fulfillment-shipping-api-model/.swagger-codegen/VERSION @@ -1 +1 @@ -3.0.24 \ No newline at end of file +3.0.46 \ No newline at end of file diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/README.md b/lib/vendor-direct-fulfillment-shipping-api-model/README.md index a12524da6..1f7db1fdd 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/README.md +++ b/lib/vendor-direct-fulfillment-shipping-api-model/README.md @@ -6,7 +6,7 @@ The Selling Partner API for Direct Fulfillment Shipping provides programmatic ac This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: -- API version: 2021-12-28 +- API version: v1 - Package version: 0.1.0 - Build package: io.swagger.codegen.v3.generators.ruby.RubyClientCodegen For more information, please visit [https://sellercentral.amazon.com/gp/mws/contactus.html](https://sellercentral.amazon.com/gp/mws/contactus.html) @@ -55,6 +55,84 @@ Please follow the [installation](#installation) procedure and then run the follo # Load the gem require 'vendor-direct-fulfillment-shipping-api-model' +api_instance = AmzSpApi::VendorDirectFulfillmentShippingApiModel::CustomerInvoicesApi.new +purchase_order_number = 'purchase_order_number_example' # String | Purchase order number of the shipment for which to return the invoice. + + +begin + result = api_instance.get_customer_invoice(purchase_order_number) + p result +rescue AmzSpApi::VendorDirectFulfillmentShippingApiModel::ApiError => e + puts "Exception when calling CustomerInvoicesApi->get_customer_invoice: #{e}" +end + +api_instance = AmzSpApi::VendorDirectFulfillmentShippingApiModel::CustomerInvoicesApi.new +created_after = DateTime.parse('2013-10-20T19:20:30+01:00') # DateTime | Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. +created_before = DateTime.parse('2013-10-20T19:20:30+01:00') # DateTime | Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. +opts = { + ship_from_party_id: 'ship_from_party_id_example', # String | The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. + limit: 56, # Integer | The limit to the number of records returned + sort_order: 'sort_order_example', # String | Sort ASC or DESC by order creation date. + next_token: 'next_token_example' # String | Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. +} + +begin + result = api_instance.get_customer_invoices(created_after, created_before, opts) + p result +rescue AmzSpApi::VendorDirectFulfillmentShippingApiModel::ApiError => e + puts "Exception when calling CustomerInvoicesApi->get_customer_invoices: #{e}" +end + +api_instance = AmzSpApi::VendorDirectFulfillmentShippingApiModel::VendorShippingApi.new +purchase_order_number = 'purchase_order_number_example' # String | The purchaseOrderNumber for the packing slip you want. + + +begin + result = api_instance.get_packing_slip(purchase_order_number) + p result +rescue AmzSpApi::VendorDirectFulfillmentShippingApiModel::ApiError => e + puts "Exception when calling VendorShippingApi->get_packing_slip: #{e}" +end + +api_instance = AmzSpApi::VendorDirectFulfillmentShippingApiModel::VendorShippingApi.new +created_after = DateTime.parse('2013-10-20T19:20:30+01:00') # DateTime | Packing slips that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. +created_before = DateTime.parse('2013-10-20T19:20:30+01:00') # DateTime | Packing slips that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. +opts = { + ship_from_party_id: 'ship_from_party_id_example', # String | The vendor warehouseId for order fulfillment. If not specified the result will contain orders for all warehouses. + limit: 56, # Integer | The limit to the number of records returned + sort_order: 'ASC', # String | Sort ASC or DESC by packing slip creation date. + next_token: 'next_token_example' # String | Used for pagination when there are more packing slips than the specified result size limit. The token value is returned in the previous API call. +} + +begin + result = api_instance.get_packing_slips(created_after, created_before, opts) + p result +rescue AmzSpApi::VendorDirectFulfillmentShippingApiModel::ApiError => e + puts "Exception when calling VendorShippingApi->get_packing_slips: #{e}" +end + +api_instance = AmzSpApi::VendorDirectFulfillmentShippingApiModel::VendorShippingApi.new +body = AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentConfirmationsRequest.new # SubmitShipmentConfirmationsRequest | + + +begin + result = api_instance.submit_shipment_confirmations(body) + p result +rescue AmzSpApi::VendorDirectFulfillmentShippingApiModel::ApiError => e + puts "Exception when calling VendorShippingApi->submit_shipment_confirmations: #{e}" +end + +api_instance = AmzSpApi::VendorDirectFulfillmentShippingApiModel::VendorShippingApi.new +body = AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentStatusUpdatesRequest.new # SubmitShipmentStatusUpdatesRequest | + + +begin + result = api_instance.submit_shipment_status_updates(body) + p result +rescue AmzSpApi::VendorDirectFulfillmentShippingApiModel::ApiError => e + puts "Exception when calling VendorShippingApi->submit_shipment_status_updates: #{e}" +end + api_instance = AmzSpApi::VendorDirectFulfillmentShippingApiModel::VendorShippingLabelsApi.new purchase_order_number = 'purchase_order_number_example' # String | The purchase order number for which you want to return the shipping label. It should be the same purchaseOrderNumber as received in the order. @@ -101,9 +179,15 @@ All URIs are relative to *https://sellingpartnerapi-na.amazon.com/* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*AmzSpApi::VendorDirectFulfillmentShippingApiModel::VendorShippingLabelsApi* | [**get_shipping_label**](docs/VendorShippingLabelsApi.md#get_shipping_label) | **GET** /vendor/directFulfillment/shipping/2021-12-28/shippingLabels/{purchaseOrderNumber} | -*AmzSpApi::VendorDirectFulfillmentShippingApiModel::VendorShippingLabelsApi* | [**get_shipping_labels**](docs/VendorShippingLabelsApi.md#get_shipping_labels) | **GET** /vendor/directFulfillment/shipping/2021-12-28/shippingLabels | -*AmzSpApi::VendorDirectFulfillmentShippingApiModel::VendorShippingLabelsApi* | [**submit_shipping_label_request**](docs/VendorShippingLabelsApi.md#submit_shipping_label_request) | **POST** /vendor/directFulfillment/shipping/2021-12-28/shippingLabels | +*AmzSpApi::VendorDirectFulfillmentShippingApiModel::CustomerInvoicesApi* | [**get_customer_invoice**](docs/CustomerInvoicesApi.md#get_customer_invoice) | **GET** /vendor/directFulfillment/shipping/v1/customerInvoices/{purchaseOrderNumber} | +*AmzSpApi::VendorDirectFulfillmentShippingApiModel::CustomerInvoicesApi* | [**get_customer_invoices**](docs/CustomerInvoicesApi.md#get_customer_invoices) | **GET** /vendor/directFulfillment/shipping/v1/customerInvoices | +*AmzSpApi::VendorDirectFulfillmentShippingApiModel::VendorShippingApi* | [**get_packing_slip**](docs/VendorShippingApi.md#get_packing_slip) | **GET** /vendor/directFulfillment/shipping/v1/packingSlips/{purchaseOrderNumber} | +*AmzSpApi::VendorDirectFulfillmentShippingApiModel::VendorShippingApi* | [**get_packing_slips**](docs/VendorShippingApi.md#get_packing_slips) | **GET** /vendor/directFulfillment/shipping/v1/packingSlips | +*AmzSpApi::VendorDirectFulfillmentShippingApiModel::VendorShippingApi* | [**submit_shipment_confirmations**](docs/VendorShippingApi.md#submit_shipment_confirmations) | **POST** /vendor/directFulfillment/shipping/v1/shipmentConfirmations | +*AmzSpApi::VendorDirectFulfillmentShippingApiModel::VendorShippingApi* | [**submit_shipment_status_updates**](docs/VendorShippingApi.md#submit_shipment_status_updates) | **POST** /vendor/directFulfillment/shipping/v1/shipmentStatusUpdates | +*AmzSpApi::VendorDirectFulfillmentShippingApiModel::VendorShippingLabelsApi* | [**get_shipping_label**](docs/VendorShippingLabelsApi.md#get_shipping_label) | **GET** /vendor/directFulfillment/shipping/v1/shippingLabels/{purchaseOrderNumber} | +*AmzSpApi::VendorDirectFulfillmentShippingApiModel::VendorShippingLabelsApi* | [**get_shipping_labels**](docs/VendorShippingLabelsApi.md#get_shipping_labels) | **GET** /vendor/directFulfillment/shipping/v1/shippingLabels | +*AmzSpApi::VendorDirectFulfillmentShippingApiModel::VendorShippingLabelsApi* | [**submit_shipping_label_request**](docs/VendorShippingLabelsApi.md#submit_shipping_label_request) | **POST** /vendor/directFulfillment/shipping/v1/shippingLabels | ## Documentation for Models @@ -117,17 +201,30 @@ Class | Method | HTTP request | Description - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::ErrorList](docs/ErrorList.md) - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::GetCustomerInvoiceResponse](docs/GetCustomerInvoiceResponse.md) - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::GetCustomerInvoicesResponse](docs/GetCustomerInvoicesResponse.md) + - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::GetPackingSlipListResponse](docs/GetPackingSlipListResponse.md) + - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::GetPackingSlipResponse](docs/GetPackingSlipResponse.md) - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::GetShippingLabelListResponse](docs/GetShippingLabelListResponse.md) - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::GetShippingLabelResponse](docs/GetShippingLabelResponse.md) - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::Item](docs/Item.md) - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::ItemQuantity](docs/ItemQuantity.md) - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::LabelData](docs/LabelData.md) - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::PackedItem](docs/PackedItem.md) + - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::PackingSlip](docs/PackingSlip.md) + - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::PackingSlipList](docs/PackingSlipList.md) - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::Pagination](docs/Pagination.md) - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::PartyIdentification](docs/PartyIdentification.md) + - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::ShipmentConfirmation](docs/ShipmentConfirmation.md) + - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::ShipmentDetails](docs/ShipmentDetails.md) + - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::ShipmentStatusUpdate](docs/ShipmentStatusUpdate.md) - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::ShippingLabel](docs/ShippingLabel.md) - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::ShippingLabelList](docs/ShippingLabelList.md) - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::ShippingLabelRequest](docs/ShippingLabelRequest.md) + - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::StatusUpdateDetails](docs/StatusUpdateDetails.md) + - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::StatusUpdateDetailsShipmentSchedule](docs/StatusUpdateDetailsShipmentSchedule.md) + - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentConfirmationsRequest](docs/SubmitShipmentConfirmationsRequest.md) + - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentConfirmationsResponse](docs/SubmitShipmentConfirmationsResponse.md) + - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentStatusUpdatesRequest](docs/SubmitShipmentStatusUpdatesRequest.md) + - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentStatusUpdatesResponse](docs/SubmitShipmentStatusUpdatesResponse.md) - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShippingLabelsRequest](docs/SubmitShippingLabelsRequest.md) - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShippingLabelsResponse](docs/SubmitShippingLabelsResponse.md) - [AmzSpApi::VendorDirectFulfillmentShippingApiModel::TaxRegistrationDetails](docs/TaxRegistrationDetails.md) diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/api/customer_invoices_api.rb b/lib/vendor-direct-fulfillment-shipping-api-model/api/customer_invoices_api.rb new file mode 100644 index 000000000..80bcd1c04 --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/api/customer_invoices_api.rb @@ -0,0 +1,151 @@ +=begin +#Selling Partner API for Direct Fulfillment Shipping + +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +module AmzSpApi::VendorDirectFulfillmentShippingApiModel + class CustomerInvoicesApi + attr_accessor :api_client + + def initialize(api_client = ApiClient.default) + @api_client = api_client + end + # Returns a customer invoice based on the purchaseOrderNumber that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + # @param purchase_order_number Purchase order number of the shipment for which to return the invoice. + # @param [Hash] opts the optional parameters + # @return [GetCustomerInvoiceResponse] + def get_customer_invoice(purchase_order_number, opts = {}) + data, _status_code, _headers = get_customer_invoice_with_http_info(purchase_order_number, opts) + data + end + + # Returns a customer invoice based on the purchaseOrderNumber that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + # @param purchase_order_number Purchase order number of the shipment for which to return the invoice. + # @param [Hash] opts the optional parameters + # @return [Array<(GetCustomerInvoiceResponse, Integer, Hash)>] GetCustomerInvoiceResponse data, response status code and response headers + def get_customer_invoice_with_http_info(purchase_order_number, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: CustomerInvoicesApi.get_customer_invoice ...' + end + # verify the required parameter 'purchase_order_number' is set + if @api_client.config.client_side_validation && purchase_order_number.nil? + fail ArgumentError, "Missing the required parameter 'purchase_order_number' when calling CustomerInvoicesApi.get_customer_invoice" + end + # resource path + local_var_path = '/vendor/directFulfillment/shipping/v1/customerInvoices/{purchaseOrderNumber}'.sub('{' + 'purchaseOrderNumber' + '}', purchase_order_number.to_s) + + # query parameters + query_params = opts[:query_params] || {} + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:body] + + return_type = opts[:return_type] || 'GetCustomerInvoiceResponse' + + auth_names = opts[:auth_names] || [] + data, status_code, headers = @api_client.call_api(:GET, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type) + + if @api_client.config.debugging + @api_client.config.logger.debug "API called: CustomerInvoicesApi#get_customer_invoice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Returns a list of customer invoices created during a time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must be no more than 7 days. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + # @param created_after Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. + # @param created_before Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. + # @param [Hash] opts the optional parameters + # @option opts [String] :ship_from_party_id The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. + # @option opts [Integer] :limit The limit to the number of records returned + # @option opts [String] :sort_order Sort ASC or DESC by order creation date. + # @option opts [String] :next_token Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. + # @return [GetCustomerInvoicesResponse] + def get_customer_invoices(created_after, created_before, opts = {}) + data, _status_code, _headers = get_customer_invoices_with_http_info(created_after, created_before, opts) + data + end + + # Returns a list of customer invoices created during a time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must be no more than 7 days. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + # @param created_after Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. + # @param created_before Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. + # @param [Hash] opts the optional parameters + # @option opts [String] :ship_from_party_id The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. + # @option opts [Integer] :limit The limit to the number of records returned + # @option opts [String] :sort_order Sort ASC or DESC by order creation date. + # @option opts [String] :next_token Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. + # @return [Array<(GetCustomerInvoicesResponse, Integer, Hash)>] GetCustomerInvoicesResponse data, response status code and response headers + def get_customer_invoices_with_http_info(created_after, created_before, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: CustomerInvoicesApi.get_customer_invoices ...' + end + # verify the required parameter 'created_after' is set + if @api_client.config.client_side_validation && created_after.nil? + fail ArgumentError, "Missing the required parameter 'created_after' when calling CustomerInvoicesApi.get_customer_invoices" + end + # verify the required parameter 'created_before' is set + if @api_client.config.client_side_validation && created_before.nil? + fail ArgumentError, "Missing the required parameter 'created_before' when calling CustomerInvoicesApi.get_customer_invoices" + end + if @api_client.config.client_side_validation && opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order']) + fail ArgumentError, 'invalid value for "sort_order", must be one of ASC, DESC' + end + # resource path + local_var_path = '/vendor/directFulfillment/shipping/v1/customerInvoices' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'createdAfter'] = created_after + query_params[:'createdBefore'] = created_before + query_params[:'shipFromPartyId'] = opts[:'ship_from_party_id'] if !opts[:'ship_from_party_id'].nil? + query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? + query_params[:'sortOrder'] = opts[:'sort_order'] if !opts[:'sort_order'].nil? + query_params[:'nextToken'] = opts[:'next_token'] if !opts[:'next_token'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json', 'payload']) + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:body] + + return_type = opts[:return_type] || 'GetCustomerInvoicesResponse' + + auth_names = opts[:auth_names] || [] + data, status_code, headers = @api_client.call_api(:GET, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type) + + if @api_client.config.debugging + @api_client.config.logger.debug "API called: CustomerInvoicesApi#get_customer_invoices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + end +end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/api/vendor_shipping_api.rb b/lib/vendor-direct-fulfillment-shipping-api-model/api/vendor_shipping_api.rb new file mode 100644 index 000000000..1a7aa0226 --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/api/vendor_shipping_api.rb @@ -0,0 +1,263 @@ +=begin +#Selling Partner API for Direct Fulfillment Shipping + +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +module AmzSpApi::VendorDirectFulfillmentShippingApiModel + class VendorShippingApi + attr_accessor :api_client + + def initialize(api_client = ApiClient.default) + @api_client = api_client + end + # Returns a packing slip based on the purchaseOrderNumber that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + # @param purchase_order_number The purchaseOrderNumber for the packing slip you want. + # @param [Hash] opts the optional parameters + # @return [GetPackingSlipResponse] + def get_packing_slip(purchase_order_number, opts = {}) + data, _status_code, _headers = get_packing_slip_with_http_info(purchase_order_number, opts) + data + end + + # Returns a packing slip based on the purchaseOrderNumber that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + # @param purchase_order_number The purchaseOrderNumber for the packing slip you want. + # @param [Hash] opts the optional parameters + # @return [Array<(GetPackingSlipResponse, Integer, Hash)>] GetPackingSlipResponse data, response status code and response headers + def get_packing_slip_with_http_info(purchase_order_number, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: VendorShippingApi.get_packing_slip ...' + end + # verify the required parameter 'purchase_order_number' is set + if @api_client.config.client_side_validation && purchase_order_number.nil? + fail ArgumentError, "Missing the required parameter 'purchase_order_number' when calling VendorShippingApi.get_packing_slip" + end + # resource path + local_var_path = '/vendor/directFulfillment/shipping/v1/packingSlips/{purchaseOrderNumber}'.sub('{' + 'purchaseOrderNumber' + '}', purchase_order_number.to_s) + + # query parameters + query_params = opts[:query_params] || {} + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:body] + + return_type = opts[:return_type] || 'GetPackingSlipResponse' + + auth_names = opts[:auth_names] || [] + data, status_code, headers = @api_client.call_api(:GET, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type) + + if @api_client.config.debugging + @api_client.config.logger.debug "API called: VendorShippingApi#get_packing_slip\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Returns a list of packing slips for the purchase orders that match the criteria specified. Date range to search must not be more than 7 days. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + # @param created_after Packing slips that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. + # @param created_before Packing slips that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. + # @param [Hash] opts the optional parameters + # @option opts [String] :ship_from_party_id The vendor warehouseId for order fulfillment. If not specified the result will contain orders for all warehouses. + # @option opts [Integer] :limit The limit to the number of records returned + # @option opts [String] :sort_order Sort ASC or DESC by packing slip creation date. (default to ASC) + # @option opts [String] :next_token Used for pagination when there are more packing slips than the specified result size limit. The token value is returned in the previous API call. + # @return [GetPackingSlipListResponse] + def get_packing_slips(created_after, created_before, opts = {}) + data, _status_code, _headers = get_packing_slips_with_http_info(created_after, created_before, opts) + data + end + + # Returns a list of packing slips for the purchase orders that match the criteria specified. Date range to search must not be more than 7 days. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + # @param created_after Packing slips that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. + # @param created_before Packing slips that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. + # @param [Hash] opts the optional parameters + # @option opts [String] :ship_from_party_id The vendor warehouseId for order fulfillment. If not specified the result will contain orders for all warehouses. + # @option opts [Integer] :limit The limit to the number of records returned + # @option opts [String] :sort_order Sort ASC or DESC by packing slip creation date. + # @option opts [String] :next_token Used for pagination when there are more packing slips than the specified result size limit. The token value is returned in the previous API call. + # @return [Array<(GetPackingSlipListResponse, Integer, Hash)>] GetPackingSlipListResponse data, response status code and response headers + def get_packing_slips_with_http_info(created_after, created_before, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: VendorShippingApi.get_packing_slips ...' + end + # verify the required parameter 'created_after' is set + if @api_client.config.client_side_validation && created_after.nil? + fail ArgumentError, "Missing the required parameter 'created_after' when calling VendorShippingApi.get_packing_slips" + end + # verify the required parameter 'created_before' is set + if @api_client.config.client_side_validation && created_before.nil? + fail ArgumentError, "Missing the required parameter 'created_before' when calling VendorShippingApi.get_packing_slips" + end + if @api_client.config.client_side_validation && opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order']) + fail ArgumentError, 'invalid value for "sort_order", must be one of ASC, DESC' + end + # resource path + local_var_path = '/vendor/directFulfillment/shipping/v1/packingSlips' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'createdAfter'] = created_after + query_params[:'createdBefore'] = created_before + query_params[:'shipFromPartyId'] = opts[:'ship_from_party_id'] if !opts[:'ship_from_party_id'].nil? + query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? + query_params[:'sortOrder'] = opts[:'sort_order'] if !opts[:'sort_order'].nil? + query_params[:'nextToken'] = opts[:'next_token'] if !opts[:'next_token'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:body] + + return_type = opts[:return_type] || 'GetPackingSlipListResponse' + + auth_names = opts[:auth_names] || [] + data, status_code, headers = @api_client.call_api(:GET, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type) + + if @api_client.config.debugging + @api_client.config.logger.debug "API called: VendorShippingApi#get_packing_slips\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + # @param body + # @param [Hash] opts the optional parameters + # @return [SubmitShipmentConfirmationsResponse] + def submit_shipment_confirmations(body, opts = {}) + data, _status_code, _headers = submit_shipment_confirmations_with_http_info(body, opts) + data + end + + # Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + # @param body + # @param [Hash] opts the optional parameters + # @return [Array<(SubmitShipmentConfirmationsResponse, Integer, Hash)>] SubmitShipmentConfirmationsResponse data, response status code and response headers + def submit_shipment_confirmations_with_http_info(body, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: VendorShippingApi.submit_shipment_confirmations ...' + end + # verify the required parameter 'body' is set + if @api_client.config.client_side_validation && body.nil? + fail ArgumentError, "Missing the required parameter 'body' when calling VendorShippingApi.submit_shipment_confirmations" + end + # resource path + local_var_path = '/vendor/directFulfillment/shipping/v1/shipmentConfirmations' + + # query parameters + query_params = opts[:query_params] || {} + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:body] || @api_client.object_to_http_body(body) + + return_type = opts[:return_type] || 'SubmitShipmentConfirmationsResponse' + + auth_names = opts[:auth_names] || [] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type) + + if @api_client.config.debugging + @api_client.config.logger.debug "API called: VendorShippingApi#submit_shipment_confirmations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # This API call is only to be used by Vendor-Own-Carrier (VOC) vendors. Calling this API will submit a shipment status update for the package that a vendor has shipped. It will provide the Amazon customer visibility on their order, when the package is outside of Amazon Network visibility. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + # @param body + # @param [Hash] opts the optional parameters + # @return [SubmitShipmentStatusUpdatesResponse] + def submit_shipment_status_updates(body, opts = {}) + data, _status_code, _headers = submit_shipment_status_updates_with_http_info(body, opts) + data + end + + # This API call is only to be used by Vendor-Own-Carrier (VOC) vendors. Calling this API will submit a shipment status update for the package that a vendor has shipped. It will provide the Amazon customer visibility on their order, when the package is outside of Amazon Network visibility. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + # @param body + # @param [Hash] opts the optional parameters + # @return [Array<(SubmitShipmentStatusUpdatesResponse, Integer, Hash)>] SubmitShipmentStatusUpdatesResponse data, response status code and response headers + def submit_shipment_status_updates_with_http_info(body, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: VendorShippingApi.submit_shipment_status_updates ...' + end + # verify the required parameter 'body' is set + if @api_client.config.client_side_validation && body.nil? + fail ArgumentError, "Missing the required parameter 'body' when calling VendorShippingApi.submit_shipment_status_updates" + end + # resource path + local_var_path = '/vendor/directFulfillment/shipping/v1/shipmentStatusUpdates' + + # query parameters + query_params = opts[:query_params] || {} + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:body] || @api_client.object_to_http_body(body) + + return_type = opts[:return_type] || 'SubmitShipmentStatusUpdatesResponse' + + auth_names = opts[:auth_names] || [] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type) + + if @api_client.config.debugging + @api_client.config.logger.debug "API called: VendorShippingApi#submit_shipment_status_updates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + end +end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/api/vendor_shipping_labels_api.rb b/lib/vendor-direct-fulfillment-shipping-api-model/api/vendor_shipping_labels_api.rb index ba1e33b43..2c498aa70 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/api/vendor_shipping_labels_api.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/api/vendor_shipping_labels_api.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::VendorDirectFulfillmentShippingApiModel @@ -16,19 +16,19 @@ class VendorShippingLabelsApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Returns a shipping label for the purchaseOrderNumber that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Returns a shipping label for the purchaseOrderNumber that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param purchase_order_number The purchase order number for which you want to return the shipping label. It should be the same purchaseOrderNumber as received in the order. # @param [Hash] opts the optional parameters - # @return [ShippingLabel] + # @return [GetShippingLabelResponse] def get_shipping_label(purchase_order_number, opts = {}) data, _status_code, _headers = get_shipping_label_with_http_info(purchase_order_number, opts) data end - # Returns a shipping label for the purchaseOrderNumber that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Returns a shipping label for the purchaseOrderNumber that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param purchase_order_number The purchase order number for which you want to return the shipping label. It should be the same purchaseOrderNumber as received in the order. # @param [Hash] opts the optional parameters - # @return [Array<(ShippingLabel, Integer, Hash)>] ShippingLabel data, response status code and response headers + # @return [Array<(GetShippingLabelResponse, Integer, Hash)>] GetShippingLabelResponse data, response status code and response headers def get_shipping_label_with_http_info(purchase_order_number, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: VendorShippingLabelsApi.get_shipping_label ...' @@ -38,7 +38,7 @@ def get_shipping_label_with_http_info(purchase_order_number, opts = {}) fail ArgumentError, "Missing the required parameter 'purchase_order_number' when calling VendorShippingLabelsApi.get_shipping_label" end # resource path - local_var_path = '/vendor/directFulfillment/shipping/2021-12-28/shippingLabels/{purchaseOrderNumber}'.sub('{' + 'purchaseOrderNumber' + '}', purchase_order_number.to_s) + local_var_path = '/vendor/directFulfillment/shipping/v1/shippingLabels/{purchaseOrderNumber}'.sub('{' + 'purchaseOrderNumber' + '}', purchase_order_number.to_s) # query parameters query_params = opts[:query_params] || {} @@ -54,7 +54,7 @@ def get_shipping_label_with_http_info(purchase_order_number, opts = {}) # http body (model) post_body = opts[:body] - return_type = opts[:return_type] || 'ShippingLabel' + return_type = opts[:return_type] || 'GetShippingLabelResponse' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -70,7 +70,7 @@ def get_shipping_label_with_http_info(purchase_order_number, opts = {}) end return data, status_code, headers end - # Returns a list of shipping labels created during the time frame that you specify. You define that time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must not be more than 7 days. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Returns a list of shipping labels created during the time frame that you specify. You define that time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must not be more than 7 days. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param created_after Shipping labels that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. # @param created_before Shipping labels that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. # @param [Hash] opts the optional parameters @@ -78,13 +78,13 @@ def get_shipping_label_with_http_info(purchase_order_number, opts = {}) # @option opts [Integer] :limit The limit to the number of records returned. # @option opts [String] :sort_order Sort ASC or DESC by order creation date. (default to ASC) # @option opts [String] :next_token Used for pagination when there are more ship labels than the specified result size limit. The token value is returned in the previous API call. - # @return [ShippingLabelList] + # @return [GetShippingLabelListResponse] def get_shipping_labels(created_after, created_before, opts = {}) data, _status_code, _headers = get_shipping_labels_with_http_info(created_after, created_before, opts) data end - # Returns a list of shipping labels created during the time frame that you specify. You define that time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must not be more than 7 days. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Returns a list of shipping labels created during the time frame that you specify. You define that time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must not be more than 7 days. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param created_after Shipping labels that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. # @param created_before Shipping labels that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. # @param [Hash] opts the optional parameters @@ -92,7 +92,7 @@ def get_shipping_labels(created_after, created_before, opts = {}) # @option opts [Integer] :limit The limit to the number of records returned. # @option opts [String] :sort_order Sort ASC or DESC by order creation date. # @option opts [String] :next_token Used for pagination when there are more ship labels than the specified result size limit. The token value is returned in the previous API call. - # @return [Array<(ShippingLabelList, Integer, Hash)>] ShippingLabelList data, response status code and response headers + # @return [Array<(GetShippingLabelListResponse, Integer, Hash)>] GetShippingLabelListResponse data, response status code and response headers def get_shipping_labels_with_http_info(created_after, created_before, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: VendorShippingLabelsApi.get_shipping_labels ...' @@ -109,7 +109,7 @@ def get_shipping_labels_with_http_info(created_after, created_before, opts = {}) fail ArgumentError, 'invalid value for "sort_order", must be one of ASC, DESC' end # resource path - local_var_path = '/vendor/directFulfillment/shipping/2021-12-28/shippingLabels' + local_var_path = '/vendor/directFulfillment/shipping/v1/shippingLabels' # query parameters query_params = opts[:query_params] || {} @@ -123,7 +123,7 @@ def get_shipping_labels_with_http_info(created_after, created_before, opts = {}) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json', 'pagination', 'shippingLabels']) + header_params['Accept'] = @api_client.select_header_accept(['application/json', 'payload']) # form parameters form_params = opts[:form_params] || {} @@ -131,7 +131,7 @@ def get_shipping_labels_with_http_info(created_after, created_before, opts = {}) # http body (model) post_body = opts[:body] - return_type = opts[:return_type] || 'ShippingLabelList' + return_type = opts[:return_type] || 'GetShippingLabelListResponse' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, @@ -147,19 +147,19 @@ def get_shipping_labels_with_http_info(created_after, created_before, opts = {}) end return data, status_code, headers end - # Creates a shipping label for a purchase order and returns a transactionId for reference. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Creates a shipping label for a purchase order and returns a transactionId for reference. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters - # @return [TransactionReference] + # @return [SubmitShippingLabelsResponse] def submit_shipping_label_request(body, opts = {}) data, _status_code, _headers = submit_shipping_label_request_with_http_info(body, opts) data end - # Creates a shipping label for a purchase order and returns a transactionId for reference. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Creates a shipping label for a purchase order and returns a transactionId for reference. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters - # @return [Array<(TransactionReference, Integer, Hash)>] TransactionReference data, response status code and response headers + # @return [Array<(SubmitShippingLabelsResponse, Integer, Hash)>] SubmitShippingLabelsResponse data, response status code and response headers def submit_shipping_label_request_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: VendorShippingLabelsApi.submit_shipping_label_request ...' @@ -169,7 +169,7 @@ def submit_shipping_label_request_with_http_info(body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling VendorShippingLabelsApi.submit_shipping_label_request" end # resource path - local_var_path = '/vendor/directFulfillment/shipping/2021-12-28/shippingLabels' + local_var_path = '/vendor/directFulfillment/shipping/v1/shippingLabels' # query parameters query_params = opts[:query_params] || {} @@ -187,7 +187,7 @@ def submit_shipping_label_request_with_http_info(body, opts = {}) # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(body) - return_type = opts[:return_type] || 'TransactionReference' + return_type = opts[:return_type] || 'SubmitShippingLabelsResponse' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/api_client.rb b/lib/vendor-direct-fulfillment-shipping-api-model/api_client.rb index 2688c4eb0..c1abd4159 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/api_client.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/api_client.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/api_error.rb b/lib/vendor-direct-fulfillment-shipping-api-model/api_error.rb index 2119dacc0..d21af5fa1 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/api_error.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/api_error.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::VendorDirectFulfillmentShippingApiModel diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/configuration.rb b/lib/vendor-direct-fulfillment-shipping-api-model/configuration.rb index 946f15a31..52082917b 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/configuration.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/configuration.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::VendorDirectFulfillmentShippingApiModel diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/docs/CustomerInvoicesApi.md b/lib/vendor-direct-fulfillment-shipping-api-model/docs/CustomerInvoicesApi.md new file mode 100644 index 000000000..9fb34d003 --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/docs/CustomerInvoicesApi.md @@ -0,0 +1,110 @@ +# AmzSpApi::VendorDirectFulfillmentShippingApiModel::CustomerInvoicesApi + +All URIs are relative to *https://sellingpartnerapi-na.amazon.com/* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_customer_invoice**](CustomerInvoicesApi.md#get_customer_invoice) | **GET** /vendor/directFulfillment/shipping/v1/customerInvoices/{purchaseOrderNumber} | +[**get_customer_invoices**](CustomerInvoicesApi.md#get_customer_invoices) | **GET** /vendor/directFulfillment/shipping/v1/customerInvoices | + +# **get_customer_invoice** +> GetCustomerInvoiceResponse get_customer_invoice(purchase_order_number) + + + +Returns a customer invoice based on the purchaseOrderNumber that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + +### Example +```ruby +# load the gem +require 'vendor-direct-fulfillment-shipping-api-model' + +api_instance = AmzSpApi::VendorDirectFulfillmentShippingApiModel::CustomerInvoicesApi.new +purchase_order_number = 'purchase_order_number_example' # String | Purchase order number of the shipment for which to return the invoice. + + +begin + result = api_instance.get_customer_invoice(purchase_order_number) + p result +rescue AmzSpApi::VendorDirectFulfillmentShippingApiModel::ApiError => e + puts "Exception when calling CustomerInvoicesApi->get_customer_invoice: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **purchase_order_number** | **String**| Purchase order number of the shipment for which to return the invoice. | + +### Return type + +[**GetCustomerInvoiceResponse**](GetCustomerInvoiceResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + + +# **get_customer_invoices** +> GetCustomerInvoicesResponse get_customer_invoices(created_after, created_before, opts) + + + +Returns a list of customer invoices created during a time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must be no more than 7 days. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + +### Example +```ruby +# load the gem +require 'vendor-direct-fulfillment-shipping-api-model' + +api_instance = AmzSpApi::VendorDirectFulfillmentShippingApiModel::CustomerInvoicesApi.new +created_after = DateTime.parse('2013-10-20T19:20:30+01:00') # DateTime | Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. +created_before = DateTime.parse('2013-10-20T19:20:30+01:00') # DateTime | Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. +opts = { + ship_from_party_id: 'ship_from_party_id_example', # String | The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. + limit: 56, # Integer | The limit to the number of records returned + sort_order: 'sort_order_example', # String | Sort ASC or DESC by order creation date. + next_token: 'next_token_example' # String | Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. +} + +begin + result = api_instance.get_customer_invoices(created_after, created_before, opts) + p result +rescue AmzSpApi::VendorDirectFulfillmentShippingApiModel::ApiError => e + puts "Exception when calling CustomerInvoicesApi->get_customer_invoices: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **created_after** | **DateTime**| Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. | + **created_before** | **DateTime**| Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. | + **ship_from_party_id** | **String**| The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. | [optional] + **limit** | **Integer**| The limit to the number of records returned | [optional] + **sort_order** | **String**| Sort ASC or DESC by order creation date. | [optional] + **next_token** | **String**| Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. | [optional] + +### Return type + +[**GetCustomerInvoicesResponse**](GetCustomerInvoicesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, payload + + + diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/docs/ErrorList.md b/lib/vendor-direct-fulfillment-shipping-api-model/docs/ErrorList.md index 789f42dc5..0a5fea42c 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/docs/ErrorList.md +++ b/lib/vendor-direct-fulfillment-shipping-api-model/docs/ErrorList.md @@ -3,5 +3,4 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**errors** | [**Array<Error>**](Error.md) | | diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/docs/GetPackingSlipListResponse.md b/lib/vendor-direct-fulfillment-shipping-api-model/docs/GetPackingSlipListResponse.md new file mode 100644 index 000000000..dad029ae9 --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/docs/GetPackingSlipListResponse.md @@ -0,0 +1,8 @@ +# AmzSpApi::VendorDirectFulfillmentShippingApiModel::GetPackingSlipListResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payload** | [**PackingSlipList**](PackingSlipList.md) | | [optional] +**errors** | [**ErrorList**](ErrorList.md) | | [optional] + diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/docs/GetPackingSlipResponse.md b/lib/vendor-direct-fulfillment-shipping-api-model/docs/GetPackingSlipResponse.md new file mode 100644 index 000000000..069e7baf4 --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/docs/GetPackingSlipResponse.md @@ -0,0 +1,8 @@ +# AmzSpApi::VendorDirectFulfillmentShippingApiModel::GetPackingSlipResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payload** | [**PackingSlip**](PackingSlip.md) | | [optional] +**errors** | [**ErrorList**](ErrorList.md) | | [optional] + diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/docs/PackingSlip.md b/lib/vendor-direct-fulfillment-shipping-api-model/docs/PackingSlip.md new file mode 100644 index 000000000..1f17eb550 --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/docs/PackingSlip.md @@ -0,0 +1,9 @@ +# AmzSpApi::VendorDirectFulfillmentShippingApiModel::PackingSlip + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**purchase_order_number** | **String** | Purchase order number of the shipment that corresponds to the packing slip. | +**content** | **String** | A Base64encoded string of the packing slip PDF. | +**content_type** | **String** | The format of the file such as PDF, JPEG etc. | [optional] + diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/docs/PackingSlipList.md b/lib/vendor-direct-fulfillment-shipping-api-model/docs/PackingSlipList.md new file mode 100644 index 000000000..c37976e33 --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/docs/PackingSlipList.md @@ -0,0 +1,8 @@ +# AmzSpApi::VendorDirectFulfillmentShippingApiModel::PackingSlipList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pagination** | [**Pagination**](Pagination.md) | | [optional] +**packing_slips** | [**Array<PackingSlip>**](PackingSlip.md) | | [optional] + diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/docs/ShipmentConfirmation.md b/lib/vendor-direct-fulfillment-shipping-api-model/docs/ShipmentConfirmation.md new file mode 100644 index 000000000..f324aece7 --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/docs/ShipmentConfirmation.md @@ -0,0 +1,12 @@ +# AmzSpApi::VendorDirectFulfillmentShippingApiModel::ShipmentConfirmation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**purchase_order_number** | **String** | Purchase order number corresponding to the shipment. | +**shipment_details** | [**ShipmentDetails**](ShipmentDetails.md) | | +**selling_party** | [**PartyIdentification**](PartyIdentification.md) | | +**ship_from_party** | [**PartyIdentification**](PartyIdentification.md) | | +**items** | [**Array<Item>**](Item.md) | Provide the details of the items in this shipment. If any of the item details field is common at a package or a pallet level, then provide them at the corresponding package. | +**containers** | [**Array<Container>**](Container.md) | Provide the details of the items in this shipment. If any of the item details field is common at a package or a pallet level, then provide them at the corresponding package. | [optional] + diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/docs/ShipmentDetails.md b/lib/vendor-direct-fulfillment-shipping-api-model/docs/ShipmentDetails.md new file mode 100644 index 000000000..48c11fd07 --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/docs/ShipmentDetails.md @@ -0,0 +1,11 @@ +# AmzSpApi::VendorDirectFulfillmentShippingApiModel::ShipmentDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**shipped_date** | **DateTime** | This field indicates the date of the departure of the shipment from vendor's location. Vendors are requested to send ASNs within 30 minutes of departure from their warehouse/distribution center or at least 6 hours prior to the appointment time at the Amazon destination warehouse, whichever is sooner. Shipped date mentioned in the Shipment Confirmation should not be in the future. | +**shipment_status** | **String** | Indicate the shipment status. | +**is_priority_shipment** | **BOOLEAN** | Provide the priority of the shipment. | [optional] +**vendor_order_number** | **String** | The vendor order number is a unique identifier generated by a vendor for their reference. | [optional] +**estimated_delivery_date** | **DateTime** | Date on which the shipment is expected to reach the buyer's warehouse. It needs to be an estimate based on the average transit time between the ship-from location and the destination. The exact appointment time will be provided by buyer and is potentially not known when creating the shipment confirmation. | [optional] + diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/docs/ShipmentStatusUpdate.md b/lib/vendor-direct-fulfillment-shipping-api-model/docs/ShipmentStatusUpdate.md new file mode 100644 index 000000000..3d198850a --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/docs/ShipmentStatusUpdate.md @@ -0,0 +1,10 @@ +# AmzSpApi::VendorDirectFulfillmentShippingApiModel::ShipmentStatusUpdate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**purchase_order_number** | **String** | Purchase order number of the shipment for which to update the shipment status. | +**selling_party** | [**PartyIdentification**](PartyIdentification.md) | | +**ship_from_party** | [**PartyIdentification**](PartyIdentification.md) | | +**status_update_details** | [**StatusUpdateDetails**](StatusUpdateDetails.md) | | + diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/docs/StatusUpdateDetails.md b/lib/vendor-direct-fulfillment-shipping-api-model/docs/StatusUpdateDetails.md new file mode 100644 index 000000000..7de574b19 --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/docs/StatusUpdateDetails.md @@ -0,0 +1,12 @@ +# AmzSpApi::VendorDirectFulfillmentShippingApiModel::StatusUpdateDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tracking_number** | **String** | This is required to be provided for every package and should match with the trackingNumber sent for the shipment confirmation. | +**status_code** | **String** | Indicates the shipment status code of the package that provides transportation information for Amazon tracking systems and ultimately for the final customer. | +**reason_code** | **String** | Provides a reason code for the status of the package that will provide additional information about the transportation status. | +**status_date_time** | **DateTime** | The date and time when the shipment status was updated. This field is expected to be in ISO-8601 date/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00. | +**status_location_address** | [**Address**](Address.md) | | +**shipment_schedule** | [**StatusUpdateDetailsShipmentSchedule**](StatusUpdateDetailsShipmentSchedule.md) | | [optional] + diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/docs/StatusUpdateDetailsShipmentSchedule.md b/lib/vendor-direct-fulfillment-shipping-api-model/docs/StatusUpdateDetailsShipmentSchedule.md new file mode 100644 index 000000000..5b8f90dd2 --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/docs/StatusUpdateDetailsShipmentSchedule.md @@ -0,0 +1,9 @@ +# AmzSpApi::VendorDirectFulfillmentShippingApiModel::StatusUpdateDetailsShipmentSchedule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**estimated_delivery_date_time** | **DateTime** | Date on which the shipment is expected to reach the customer delivery location. This field is expected to be in ISO-8601 date/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00. | [optional] +**appt_window_start_date_time** | **DateTime** | This field indicates the date and time at the start of the appointment window scheduled to deliver the shipment. This field is expected to be in ISO-8601 date/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00. | [optional] +**appt_window_end_date_time** | **DateTime** | This field indicates the date and time at the end of the appointment window scheduled to deliver the shipment. This field is expected to be in ISO-8601 date/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00. | [optional] + diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/docs/SubmitShipmentConfirmationsRequest.md b/lib/vendor-direct-fulfillment-shipping-api-model/docs/SubmitShipmentConfirmationsRequest.md new file mode 100644 index 000000000..f89035852 --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/docs/SubmitShipmentConfirmationsRequest.md @@ -0,0 +1,7 @@ +# AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentConfirmationsRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**shipment_confirmations** | [**Array<ShipmentConfirmation>**](ShipmentConfirmation.md) | | [optional] + diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/docs/SubmitShipmentConfirmationsResponse.md b/lib/vendor-direct-fulfillment-shipping-api-model/docs/SubmitShipmentConfirmationsResponse.md new file mode 100644 index 000000000..78fdd40a4 --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/docs/SubmitShipmentConfirmationsResponse.md @@ -0,0 +1,8 @@ +# AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentConfirmationsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payload** | [**TransactionReference**](TransactionReference.md) | | [optional] +**errors** | [**ErrorList**](ErrorList.md) | | [optional] + diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/docs/SubmitShipmentStatusUpdatesRequest.md b/lib/vendor-direct-fulfillment-shipping-api-model/docs/SubmitShipmentStatusUpdatesRequest.md new file mode 100644 index 000000000..e2e2ca40d --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/docs/SubmitShipmentStatusUpdatesRequest.md @@ -0,0 +1,7 @@ +# AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentStatusUpdatesRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**shipment_status_updates** | [**Array<ShipmentStatusUpdate>**](ShipmentStatusUpdate.md) | | [optional] + diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/docs/SubmitShipmentStatusUpdatesResponse.md b/lib/vendor-direct-fulfillment-shipping-api-model/docs/SubmitShipmentStatusUpdatesResponse.md new file mode 100644 index 000000000..1b0a08081 --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/docs/SubmitShipmentStatusUpdatesResponse.md @@ -0,0 +1,8 @@ +# AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentStatusUpdatesResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payload** | [**TransactionReference**](TransactionReference.md) | | [optional] +**errors** | [**ErrorList**](ErrorList.md) | | [optional] + diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/docs/VendorShippingApi.md b/lib/vendor-direct-fulfillment-shipping-api-model/docs/VendorShippingApi.md new file mode 100644 index 000000000..690d29277 --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/docs/VendorShippingApi.md @@ -0,0 +1,202 @@ +# AmzSpApi::VendorDirectFulfillmentShippingApiModel::VendorShippingApi + +All URIs are relative to *https://sellingpartnerapi-na.amazon.com/* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_packing_slip**](VendorShippingApi.md#get_packing_slip) | **GET** /vendor/directFulfillment/shipping/v1/packingSlips/{purchaseOrderNumber} | +[**get_packing_slips**](VendorShippingApi.md#get_packing_slips) | **GET** /vendor/directFulfillment/shipping/v1/packingSlips | +[**submit_shipment_confirmations**](VendorShippingApi.md#submit_shipment_confirmations) | **POST** /vendor/directFulfillment/shipping/v1/shipmentConfirmations | +[**submit_shipment_status_updates**](VendorShippingApi.md#submit_shipment_status_updates) | **POST** /vendor/directFulfillment/shipping/v1/shipmentStatusUpdates | + +# **get_packing_slip** +> GetPackingSlipResponse get_packing_slip(purchase_order_number) + + + +Returns a packing slip based on the purchaseOrderNumber that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + +### Example +```ruby +# load the gem +require 'vendor-direct-fulfillment-shipping-api-model' + +api_instance = AmzSpApi::VendorDirectFulfillmentShippingApiModel::VendorShippingApi.new +purchase_order_number = 'purchase_order_number_example' # String | The purchaseOrderNumber for the packing slip you want. + + +begin + result = api_instance.get_packing_slip(purchase_order_number) + p result +rescue AmzSpApi::VendorDirectFulfillmentShippingApiModel::ApiError => e + puts "Exception when calling VendorShippingApi->get_packing_slip: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **purchase_order_number** | **String**| The purchaseOrderNumber for the packing slip you want. | + +### Return type + +[**GetPackingSlipResponse**](GetPackingSlipResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + + +# **get_packing_slips** +> GetPackingSlipListResponse get_packing_slips(created_after, created_before, opts) + + + +Returns a list of packing slips for the purchase orders that match the criteria specified. Date range to search must not be more than 7 days. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + +### Example +```ruby +# load the gem +require 'vendor-direct-fulfillment-shipping-api-model' + +api_instance = AmzSpApi::VendorDirectFulfillmentShippingApiModel::VendorShippingApi.new +created_after = DateTime.parse('2013-10-20T19:20:30+01:00') # DateTime | Packing slips that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. +created_before = DateTime.parse('2013-10-20T19:20:30+01:00') # DateTime | Packing slips that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. +opts = { + ship_from_party_id: 'ship_from_party_id_example', # String | The vendor warehouseId for order fulfillment. If not specified the result will contain orders for all warehouses. + limit: 56, # Integer | The limit to the number of records returned + sort_order: 'ASC', # String | Sort ASC or DESC by packing slip creation date. + next_token: 'next_token_example' # String | Used for pagination when there are more packing slips than the specified result size limit. The token value is returned in the previous API call. +} + +begin + result = api_instance.get_packing_slips(created_after, created_before, opts) + p result +rescue AmzSpApi::VendorDirectFulfillmentShippingApiModel::ApiError => e + puts "Exception when calling VendorShippingApi->get_packing_slips: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **created_after** | **DateTime**| Packing slips that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. | + **created_before** | **DateTime**| Packing slips that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. | + **ship_from_party_id** | **String**| The vendor warehouseId for order fulfillment. If not specified the result will contain orders for all warehouses. | [optional] + **limit** | **Integer**| The limit to the number of records returned | [optional] + **sort_order** | **String**| Sort ASC or DESC by packing slip creation date. | [optional] [default to ASC] + **next_token** | **String**| Used for pagination when there are more packing slips than the specified result size limit. The token value is returned in the previous API call. | [optional] + +### Return type + +[**GetPackingSlipListResponse**](GetPackingSlipListResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + + +# **submit_shipment_confirmations** +> SubmitShipmentConfirmationsResponse submit_shipment_confirmations(body) + + + +Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + +### Example +```ruby +# load the gem +require 'vendor-direct-fulfillment-shipping-api-model' + +api_instance = AmzSpApi::VendorDirectFulfillmentShippingApiModel::VendorShippingApi.new +body = AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentConfirmationsRequest.new # SubmitShipmentConfirmationsRequest | + + +begin + result = api_instance.submit_shipment_confirmations(body) + p result +rescue AmzSpApi::VendorDirectFulfillmentShippingApiModel::ApiError => e + puts "Exception when calling VendorShippingApi->submit_shipment_confirmations: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**SubmitShipmentConfirmationsRequest**](SubmitShipmentConfirmationsRequest.md)| | + +### Return type + +[**SubmitShipmentConfirmationsResponse**](SubmitShipmentConfirmationsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **submit_shipment_status_updates** +> SubmitShipmentStatusUpdatesResponse submit_shipment_status_updates(body) + + + +This API call is only to be used by Vendor-Own-Carrier (VOC) vendors. Calling this API will submit a shipment status update for the package that a vendor has shipped. It will provide the Amazon customer visibility on their order, when the package is outside of Amazon Network visibility. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + +### Example +```ruby +# load the gem +require 'vendor-direct-fulfillment-shipping-api-model' + +api_instance = AmzSpApi::VendorDirectFulfillmentShippingApiModel::VendorShippingApi.new +body = AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentStatusUpdatesRequest.new # SubmitShipmentStatusUpdatesRequest | + + +begin + result = api_instance.submit_shipment_status_updates(body) + p result +rescue AmzSpApi::VendorDirectFulfillmentShippingApiModel::ApiError => e + puts "Exception when calling VendorShippingApi->submit_shipment_status_updates: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**SubmitShipmentStatusUpdatesRequest**](SubmitShipmentStatusUpdatesRequest.md)| | + +### Return type + +[**SubmitShipmentStatusUpdatesResponse**](SubmitShipmentStatusUpdatesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/docs/VendorShippingLabelsApi.md b/lib/vendor-direct-fulfillment-shipping-api-model/docs/VendorShippingLabelsApi.md index c6f03eb13..d49fd1d81 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/docs/VendorShippingLabelsApi.md +++ b/lib/vendor-direct-fulfillment-shipping-api-model/docs/VendorShippingLabelsApi.md @@ -4,16 +4,16 @@ All URIs are relative to *https://sellingpartnerapi-na.amazon.com/* Method | HTTP request | Description ------------- | ------------- | ------------- -[**get_shipping_label**](VendorShippingLabelsApi.md#get_shipping_label) | **GET** /vendor/directFulfillment/shipping/2021-12-28/shippingLabels/{purchaseOrderNumber} | -[**get_shipping_labels**](VendorShippingLabelsApi.md#get_shipping_labels) | **GET** /vendor/directFulfillment/shipping/2021-12-28/shippingLabels | -[**submit_shipping_label_request**](VendorShippingLabelsApi.md#submit_shipping_label_request) | **POST** /vendor/directFulfillment/shipping/2021-12-28/shippingLabels | +[**get_shipping_label**](VendorShippingLabelsApi.md#get_shipping_label) | **GET** /vendor/directFulfillment/shipping/v1/shippingLabels/{purchaseOrderNumber} | +[**get_shipping_labels**](VendorShippingLabelsApi.md#get_shipping_labels) | **GET** /vendor/directFulfillment/shipping/v1/shippingLabels | +[**submit_shipping_label_request**](VendorShippingLabelsApi.md#submit_shipping_label_request) | **POST** /vendor/directFulfillment/shipping/v1/shippingLabels | # **get_shipping_label** -> ShippingLabel get_shipping_label(purchase_order_number) +> GetShippingLabelResponse get_shipping_label(purchase_order_number) -Returns a shipping label for the purchaseOrderNumber that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). +Returns a shipping label for the purchaseOrderNumber that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -40,7 +40,7 @@ Name | Type | Description | Notes ### Return type -[**ShippingLabel**](ShippingLabel.md) +[**GetShippingLabelResponse**](GetShippingLabelResponse.md) ### Authorization @@ -54,11 +54,11 @@ No authorization required # **get_shipping_labels** -> ShippingLabelList get_shipping_labels(created_after, created_before, opts) +> GetShippingLabelListResponse get_shipping_labels(created_after, created_before, opts) -Returns a list of shipping labels created during the time frame that you specify. You define that time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must not be more than 7 days. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). +Returns a list of shipping labels created during the time frame that you specify. You define that time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must not be more than 7 days. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -96,7 +96,7 @@ Name | Type | Description | Notes ### Return type -[**ShippingLabelList**](ShippingLabelList.md) +[**GetShippingLabelListResponse**](GetShippingLabelListResponse.md) ### Authorization @@ -105,16 +105,16 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, pagination, shippingLabels + - **Accept**: application/json, payload # **submit_shipping_label_request** -> TransactionReference submit_shipping_label_request(body) +> SubmitShippingLabelsResponse submit_shipping_label_request(body) -Creates a shipping label for a purchase order and returns a transactionId for reference. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). +Creates a shipping label for a purchase order and returns a transactionId for reference. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -141,7 +141,7 @@ Name | Type | Description | Notes ### Return type -[**TransactionReference**](TransactionReference.md) +[**SubmitShippingLabelsResponse**](SubmitShippingLabelsResponse.md) ### Authorization diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/address.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/address.rb index 30327c045..23227e925 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/models/address.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/address.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/container.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/container.rb index 302339430..2db498098 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/models/container.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/container.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' @@ -200,7 +200,7 @@ def list_invalid_properties # @return true if the model is valid def valid? return false if @container_type.nil? - container_type_validator = EnumAttributeValidator.new('Object', ['Carton', 'Pallet']) + container_type_validator = EnumAttributeValidator.new('Object', ['carton', 'pallet']) return false unless container_type_validator.valid?(@container_type) return false if @container_identifier.nil? return false if @packed_items.nil? @@ -210,7 +210,7 @@ def valid? # Custom attribute writer method checking allowed values (enum). # @param [Object] container_type Object to be assigned def container_type=(container_type) - validator = EnumAttributeValidator.new('Object', ['Carton', 'Pallet']) + validator = EnumAttributeValidator.new('Object', ['carton', 'pallet']) unless validator.valid?(container_type) fail ArgumentError, "invalid value for \"container_type\", must be one of #{validator.allowable_values}." end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/customer_invoice.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/customer_invoice.rb index 9121a16eb..41c570fc5 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/models/customer_invoice.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/customer_invoice.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/customer_invoice_list.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/customer_invoice_list.rb index 117382e2e..bb0ddde30 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/models/customer_invoice_list.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/customer_invoice_list.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/decimal.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/decimal.rb index 821b80fe4..ecff198b1 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/models/decimal.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/decimal.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/dimensions.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/dimensions.rb index 5b4be7476..662e652a8 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/models/dimensions.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/dimensions.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/error.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/error.rb index af44b27a5..f7610842b 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/models/error.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/error.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/error_list.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/error_list.rb index 49b42da6b..2148fa2e2 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/models/error_list.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/error_list.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' @@ -14,19 +14,15 @@ module AmzSpApi::VendorDirectFulfillmentShippingApiModel # A list of error responses returned when a request is unsuccessful. class ErrorList - attr_accessor :errors - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'errors' => :'errors' } end # Attribute type mapping. def self.openapi_types { - :'errors' => :'Object' } end @@ -51,28 +47,20 @@ def initialize(attributes = {}) h[k.to_sym] = v } - if attributes.key?(:'errors') - if (value = attributes[:'errors']).is_a?(Array) - self.errors = value - end - end + # call parent's initialize + super(attributes) end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties - invalid_properties = Array.new - if @errors.nil? - invalid_properties.push('invalid value for "errors", errors cannot be nil.') - end - + invalid_properties = super invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @errors.nil? true end @@ -80,8 +68,7 @@ def valid? # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) - self.class == o.class && - errors == o.errors + self.class == o.class && super(o) end # @see the `==` method @@ -93,7 +80,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [errors].hash + [].hash end # Builds the object from hash @@ -108,6 +95,7 @@ def self.build_from_hash(attributes) # @return [Object] Returns the model itself def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) + super(attributes) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute @@ -181,7 +169,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash - hash = {} + hash = super self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/get_customer_invoice_response.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/get_customer_invoice_response.rb index 1e038f976..636346c81 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/models/get_customer_invoice_response.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/get_customer_invoice_response.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/get_customer_invoices_response.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/get_customer_invoices_response.rb index 9ddcbdd1e..e5599de78 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/models/get_customer_invoices_response.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/get_customer_invoices_response.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/get_packing_slip_list_response.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/get_packing_slip_list_response.rb new file mode 100644 index 000000000..d1ac93345 --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/get_packing_slip_list_response.rb @@ -0,0 +1,215 @@ +=begin +#Selling Partner API for Direct Fulfillment Shipping + +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::VendorDirectFulfillmentShippingApiModel + class GetPackingSlipListResponse + attr_accessor :payload + + attr_accessor :errors + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'payload' => :'payload', + :'errors' => :'errors' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'payload' => :'Object', + :'errors' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorDirectFulfillmentShippingApiModel::GetPackingSlipListResponse` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorDirectFulfillmentShippingApiModel::GetPackingSlipListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'payload') + self.payload = attributes[:'payload'] + end + + if attributes.key?(:'errors') + self.errors = attributes[:'errors'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + payload == o.payload && + errors == o.errors + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [payload, errors].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::VendorDirectFulfillmentShippingApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/product-pricing-api-model/models/get_offers_response.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/get_packing_slip_response.rb similarity index 89% rename from lib/product-pricing-api-model/models/get_offers_response.rb rename to lib/vendor-direct-fulfillment-shipping-api-model/models/get_packing_slip_response.rb index b87105cad..06125b7cf 100644 --- a/lib/product-pricing-api-model/models/get_offers_response.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/get_packing_slip_response.rb @@ -1,19 +1,18 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Direct Fulfillment Shipping -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: v0 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - # The response schema for the getListingOffers and getItemOffers operations. - class GetOffersResponse +module AmzSpApi::VendorDirectFulfillmentShippingApiModel + class GetPackingSlipResponse attr_accessor :payload attr_accessor :errors @@ -44,13 +43,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::GetOffersResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorDirectFulfillmentShippingApiModel::GetPackingSlipResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::GetOffersResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorDirectFulfillmentShippingApiModel::GetPackingSlipResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } @@ -164,7 +163,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::VendorDirectFulfillmentShippingApiModel.const_get(type).build_from_hash(value) end end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/get_shipping_label_list_response.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/get_shipping_label_list_response.rb index 01429ccbc..961e596d3 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/models/get_shipping_label_list_response.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/get_shipping_label_list_response.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/get_shipping_label_response.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/get_shipping_label_response.rb index a5835fd22..e98c28e3e 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/models/get_shipping_label_response.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/get_shipping_label_response.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/item.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/item.rb index ef68b2919..082547cc4 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/models/item.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/item.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/item_quantity.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/item_quantity.rb index 7d8b2de3c..a182206fc 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/models/item_quantity.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/item_quantity.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/label_data.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/label_data.rb index cafccae5b..96c4c447a 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/models/label_data.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/label_data.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/packed_item.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/packed_item.rb index f49ab75a8..0af8341f3 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/models/packed_item.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/packed_item.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/packing_slip.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/packing_slip.rb new file mode 100644 index 000000000..dcd98f624 --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/packing_slip.rb @@ -0,0 +1,272 @@ +=begin +#Selling Partner API for Direct Fulfillment Shipping + +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::VendorDirectFulfillmentShippingApiModel + # Packing slip information. + class PackingSlip + # Purchase order number of the shipment that corresponds to the packing slip. + attr_accessor :purchase_order_number + + # A Base64encoded string of the packing slip PDF. + attr_accessor :content + + # The format of the file such as PDF, JPEG etc. + attr_accessor :content_type + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'purchase_order_number' => :'purchaseOrderNumber', + :'content' => :'content', + :'content_type' => :'contentType' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'purchase_order_number' => :'Object', + :'content' => :'Object', + :'content_type' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorDirectFulfillmentShippingApiModel::PackingSlip` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorDirectFulfillmentShippingApiModel::PackingSlip`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'purchase_order_number') + self.purchase_order_number = attributes[:'purchase_order_number'] + end + + if attributes.key?(:'content') + self.content = attributes[:'content'] + end + + if attributes.key?(:'content_type') + self.content_type = attributes[:'content_type'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @purchase_order_number.nil? + invalid_properties.push('invalid value for "purchase_order_number", purchase_order_number cannot be nil.') + end + + if @content.nil? + invalid_properties.push('invalid value for "content", content cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return false if @purchase_order_number.nil? + return false if @content.nil? + content_type_validator = EnumAttributeValidator.new('Object', ['application/pdf']) + return false unless content_type_validator.valid?(@content_type) + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] content_type Object to be assigned + def content_type=(content_type) + validator = EnumAttributeValidator.new('Object', ['application/pdf']) + unless validator.valid?(content_type) + fail ArgumentError, "invalid value for \"content_type\", must be one of #{validator.allowable_values}." + end + @content_type = content_type + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + purchase_order_number == o.purchase_order_number && + content == o.content && + content_type == o.content_type + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [purchase_order_number, content, content_type].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::VendorDirectFulfillmentShippingApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/packing_slip_list.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/packing_slip_list.rb new file mode 100644 index 000000000..69b69bd30 --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/packing_slip_list.rb @@ -0,0 +1,218 @@ +=begin +#Selling Partner API for Direct Fulfillment Shipping + +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::VendorDirectFulfillmentShippingApiModel + # A list of packing slips. + class PackingSlipList + attr_accessor :pagination + + attr_accessor :packing_slips + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'pagination' => :'pagination', + :'packing_slips' => :'packingSlips' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'pagination' => :'Object', + :'packing_slips' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorDirectFulfillmentShippingApiModel::PackingSlipList` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorDirectFulfillmentShippingApiModel::PackingSlipList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'pagination') + self.pagination = attributes[:'pagination'] + end + + if attributes.key?(:'packing_slips') + if (value = attributes[:'packing_slips']).is_a?(Array) + self.packing_slips = value + end + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + pagination == o.pagination && + packing_slips == o.packing_slips + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [pagination, packing_slips].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::VendorDirectFulfillmentShippingApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/pagination.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/pagination.rb index 04c1f4d79..53271f504 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/models/pagination.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/pagination.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/party_identification.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/party_identification.rb index 9973fff96..db75b2e7d 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/models/party_identification.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/party_identification.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-pricing-api-model/models/get_offers_result.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/shipment_confirmation.rb similarity index 59% rename from lib/product-pricing-api-model/models/get_offers_result.rb rename to lib/vendor-direct-fulfillment-shipping-api-model/models/shipment_confirmation.rb index 2ea23e648..713bcdd0e 100644 --- a/lib/product-pricing-api-model/models/get_offers_result.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/shipment_confirmation.rb @@ -1,63 +1,54 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Direct Fulfillment Shipping -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: v0 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - class GetOffersResult - # A marketplace identifier. - attr_accessor :marketplace_id +module AmzSpApi::VendorDirectFulfillmentShippingApiModel + class ShipmentConfirmation + # Purchase order number corresponding to the shipment. + attr_accessor :purchase_order_number - # The Amazon Standard Identification Number (ASIN) of the item. - attr_accessor :asin + attr_accessor :shipment_details - # The stock keeping unit (SKU) of the item. - attr_accessor :sku + attr_accessor :selling_party - attr_accessor :item_condition + attr_accessor :ship_from_party - # The status of the operation. - attr_accessor :status + # Provide the details of the items in this shipment. If any of the item details field is common at a package or a pallet level, then provide them at the corresponding package. + attr_accessor :items - attr_accessor :identifier - - attr_accessor :summary - - attr_accessor :offers + # Provide the details of the items in this shipment. If any of the item details field is common at a package or a pallet level, then provide them at the corresponding package. + attr_accessor :containers # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'marketplace_id' => :'MarketplaceID', - :'asin' => :'ASIN', - :'sku' => :'SKU', - :'item_condition' => :'ItemCondition', - :'status' => :'status', - :'identifier' => :'Identifier', - :'summary' => :'Summary', - :'offers' => :'Offers' + :'purchase_order_number' => :'purchaseOrderNumber', + :'shipment_details' => :'shipmentDetails', + :'selling_party' => :'sellingParty', + :'ship_from_party' => :'shipFromParty', + :'items' => :'items', + :'containers' => :'containers' } end # Attribute type mapping. def self.openapi_types { - :'marketplace_id' => :'Object', - :'asin' => :'Object', - :'sku' => :'Object', - :'item_condition' => :'Object', - :'status' => :'Object', - :'identifier' => :'Object', - :'summary' => :'Object', - :'offers' => :'Object' + :'purchase_order_number' => :'Object', + :'shipment_details' => :'Object', + :'selling_party' => :'Object', + :'ship_from_party' => :'Object', + :'items' => :'Object', + :'containers' => :'Object' } end @@ -71,47 +62,43 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::GetOffersResult` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorDirectFulfillmentShippingApiModel::ShipmentConfirmation` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::GetOffersResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorDirectFulfillmentShippingApiModel::ShipmentConfirmation`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - if attributes.key?(:'marketplace_id') - self.marketplace_id = attributes[:'marketplace_id'] - end - - if attributes.key?(:'asin') - self.asin = attributes[:'asin'] - end - - if attributes.key?(:'sku') - self.sku = attributes[:'sku'] + if attributes.key?(:'purchase_order_number') + self.purchase_order_number = attributes[:'purchase_order_number'] end - if attributes.key?(:'item_condition') - self.item_condition = attributes[:'item_condition'] + if attributes.key?(:'shipment_details') + self.shipment_details = attributes[:'shipment_details'] end - if attributes.key?(:'status') - self.status = attributes[:'status'] + if attributes.key?(:'selling_party') + self.selling_party = attributes[:'selling_party'] end - if attributes.key?(:'identifier') - self.identifier = attributes[:'identifier'] + if attributes.key?(:'ship_from_party') + self.ship_from_party = attributes[:'ship_from_party'] end - if attributes.key?(:'summary') - self.summary = attributes[:'summary'] + if attributes.key?(:'items') + if (value = attributes[:'items']).is_a?(Array) + self.items = value + end end - if attributes.key?(:'offers') - self.offers = attributes[:'offers'] + if attributes.key?(:'containers') + if (value = attributes[:'containers']).is_a?(Array) + self.containers = value + end end end @@ -119,28 +106,24 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @marketplace_id.nil? - invalid_properties.push('invalid value for "marketplace_id", marketplace_id cannot be nil.') - end - - if @item_condition.nil? - invalid_properties.push('invalid value for "item_condition", item_condition cannot be nil.') + if @purchase_order_number.nil? + invalid_properties.push('invalid value for "purchase_order_number", purchase_order_number cannot be nil.') end - if @status.nil? - invalid_properties.push('invalid value for "status", status cannot be nil.') + if @shipment_details.nil? + invalid_properties.push('invalid value for "shipment_details", shipment_details cannot be nil.') end - if @identifier.nil? - invalid_properties.push('invalid value for "identifier", identifier cannot be nil.') + if @selling_party.nil? + invalid_properties.push('invalid value for "selling_party", selling_party cannot be nil.') end - if @summary.nil? - invalid_properties.push('invalid value for "summary", summary cannot be nil.') + if @ship_from_party.nil? + invalid_properties.push('invalid value for "ship_from_party", ship_from_party cannot be nil.') end - if @offers.nil? - invalid_properties.push('invalid value for "offers", offers cannot be nil.') + if @items.nil? + invalid_properties.push('invalid value for "items", items cannot be nil.') end invalid_properties @@ -149,12 +132,11 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @marketplace_id.nil? - return false if @item_condition.nil? - return false if @status.nil? - return false if @identifier.nil? - return false if @summary.nil? - return false if @offers.nil? + return false if @purchase_order_number.nil? + return false if @shipment_details.nil? + return false if @selling_party.nil? + return false if @ship_from_party.nil? + return false if @items.nil? true end @@ -163,14 +145,12 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - marketplace_id == o.marketplace_id && - asin == o.asin && - sku == o.sku && - item_condition == o.item_condition && - status == o.status && - identifier == o.identifier && - summary == o.summary && - offers == o.offers + purchase_order_number == o.purchase_order_number && + shipment_details == o.shipment_details && + selling_party == o.selling_party && + ship_from_party == o.ship_from_party && + items == o.items && + containers == o.containers end # @see the `==` method @@ -182,7 +162,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [marketplace_id, asin, sku, item_condition, status, identifier, summary, offers].hash + [purchase_order_number, shipment_details, selling_party, ship_from_party, items, containers].hash end # Builds the object from hash @@ -251,7 +231,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::VendorDirectFulfillmentShippingApiModel.const_get(type).build_from_hash(value) end end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/shipment_details.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/shipment_details.rb new file mode 100644 index 000000000..a9318e11c --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/shipment_details.rb @@ -0,0 +1,292 @@ +=begin +#Selling Partner API for Direct Fulfillment Shipping + +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::VendorDirectFulfillmentShippingApiModel + # Details about a shipment. + class ShipmentDetails + # This field indicates the date of the departure of the shipment from vendor's location. Vendors are requested to send ASNs within 30 minutes of departure from their warehouse/distribution center or at least 6 hours prior to the appointment time at the Amazon destination warehouse, whichever is sooner. Shipped date mentioned in the Shipment Confirmation should not be in the future. + attr_accessor :shipped_date + + # Indicate the shipment status. + attr_accessor :shipment_status + + # Provide the priority of the shipment. + attr_accessor :is_priority_shipment + + # The vendor order number is a unique identifier generated by a vendor for their reference. + attr_accessor :vendor_order_number + + # Date on which the shipment is expected to reach the buyer's warehouse. It needs to be an estimate based on the average transit time between the ship-from location and the destination. The exact appointment time will be provided by buyer and is potentially not known when creating the shipment confirmation. + attr_accessor :estimated_delivery_date + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'shipped_date' => :'shippedDate', + :'shipment_status' => :'shipmentStatus', + :'is_priority_shipment' => :'isPriorityShipment', + :'vendor_order_number' => :'vendorOrderNumber', + :'estimated_delivery_date' => :'estimatedDeliveryDate' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'shipped_date' => :'Object', + :'shipment_status' => :'Object', + :'is_priority_shipment' => :'Object', + :'vendor_order_number' => :'Object', + :'estimated_delivery_date' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorDirectFulfillmentShippingApiModel::ShipmentDetails` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorDirectFulfillmentShippingApiModel::ShipmentDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'shipped_date') + self.shipped_date = attributes[:'shipped_date'] + end + + if attributes.key?(:'shipment_status') + self.shipment_status = attributes[:'shipment_status'] + end + + if attributes.key?(:'is_priority_shipment') + self.is_priority_shipment = attributes[:'is_priority_shipment'] + end + + if attributes.key?(:'vendor_order_number') + self.vendor_order_number = attributes[:'vendor_order_number'] + end + + if attributes.key?(:'estimated_delivery_date') + self.estimated_delivery_date = attributes[:'estimated_delivery_date'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @shipped_date.nil? + invalid_properties.push('invalid value for "shipped_date", shipped_date cannot be nil.') + end + + if @shipment_status.nil? + invalid_properties.push('invalid value for "shipment_status", shipment_status cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return false if @shipped_date.nil? + return false if @shipment_status.nil? + shipment_status_validator = EnumAttributeValidator.new('Object', ['SHIPPED', 'FLOOR_DENIAL']) + return false unless shipment_status_validator.valid?(@shipment_status) + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] shipment_status Object to be assigned + def shipment_status=(shipment_status) + validator = EnumAttributeValidator.new('Object', ['SHIPPED', 'FLOOR_DENIAL']) + unless validator.valid?(shipment_status) + fail ArgumentError, "invalid value for \"shipment_status\", must be one of #{validator.allowable_values}." + end + @shipment_status = shipment_status + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + shipped_date == o.shipped_date && + shipment_status == o.shipment_status && + is_priority_shipment == o.is_priority_shipment && + vendor_order_number == o.vendor_order_number && + estimated_delivery_date == o.estimated_delivery_date + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [shipped_date, shipment_status, is_priority_shipment, vendor_order_number, estimated_delivery_date].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::VendorDirectFulfillmentShippingApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/shipment_status_update.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/shipment_status_update.rb new file mode 100644 index 000000000..2a9fc30ff --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/shipment_status_update.rb @@ -0,0 +1,254 @@ +=begin +#Selling Partner API for Direct Fulfillment Shipping + +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::VendorDirectFulfillmentShippingApiModel + class ShipmentStatusUpdate + # Purchase order number of the shipment for which to update the shipment status. + attr_accessor :purchase_order_number + + attr_accessor :selling_party + + attr_accessor :ship_from_party + + attr_accessor :status_update_details + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'purchase_order_number' => :'purchaseOrderNumber', + :'selling_party' => :'sellingParty', + :'ship_from_party' => :'shipFromParty', + :'status_update_details' => :'statusUpdateDetails' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'purchase_order_number' => :'Object', + :'selling_party' => :'Object', + :'ship_from_party' => :'Object', + :'status_update_details' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorDirectFulfillmentShippingApiModel::ShipmentStatusUpdate` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorDirectFulfillmentShippingApiModel::ShipmentStatusUpdate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'purchase_order_number') + self.purchase_order_number = attributes[:'purchase_order_number'] + end + + if attributes.key?(:'selling_party') + self.selling_party = attributes[:'selling_party'] + end + + if attributes.key?(:'ship_from_party') + self.ship_from_party = attributes[:'ship_from_party'] + end + + if attributes.key?(:'status_update_details') + self.status_update_details = attributes[:'status_update_details'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @purchase_order_number.nil? + invalid_properties.push('invalid value for "purchase_order_number", purchase_order_number cannot be nil.') + end + + if @selling_party.nil? + invalid_properties.push('invalid value for "selling_party", selling_party cannot be nil.') + end + + if @ship_from_party.nil? + invalid_properties.push('invalid value for "ship_from_party", ship_from_party cannot be nil.') + end + + if @status_update_details.nil? + invalid_properties.push('invalid value for "status_update_details", status_update_details cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return false if @purchase_order_number.nil? + return false if @selling_party.nil? + return false if @ship_from_party.nil? + return false if @status_update_details.nil? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + purchase_order_number == o.purchase_order_number && + selling_party == o.selling_party && + ship_from_party == o.ship_from_party && + status_update_details == o.status_update_details + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [purchase_order_number, selling_party, ship_from_party, status_update_details].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::VendorDirectFulfillmentShippingApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/shipping_label.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/shipping_label.rb index 4318ea78e..eb42e8905 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/models/shipping_label.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/shipping_label.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/shipping_label_list.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/shipping_label_list.rb index 2852ee48b..d6129cf3e 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/models/shipping_label_list.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/shipping_label_list.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/shipping_label_request.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/shipping_label_request.rb index 5eb54a360..ba941b883 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/models/shipping_label_request.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/shipping_label_request.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-pricing-api-model/models/buy_box_price_type.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/status_update_details.rb similarity index 57% rename from lib/product-pricing-api-model/models/buy_box_price_type.rb rename to lib/vendor-direct-fulfillment-shipping-api-model/models/status_update_details.rb index 8ad48ae34..7a7adbd14 100644 --- a/lib/product-pricing-api-model/models/buy_box_price_type.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/status_update_details.rb @@ -1,66 +1,56 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Direct Fulfillment Shipping -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: v0 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - class BuyBoxPriceType - # Indicates the condition of the item. For example: New, Used, Collectible, Refurbished, or Club. - attr_accessor :condition +module AmzSpApi::VendorDirectFulfillmentShippingApiModel + # Details for the shipment status update given by the vendor for the specific package. + class StatusUpdateDetails + # This is required to be provided for every package and should match with the trackingNumber sent for the shipment confirmation. + attr_accessor :tracking_number - attr_accessor :offer_type + # Indicates the shipment status code of the package that provides transportation information for Amazon tracking systems and ultimately for the final customer. + attr_accessor :status_code - # Indicates at what quantity this price becomes active. - attr_accessor :quantity_tier + # Provides a reason code for the status of the package that will provide additional information about the transportation status. + attr_accessor :reason_code - attr_accessor :quantity_discount_type + # The date and time when the shipment status was updated. This field is expected to be in ISO-8601 date/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00. + attr_accessor :status_date_time - attr_accessor :landed_price + attr_accessor :status_location_address - attr_accessor :listing_price - - attr_accessor :shipping - - attr_accessor :points - - # The seller identifier for the offer. - attr_accessor :seller_id + attr_accessor :shipment_schedule # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'condition' => :'condition', - :'offer_type' => :'offerType', - :'quantity_tier' => :'quantityTier', - :'quantity_discount_type' => :'quantityDiscountType', - :'landed_price' => :'LandedPrice', - :'listing_price' => :'ListingPrice', - :'shipping' => :'Shipping', - :'points' => :'Points', - :'seller_id' => :'sellerId' + :'tracking_number' => :'trackingNumber', + :'status_code' => :'statusCode', + :'reason_code' => :'reasonCode', + :'status_date_time' => :'statusDateTime', + :'status_location_address' => :'statusLocationAddress', + :'shipment_schedule' => :'shipmentSchedule' } end # Attribute type mapping. def self.openapi_types { - :'condition' => :'Object', - :'offer_type' => :'Object', - :'quantity_tier' => :'Object', - :'quantity_discount_type' => :'Object', - :'landed_price' => :'Object', - :'listing_price' => :'Object', - :'shipping' => :'Object', - :'points' => :'Object', - :'seller_id' => :'Object' + :'tracking_number' => :'Object', + :'status_code' => :'Object', + :'reason_code' => :'Object', + :'status_date_time' => :'Object', + :'status_location_address' => :'Object', + :'shipment_schedule' => :'Object' } end @@ -74,51 +64,39 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::BuyBoxPriceType` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorDirectFulfillmentShippingApiModel::StatusUpdateDetails` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::BuyBoxPriceType`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorDirectFulfillmentShippingApiModel::StatusUpdateDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - if attributes.key?(:'condition') - self.condition = attributes[:'condition'] + if attributes.key?(:'tracking_number') + self.tracking_number = attributes[:'tracking_number'] end - if attributes.key?(:'offer_type') - self.offer_type = attributes[:'offer_type'] + if attributes.key?(:'status_code') + self.status_code = attributes[:'status_code'] end - if attributes.key?(:'quantity_tier') - self.quantity_tier = attributes[:'quantity_tier'] + if attributes.key?(:'reason_code') + self.reason_code = attributes[:'reason_code'] end - if attributes.key?(:'quantity_discount_type') - self.quantity_discount_type = attributes[:'quantity_discount_type'] + if attributes.key?(:'status_date_time') + self.status_date_time = attributes[:'status_date_time'] end - if attributes.key?(:'landed_price') - self.landed_price = attributes[:'landed_price'] + if attributes.key?(:'status_location_address') + self.status_location_address = attributes[:'status_location_address'] end - if attributes.key?(:'listing_price') - self.listing_price = attributes[:'listing_price'] - end - - if attributes.key?(:'shipping') - self.shipping = attributes[:'shipping'] - end - - if attributes.key?(:'points') - self.points = attributes[:'points'] - end - - if attributes.key?(:'seller_id') - self.seller_id = attributes[:'seller_id'] + if attributes.key?(:'shipment_schedule') + self.shipment_schedule = attributes[:'shipment_schedule'] end end @@ -126,20 +104,24 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @condition.nil? - invalid_properties.push('invalid value for "condition", condition cannot be nil.') + if @tracking_number.nil? + invalid_properties.push('invalid value for "tracking_number", tracking_number cannot be nil.') + end + + if @status_code.nil? + invalid_properties.push('invalid value for "status_code", status_code cannot be nil.') end - if @landed_price.nil? - invalid_properties.push('invalid value for "landed_price", landed_price cannot be nil.') + if @reason_code.nil? + invalid_properties.push('invalid value for "reason_code", reason_code cannot be nil.') end - if @listing_price.nil? - invalid_properties.push('invalid value for "listing_price", listing_price cannot be nil.') + if @status_date_time.nil? + invalid_properties.push('invalid value for "status_date_time", status_date_time cannot be nil.') end - if @shipping.nil? - invalid_properties.push('invalid value for "shipping", shipping cannot be nil.') + if @status_location_address.nil? + invalid_properties.push('invalid value for "status_location_address", status_location_address cannot be nil.') end invalid_properties @@ -148,10 +130,11 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @condition.nil? - return false if @landed_price.nil? - return false if @listing_price.nil? - return false if @shipping.nil? + return false if @tracking_number.nil? + return false if @status_code.nil? + return false if @reason_code.nil? + return false if @status_date_time.nil? + return false if @status_location_address.nil? true end @@ -160,15 +143,12 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - condition == o.condition && - offer_type == o.offer_type && - quantity_tier == o.quantity_tier && - quantity_discount_type == o.quantity_discount_type && - landed_price == o.landed_price && - listing_price == o.listing_price && - shipping == o.shipping && - points == o.points && - seller_id == o.seller_id + tracking_number == o.tracking_number && + status_code == o.status_code && + reason_code == o.reason_code && + status_date_time == o.status_date_time && + status_location_address == o.status_location_address && + shipment_schedule == o.shipment_schedule end # @see the `==` method @@ -180,7 +160,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [condition, offer_type, quantity_tier, quantity_discount_type, landed_price, listing_price, shipping, points, seller_id].hash + [tracking_number, status_code, reason_code, status_date_time, status_location_address, shipment_schedule].hash end # Builds the object from hash @@ -249,7 +229,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::VendorDirectFulfillmentShippingApiModel.const_get(type).build_from_hash(value) end end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/status_update_details_shipment_schedule.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/status_update_details_shipment_schedule.rb new file mode 100644 index 000000000..7fe62419d --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/status_update_details_shipment_schedule.rb @@ -0,0 +1,227 @@ +=begin +#Selling Partner API for Direct Fulfillment Shipping + +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::VendorDirectFulfillmentShippingApiModel + class StatusUpdateDetailsShipmentSchedule + # Date on which the shipment is expected to reach the customer delivery location. This field is expected to be in ISO-8601 date/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00. + attr_accessor :estimated_delivery_date_time + + # This field indicates the date and time at the start of the appointment window scheduled to deliver the shipment. This field is expected to be in ISO-8601 date/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00. + attr_accessor :appt_window_start_date_time + + # This field indicates the date and time at the end of the appointment window scheduled to deliver the shipment. This field is expected to be in ISO-8601 date/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00. + attr_accessor :appt_window_end_date_time + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'estimated_delivery_date_time' => :'estimatedDeliveryDateTime', + :'appt_window_start_date_time' => :'apptWindowStartDateTime', + :'appt_window_end_date_time' => :'apptWindowEndDateTime' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'estimated_delivery_date_time' => :'Object', + :'appt_window_start_date_time' => :'Object', + :'appt_window_end_date_time' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorDirectFulfillmentShippingApiModel::StatusUpdateDetailsShipmentSchedule` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorDirectFulfillmentShippingApiModel::StatusUpdateDetailsShipmentSchedule`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'estimated_delivery_date_time') + self.estimated_delivery_date_time = attributes[:'estimated_delivery_date_time'] + end + + if attributes.key?(:'appt_window_start_date_time') + self.appt_window_start_date_time = attributes[:'appt_window_start_date_time'] + end + + if attributes.key?(:'appt_window_end_date_time') + self.appt_window_end_date_time = attributes[:'appt_window_end_date_time'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + estimated_delivery_date_time == o.estimated_delivery_date_time && + appt_window_start_date_time == o.appt_window_start_date_time && + appt_window_end_date_time == o.appt_window_end_date_time + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [estimated_delivery_date_time, appt_window_start_date_time, appt_window_end_date_time].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::VendorDirectFulfillmentShippingApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/submit_shipment_confirmations_request.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/submit_shipment_confirmations_request.rb new file mode 100644 index 000000000..e56e4dbc7 --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/submit_shipment_confirmations_request.rb @@ -0,0 +1,208 @@ +=begin +#Selling Partner API for Direct Fulfillment Shipping + +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::VendorDirectFulfillmentShippingApiModel + class SubmitShipmentConfirmationsRequest + attr_accessor :shipment_confirmations + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'shipment_confirmations' => :'shipmentConfirmations' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'shipment_confirmations' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentConfirmationsRequest` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentConfirmationsRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'shipment_confirmations') + if (value = attributes[:'shipment_confirmations']).is_a?(Array) + self.shipment_confirmations = value + end + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + shipment_confirmations == o.shipment_confirmations + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [shipment_confirmations].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::VendorDirectFulfillmentShippingApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/submit_shipment_confirmations_response.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/submit_shipment_confirmations_response.rb new file mode 100644 index 000000000..2f1f2777b --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/submit_shipment_confirmations_response.rb @@ -0,0 +1,216 @@ +=begin +#Selling Partner API for Direct Fulfillment Shipping + +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::VendorDirectFulfillmentShippingApiModel + # The response schema for the submitShipmentConfirmations operation. + class SubmitShipmentConfirmationsResponse + attr_accessor :payload + + attr_accessor :errors + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'payload' => :'payload', + :'errors' => :'errors' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'payload' => :'Object', + :'errors' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentConfirmationsResponse` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentConfirmationsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'payload') + self.payload = attributes[:'payload'] + end + + if attributes.key?(:'errors') + self.errors = attributes[:'errors'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + payload == o.payload && + errors == o.errors + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [payload, errors].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::VendorDirectFulfillmentShippingApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/submit_shipment_status_updates_request.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/submit_shipment_status_updates_request.rb new file mode 100644 index 000000000..d6ee07b6f --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/submit_shipment_status_updates_request.rb @@ -0,0 +1,208 @@ +=begin +#Selling Partner API for Direct Fulfillment Shipping + +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::VendorDirectFulfillmentShippingApiModel + class SubmitShipmentStatusUpdatesRequest + attr_accessor :shipment_status_updates + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'shipment_status_updates' => :'shipmentStatusUpdates' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'shipment_status_updates' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentStatusUpdatesRequest` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentStatusUpdatesRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'shipment_status_updates') + if (value = attributes[:'shipment_status_updates']).is_a?(Array) + self.shipment_status_updates = value + end + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + shipment_status_updates == o.shipment_status_updates + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [shipment_status_updates].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::VendorDirectFulfillmentShippingApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/submit_shipment_status_updates_response.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/submit_shipment_status_updates_response.rb new file mode 100644 index 000000000..cd7b98933 --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/submit_shipment_status_updates_response.rb @@ -0,0 +1,216 @@ +=begin +#Selling Partner API for Direct Fulfillment Shipping + +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::VendorDirectFulfillmentShippingApiModel + # The response schema for the submitShipmentStatusUpdates operation. + class SubmitShipmentStatusUpdatesResponse + attr_accessor :payload + + attr_accessor :errors + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'payload' => :'payload', + :'errors' => :'errors' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'payload' => :'Object', + :'errors' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentStatusUpdatesResponse` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentStatusUpdatesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'payload') + self.payload = attributes[:'payload'] + end + + if attributes.key?(:'errors') + self.errors = attributes[:'errors'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + payload == o.payload && + errors == o.errors + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [payload, errors].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::VendorDirectFulfillmentShippingApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/submit_shipping_labels_request.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/submit_shipping_labels_request.rb index 1ebf01fe0..f008b46cc 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/models/submit_shipping_labels_request.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/submit_shipping_labels_request.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/submit_shipping_labels_response.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/submit_shipping_labels_response.rb index f621e52e9..5bdab1cd0 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/models/submit_shipping_labels_response.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/submit_shipping_labels_response.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/tax_registration_details.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/tax_registration_details.rb index 56ccb6924..6d64fe095 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/models/tax_registration_details.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/tax_registration_details.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/transaction_reference.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/transaction_reference.rb index 7ea72e903..149d1462f 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/models/transaction_reference.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/transaction_reference.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/models/weight.rb b/lib/vendor-direct-fulfillment-shipping-api-model/models/weight.rb index 710e716dc..335bdfb7d 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/models/weight.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/models/weight.rb @@ -3,16 +3,16 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::VendorDirectFulfillmentShippingApiModel - # The weight. + # The weight. This object is mandatory when using the [`submitShipmentConfirmations`](https://developer-docs.amazon.com/sp-api/docs/vendor-direct-fulfillment-shipping-api-v1-reference#submitshipmentconfirmations) operation. class Weight # The unit of measurement. attr_accessor :unit_of_measure diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/api/customer_invoices_api_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/api/customer_invoices_api_spec.rb new file mode 100644 index 000000000..551a9da0d --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/api/customer_invoices_api_spec.rb @@ -0,0 +1,61 @@ +=begin +#Selling Partner API for Direct Fulfillment Shipping + +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' + +# Unit tests for AmzSpApi::VendorDirectFulfillmentShippingApiModel::CustomerInvoicesApi +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'CustomerInvoicesApi' do + before do + # run before each test + @instance = AmzSpApi::VendorDirectFulfillmentShippingApiModel::CustomerInvoicesApi.new + end + + after do + # run after each test + end + + describe 'test an instance of CustomerInvoicesApi' do + it 'should create an instance of CustomerInvoicesApi' do + expect(@instance).to be_instance_of(AmzSpApi::VendorDirectFulfillmentShippingApiModel::CustomerInvoicesApi) + end + end + + # unit tests for get_customer_invoice + # Returns a customer invoice based on the purchaseOrderNumber that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + # @param purchase_order_number Purchase order number of the shipment for which to return the invoice. + # @param [Hash] opts the optional parameters + # @return [GetCustomerInvoiceResponse] + describe 'get_customer_invoice test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + # unit tests for get_customer_invoices + # Returns a list of customer invoices created during a time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must be no more than 7 days. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + # @param created_after Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. + # @param created_before Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. + # @param [Hash] opts the optional parameters + # @option opts [String] :ship_from_party_id The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. + # @option opts [Integer] :limit The limit to the number of records returned + # @option opts [String] :sort_order Sort ASC or DESC by order creation date. + # @option opts [String] :next_token Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. + # @return [GetCustomerInvoicesResponse] + describe 'get_customer_invoices test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/api/vendor_shipping_api_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/api/vendor_shipping_api_spec.rb new file mode 100644 index 000000000..929ccaa80 --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/api/vendor_shipping_api_spec.rb @@ -0,0 +1,83 @@ +=begin +#Selling Partner API for Direct Fulfillment Shipping + +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' + +# Unit tests for AmzSpApi::VendorDirectFulfillmentShippingApiModel::VendorShippingApi +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'VendorShippingApi' do + before do + # run before each test + @instance = AmzSpApi::VendorDirectFulfillmentShippingApiModel::VendorShippingApi.new + end + + after do + # run after each test + end + + describe 'test an instance of VendorShippingApi' do + it 'should create an instance of VendorShippingApi' do + expect(@instance).to be_instance_of(AmzSpApi::VendorDirectFulfillmentShippingApiModel::VendorShippingApi) + end + end + + # unit tests for get_packing_slip + # Returns a packing slip based on the purchaseOrderNumber that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + # @param purchase_order_number The purchaseOrderNumber for the packing slip you want. + # @param [Hash] opts the optional parameters + # @return [GetPackingSlipResponse] + describe 'get_packing_slip test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + # unit tests for get_packing_slips + # Returns a list of packing slips for the purchase orders that match the criteria specified. Date range to search must not be more than 7 days. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + # @param created_after Packing slips that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. + # @param created_before Packing slips that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. + # @param [Hash] opts the optional parameters + # @option opts [String] :ship_from_party_id The vendor warehouseId for order fulfillment. If not specified the result will contain orders for all warehouses. + # @option opts [Integer] :limit The limit to the number of records returned + # @option opts [String] :sort_order Sort ASC or DESC by packing slip creation date. + # @option opts [String] :next_token Used for pagination when there are more packing slips than the specified result size limit. The token value is returned in the previous API call. + # @return [GetPackingSlipListResponse] + describe 'get_packing_slips test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + # unit tests for submit_shipment_confirmations + # Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + # @param body + # @param [Hash] opts the optional parameters + # @return [SubmitShipmentConfirmationsResponse] + describe 'submit_shipment_confirmations test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + # unit tests for submit_shipment_status_updates + # This API call is only to be used by Vendor-Own-Carrier (VOC) vendors. Calling this API will submit a shipment status update for the package that a vendor has shipped. It will provide the Amazon customer visibility on their order, when the package is outside of Amazon Network visibility. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + # @param body + # @param [Hash] opts the optional parameters + # @return [SubmitShipmentStatusUpdatesResponse] + describe 'submit_shipment_status_updates test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/api/vendor_shipping_labels_api_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/api/vendor_shipping_labels_api_spec.rb index 49ad0ec03..555fc0b09 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/api/vendor_shipping_labels_api_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/api/vendor_shipping_labels_api_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -32,10 +32,10 @@ end # unit tests for get_shipping_label - # Returns a shipping label for the purchaseOrderNumber that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Returns a shipping label for the purchaseOrderNumber that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param purchase_order_number The purchase order number for which you want to return the shipping label. It should be the same purchaseOrderNumber as received in the order. # @param [Hash] opts the optional parameters - # @return [ShippingLabel] + # @return [GetShippingLabelResponse] describe 'get_shipping_label test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -43,7 +43,7 @@ end # unit tests for get_shipping_labels - # Returns a list of shipping labels created during the time frame that you specify. You define that time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must not be more than 7 days. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Returns a list of shipping labels created during the time frame that you specify. You define that time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must not be more than 7 days. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param created_after Shipping labels that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. # @param created_before Shipping labels that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. # @param [Hash] opts the optional parameters @@ -51,7 +51,7 @@ # @option opts [Integer] :limit The limit to the number of records returned. # @option opts [String] :sort_order Sort ASC or DESC by order creation date. # @option opts [String] :next_token Used for pagination when there are more ship labels than the specified result size limit. The token value is returned in the previous API call. - # @return [ShippingLabelList] + # @return [GetShippingLabelListResponse] describe 'get_shipping_labels test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -59,10 +59,10 @@ end # unit tests for submit_shipping_label_request - # Creates a shipping label for a purchase order and returns a transactionId for reference. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api). + # Creates a shipping label for a purchase order and returns a transactionId for reference. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters - # @return [TransactionReference] + # @return [SubmitShippingLabelsResponse] describe 'submit_shipping_label_request test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/api_client_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/api_client_spec.rb index 6e0c7c976..4fc48ac15 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/api_client_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/api_client_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/configuration_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/configuration_spec.rb index 5f197a60d..f5816abdf 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/configuration_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/configuration_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/address_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/address_spec.rb index 8fd14c596..116bb8927 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/address_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/address_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/container_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/container_spec.rb index 7a5e6025f..f39bac909 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/container_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/container_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -34,7 +34,7 @@ describe 'test attribute "container_type"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Carton", "Pallet"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["carton", "pallet"]) # validator.allowable_values.each do |value| # expect { @instance.container_type = value }.not_to raise_error # end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/customer_invoice_list_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/customer_invoice_list_spec.rb index 392534487..968a9c3c8 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/customer_invoice_list_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/customer_invoice_list_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/customer_invoice_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/customer_invoice_spec.rb index 1e4e4218c..1d04c7170 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/customer_invoice_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/customer_invoice_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/decimal_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/decimal_spec.rb index d87229777..0cf6e3758 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/decimal_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/decimal_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/dimensions_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/dimensions_spec.rb index 545c8112a..f71834399 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/dimensions_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/dimensions_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/error_list_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/error_list_spec.rb index 4e827a2a6..389b2d325 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/error_list_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/error_list_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -31,10 +31,4 @@ expect(@instance).to be_instance_of(AmzSpApi::VendorDirectFulfillmentShippingApiModel::ErrorList) end end - describe 'test attribute "errors"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/error_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/error_spec.rb index a0d66eb99..dad209445 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/error_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/error_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/get_customer_invoice_response_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/get_customer_invoice_response_spec.rb index d985a4e28..7731039ba 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/get_customer_invoice_response_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/get_customer_invoice_response_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/get_customer_invoices_response_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/get_customer_invoices_response_spec.rb index d55a39843..190cbc259 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/get_customer_invoices_response_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/get_customer_invoices_response_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/get_packing_slip_list_response_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/get_packing_slip_list_response_spec.rb new file mode 100644 index 000000000..bdb87f590 --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/get_packing_slip_list_response_spec.rb @@ -0,0 +1,46 @@ +=begin +#Selling Partner API for Direct Fulfillment Shipping + +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorDirectFulfillmentShippingApiModel::GetPackingSlipListResponse +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'GetPackingSlipListResponse' do + before do + # run before each test + @instance = AmzSpApi::VendorDirectFulfillmentShippingApiModel::GetPackingSlipListResponse.new + end + + after do + # run after each test + end + + describe 'test an instance of GetPackingSlipListResponse' do + it 'should create an instance of GetPackingSlipListResponse' do + expect(@instance).to be_instance_of(AmzSpApi::VendorDirectFulfillmentShippingApiModel::GetPackingSlipListResponse) + end + end + describe 'test attribute "payload"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "errors"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/get_packing_slip_response_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/get_packing_slip_response_spec.rb new file mode 100644 index 000000000..20663c3e5 --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/get_packing_slip_response_spec.rb @@ -0,0 +1,46 @@ +=begin +#Selling Partner API for Direct Fulfillment Shipping + +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorDirectFulfillmentShippingApiModel::GetPackingSlipResponse +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'GetPackingSlipResponse' do + before do + # run before each test + @instance = AmzSpApi::VendorDirectFulfillmentShippingApiModel::GetPackingSlipResponse.new + end + + after do + # run after each test + end + + describe 'test an instance of GetPackingSlipResponse' do + it 'should create an instance of GetPackingSlipResponse' do + expect(@instance).to be_instance_of(AmzSpApi::VendorDirectFulfillmentShippingApiModel::GetPackingSlipResponse) + end + end + describe 'test attribute "payload"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "errors"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/get_shipping_label_list_response_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/get_shipping_label_list_response_spec.rb index da55dabc1..3549ee5fc 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/get_shipping_label_list_response_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/get_shipping_label_list_response_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/get_shipping_label_response_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/get_shipping_label_response_spec.rb index e6d139005..d42a05f2f 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/get_shipping_label_response_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/get_shipping_label_response_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/item_quantity_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/item_quantity_spec.rb index 1fdcf2ebb..921daad30 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/item_quantity_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/item_quantity_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/item_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/item_spec.rb index 111d4a9b1..c9ba728f4 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/item_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/item_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/label_data_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/label_data_spec.rb index 484756ad6..51c16815d 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/label_data_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/label_data_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/packed_item_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/packed_item_spec.rb index bdc8c8452..bef91ad35 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/packed_item_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/packed_item_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/packing_slip_list_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/packing_slip_list_spec.rb new file mode 100644 index 000000000..bc1101b32 --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/packing_slip_list_spec.rb @@ -0,0 +1,46 @@ +=begin +#Selling Partner API for Direct Fulfillment Shipping + +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorDirectFulfillmentShippingApiModel::PackingSlipList +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'PackingSlipList' do + before do + # run before each test + @instance = AmzSpApi::VendorDirectFulfillmentShippingApiModel::PackingSlipList.new + end + + after do + # run after each test + end + + describe 'test an instance of PackingSlipList' do + it 'should create an instance of PackingSlipList' do + expect(@instance).to be_instance_of(AmzSpApi::VendorDirectFulfillmentShippingApiModel::PackingSlipList) + end + end + describe 'test attribute "pagination"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "packing_slips"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/packing_slip_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/packing_slip_spec.rb new file mode 100644 index 000000000..6a40bc08f --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/packing_slip_spec.rb @@ -0,0 +1,56 @@ +=begin +#Selling Partner API for Direct Fulfillment Shipping + +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorDirectFulfillmentShippingApiModel::PackingSlip +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'PackingSlip' do + before do + # run before each test + @instance = AmzSpApi::VendorDirectFulfillmentShippingApiModel::PackingSlip.new + end + + after do + # run after each test + end + + describe 'test an instance of PackingSlip' do + it 'should create an instance of PackingSlip' do + expect(@instance).to be_instance_of(AmzSpApi::VendorDirectFulfillmentShippingApiModel::PackingSlip) + end + end + describe 'test attribute "purchase_order_number"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "content"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "content_type"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["application/pdf"]) + # validator.allowable_values.each do |value| + # expect { @instance.content_type = value }.not_to raise_error + # end + end + end + +end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/pagination_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/pagination_spec.rb index cce0cf101..f11dd3eaf 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/pagination_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/pagination_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/party_identification_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/party_identification_spec.rb index 2fd6ccea4..82121418b 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/party_identification_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/party_identification_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-pricing-api-model/spec/models/product_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/shipment_confirmation_spec.rb similarity index 55% rename from lib/product-pricing-api-model/spec/models/product_spec.rb rename to lib/vendor-direct-fulfillment-shipping-api-model/spec/models/shipment_confirmation_spec.rb index 398c2758d..afe5a8bab 100644 --- a/lib/product-pricing-api-model/spec/models/product_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/shipment_confirmation_spec.rb @@ -1,67 +1,67 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Direct Fulfillment Shipping -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: v0 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' require 'json' require 'date' -# Unit tests for AmzSpApi::ProductPricingApiModel::Product +# Unit tests for AmzSpApi::VendorDirectFulfillmentShippingApiModel::ShipmentConfirmation # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Product' do +describe 'ShipmentConfirmation' do before do # run before each test - @instance = AmzSpApi::ProductPricingApiModel::Product.new + @instance = AmzSpApi::VendorDirectFulfillmentShippingApiModel::ShipmentConfirmation.new end after do # run after each test end - describe 'test an instance of Product' do - it 'should create an instance of Product' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::Product) + describe 'test an instance of ShipmentConfirmation' do + it 'should create an instance of ShipmentConfirmation' do + expect(@instance).to be_instance_of(AmzSpApi::VendorDirectFulfillmentShippingApiModel::ShipmentConfirmation) end end - describe 'test attribute "identifiers"' do + describe 'test attribute "purchase_order_number"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "attribute_sets"' do + describe 'test attribute "shipment_details"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "relationships"' do + describe 'test attribute "selling_party"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "competitive_pricing"' do + describe 'test attribute "ship_from_party"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "sales_rankings"' do + describe 'test attribute "items"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "offers"' do + describe 'test attribute "containers"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/shipment_details_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/shipment_details_spec.rb new file mode 100644 index 000000000..eb80c21ad --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/shipment_details_spec.rb @@ -0,0 +1,68 @@ +=begin +#Selling Partner API for Direct Fulfillment Shipping + +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorDirectFulfillmentShippingApiModel::ShipmentDetails +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'ShipmentDetails' do + before do + # run before each test + @instance = AmzSpApi::VendorDirectFulfillmentShippingApiModel::ShipmentDetails.new + end + + after do + # run after each test + end + + describe 'test an instance of ShipmentDetails' do + it 'should create an instance of ShipmentDetails' do + expect(@instance).to be_instance_of(AmzSpApi::VendorDirectFulfillmentShippingApiModel::ShipmentDetails) + end + end + describe 'test attribute "shipped_date"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "shipment_status"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["SHIPPED", "FLOOR_DENIAL"]) + # validator.allowable_values.each do |value| + # expect { @instance.shipment_status = value }.not_to raise_error + # end + end + end + + describe 'test attribute "is_priority_shipment"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "vendor_order_number"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "estimated_delivery_date"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/product-pricing-api-model/spec/models/item_offers_request_params_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/shipment_status_update_spec.rb similarity index 50% rename from lib/product-pricing-api-model/spec/models/item_offers_request_params_spec.rb rename to lib/vendor-direct-fulfillment-shipping-api-model/spec/models/shipment_status_update_spec.rb index 6dfae5563..c48e000f9 100644 --- a/lib/product-pricing-api-model/spec/models/item_offers_request_params_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/shipment_status_update_spec.rb @@ -1,55 +1,55 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Direct Fulfillment Shipping -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: v0 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' require 'json' require 'date' -# Unit tests for AmzSpApi::ProductPricingApiModel::ItemOffersRequestParams +# Unit tests for AmzSpApi::VendorDirectFulfillmentShippingApiModel::ShipmentStatusUpdate # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'ItemOffersRequestParams' do +describe 'ShipmentStatusUpdate' do before do # run before each test - @instance = AmzSpApi::ProductPricingApiModel::ItemOffersRequestParams.new + @instance = AmzSpApi::VendorDirectFulfillmentShippingApiModel::ShipmentStatusUpdate.new end after do # run after each test end - describe 'test an instance of ItemOffersRequestParams' do - it 'should create an instance of ItemOffersRequestParams' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::ItemOffersRequestParams) + describe 'test an instance of ShipmentStatusUpdate' do + it 'should create an instance of ShipmentStatusUpdate' do + expect(@instance).to be_instance_of(AmzSpApi::VendorDirectFulfillmentShippingApiModel::ShipmentStatusUpdate) end end - describe 'test attribute "marketplace_id"' do + describe 'test attribute "purchase_order_number"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "item_condition"' do + describe 'test attribute "selling_party"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "customer_type"' do + describe 'test attribute "ship_from_party"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "asin"' do + describe 'test attribute "status_update_details"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/shipping_label_list_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/shipping_label_list_spec.rb index 2204cff2e..db5a72e7a 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/shipping_label_list_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/shipping_label_list_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/shipping_label_request_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/shipping_label_request_spec.rb index 842843944..0f767f28a 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/shipping_label_request_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/shipping_label_request_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/shipping_label_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/shipping_label_spec.rb index 2df3d7745..c25413057 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/shipping_label_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/shipping_label_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/status_update_details_shipment_schedule_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/status_update_details_shipment_schedule_spec.rb new file mode 100644 index 000000000..c251199b9 --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/status_update_details_shipment_schedule_spec.rb @@ -0,0 +1,52 @@ +=begin +#Selling Partner API for Direct Fulfillment Shipping + +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorDirectFulfillmentShippingApiModel::StatusUpdateDetailsShipmentSchedule +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'StatusUpdateDetailsShipmentSchedule' do + before do + # run before each test + @instance = AmzSpApi::VendorDirectFulfillmentShippingApiModel::StatusUpdateDetailsShipmentSchedule.new + end + + after do + # run after each test + end + + describe 'test an instance of StatusUpdateDetailsShipmentSchedule' do + it 'should create an instance of StatusUpdateDetailsShipmentSchedule' do + expect(@instance).to be_instance_of(AmzSpApi::VendorDirectFulfillmentShippingApiModel::StatusUpdateDetailsShipmentSchedule) + end + end + describe 'test attribute "estimated_delivery_date_time"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "appt_window_start_date_time"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "appt_window_end_date_time"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/status_update_details_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/status_update_details_spec.rb new file mode 100644 index 000000000..e513df803 --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/status_update_details_spec.rb @@ -0,0 +1,70 @@ +=begin +#Selling Partner API for Direct Fulfillment Shipping + +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorDirectFulfillmentShippingApiModel::StatusUpdateDetails +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'StatusUpdateDetails' do + before do + # run before each test + @instance = AmzSpApi::VendorDirectFulfillmentShippingApiModel::StatusUpdateDetails.new + end + + after do + # run after each test + end + + describe 'test an instance of StatusUpdateDetails' do + it 'should create an instance of StatusUpdateDetails' do + expect(@instance).to be_instance_of(AmzSpApi::VendorDirectFulfillmentShippingApiModel::StatusUpdateDetails) + end + end + describe 'test attribute "tracking_number"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "status_code"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "reason_code"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "status_date_time"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "status_location_address"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "shipment_schedule"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/submit_shipment_confirmations_request_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/submit_shipment_confirmations_request_spec.rb new file mode 100644 index 000000000..c8fda1be2 --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/submit_shipment_confirmations_request_spec.rb @@ -0,0 +1,40 @@ +=begin +#Selling Partner API for Direct Fulfillment Shipping + +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentConfirmationsRequest +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'SubmitShipmentConfirmationsRequest' do + before do + # run before each test + @instance = AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentConfirmationsRequest.new + end + + after do + # run after each test + end + + describe 'test an instance of SubmitShipmentConfirmationsRequest' do + it 'should create an instance of SubmitShipmentConfirmationsRequest' do + expect(@instance).to be_instance_of(AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentConfirmationsRequest) + end + end + describe 'test attribute "shipment_confirmations"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/submit_shipment_confirmations_response_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/submit_shipment_confirmations_response_spec.rb new file mode 100644 index 000000000..b2ef38bc1 --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/submit_shipment_confirmations_response_spec.rb @@ -0,0 +1,46 @@ +=begin +#Selling Partner API for Direct Fulfillment Shipping + +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentConfirmationsResponse +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'SubmitShipmentConfirmationsResponse' do + before do + # run before each test + @instance = AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentConfirmationsResponse.new + end + + after do + # run after each test + end + + describe 'test an instance of SubmitShipmentConfirmationsResponse' do + it 'should create an instance of SubmitShipmentConfirmationsResponse' do + expect(@instance).to be_instance_of(AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentConfirmationsResponse) + end + end + describe 'test attribute "payload"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "errors"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/submit_shipment_status_updates_request_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/submit_shipment_status_updates_request_spec.rb new file mode 100644 index 000000000..b4f95ded2 --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/submit_shipment_status_updates_request_spec.rb @@ -0,0 +1,40 @@ +=begin +#Selling Partner API for Direct Fulfillment Shipping + +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentStatusUpdatesRequest +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'SubmitShipmentStatusUpdatesRequest' do + before do + # run before each test + @instance = AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentStatusUpdatesRequest.new + end + + after do + # run after each test + end + + describe 'test an instance of SubmitShipmentStatusUpdatesRequest' do + it 'should create an instance of SubmitShipmentStatusUpdatesRequest' do + expect(@instance).to be_instance_of(AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentStatusUpdatesRequest) + end + end + describe 'test attribute "shipment_status_updates"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/submit_shipment_status_updates_response_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/submit_shipment_status_updates_response_spec.rb new file mode 100644 index 000000000..ab59bb76b --- /dev/null +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/submit_shipment_status_updates_response_spec.rb @@ -0,0 +1,46 @@ +=begin +#Selling Partner API for Direct Fulfillment Shipping + +#The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentStatusUpdatesResponse +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'SubmitShipmentStatusUpdatesResponse' do + before do + # run before each test + @instance = AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentStatusUpdatesResponse.new + end + + after do + # run after each test + end + + describe 'test an instance of SubmitShipmentStatusUpdatesResponse' do + it 'should create an instance of SubmitShipmentStatusUpdatesResponse' do + expect(@instance).to be_instance_of(AmzSpApi::VendorDirectFulfillmentShippingApiModel::SubmitShipmentStatusUpdatesResponse) + end + end + describe 'test attribute "payload"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "errors"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/submit_shipping_labels_request_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/submit_shipping_labels_request_spec.rb index fc4fc0bb9..61ceefc31 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/submit_shipping_labels_request_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/submit_shipping_labels_request_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/submit_shipping_labels_response_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/submit_shipping_labels_response_spec.rb index 7b6901b6a..3eb49ba7d 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/submit_shipping_labels_response_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/submit_shipping_labels_response_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/tax_registration_details_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/tax_registration_details_spec.rb index 3891f7e2f..b2e6b2516 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/tax_registration_details_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/tax_registration_details_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/transaction_reference_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/transaction_reference_spec.rb index c068872c5..4eddd6e42 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/transaction_reference_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/transaction_reference_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/weight_spec.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/weight_spec.rb index a6d03b923..9ffa849e2 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/weight_spec.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/models/weight_spec.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/spec/spec_helper.rb b/lib/vendor-direct-fulfillment-shipping-api-model/spec/spec_helper.rb index c466d5a6f..c6fbbbcb1 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/spec/spec_helper.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/spec/spec_helper.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # load the gem diff --git a/lib/vendor-direct-fulfillment-shipping-api-model/version.rb b/lib/vendor-direct-fulfillment-shipping-api-model/version.rb index 30a9054c7..02d12704f 100644 --- a/lib/vendor-direct-fulfillment-shipping-api-model/version.rb +++ b/lib/vendor-direct-fulfillment-shipping-api-model/version.rb @@ -3,10 +3,10 @@ #The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data. -OpenAPI spec version: 2021-12-28 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::VendorDirectFulfillmentShippingApiModel diff --git a/lib/vendor-direct-fulfillment-transactions-api-model.rb b/lib/vendor-direct-fulfillment-transactions-api-model.rb index 9d7dab1ba..b93de2abb 100644 --- a/lib/vendor-direct-fulfillment-transactions-api-model.rb +++ b/lib/vendor-direct-fulfillment-transactions-api-model.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-12-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # Common files diff --git a/lib/vendor-direct-fulfillment-transactions-api-model/.swagger-codegen/VERSION b/lib/vendor-direct-fulfillment-transactions-api-model/.swagger-codegen/VERSION index b39b0b9e0..161761765 100644 --- a/lib/vendor-direct-fulfillment-transactions-api-model/.swagger-codegen/VERSION +++ b/lib/vendor-direct-fulfillment-transactions-api-model/.swagger-codegen/VERSION @@ -1 +1 @@ -3.0.24 \ No newline at end of file +3.0.46 \ No newline at end of file diff --git a/lib/vendor-direct-fulfillment-transactions-api-model/api/vendor_transaction_api.rb b/lib/vendor-direct-fulfillment-transactions-api-model/api/vendor_transaction_api.rb index 98b5bc5d4..3a1417366 100644 --- a/lib/vendor-direct-fulfillment-transactions-api-model/api/vendor_transaction_api.rb +++ b/lib/vendor-direct-fulfillment-transactions-api-model/api/vendor_transaction_api.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-12-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::VendorDirectFulfillmentTransactionsApiModel diff --git a/lib/vendor-direct-fulfillment-transactions-api-model/api_client.rb b/lib/vendor-direct-fulfillment-transactions-api-model/api_client.rb index 0cde3e25e..32097ddad 100644 --- a/lib/vendor-direct-fulfillment-transactions-api-model/api_client.rb +++ b/lib/vendor-direct-fulfillment-transactions-api-model/api_client.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-12-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-transactions-api-model/api_error.rb b/lib/vendor-direct-fulfillment-transactions-api-model/api_error.rb index 761ae5d4c..79f92f363 100644 --- a/lib/vendor-direct-fulfillment-transactions-api-model/api_error.rb +++ b/lib/vendor-direct-fulfillment-transactions-api-model/api_error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-12-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::VendorDirectFulfillmentTransactionsApiModel diff --git a/lib/vendor-direct-fulfillment-transactions-api-model/configuration.rb b/lib/vendor-direct-fulfillment-transactions-api-model/configuration.rb index 07c7fe7d9..9c3d5c68e 100644 --- a/lib/vendor-direct-fulfillment-transactions-api-model/configuration.rb +++ b/lib/vendor-direct-fulfillment-transactions-api-model/configuration.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-12-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::VendorDirectFulfillmentTransactionsApiModel diff --git a/lib/vendor-direct-fulfillment-transactions-api-model/models/error.rb b/lib/vendor-direct-fulfillment-transactions-api-model/models/error.rb index 1879a8c13..d80c518c8 100644 --- a/lib/vendor-direct-fulfillment-transactions-api-model/models/error.rb +++ b/lib/vendor-direct-fulfillment-transactions-api-model/models/error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-12-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-transactions-api-model/models/error_list.rb b/lib/vendor-direct-fulfillment-transactions-api-model/models/error_list.rb index 0ec4f860d..fe56ecdfe 100644 --- a/lib/vendor-direct-fulfillment-transactions-api-model/models/error_list.rb +++ b/lib/vendor-direct-fulfillment-transactions-api-model/models/error_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-12-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-transactions-api-model/models/transaction.rb b/lib/vendor-direct-fulfillment-transactions-api-model/models/transaction.rb index 7200edd81..bfac66030 100644 --- a/lib/vendor-direct-fulfillment-transactions-api-model/models/transaction.rb +++ b/lib/vendor-direct-fulfillment-transactions-api-model/models/transaction.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-12-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-transactions-api-model/models/transaction_status.rb b/lib/vendor-direct-fulfillment-transactions-api-model/models/transaction_status.rb index 92e1bd7ec..fcfa2357c 100644 --- a/lib/vendor-direct-fulfillment-transactions-api-model/models/transaction_status.rb +++ b/lib/vendor-direct-fulfillment-transactions-api-model/models/transaction_status.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-12-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-direct-fulfillment-transactions-api-model/spec/api/vendor_transaction_api_spec.rb b/lib/vendor-direct-fulfillment-transactions-api-model/spec/api/vendor_transaction_api_spec.rb index 5e51f990f..31abfa0db 100644 --- a/lib/vendor-direct-fulfillment-transactions-api-model/spec/api/vendor_transaction_api_spec.rb +++ b/lib/vendor-direct-fulfillment-transactions-api-model/spec/api/vendor_transaction_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-12-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-transactions-api-model/spec/api_client_spec.rb b/lib/vendor-direct-fulfillment-transactions-api-model/spec/api_client_spec.rb index 1af337af5..a57943f32 100644 --- a/lib/vendor-direct-fulfillment-transactions-api-model/spec/api_client_spec.rb +++ b/lib/vendor-direct-fulfillment-transactions-api-model/spec/api_client_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-12-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-transactions-api-model/spec/configuration_spec.rb b/lib/vendor-direct-fulfillment-transactions-api-model/spec/configuration_spec.rb index 26556971c..66d98edba 100644 --- a/lib/vendor-direct-fulfillment-transactions-api-model/spec/configuration_spec.rb +++ b/lib/vendor-direct-fulfillment-transactions-api-model/spec/configuration_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-12-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-transactions-api-model/spec/models/error_list_spec.rb b/lib/vendor-direct-fulfillment-transactions-api-model/spec/models/error_list_spec.rb index dee365a93..5800abfc3 100644 --- a/lib/vendor-direct-fulfillment-transactions-api-model/spec/models/error_list_spec.rb +++ b/lib/vendor-direct-fulfillment-transactions-api-model/spec/models/error_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-12-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-transactions-api-model/spec/models/error_spec.rb b/lib/vendor-direct-fulfillment-transactions-api-model/spec/models/error_spec.rb index 95af25332..6b84f9ab2 100644 --- a/lib/vendor-direct-fulfillment-transactions-api-model/spec/models/error_spec.rb +++ b/lib/vendor-direct-fulfillment-transactions-api-model/spec/models/error_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-12-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-transactions-api-model/spec/models/transaction_spec.rb b/lib/vendor-direct-fulfillment-transactions-api-model/spec/models/transaction_spec.rb index eb6e836da..2e5207084 100644 --- a/lib/vendor-direct-fulfillment-transactions-api-model/spec/models/transaction_spec.rb +++ b/lib/vendor-direct-fulfillment-transactions-api-model/spec/models/transaction_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-12-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-transactions-api-model/spec/models/transaction_status_spec.rb b/lib/vendor-direct-fulfillment-transactions-api-model/spec/models/transaction_status_spec.rb index 9a7da0d9b..807ca76d3 100644 --- a/lib/vendor-direct-fulfillment-transactions-api-model/spec/models/transaction_status_spec.rb +++ b/lib/vendor-direct-fulfillment-transactions-api-model/spec/models/transaction_status_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-12-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-direct-fulfillment-transactions-api-model/spec/spec_helper.rb b/lib/vendor-direct-fulfillment-transactions-api-model/spec/spec_helper.rb index 1f5bf0357..b4bdc5c3b 100644 --- a/lib/vendor-direct-fulfillment-transactions-api-model/spec/spec_helper.rb +++ b/lib/vendor-direct-fulfillment-transactions-api-model/spec/spec_helper.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-12-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # load the gem diff --git a/lib/vendor-direct-fulfillment-transactions-api-model/version.rb b/lib/vendor-direct-fulfillment-transactions-api-model/version.rb index a9b3015bd..18ed28be3 100644 --- a/lib/vendor-direct-fulfillment-transactions-api-model/version.rb +++ b/lib/vendor-direct-fulfillment-transactions-api-model/version.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2021-12-28 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::VendorDirectFulfillmentTransactionsApiModel diff --git a/lib/vendor-invoices-api-model.rb b/lib/vendor-invoices-api-model.rb index ab043ae54..a51d62a6e 100644 --- a/lib/vendor-invoices-api-model.rb +++ b/lib/vendor-invoices-api-model.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # Common files diff --git a/lib/vendor-invoices-api-model/.swagger-codegen/VERSION b/lib/vendor-invoices-api-model/.swagger-codegen/VERSION index b39b0b9e0..161761765 100644 --- a/lib/vendor-invoices-api-model/.swagger-codegen/VERSION +++ b/lib/vendor-invoices-api-model/.swagger-codegen/VERSION @@ -1 +1 @@ -3.0.24 \ No newline at end of file +3.0.46 \ No newline at end of file diff --git a/lib/vendor-invoices-api-model/api/vendor_payments_api.rb b/lib/vendor-invoices-api-model/api/vendor_payments_api.rb index eec1223e7..bb965cd4c 100644 --- a/lib/vendor-invoices-api-model/api/vendor_payments_api.rb +++ b/lib/vendor-invoices-api-model/api/vendor_payments_api.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::VendorInvoicesApiModel @@ -16,7 +16,7 @@ class VendorPaymentsApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Submit new invoices to Amazon. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Submit new invoices to Amazon. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [SubmitInvoicesResponse] @@ -25,7 +25,7 @@ def submit_invoices(body, opts = {}) data end - # Submit new invoices to Amazon. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Submit new invoices to Amazon. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [Array<(SubmitInvoicesResponse, Integer, Hash)>] SubmitInvoicesResponse data, response status code and response headers diff --git a/lib/vendor-invoices-api-model/api_client.rb b/lib/vendor-invoices-api-model/api_client.rb index 8ed5b45fd..db4785159 100644 --- a/lib/vendor-invoices-api-model/api_client.rb +++ b/lib/vendor-invoices-api-model/api_client.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-invoices-api-model/api_error.rb b/lib/vendor-invoices-api-model/api_error.rb index f15ae4d13..7d5f1ff32 100644 --- a/lib/vendor-invoices-api-model/api_error.rb +++ b/lib/vendor-invoices-api-model/api_error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::VendorInvoicesApiModel diff --git a/lib/vendor-invoices-api-model/configuration.rb b/lib/vendor-invoices-api-model/configuration.rb index b24c3a96d..0c220c0da 100644 --- a/lib/vendor-invoices-api-model/configuration.rb +++ b/lib/vendor-invoices-api-model/configuration.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::VendorInvoicesApiModel diff --git a/lib/vendor-invoices-api-model/docs/TaxRegistrationDetails.md b/lib/vendor-invoices-api-model/docs/TaxRegistrationDetails.md index 6e26c3dca..f0612d1a5 100644 --- a/lib/vendor-invoices-api-model/docs/TaxRegistrationDetails.md +++ b/lib/vendor-invoices-api-model/docs/TaxRegistrationDetails.md @@ -4,5 +4,5 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **tax_registration_type** | **String** | The tax registration type for the entity. | -**tax_registration_number** | **String** | The tax registration number for the entity. For example, VAT ID. | +**tax_registration_number** | **String** | The tax registration number for the entity. For example, VAT ID, Consumption Tax ID. | diff --git a/lib/vendor-invoices-api-model/docs/VendorPaymentsApi.md b/lib/vendor-invoices-api-model/docs/VendorPaymentsApi.md index e9534efc2..864992bd5 100644 --- a/lib/vendor-invoices-api-model/docs/VendorPaymentsApi.md +++ b/lib/vendor-invoices-api-model/docs/VendorPaymentsApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description -Submit new invoices to Amazon. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Submit new invoices to Amazon. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby diff --git a/lib/vendor-invoices-api-model/models/additional_details.rb b/lib/vendor-invoices-api-model/models/additional_details.rb index e384559e6..4e04608c1 100644 --- a/lib/vendor-invoices-api-model/models/additional_details.rb +++ b/lib/vendor-invoices-api-model/models/additional_details.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-invoices-api-model/models/address.rb b/lib/vendor-invoices-api-model/models/address.rb index 1a8180b5e..6e0e04b7b 100644 --- a/lib/vendor-invoices-api-model/models/address.rb +++ b/lib/vendor-invoices-api-model/models/address.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-invoices-api-model/models/allowance_details.rb b/lib/vendor-invoices-api-model/models/allowance_details.rb index a43dc5983..3a4dc6335 100644 --- a/lib/vendor-invoices-api-model/models/allowance_details.rb +++ b/lib/vendor-invoices-api-model/models/allowance_details.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-invoices-api-model/models/charge_details.rb b/lib/vendor-invoices-api-model/models/charge_details.rb index cbd3e5e16..2a2ca62fb 100644 --- a/lib/vendor-invoices-api-model/models/charge_details.rb +++ b/lib/vendor-invoices-api-model/models/charge_details.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-invoices-api-model/models/credit_note_details.rb b/lib/vendor-invoices-api-model/models/credit_note_details.rb index 043d6916d..6bfc90a12 100644 --- a/lib/vendor-invoices-api-model/models/credit_note_details.rb +++ b/lib/vendor-invoices-api-model/models/credit_note_details.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-invoices-api-model/models/date_time.rb b/lib/vendor-invoices-api-model/models/date_time.rb index 9cd8296cf..c4f993351 100644 --- a/lib/vendor-invoices-api-model/models/date_time.rb +++ b/lib/vendor-invoices-api-model/models/date_time.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-invoices-api-model/models/decimal.rb b/lib/vendor-invoices-api-model/models/decimal.rb index 9c2934a33..ffb86bf0e 100644 --- a/lib/vendor-invoices-api-model/models/decimal.rb +++ b/lib/vendor-invoices-api-model/models/decimal.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-invoices-api-model/models/error.rb b/lib/vendor-invoices-api-model/models/error.rb index b4570bfe7..3979bf35a 100644 --- a/lib/vendor-invoices-api-model/models/error.rb +++ b/lib/vendor-invoices-api-model/models/error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-invoices-api-model/models/error_list.rb b/lib/vendor-invoices-api-model/models/error_list.rb index c548500d2..2c1535812 100644 --- a/lib/vendor-invoices-api-model/models/error_list.rb +++ b/lib/vendor-invoices-api-model/models/error_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-invoices-api-model/models/invoice.rb b/lib/vendor-invoices-api-model/models/invoice.rb index 1a84d36e4..edcd590be 100644 --- a/lib/vendor-invoices-api-model/models/invoice.rb +++ b/lib/vendor-invoices-api-model/models/invoice.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-invoices-api-model/models/invoice_item.rb b/lib/vendor-invoices-api-model/models/invoice_item.rb index 423572c86..14cb02734 100644 --- a/lib/vendor-invoices-api-model/models/invoice_item.rb +++ b/lib/vendor-invoices-api-model/models/invoice_item.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-invoices-api-model/models/item_quantity.rb b/lib/vendor-invoices-api-model/models/item_quantity.rb index 98a60cff0..81f508ee0 100644 --- a/lib/vendor-invoices-api-model/models/item_quantity.rb +++ b/lib/vendor-invoices-api-model/models/item_quantity.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-invoices-api-model/models/money.rb b/lib/vendor-invoices-api-model/models/money.rb index 570f2e069..a4fc67e6a 100644 --- a/lib/vendor-invoices-api-model/models/money.rb +++ b/lib/vendor-invoices-api-model/models/money.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-invoices-api-model/models/party_identification.rb b/lib/vendor-invoices-api-model/models/party_identification.rb index 3061fac5c..40839b677 100644 --- a/lib/vendor-invoices-api-model/models/party_identification.rb +++ b/lib/vendor-invoices-api-model/models/party_identification.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-invoices-api-model/models/payment_terms.rb b/lib/vendor-invoices-api-model/models/payment_terms.rb index f30ec3ada..40c5a747e 100644 --- a/lib/vendor-invoices-api-model/models/payment_terms.rb +++ b/lib/vendor-invoices-api-model/models/payment_terms.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-invoices-api-model/models/submit_invoices_request.rb b/lib/vendor-invoices-api-model/models/submit_invoices_request.rb index 430dde476..cc8f1827e 100644 --- a/lib/vendor-invoices-api-model/models/submit_invoices_request.rb +++ b/lib/vendor-invoices-api-model/models/submit_invoices_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-invoices-api-model/models/submit_invoices_response.rb b/lib/vendor-invoices-api-model/models/submit_invoices_response.rb index 612315e55..130285d96 100644 --- a/lib/vendor-invoices-api-model/models/submit_invoices_response.rb +++ b/lib/vendor-invoices-api-model/models/submit_invoices_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-invoices-api-model/models/tax_details.rb b/lib/vendor-invoices-api-model/models/tax_details.rb index 560523dbf..331e114d9 100644 --- a/lib/vendor-invoices-api-model/models/tax_details.rb +++ b/lib/vendor-invoices-api-model/models/tax_details.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-invoices-api-model/models/tax_registration_details.rb b/lib/vendor-invoices-api-model/models/tax_registration_details.rb index b3c49fddd..f8e08e4cb 100644 --- a/lib/vendor-invoices-api-model/models/tax_registration_details.rb +++ b/lib/vendor-invoices-api-model/models/tax_registration_details.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' @@ -17,7 +17,7 @@ class TaxRegistrationDetails # The tax registration type for the entity. attr_accessor :tax_registration_type - # The tax registration number for the entity. For example, VAT ID. + # The tax registration number for the entity. For example, VAT ID, Consumption Tax ID. attr_accessor :tax_registration_number class EnumAttributeValidator diff --git a/lib/vendor-invoices-api-model/models/transaction_id.rb b/lib/vendor-invoices-api-model/models/transaction_id.rb index 0383df79d..acd684fe6 100644 --- a/lib/vendor-invoices-api-model/models/transaction_id.rb +++ b/lib/vendor-invoices-api-model/models/transaction_id.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-invoices-api-model/spec/api/vendor_payments_api_spec.rb b/lib/vendor-invoices-api-model/spec/api/vendor_payments_api_spec.rb index a84f115df..05851983d 100644 --- a/lib/vendor-invoices-api-model/spec/api/vendor_payments_api_spec.rb +++ b/lib/vendor-invoices-api-model/spec/api/vendor_payments_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -32,7 +32,7 @@ end # unit tests for submit_invoices - # Submit new invoices to Amazon. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Submit new invoices to Amazon. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [SubmitInvoicesResponse] diff --git a/lib/vendor-invoices-api-model/spec/api_client_spec.rb b/lib/vendor-invoices-api-model/spec/api_client_spec.rb index a8f95c814..d8e0f8d61 100644 --- a/lib/vendor-invoices-api-model/spec/api_client_spec.rb +++ b/lib/vendor-invoices-api-model/spec/api_client_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-invoices-api-model/spec/configuration_spec.rb b/lib/vendor-invoices-api-model/spec/configuration_spec.rb index a7c511cd7..3104d8eae 100644 --- a/lib/vendor-invoices-api-model/spec/configuration_spec.rb +++ b/lib/vendor-invoices-api-model/spec/configuration_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-invoices-api-model/spec/models/additional_details_spec.rb b/lib/vendor-invoices-api-model/spec/models/additional_details_spec.rb index ef7f81f71..6ab7e94ea 100644 --- a/lib/vendor-invoices-api-model/spec/models/additional_details_spec.rb +++ b/lib/vendor-invoices-api-model/spec/models/additional_details_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-invoices-api-model/spec/models/address_spec.rb b/lib/vendor-invoices-api-model/spec/models/address_spec.rb index 9e4858930..c8371c7d2 100644 --- a/lib/vendor-invoices-api-model/spec/models/address_spec.rb +++ b/lib/vendor-invoices-api-model/spec/models/address_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-invoices-api-model/spec/models/allowance_details_spec.rb b/lib/vendor-invoices-api-model/spec/models/allowance_details_spec.rb index 379f8a260..3e3f7ca5a 100644 --- a/lib/vendor-invoices-api-model/spec/models/allowance_details_spec.rb +++ b/lib/vendor-invoices-api-model/spec/models/allowance_details_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-invoices-api-model/spec/models/charge_details_spec.rb b/lib/vendor-invoices-api-model/spec/models/charge_details_spec.rb index 703bc3831..9ea2441bd 100644 --- a/lib/vendor-invoices-api-model/spec/models/charge_details_spec.rb +++ b/lib/vendor-invoices-api-model/spec/models/charge_details_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-invoices-api-model/spec/models/credit_note_details_spec.rb b/lib/vendor-invoices-api-model/spec/models/credit_note_details_spec.rb index e270c4344..df3b8fa82 100644 --- a/lib/vendor-invoices-api-model/spec/models/credit_note_details_spec.rb +++ b/lib/vendor-invoices-api-model/spec/models/credit_note_details_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-invoices-api-model/spec/models/date_time_spec.rb b/lib/vendor-invoices-api-model/spec/models/date_time_spec.rb index 6404a490b..99dce6ff6 100644 --- a/lib/vendor-invoices-api-model/spec/models/date_time_spec.rb +++ b/lib/vendor-invoices-api-model/spec/models/date_time_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-invoices-api-model/spec/models/decimal_spec.rb b/lib/vendor-invoices-api-model/spec/models/decimal_spec.rb index 9052ce3de..c412edc70 100644 --- a/lib/vendor-invoices-api-model/spec/models/decimal_spec.rb +++ b/lib/vendor-invoices-api-model/spec/models/decimal_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-invoices-api-model/spec/models/error_list_spec.rb b/lib/vendor-invoices-api-model/spec/models/error_list_spec.rb index bbbef3f9f..89491b5a7 100644 --- a/lib/vendor-invoices-api-model/spec/models/error_list_spec.rb +++ b/lib/vendor-invoices-api-model/spec/models/error_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-invoices-api-model/spec/models/error_spec.rb b/lib/vendor-invoices-api-model/spec/models/error_spec.rb index 5f7584114..5de254989 100644 --- a/lib/vendor-invoices-api-model/spec/models/error_spec.rb +++ b/lib/vendor-invoices-api-model/spec/models/error_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-invoices-api-model/spec/models/invoice_item_spec.rb b/lib/vendor-invoices-api-model/spec/models/invoice_item_spec.rb index aa478ccea..e2e5177ab 100644 --- a/lib/vendor-invoices-api-model/spec/models/invoice_item_spec.rb +++ b/lib/vendor-invoices-api-model/spec/models/invoice_item_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-invoices-api-model/spec/models/invoice_spec.rb b/lib/vendor-invoices-api-model/spec/models/invoice_spec.rb index e57ac7cce..608fe25f1 100644 --- a/lib/vendor-invoices-api-model/spec/models/invoice_spec.rb +++ b/lib/vendor-invoices-api-model/spec/models/invoice_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-invoices-api-model/spec/models/item_quantity_spec.rb b/lib/vendor-invoices-api-model/spec/models/item_quantity_spec.rb index a71f630d4..332a16679 100644 --- a/lib/vendor-invoices-api-model/spec/models/item_quantity_spec.rb +++ b/lib/vendor-invoices-api-model/spec/models/item_quantity_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-invoices-api-model/spec/models/money_spec.rb b/lib/vendor-invoices-api-model/spec/models/money_spec.rb index a15e2fbd0..bfa9edec3 100644 --- a/lib/vendor-invoices-api-model/spec/models/money_spec.rb +++ b/lib/vendor-invoices-api-model/spec/models/money_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-invoices-api-model/spec/models/party_identification_spec.rb b/lib/vendor-invoices-api-model/spec/models/party_identification_spec.rb index 432c67522..f270d07ea 100644 --- a/lib/vendor-invoices-api-model/spec/models/party_identification_spec.rb +++ b/lib/vendor-invoices-api-model/spec/models/party_identification_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-invoices-api-model/spec/models/payment_terms_spec.rb b/lib/vendor-invoices-api-model/spec/models/payment_terms_spec.rb index 649c8a2a1..51989561b 100644 --- a/lib/vendor-invoices-api-model/spec/models/payment_terms_spec.rb +++ b/lib/vendor-invoices-api-model/spec/models/payment_terms_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-invoices-api-model/spec/models/submit_invoices_request_spec.rb b/lib/vendor-invoices-api-model/spec/models/submit_invoices_request_spec.rb index 2b9cbb493..ce7fce19d 100644 --- a/lib/vendor-invoices-api-model/spec/models/submit_invoices_request_spec.rb +++ b/lib/vendor-invoices-api-model/spec/models/submit_invoices_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-invoices-api-model/spec/models/submit_invoices_response_spec.rb b/lib/vendor-invoices-api-model/spec/models/submit_invoices_response_spec.rb index 0008f7737..5749f6f20 100644 --- a/lib/vendor-invoices-api-model/spec/models/submit_invoices_response_spec.rb +++ b/lib/vendor-invoices-api-model/spec/models/submit_invoices_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-invoices-api-model/spec/models/tax_details_spec.rb b/lib/vendor-invoices-api-model/spec/models/tax_details_spec.rb index 8009df10c..91a332c35 100644 --- a/lib/vendor-invoices-api-model/spec/models/tax_details_spec.rb +++ b/lib/vendor-invoices-api-model/spec/models/tax_details_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-invoices-api-model/spec/models/tax_registration_details_spec.rb b/lib/vendor-invoices-api-model/spec/models/tax_registration_details_spec.rb index cd55e35a1..acd29497d 100644 --- a/lib/vendor-invoices-api-model/spec/models/tax_registration_details_spec.rb +++ b/lib/vendor-invoices-api-model/spec/models/tax_registration_details_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-invoices-api-model/spec/models/transaction_id_spec.rb b/lib/vendor-invoices-api-model/spec/models/transaction_id_spec.rb index 3229509ad..b0ec7aedb 100644 --- a/lib/vendor-invoices-api-model/spec/models/transaction_id_spec.rb +++ b/lib/vendor-invoices-api-model/spec/models/transaction_id_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-invoices-api-model/spec/spec_helper.rb b/lib/vendor-invoices-api-model/spec/spec_helper.rb index e59139f16..defdea3b5 100644 --- a/lib/vendor-invoices-api-model/spec/spec_helper.rb +++ b/lib/vendor-invoices-api-model/spec/spec_helper.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # load the gem diff --git a/lib/vendor-invoices-api-model/version.rb b/lib/vendor-invoices-api-model/version.rb index 96b1add9b..583f76e7d 100644 --- a/lib/vendor-invoices-api-model/version.rb +++ b/lib/vendor-invoices-api-model/version.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::VendorInvoicesApiModel diff --git a/lib/vendor-shipments-api-model.rb b/lib/vendor-shipments-api-model.rb index 473fb71e8..155766cd1 100644 --- a/lib/vendor-shipments-api-model.rb +++ b/lib/vendor-shipments-api-model.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # Common files @@ -17,33 +17,57 @@ # Models require 'vendor-shipments-api-model/models/address' +require 'vendor-shipments-api-model/models/carrier_details' require 'vendor-shipments-api-model/models/carton' require 'vendor-shipments-api-model/models/carton_reference_details' +require 'vendor-shipments-api-model/models/collect_freight_pickup_details' require 'vendor-shipments-api-model/models/container_identification' require 'vendor-shipments-api-model/models/container_item' +require 'vendor-shipments-api-model/models/container_sequence_numbers' +require 'vendor-shipments-api-model/models/containers' require 'vendor-shipments-api-model/models/decimal' require 'vendor-shipments-api-model/models/dimensions' require 'vendor-shipments-api-model/models/duration' require 'vendor-shipments-api-model/models/error' require 'vendor-shipments-api-model/models/error_list' require 'vendor-shipments-api-model/models/expiry' +require 'vendor-shipments-api-model/models/get_shipment_details_response' +require 'vendor-shipments-api-model/models/get_shipment_labels' require 'vendor-shipments-api-model/models/import_details' +require 'vendor-shipments-api-model/models/inner_containers_details' require 'vendor-shipments-api-model/models/item' require 'vendor-shipments-api-model/models/item_details' require 'vendor-shipments-api-model/models/item_quantity' +require 'vendor-shipments-api-model/models/label_data' require 'vendor-shipments-api-model/models/location' require 'vendor-shipments-api-model/models/money' +require 'vendor-shipments-api-model/models/package_item_details' +require 'vendor-shipments-api-model/models/packed_items' +require 'vendor-shipments-api-model/models/packed_quantity' +require 'vendor-shipments-api-model/models/pagination' require 'vendor-shipments-api-model/models/pallet' require 'vendor-shipments-api-model/models/party_identification' +require 'vendor-shipments-api-model/models/purchase_order_item_details' +require 'vendor-shipments-api-model/models/purchase_order_items' +require 'vendor-shipments-api-model/models/purchase_orders' require 'vendor-shipments-api-model/models/route' +require 'vendor-shipments-api-model/models/shipment' require 'vendor-shipments-api-model/models/shipment_confirmation' +require 'vendor-shipments-api-model/models/shipment_details' +require 'vendor-shipments-api-model/models/shipment_information' require 'vendor-shipments-api-model/models/shipment_measurements' +require 'vendor-shipments-api-model/models/shipment_status_details' require 'vendor-shipments-api-model/models/stop' require 'vendor-shipments-api-model/models/submit_shipment_confirmations_request' require 'vendor-shipments-api-model/models/submit_shipment_confirmations_response' +require 'vendor-shipments-api-model/models/submit_shipments' require 'vendor-shipments-api-model/models/tax_registration_details' require 'vendor-shipments-api-model/models/transaction_reference' +require 'vendor-shipments-api-model/models/transport_label' +require 'vendor-shipments-api-model/models/transport_shipment_measurements' require 'vendor-shipments-api-model/models/transportation_details' +require 'vendor-shipments-api-model/models/transportation_labels' +require 'vendor-shipments-api-model/models/vendor_details' require 'vendor-shipments-api-model/models/volume' require 'vendor-shipments-api-model/models/weight' diff --git a/lib/vendor-shipments-api-model/.swagger-codegen/VERSION b/lib/vendor-shipments-api-model/.swagger-codegen/VERSION index b39b0b9e0..161761765 100644 --- a/lib/vendor-shipments-api-model/.swagger-codegen/VERSION +++ b/lib/vendor-shipments-api-model/.swagger-codegen/VERSION @@ -1 +1 @@ -3.0.24 \ No newline at end of file +3.0.46 \ No newline at end of file diff --git a/lib/vendor-shipments-api-model/README.md b/lib/vendor-shipments-api-model/README.md index 3aad646bf..216dde697 100644 --- a/lib/vendor-shipments-api-model/README.md +++ b/lib/vendor-shipments-api-model/README.md @@ -55,6 +55,60 @@ Please follow the [installation](#installation) procedure and then run the follo # Load the gem require 'vendor-shipments-api-model' +api_instance = AmzSpApi::VendorShipmentsApiModel::VendorShippingApi.new +opts = { + limit: 789, # Integer | The limit to the number of records returned. Default value is 50 records. + sort_order: 'sort_order_example', # String | Sort in ascending or descending order by purchase order creation date. + next_token: 'next_token_example', # String | Used for pagination when there are more shipments than the specified result size limit. + created_after: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. + created_before: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. + shipment_confirmed_before: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details by passing Shipment confirmed create Date Before. Must be in ISO-8601 date/time format. + shipment_confirmed_after: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details by passing Shipment confirmed create Date After. Must be in ISO-8601 date/time format. + package_label_created_before: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details by passing Package label create Date by buyer. Must be in ISO-8601 date/time format. + package_label_created_after: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details by passing Package label create Date After by buyer. Must be in ISO-8601 date/time format. + shipped_before: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details by passing Shipped Date Before. Must be in ISO-8601 date/time format. + shipped_after: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details by passing Shipped Date After. Must be in ISO-8601 date/time format. + estimated_delivery_before: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. + estimated_delivery_after: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. + shipment_delivery_before: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details by passing Shipment Delivery Date Before. Must be in ISO-8601 date/time format. + shipment_delivery_after: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details by passing Shipment Delivery Date After. Must be in ISO-8601 date/time format. + requested_pick_up_before: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details by passing Before Requested pickup date. Must be in ISO-8601 date/time format. + requested_pick_up_after: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details by passing After Requested pickup date. Must be in ISO-8601 date/time format. + scheduled_pick_up_before: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details by passing Before scheduled pickup date. Must be in ISO-8601 date/time format. + scheduled_pick_up_after: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details by passing After Scheduled pickup date. Must be in ISO-8601 date/time format. + current_shipment_status: 'current_shipment_status_example', # String | Get Shipment Details by passing Current shipment status. + vendor_shipment_identifier: 'vendor_shipment_identifier_example', # String | Get Shipment Details by passing Vendor Shipment ID + buyer_reference_number: 'buyer_reference_number_example', # String | Get Shipment Details by passing buyer Reference ID + buyer_warehouse_code: 'buyer_warehouse_code_example', # String | Get Shipping Details based on buyer warehouse code. This value should be same as 'shipToParty.partyId' in the Shipment. + seller_warehouse_code: 'seller_warehouse_code_example' # String | Get Shipping Details based on vendor warehouse code. This value should be same as 'sellingParty.partyId' in the Shipment. +} + +begin + result = api_instance.get_shipment_details(opts) + p result +rescue AmzSpApi::VendorShipmentsApiModel::ApiError => e + puts "Exception when calling VendorShippingApi->get_shipment_details: #{e}" +end + +api_instance = AmzSpApi::VendorShipmentsApiModel::VendorShippingApi.new +opts = { + limit: 789, # Integer | The limit to the number of records returned. Default value is 50 records. + sort_order: 'sort_order_example', # String | Sort in ascending or descending order by transport label creation date. + next_token: 'next_token_example', # String | Used for pagination when there are more transport label than the specified result size limit. + label_created_after: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | transport Labels that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. + labelcreated_before: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | transport Labels that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. + buyer_reference_number: 'buyer_reference_number_example', # String | Get transport labels by passing Buyer Reference Number to retreive the corresponding transport label. + vendor_shipment_identifier: 'vendor_shipment_identifier_example', # String | Get transport labels by passing Vendor Shipment ID to retreive the corresponding transport label. + seller_warehouse_code: 'seller_warehouse_code_example' # String | Get Shipping labels based Vendor Warehouse code. This value should be same as 'shipFromParty.partyId' in the Shipment. +} + +begin + result = api_instance.get_shipment_labels(opts) + p result +rescue AmzSpApi::VendorShipmentsApiModel::ApiError => e + puts "Exception when calling VendorShippingApi->get_shipment_labels: #{e}" +end + api_instance = AmzSpApi::VendorShipmentsApiModel::VendorShippingApi.new body = AmzSpApi::VendorShipmentsApiModel::SubmitShipmentConfirmationsRequest.new # SubmitShipmentConfirmationsRequest | @@ -65,6 +119,17 @@ begin rescue AmzSpApi::VendorShipmentsApiModel::ApiError => e puts "Exception when calling VendorShippingApi->submit_shipment_confirmations: #{e}" end + +api_instance = AmzSpApi::VendorShipmentsApiModel::VendorShippingApi.new +body = AmzSpApi::VendorShipmentsApiModel::SubmitShipments.new # SubmitShipments | + + +begin + result = api_instance.submit_shipments(body) + p result +rescue AmzSpApi::VendorShipmentsApiModel::ApiError => e + puts "Exception when calling VendorShippingApi->submit_shipments: #{e}" +end ``` ## Documentation for API Endpoints @@ -73,38 +138,65 @@ All URIs are relative to *https://sellingpartnerapi-na.amazon.com/* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- +*AmzSpApi::VendorShipmentsApiModel::VendorShippingApi* | [**get_shipment_details**](docs/VendorShippingApi.md#get_shipment_details) | **GET** /vendor/shipping/v1/shipments | +*AmzSpApi::VendorShipmentsApiModel::VendorShippingApi* | [**get_shipment_labels**](docs/VendorShippingApi.md#get_shipment_labels) | **GET** /vendor/shipping/v1/transportLabels | *AmzSpApi::VendorShipmentsApiModel::VendorShippingApi* | [**submit_shipment_confirmations**](docs/VendorShippingApi.md#submit_shipment_confirmations) | **POST** /vendor/shipping/v1/shipmentConfirmations | +*AmzSpApi::VendorShipmentsApiModel::VendorShippingApi* | [**submit_shipments**](docs/VendorShippingApi.md#submit_shipments) | **POST** /vendor/shipping/v1/shipments | ## Documentation for Models - [AmzSpApi::VendorShipmentsApiModel::Address](docs/Address.md) + - [AmzSpApi::VendorShipmentsApiModel::CarrierDetails](docs/CarrierDetails.md) - [AmzSpApi::VendorShipmentsApiModel::Carton](docs/Carton.md) - [AmzSpApi::VendorShipmentsApiModel::CartonReferenceDetails](docs/CartonReferenceDetails.md) + - [AmzSpApi::VendorShipmentsApiModel::CollectFreightPickupDetails](docs/CollectFreightPickupDetails.md) - [AmzSpApi::VendorShipmentsApiModel::ContainerIdentification](docs/ContainerIdentification.md) - [AmzSpApi::VendorShipmentsApiModel::ContainerItem](docs/ContainerItem.md) + - [AmzSpApi::VendorShipmentsApiModel::ContainerSequenceNumbers](docs/ContainerSequenceNumbers.md) + - [AmzSpApi::VendorShipmentsApiModel::Containers](docs/Containers.md) - [AmzSpApi::VendorShipmentsApiModel::Decimal](docs/Decimal.md) - [AmzSpApi::VendorShipmentsApiModel::Dimensions](docs/Dimensions.md) - [AmzSpApi::VendorShipmentsApiModel::Duration](docs/Duration.md) - [AmzSpApi::VendorShipmentsApiModel::Error](docs/Error.md) - [AmzSpApi::VendorShipmentsApiModel::ErrorList](docs/ErrorList.md) - [AmzSpApi::VendorShipmentsApiModel::Expiry](docs/Expiry.md) + - [AmzSpApi::VendorShipmentsApiModel::GetShipmentDetailsResponse](docs/GetShipmentDetailsResponse.md) + - [AmzSpApi::VendorShipmentsApiModel::GetShipmentLabels](docs/GetShipmentLabels.md) - [AmzSpApi::VendorShipmentsApiModel::ImportDetails](docs/ImportDetails.md) + - [AmzSpApi::VendorShipmentsApiModel::InnerContainersDetails](docs/InnerContainersDetails.md) - [AmzSpApi::VendorShipmentsApiModel::Item](docs/Item.md) - [AmzSpApi::VendorShipmentsApiModel::ItemDetails](docs/ItemDetails.md) - [AmzSpApi::VendorShipmentsApiModel::ItemQuantity](docs/ItemQuantity.md) + - [AmzSpApi::VendorShipmentsApiModel::LabelData](docs/LabelData.md) - [AmzSpApi::VendorShipmentsApiModel::Location](docs/Location.md) - [AmzSpApi::VendorShipmentsApiModel::Money](docs/Money.md) + - [AmzSpApi::VendorShipmentsApiModel::PackageItemDetails](docs/PackageItemDetails.md) + - [AmzSpApi::VendorShipmentsApiModel::PackedItems](docs/PackedItems.md) + - [AmzSpApi::VendorShipmentsApiModel::PackedQuantity](docs/PackedQuantity.md) + - [AmzSpApi::VendorShipmentsApiModel::Pagination](docs/Pagination.md) - [AmzSpApi::VendorShipmentsApiModel::Pallet](docs/Pallet.md) - [AmzSpApi::VendorShipmentsApiModel::PartyIdentification](docs/PartyIdentification.md) + - [AmzSpApi::VendorShipmentsApiModel::PurchaseOrderItemDetails](docs/PurchaseOrderItemDetails.md) + - [AmzSpApi::VendorShipmentsApiModel::PurchaseOrderItems](docs/PurchaseOrderItems.md) + - [AmzSpApi::VendorShipmentsApiModel::PurchaseOrders](docs/PurchaseOrders.md) - [AmzSpApi::VendorShipmentsApiModel::Route](docs/Route.md) + - [AmzSpApi::VendorShipmentsApiModel::Shipment](docs/Shipment.md) - [AmzSpApi::VendorShipmentsApiModel::ShipmentConfirmation](docs/ShipmentConfirmation.md) + - [AmzSpApi::VendorShipmentsApiModel::ShipmentDetails](docs/ShipmentDetails.md) + - [AmzSpApi::VendorShipmentsApiModel::ShipmentInformation](docs/ShipmentInformation.md) - [AmzSpApi::VendorShipmentsApiModel::ShipmentMeasurements](docs/ShipmentMeasurements.md) + - [AmzSpApi::VendorShipmentsApiModel::ShipmentStatusDetails](docs/ShipmentStatusDetails.md) - [AmzSpApi::VendorShipmentsApiModel::Stop](docs/Stop.md) - [AmzSpApi::VendorShipmentsApiModel::SubmitShipmentConfirmationsRequest](docs/SubmitShipmentConfirmationsRequest.md) - [AmzSpApi::VendorShipmentsApiModel::SubmitShipmentConfirmationsResponse](docs/SubmitShipmentConfirmationsResponse.md) + - [AmzSpApi::VendorShipmentsApiModel::SubmitShipments](docs/SubmitShipments.md) - [AmzSpApi::VendorShipmentsApiModel::TaxRegistrationDetails](docs/TaxRegistrationDetails.md) - [AmzSpApi::VendorShipmentsApiModel::TransactionReference](docs/TransactionReference.md) + - [AmzSpApi::VendorShipmentsApiModel::TransportLabel](docs/TransportLabel.md) + - [AmzSpApi::VendorShipmentsApiModel::TransportShipmentMeasurements](docs/TransportShipmentMeasurements.md) - [AmzSpApi::VendorShipmentsApiModel::TransportationDetails](docs/TransportationDetails.md) + - [AmzSpApi::VendorShipmentsApiModel::TransportationLabels](docs/TransportationLabels.md) + - [AmzSpApi::VendorShipmentsApiModel::VendorDetails](docs/VendorDetails.md) - [AmzSpApi::VendorShipmentsApiModel::Volume](docs/Volume.md) - [AmzSpApi::VendorShipmentsApiModel::Weight](docs/Weight.md) diff --git a/lib/vendor-shipments-api-model/api/vendor_shipping_api.rb b/lib/vendor-shipments-api-model/api/vendor_shipping_api.rb index 24a5b0103..283ae5cb0 100644 --- a/lib/vendor-shipments-api-model/api/vendor_shipping_api.rb +++ b/lib/vendor-shipments-api-model/api/vendor_shipping_api.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::VendorShipmentsApiModel @@ -16,7 +16,205 @@ class VendorShippingApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Submits one or more shipment confirmations for vendor orders. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Returns the Details about Shipment, Carrier Details, status of the shipment, container details and other details related to shipment based on the filter parameters value that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + # @param [Hash] opts the optional parameters + # @option opts [Integer] :limit The limit to the number of records returned. Default value is 50 records. + # @option opts [String] :sort_order Sort in ascending or descending order by purchase order creation date. + # @option opts [String] :next_token Used for pagination when there are more shipments than the specified result size limit. + # @option opts [DateTime] :created_after Get Shipment Details that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :created_before Get Shipment Details that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :shipment_confirmed_before Get Shipment Details by passing Shipment confirmed create Date Before. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :shipment_confirmed_after Get Shipment Details by passing Shipment confirmed create Date After. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :package_label_created_before Get Shipment Details by passing Package label create Date by buyer. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :package_label_created_after Get Shipment Details by passing Package label create Date After by buyer. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :shipped_before Get Shipment Details by passing Shipped Date Before. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :shipped_after Get Shipment Details by passing Shipped Date After. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :estimated_delivery_before Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :estimated_delivery_after Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :shipment_delivery_before Get Shipment Details by passing Shipment Delivery Date Before. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :shipment_delivery_after Get Shipment Details by passing Shipment Delivery Date After. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :requested_pick_up_before Get Shipment Details by passing Before Requested pickup date. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :requested_pick_up_after Get Shipment Details by passing After Requested pickup date. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :scheduled_pick_up_before Get Shipment Details by passing Before scheduled pickup date. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :scheduled_pick_up_after Get Shipment Details by passing After Scheduled pickup date. Must be in ISO-8601 date/time format. + # @option opts [String] :current_shipment_status Get Shipment Details by passing Current shipment status. + # @option opts [String] :vendor_shipment_identifier Get Shipment Details by passing Vendor Shipment ID + # @option opts [String] :buyer_reference_number Get Shipment Details by passing buyer Reference ID + # @option opts [String] :buyer_warehouse_code Get Shipping Details based on buyer warehouse code. This value should be same as 'shipToParty.partyId' in the Shipment. + # @option opts [String] :seller_warehouse_code Get Shipping Details based on vendor warehouse code. This value should be same as 'sellingParty.partyId' in the Shipment. + # @return [GetShipmentDetailsResponse] + def get_shipment_details(opts = {}) + data, _status_code, _headers = get_shipment_details_with_http_info(opts) + data + end + + # Returns the Details about Shipment, Carrier Details, status of the shipment, container details and other details related to shipment based on the filter parameters value that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + # @param [Hash] opts the optional parameters + # @option opts [Integer] :limit The limit to the number of records returned. Default value is 50 records. + # @option opts [String] :sort_order Sort in ascending or descending order by purchase order creation date. + # @option opts [String] :next_token Used for pagination when there are more shipments than the specified result size limit. + # @option opts [DateTime] :created_after Get Shipment Details that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :created_before Get Shipment Details that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :shipment_confirmed_before Get Shipment Details by passing Shipment confirmed create Date Before. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :shipment_confirmed_after Get Shipment Details by passing Shipment confirmed create Date After. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :package_label_created_before Get Shipment Details by passing Package label create Date by buyer. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :package_label_created_after Get Shipment Details by passing Package label create Date After by buyer. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :shipped_before Get Shipment Details by passing Shipped Date Before. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :shipped_after Get Shipment Details by passing Shipped Date After. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :estimated_delivery_before Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :estimated_delivery_after Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :shipment_delivery_before Get Shipment Details by passing Shipment Delivery Date Before. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :shipment_delivery_after Get Shipment Details by passing Shipment Delivery Date After. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :requested_pick_up_before Get Shipment Details by passing Before Requested pickup date. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :requested_pick_up_after Get Shipment Details by passing After Requested pickup date. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :scheduled_pick_up_before Get Shipment Details by passing Before scheduled pickup date. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :scheduled_pick_up_after Get Shipment Details by passing After Scheduled pickup date. Must be in ISO-8601 date/time format. + # @option opts [String] :current_shipment_status Get Shipment Details by passing Current shipment status. + # @option opts [String] :vendor_shipment_identifier Get Shipment Details by passing Vendor Shipment ID + # @option opts [String] :buyer_reference_number Get Shipment Details by passing buyer Reference ID + # @option opts [String] :buyer_warehouse_code Get Shipping Details based on buyer warehouse code. This value should be same as 'shipToParty.partyId' in the Shipment. + # @option opts [String] :seller_warehouse_code Get Shipping Details based on vendor warehouse code. This value should be same as 'sellingParty.partyId' in the Shipment. + # @return [Array<(GetShipmentDetailsResponse, Integer, Hash)>] GetShipmentDetailsResponse data, response status code and response headers + def get_shipment_details_with_http_info(opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: VendorShippingApi.get_shipment_details ...' + end + if @api_client.config.client_side_validation && opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order']) + fail ArgumentError, 'invalid value for "sort_order", must be one of ASC, DESC' + end + # resource path + local_var_path = '/vendor/shipping/v1/shipments' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? + query_params[:'sortOrder'] = opts[:'sort_order'] if !opts[:'sort_order'].nil? + query_params[:'nextToken'] = opts[:'next_token'] if !opts[:'next_token'].nil? + query_params[:'createdAfter'] = opts[:'created_after'] if !opts[:'created_after'].nil? + query_params[:'createdBefore'] = opts[:'created_before'] if !opts[:'created_before'].nil? + query_params[:'shipmentConfirmedBefore'] = opts[:'shipment_confirmed_before'] if !opts[:'shipment_confirmed_before'].nil? + query_params[:'shipmentConfirmedAfter'] = opts[:'shipment_confirmed_after'] if !opts[:'shipment_confirmed_after'].nil? + query_params[:'packageLabelCreatedBefore'] = opts[:'package_label_created_before'] if !opts[:'package_label_created_before'].nil? + query_params[:'packageLabelCreatedAfter'] = opts[:'package_label_created_after'] if !opts[:'package_label_created_after'].nil? + query_params[:'shippedBefore'] = opts[:'shipped_before'] if !opts[:'shipped_before'].nil? + query_params[:'shippedAfter'] = opts[:'shipped_after'] if !opts[:'shipped_after'].nil? + query_params[:'estimatedDeliveryBefore'] = opts[:'estimated_delivery_before'] if !opts[:'estimated_delivery_before'].nil? + query_params[:'estimatedDeliveryAfter'] = opts[:'estimated_delivery_after'] if !opts[:'estimated_delivery_after'].nil? + query_params[:'shipmentDeliveryBefore'] = opts[:'shipment_delivery_before'] if !opts[:'shipment_delivery_before'].nil? + query_params[:'shipmentDeliveryAfter'] = opts[:'shipment_delivery_after'] if !opts[:'shipment_delivery_after'].nil? + query_params[:'requestedPickUpBefore'] = opts[:'requested_pick_up_before'] if !opts[:'requested_pick_up_before'].nil? + query_params[:'requestedPickUpAfter'] = opts[:'requested_pick_up_after'] if !opts[:'requested_pick_up_after'].nil? + query_params[:'scheduledPickUpBefore'] = opts[:'scheduled_pick_up_before'] if !opts[:'scheduled_pick_up_before'].nil? + query_params[:'scheduledPickUpAfter'] = opts[:'scheduled_pick_up_after'] if !opts[:'scheduled_pick_up_after'].nil? + query_params[:'currentShipmentStatus'] = opts[:'current_shipment_status'] if !opts[:'current_shipment_status'].nil? + query_params[:'vendorShipmentIdentifier'] = opts[:'vendor_shipment_identifier'] if !opts[:'vendor_shipment_identifier'].nil? + query_params[:'buyerReferenceNumber'] = opts[:'buyer_reference_number'] if !opts[:'buyer_reference_number'].nil? + query_params[:'buyerWarehouseCode'] = opts[:'buyer_warehouse_code'] if !opts[:'buyer_warehouse_code'].nil? + query_params[:'sellerWarehouseCode'] = opts[:'seller_warehouse_code'] if !opts[:'seller_warehouse_code'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:body] + + return_type = opts[:return_type] || 'GetShipmentDetailsResponse' + + auth_names = opts[:auth_names] || [] + data, status_code, headers = @api_client.call_api(:GET, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type) + + if @api_client.config.debugging + @api_client.config.logger.debug "API called: VendorShippingApi#get_shipment_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Returns transport Labels based on the filters that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + # @param [Hash] opts the optional parameters + # @option opts [Integer] :limit The limit to the number of records returned. Default value is 50 records. + # @option opts [String] :sort_order Sort in ascending or descending order by transport label creation date. + # @option opts [String] :next_token Used for pagination when there are more transport label than the specified result size limit. + # @option opts [DateTime] :label_created_after transport Labels that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :labelcreated_before transport Labels that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. + # @option opts [String] :buyer_reference_number Get transport labels by passing Buyer Reference Number to retreive the corresponding transport label. + # @option opts [String] :vendor_shipment_identifier Get transport labels by passing Vendor Shipment ID to retreive the corresponding transport label. + # @option opts [String] :seller_warehouse_code Get Shipping labels based Vendor Warehouse code. This value should be same as 'shipFromParty.partyId' in the Shipment. + # @return [GetShipmentLabels] + def get_shipment_labels(opts = {}) + data, _status_code, _headers = get_shipment_labels_with_http_info(opts) + data + end + + # Returns transport Labels based on the filters that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + # @param [Hash] opts the optional parameters + # @option opts [Integer] :limit The limit to the number of records returned. Default value is 50 records. + # @option opts [String] :sort_order Sort in ascending or descending order by transport label creation date. + # @option opts [String] :next_token Used for pagination when there are more transport label than the specified result size limit. + # @option opts [DateTime] :label_created_after transport Labels that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :labelcreated_before transport Labels that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. + # @option opts [String] :buyer_reference_number Get transport labels by passing Buyer Reference Number to retreive the corresponding transport label. + # @option opts [String] :vendor_shipment_identifier Get transport labels by passing Vendor Shipment ID to retreive the corresponding transport label. + # @option opts [String] :seller_warehouse_code Get Shipping labels based Vendor Warehouse code. This value should be same as 'shipFromParty.partyId' in the Shipment. + # @return [Array<(GetShipmentLabels, Integer, Hash)>] GetShipmentLabels data, response status code and response headers + def get_shipment_labels_with_http_info(opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: VendorShippingApi.get_shipment_labels ...' + end + if @api_client.config.client_side_validation && opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order']) + fail ArgumentError, 'invalid value for "sort_order", must be one of ASC, DESC' + end + # resource path + local_var_path = '/vendor/shipping/v1/transportLabels' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? + query_params[:'sortOrder'] = opts[:'sort_order'] if !opts[:'sort_order'].nil? + query_params[:'nextToken'] = opts[:'next_token'] if !opts[:'next_token'].nil? + query_params[:'labelCreatedAfter'] = opts[:'label_created_after'] if !opts[:'label_created_after'].nil? + query_params[:'labelcreatedBefore'] = opts[:'labelcreated_before'] if !opts[:'labelcreated_before'].nil? + query_params[:'buyerReferenceNumber'] = opts[:'buyer_reference_number'] if !opts[:'buyer_reference_number'].nil? + query_params[:'vendorShipmentIdentifier'] = opts[:'vendor_shipment_identifier'] if !opts[:'vendor_shipment_identifier'].nil? + query_params[:'sellerWarehouseCode'] = opts[:'seller_warehouse_code'] if !opts[:'seller_warehouse_code'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:body] + + return_type = opts[:return_type] || 'GetShipmentLabels' + + auth_names = opts[:auth_names] || [] + data, status_code, headers = @api_client.call_api(:GET, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type) + + if @api_client.config.debugging + @api_client.config.logger.debug "API called: VendorShippingApi#get_shipment_labels\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [SubmitShipmentConfirmationsResponse] @@ -25,7 +223,7 @@ def submit_shipment_confirmations(body, opts = {}) data end - # Submits one or more shipment confirmations for vendor orders. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [Array<(SubmitShipmentConfirmationsResponse, Integer, Hash)>] SubmitShipmentConfirmationsResponse data, response status code and response headers @@ -72,5 +270,61 @@ def submit_shipment_confirmations_with_http_info(body, opts = {}) end return data, status_code, headers end + # Submits one or more shipment request for vendor Orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + # @param body + # @param [Hash] opts the optional parameters + # @return [SubmitShipmentConfirmationsResponse] + def submit_shipments(body, opts = {}) + data, _status_code, _headers = submit_shipments_with_http_info(body, opts) + data + end + + # Submits one or more shipment request for vendor Orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + # @param body + # @param [Hash] opts the optional parameters + # @return [Array<(SubmitShipmentConfirmationsResponse, Integer, Hash)>] SubmitShipmentConfirmationsResponse data, response status code and response headers + def submit_shipments_with_http_info(body, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: VendorShippingApi.submit_shipments ...' + end + # verify the required parameter 'body' is set + if @api_client.config.client_side_validation && body.nil? + fail ArgumentError, "Missing the required parameter 'body' when calling VendorShippingApi.submit_shipments" + end + # resource path + local_var_path = '/vendor/shipping/v1/shipments' + + # query parameters + query_params = opts[:query_params] || {} + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:body] || @api_client.object_to_http_body(body) + + return_type = opts[:return_type] || 'SubmitShipmentConfirmationsResponse' + + auth_names = opts[:auth_names] || [] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type) + + if @api_client.config.debugging + @api_client.config.logger.debug "API called: VendorShippingApi#submit_shipments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end end end diff --git a/lib/vendor-shipments-api-model/api_client.rb b/lib/vendor-shipments-api-model/api_client.rb index b9a790336..b417ed1db 100644 --- a/lib/vendor-shipments-api-model/api_client.rb +++ b/lib/vendor-shipments-api-model/api_client.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-shipments-api-model/api_error.rb b/lib/vendor-shipments-api-model/api_error.rb index 026cb8f88..d0989d33d 100644 --- a/lib/vendor-shipments-api-model/api_error.rb +++ b/lib/vendor-shipments-api-model/api_error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::VendorShipmentsApiModel diff --git a/lib/vendor-shipments-api-model/configuration.rb b/lib/vendor-shipments-api-model/configuration.rb index c50825a39..584e8aad1 100644 --- a/lib/vendor-shipments-api-model/configuration.rb +++ b/lib/vendor-shipments-api-model/configuration.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::VendorShipmentsApiModel diff --git a/lib/vendor-shipments-api-model/docs/CarrierDetails.md b/lib/vendor-shipments-api-model/docs/CarrierDetails.md new file mode 100644 index 000000000..5b32f86ff --- /dev/null +++ b/lib/vendor-shipments-api-model/docs/CarrierDetails.md @@ -0,0 +1,11 @@ +# AmzSpApi::VendorShipmentsApiModel::CarrierDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | The field is used to represent the carrier used for performing the shipment. | [optional] +**code** | **String** | Code that identifies the carrier for the shipment. The Standard Carrier Alpha Code (SCAC) is a unique two to four letter code used to identify a carrier. Carrier SCAC codes are assigned and maintained by the NMFTA (National Motor Freight Association). | [optional] +**phone** | **String** | The field is used to represent the Carrier contact number. | [optional] +**email** | **String** | The field is used to represent the carrier Email id. | [optional] +**shipment_reference_number** | **String** | The field is also known as PRO number is a unique number assigned by the carrier. It is used to identify and track the shipment that goes out for delivery. This field is mandatory for US, CA, MX shipment confirmations. | [optional] + diff --git a/lib/vendor-shipments-api-model/docs/CollectFreightPickupDetails.md b/lib/vendor-shipments-api-model/docs/CollectFreightPickupDetails.md new file mode 100644 index 000000000..30ae06e61 --- /dev/null +++ b/lib/vendor-shipments-api-model/docs/CollectFreightPickupDetails.md @@ -0,0 +1,9 @@ +# AmzSpApi::VendorShipmentsApiModel::CollectFreightPickupDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requested_pick_up** | **DateTime** | Date on which the items can be picked up from vendor warehouse by Buyer used for WePay/Collect vendors. | [optional] +**scheduled_pick_up** | **DateTime** | Date on which the items are scheduled to be picked from vendor warehouse by Buyer used for WePay/Collect vendors. | [optional] +**carrier_assignment_date** | **DateTime** | Date on which the carrier is being scheduled to pickup items from vendor warehouse by Byer used for WePay/Collect vendors. | [optional] + diff --git a/lib/vendor-shipments-api-model/docs/ContainerSequenceNumbers.md b/lib/vendor-shipments-api-model/docs/ContainerSequenceNumbers.md new file mode 100644 index 000000000..7d71e09cb --- /dev/null +++ b/lib/vendor-shipments-api-model/docs/ContainerSequenceNumbers.md @@ -0,0 +1,7 @@ +# AmzSpApi::VendorShipmentsApiModel::ContainerSequenceNumbers + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**container_sequence_number** | **String** | A list of containers shipped | [optional] + diff --git a/lib/vendor-shipments-api-model/docs/Containers.md b/lib/vendor-shipments-api-model/docs/Containers.md new file mode 100644 index 000000000..322ab2927 --- /dev/null +++ b/lib/vendor-shipments-api-model/docs/Containers.md @@ -0,0 +1,16 @@ +# AmzSpApi::VendorShipmentsApiModel::Containers + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**container_type** | **String** | The type of container. | +**container_sequence_number** | **String** | An integer that must be submitted for multi-box shipments only, where one item may come in separate packages. | [optional] +**container_identifiers** | [**Array<ContainerIdentification>**](ContainerIdentification.md) | A list of carton identifiers. | +**tracking_number** | **String** | The tracking number used for identifying the shipment. | [optional] +**dimensions** | [**Dimensions**](Dimensions.md) | | [optional] +**weight** | [**Weight**](Weight.md) | | [optional] +**tier** | **Integer** | Number of layers per pallet. | [optional] +**block** | **Integer** | Number of cartons per layer on the pallet. | [optional] +**inner_containers_details** | [**InnerContainersDetails**](InnerContainersDetails.md) | | [optional] +**packed_items** | [**Array<PackedItems>**](PackedItems.md) | A list of packed items. | [optional] + diff --git a/lib/product-pricing-api-model/docs/GetOffersResponse.md b/lib/vendor-shipments-api-model/docs/GetShipmentDetailsResponse.md similarity index 58% rename from lib/product-pricing-api-model/docs/GetOffersResponse.md rename to lib/vendor-shipments-api-model/docs/GetShipmentDetailsResponse.md index 5197b4d5a..88654592e 100644 --- a/lib/product-pricing-api-model/docs/GetOffersResponse.md +++ b/lib/vendor-shipments-api-model/docs/GetShipmentDetailsResponse.md @@ -1,8 +1,8 @@ -# AmzSpApi::ProductPricingApiModel::GetOffersResponse +# AmzSpApi::VendorShipmentsApiModel::GetShipmentDetailsResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**payload** | [**GetOffersResult**](GetOffersResult.md) | | [optional] +**payload** | [**ShipmentDetails**](ShipmentDetails.md) | | [optional] **errors** | [**ErrorList**](ErrorList.md) | | [optional] diff --git a/lib/vendor-shipments-api-model/docs/GetShipmentLabels.md b/lib/vendor-shipments-api-model/docs/GetShipmentLabels.md new file mode 100644 index 000000000..d9aa4404d --- /dev/null +++ b/lib/vendor-shipments-api-model/docs/GetShipmentLabels.md @@ -0,0 +1,8 @@ +# AmzSpApi::VendorShipmentsApiModel::GetShipmentLabels + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payload** | [**TransportationLabels**](TransportationLabels.md) | | [optional] +**errors** | [**ErrorList**](ErrorList.md) | | [optional] + diff --git a/lib/vendor-shipments-api-model/docs/ImportDetails.md b/lib/vendor-shipments-api-model/docs/ImportDetails.md index 37f4c62a6..b5569748a 100644 --- a/lib/vendor-shipments-api-model/docs/ImportDetails.md +++ b/lib/vendor-shipments-api-model/docs/ImportDetails.md @@ -9,4 +9,5 @@ Name | Type | Description | Notes **import_containers** | **String** | Types and numbers of container(s) for import purchase orders. Can be a comma-separated list if shipment has multiple containers. | [optional] **billable_weight** | [**Weight**](Weight.md) | | [optional] **estimated_ship_by_date** | **DateTime** | Date on which the shipment is expected to be shipped. This value should not be in the past and not more than 60 days out in the future. | [optional] +**handling_instructions** | **String** | Identification of the instructions on how specified item/carton/pallet should be handled. | [optional] diff --git a/lib/vendor-shipments-api-model/docs/InnerContainersDetails.md b/lib/vendor-shipments-api-model/docs/InnerContainersDetails.md new file mode 100644 index 000000000..221c5b3d4 --- /dev/null +++ b/lib/vendor-shipments-api-model/docs/InnerContainersDetails.md @@ -0,0 +1,8 @@ +# AmzSpApi::VendorShipmentsApiModel::InnerContainersDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**container_count** | **Integer** | Total containers as part of the shipment | [optional] +**container_sequence_numbers** | [**Array<ContainerSequenceNumbers>**](ContainerSequenceNumbers.md) | Container sequence numbers that are involved in this shipment. | [optional] + diff --git a/lib/vendor-shipments-api-model/docs/Item.md b/lib/vendor-shipments-api-model/docs/Item.md index c36963f9d..ce6338bc6 100644 --- a/lib/vendor-shipments-api-model/docs/Item.md +++ b/lib/vendor-shipments-api-model/docs/Item.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **item_sequence_number** | **String** | Item sequence number for the item. The first item will be 001, the second 002, and so on. This number is used as a reference to refer to this item from the carton or pallet level. | -**amazon_product_identifier** | **String** | Amazon Standard Identification Number (ASIN) of an item. | [optional] +**amazon_product_identifier** | **String** | Buyer Standard Identification Number (ASIN) of an item. | [optional] **vendor_product_identifier** | **String** | The vendor selected product identification of the item. Should be the same as was sent in the purchase order. | [optional] **shipped_quantity** | [**ItemQuantity**](ItemQuantity.md) | | **item_details** | [**ItemDetails**](ItemDetails.md) | | [optional] diff --git a/lib/vendor-shipments-api-model/docs/ItemDetails.md b/lib/vendor-shipments-api-model/docs/ItemDetails.md index ade3a4410..b4fafbb16 100644 --- a/lib/vendor-shipments-api-model/docs/ItemDetails.md +++ b/lib/vendor-shipments-api-model/docs/ItemDetails.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**purchase_order_number** | **String** | The Amazon purchase order number for the shipment being confirmed. If the items in this shipment belong to multiple purchase order numbers that are in particular carton or pallet within the shipment, then provide the purchaseOrderNumber at the appropriate carton or pallet level. Formatting Notes: 8-character alpha-numeric code. | [optional] +**purchase_order_number** | **String** | The purchase order number for the shipment being confirmed. If the items in this shipment belong to multiple purchase order numbers that are in particular carton or pallet within the shipment, then provide the purchaseOrderNumber at the appropriate carton or pallet level. Formatting Notes: 8-character alpha-numeric code. | [optional] **lot_number** | **String** | The batch or lot number associates an item with information the manufacturer considers relevant for traceability of the trade item to which the Element String is applied. The data may refer to the trade item itself or to items contained. This field is mandatory for all perishable items. | [optional] **expiry** | [**Expiry**](Expiry.md) | | [optional] **maximum_retail_price** | [**Money**](Money.md) | | [optional] diff --git a/lib/vendor-shipments-api-model/docs/LabelData.md b/lib/vendor-shipments-api-model/docs/LabelData.md new file mode 100644 index 000000000..68a29d09e --- /dev/null +++ b/lib/vendor-shipments-api-model/docs/LabelData.md @@ -0,0 +1,11 @@ +# AmzSpApi::VendorShipmentsApiModel::LabelData + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**label_sequence_number** | **Integer** | Label list sequence number | [optional] +**label_format** | **String** | Type of the label format like PDF | [optional] +**carrier_code** | **String** | Unique identification for the carrier like UPS,DHL,USPS..etc | [optional] +**tracking_id** | **String** | Tracking Id for the transportation. | [optional] +**label** | **String** | Label created as part of the transportation and it is base64 encoded | [optional] + diff --git a/lib/vendor-shipments-api-model/docs/PackageItemDetails.md b/lib/vendor-shipments-api-model/docs/PackageItemDetails.md new file mode 100644 index 000000000..9baf1fc7f --- /dev/null +++ b/lib/vendor-shipments-api-model/docs/PackageItemDetails.md @@ -0,0 +1,9 @@ +# AmzSpApi::VendorShipmentsApiModel::PackageItemDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**purchase_order_number** | **String** | The purchase order number for the shipment being confirmed. If the items in this shipment belong to multiple purchase order numbers that are in particular carton or pallet within the shipment, then provide the purchaseOrderNumber at the appropriate carton or pallet level. Formatting Notes: 8-character alpha-numeric code. | [optional] +**lot_number** | **String** | The batch or lot number associates an item with information the manufacturer considers relevant for traceability of the trade item to which the Element String is applied. The data may refer to the trade item itself or to items contained. This field is mandatory for all perishable items. | [optional] +**expiry** | [**Expiry**](Expiry.md) | | [optional] + diff --git a/lib/vendor-shipments-api-model/docs/PackedItems.md b/lib/vendor-shipments-api-model/docs/PackedItems.md new file mode 100644 index 000000000..7f2b019cb --- /dev/null +++ b/lib/vendor-shipments-api-model/docs/PackedItems.md @@ -0,0 +1,11 @@ +# AmzSpApi::VendorShipmentsApiModel::PackedItems + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**item_sequence_number** | **String** | Item sequence number for the item. The first item will be 001, the second 002, and so on. This number is used as a reference to refer to this item from the carton or pallet level. | [optional] +**buyer_product_identifier** | **String** | Buyer Standard Identification Number (ASIN) of an item. | [optional] +**vendor_product_identifier** | **String** | The vendor selected product identification of the item. Should be the same as was sent in the purchase order. | [optional] +**packed_quantity** | [**ItemQuantity**](ItemQuantity.md) | | [optional] +**item_details** | [**PackageItemDetails**](PackageItemDetails.md) | | [optional] + diff --git a/lib/vendor-shipments-api-model/docs/PackedQuantity.md b/lib/vendor-shipments-api-model/docs/PackedQuantity.md new file mode 100644 index 000000000..b9dd7e16d --- /dev/null +++ b/lib/vendor-shipments-api-model/docs/PackedQuantity.md @@ -0,0 +1,9 @@ +# AmzSpApi::VendorShipmentsApiModel::PackedQuantity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount** | **Integer** | Amount of units shipped for a specific item at a shipment level. If the item is present only in certain cartons or pallets within the shipment, please provide this at the appropriate carton or pallet level. | +**unit_of_measure** | **String** | Unit of measure for the shipped quantity. | +**unit_size** | **Integer** | The case size, in the event that we ordered using cases. Otherwise, 1. | [optional] + diff --git a/lib/vendor-shipments-api-model/docs/Pagination.md b/lib/vendor-shipments-api-model/docs/Pagination.md new file mode 100644 index 000000000..2a597ccdb --- /dev/null +++ b/lib/vendor-shipments-api-model/docs/Pagination.md @@ -0,0 +1,7 @@ +# AmzSpApi::VendorShipmentsApiModel::Pagination + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**next_token** | **String** | A generated string used to pass information to your next request. If NextToken is returned, pass the value of NextToken to the next request. If NextToken is not returned, there are no more order items to return. | [optional] + diff --git a/lib/vendor-shipments-api-model/docs/Pallet.md b/lib/vendor-shipments-api-model/docs/Pallet.md index 15b4033b4..d51228179 100644 --- a/lib/vendor-shipments-api-model/docs/Pallet.md +++ b/lib/vendor-shipments-api-model/docs/Pallet.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **pallet_identifiers** | [**Array<ContainerIdentification>**](ContainerIdentification.md) | A list of pallet identifiers. | -**tier** | **Integer** | Number of layers per pallet. | [optional] -**block** | **Integer** | Number of cartons per layer on the pallet. | [optional] +**tier** | **Integer** | Number of layers per pallet. Only applicable to container type Pallet. | [optional] +**block** | **Integer** | Number of cartons per layer on the pallet. Only applicable to container type Pallet. | [optional] **dimensions** | [**Dimensions**](Dimensions.md) | | [optional] **weight** | [**Weight**](Weight.md) | | [optional] **carton_reference_details** | [**CartonReferenceDetails**](CartonReferenceDetails.md) | | [optional] diff --git a/lib/vendor-shipments-api-model/docs/PurchaseOrderItemDetails.md b/lib/vendor-shipments-api-model/docs/PurchaseOrderItemDetails.md new file mode 100644 index 000000000..907bcb5e2 --- /dev/null +++ b/lib/vendor-shipments-api-model/docs/PurchaseOrderItemDetails.md @@ -0,0 +1,7 @@ +# AmzSpApi::VendorShipmentsApiModel::PurchaseOrderItemDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**maximum_retail_price** | [**Money**](Money.md) | | [optional] + diff --git a/lib/vendor-shipments-api-model/docs/PurchaseOrderItems.md b/lib/vendor-shipments-api-model/docs/PurchaseOrderItems.md new file mode 100644 index 000000000..9adfdd95a --- /dev/null +++ b/lib/vendor-shipments-api-model/docs/PurchaseOrderItems.md @@ -0,0 +1,11 @@ +# AmzSpApi::VendorShipmentsApiModel::PurchaseOrderItems + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**item_sequence_number** | **String** | Item sequence number for the item. The first item will be 001, the second 002, and so on. This number is used as a reference to refer to this item from the carton or pallet level. | +**buyer_product_identifier** | **String** | Amazon Standard Identification Number (ASIN) for a SKU | [optional] +**vendor_product_identifier** | **String** | The vendor selected product identification of the item. Should be the same as was sent in the purchase order. | [optional] +**shipped_quantity** | [**ItemQuantity**](ItemQuantity.md) | | +**maximum_retail_price** | [**Money**](Money.md) | | [optional] + diff --git a/lib/vendor-shipments-api-model/docs/PurchaseOrders.md b/lib/vendor-shipments-api-model/docs/PurchaseOrders.md new file mode 100644 index 000000000..6055d477f --- /dev/null +++ b/lib/vendor-shipments-api-model/docs/PurchaseOrders.md @@ -0,0 +1,10 @@ +# AmzSpApi::VendorShipmentsApiModel::PurchaseOrders + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**purchase_order_number** | **String** | Purchase order numbers involved in this shipment, list all the PO that are involved as part of this shipment. | [optional] +**purchase_order_date** | **DateTime** | Purchase order numbers involved in this shipment, list all the PO that are involved as part of this shipment. | [optional] +**ship_window** | **String** | Date range in which shipment is expected for these purchase orders. | [optional] +**items** | [**Array<PurchaseOrderItems>**](PurchaseOrderItems.md) | A list of the items that are associated to the PO in this transport and their associated details. | [optional] + diff --git a/lib/vendor-shipments-api-model/docs/Shipment.md b/lib/vendor-shipments-api-model/docs/Shipment.md new file mode 100644 index 000000000..a06ace686 --- /dev/null +++ b/lib/vendor-shipments-api-model/docs/Shipment.md @@ -0,0 +1,26 @@ +# AmzSpApi::VendorShipmentsApiModel::Shipment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**vendor_shipment_identifier** | **String** | Unique Transportation ID created by Vendor (Should not be used over the last 365 days). | +**transaction_type** | **String** | Indicates the type of transportation request such as (New,Cancel,Confirm and PackageLabelRequest). Each transactiontype has a unique set of operation and there are corresponding details to be populated for each operation. | +**buyer_reference_number** | **String** | The buyer Reference Number is a unique identifier generated by buyer for all Collect/WePay shipments when you submit a transportation request. This field is mandatory for Collect/WePay shipments. | [optional] +**transaction_date** | **DateTime** | Date on which the transportation request was submitted. | +**current_shipment_status** | **String** | Indicates the current shipment status. | [optional] +**currentshipment_status_date** | **DateTime** | Date and time when the last status was updated. | [optional] +**shipment_status_details** | [**Array<ShipmentStatusDetails>**](ShipmentStatusDetails.md) | Indicates the list of current shipment status details and when the last update was received from carrier this is available on shipment Details response. | [optional] +**shipment_create_date** | **DateTime** | The date and time of the shipment request created by vendor. | [optional] +**shipment_confirm_date** | **DateTime** | The date and time of the departure of the shipment from the vendor's location. Vendors are requested to send ASNs within 30 minutes of departure from their warehouse/distribution center or at least 6 hours prior to the appointment time at the Buyer destination warehouse, whichever is sooner. Shipped date mentioned in the shipment confirmation should not be in the future. | [optional] +**package_label_create_date** | **DateTime** | The date and time of the package label created for the shipment by buyer. | [optional] +**shipment_freight_term** | **String** | Indicates if this transportation request is WePay/Collect or TheyPay/Prepaid. This is a mandatory information. | [optional] +**selling_party** | [**PartyIdentification**](PartyIdentification.md) | | +**ship_from_party** | [**PartyIdentification**](PartyIdentification.md) | | +**ship_to_party** | [**PartyIdentification**](PartyIdentification.md) | | +**shipment_measurements** | [**TransportShipmentMeasurements**](TransportShipmentMeasurements.md) | | [optional] +**collect_freight_pickup_details** | [**CollectFreightPickupDetails**](CollectFreightPickupDetails.md) | | [optional] +**purchase_orders** | [**Array<PurchaseOrders>**](PurchaseOrders.md) | Indicates the purchase orders involved for the transportation request. This group is an array create 1 for each PO and list their corresponding items. This information is used for deciding the route,truck allocation and storage efficiently. This is a mandatory information for Buyer performing transportation from vendor warehouse (WePay/Collect) | [optional] +**import_details** | [**ImportDetails**](ImportDetails.md) | | [optional] +**containers** | [**Array<Containers>**](Containers.md) | A list of the items in this transportation and their associated inner container details. If any of the item detail fields are common at a carton or a pallet level, provide them at the corresponding carton or pallet level. | [optional] +**transportation_details** | [**TransportationDetails**](TransportationDetails.md) | | [optional] + diff --git a/lib/vendor-shipments-api-model/docs/ShipmentConfirmation.md b/lib/vendor-shipments-api-model/docs/ShipmentConfirmation.md index 9398b19b7..8ce62b60a 100644 --- a/lib/vendor-shipments-api-model/docs/ShipmentConfirmation.md +++ b/lib/vendor-shipments-api-model/docs/ShipmentConfirmation.md @@ -10,8 +10,8 @@ Name | Type | Description | Notes **transportation_details** | [**TransportationDetails**](TransportationDetails.md) | | [optional] **amazon_reference_number** | **String** | The Amazon Reference Number is a unique identifier generated by Amazon for all Collect/WePay shipments when you submit a routing request. This field is mandatory for Collect/WePay shipments. | [optional] **shipment_confirmation_date** | **DateTime** | Date on which the shipment confirmation was submitted. | -**shipped_date** | **DateTime** | The date and time of the departure of the shipment from the vendor's location. Vendors are requested to send ASNs within 30 minutes of departure from their warehouse/distribution center or at least 6 hours prior to the appointment time at the Amazon destination warehouse, whichever is sooner. Shipped date mentioned in the shipment confirmation should not be in the future. | [optional] -**estimated_delivery_date** | **DateTime** | The date and time on which the shipment is expected to reach buyer's warehouse. It needs to be an estimate based on the average transit time between ship from location and the destination. The exact appointment time will be provided by the buyer and is potentially not known when creating the shipment confirmation. | [optional] +**shipped_date** | **DateTime** | The date and time of the departure of the shipment from the vendor's location. Vendors are requested to send ASNs within 30 minutes of departure from their warehouse/distribution center or at least 6 hours prior to the appointment time at the buyer destination warehouse, whichever is sooner. Shipped date mentioned in the shipment confirmation should not be in the future. | [optional] +**estimated_delivery_date** | **DateTime** | The date and time on which the shipment is estimated to reach buyer's warehouse. It needs to be an estimate based on the average transit time between ship from location and the destination. The exact appointment time will be provided by the buyer and is potentially not known when creating the shipment confirmation. | [optional] **selling_party** | [**PartyIdentification**](PartyIdentification.md) | | **ship_from_party** | [**PartyIdentification**](PartyIdentification.md) | | **ship_to_party** | [**PartyIdentification**](PartyIdentification.md) | | diff --git a/lib/vendor-shipments-api-model/docs/ShipmentDetails.md b/lib/vendor-shipments-api-model/docs/ShipmentDetails.md new file mode 100644 index 000000000..3573b2002 --- /dev/null +++ b/lib/vendor-shipments-api-model/docs/ShipmentDetails.md @@ -0,0 +1,8 @@ +# AmzSpApi::VendorShipmentsApiModel::ShipmentDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pagination** | [**Pagination**](Pagination.md) | | [optional] +**shipments** | [**Array<Shipment>**](Shipment.md) | | [optional] + diff --git a/lib/vendor-shipments-api-model/docs/ShipmentInformation.md b/lib/vendor-shipments-api-model/docs/ShipmentInformation.md new file mode 100644 index 000000000..d4a0117bb --- /dev/null +++ b/lib/vendor-shipments-api-model/docs/ShipmentInformation.md @@ -0,0 +1,14 @@ +# AmzSpApi::VendorShipmentsApiModel::ShipmentInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**vendor_details** | [**VendorDetails**](VendorDetails.md) | | [optional] +**buyer_reference_number** | **String** | Buyer Reference number which is a unique number. | [optional] +**ship_to_party** | [**PartyIdentification**](PartyIdentification.md) | | [optional] +**ship_from_party** | [**PartyIdentification**](PartyIdentification.md) | | [optional] +**warehouse_id** | **String** | Vendor Warehouse ID from where the shipment is scheduled to be picked up by buyer / Carrier. | [optional] +**master_tracking_id** | **String** | Unique Id with which the shipment can be tracked for Small Parcels. | [optional] +**total_label_count** | **Integer** | Number of Labels that are created as part of this shipment. | [optional] +**ship_mode** | **String** | Type of shipment whether it is Small Parcel | [optional] + diff --git a/lib/vendor-shipments-api-model/docs/ShipmentMeasurements.md b/lib/vendor-shipments-api-model/docs/ShipmentMeasurements.md index 79fa11b4e..552eff889 100644 --- a/lib/vendor-shipments-api-model/docs/ShipmentMeasurements.md +++ b/lib/vendor-shipments-api-model/docs/ShipmentMeasurements.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **gross_shipment_weight** | [**Weight**](Weight.md) | | [optional] **shipment_volume** | [**Volume**](Volume.md) | | [optional] -**carton_count** | **Integer** | Number of cartons present in the shipment. Provide the cartonCount only for unpalletized shipments. | [optional] +**carton_count** | **Integer** | Number of cartons present in the shipment. Provide the cartonCount only for non-palletized shipments. | [optional] **pallet_count** | **Integer** | Number of pallets present in the shipment. Provide the palletCount only for palletized shipments. | [optional] diff --git a/lib/vendor-shipments-api-model/docs/ShipmentStatusDetails.md b/lib/vendor-shipments-api-model/docs/ShipmentStatusDetails.md new file mode 100644 index 000000000..5a760620e --- /dev/null +++ b/lib/vendor-shipments-api-model/docs/ShipmentStatusDetails.md @@ -0,0 +1,8 @@ +# AmzSpApi::VendorShipmentsApiModel::ShipmentStatusDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**shipment_status** | **String** | Current status of the shipment on whether it is picked up or scheduled. | [optional] +**shipment_status_date** | **DateTime** | Date and time on last status update received for the shipment | [optional] + diff --git a/lib/vendor-shipments-api-model/docs/SubmitShipments.md b/lib/vendor-shipments-api-model/docs/SubmitShipments.md new file mode 100644 index 000000000..c1f9e4c38 --- /dev/null +++ b/lib/vendor-shipments-api-model/docs/SubmitShipments.md @@ -0,0 +1,7 @@ +# AmzSpApi::VendorShipmentsApiModel::SubmitShipments + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**shipments** | [**Array<Shipment>**](Shipment.md) | | [optional] + diff --git a/lib/vendor-shipments-api-model/docs/TransactionReference.md b/lib/vendor-shipments-api-model/docs/TransactionReference.md index 03832d1b6..ca013f297 100644 --- a/lib/vendor-shipments-api-model/docs/TransactionReference.md +++ b/lib/vendor-shipments-api-model/docs/TransactionReference.md @@ -3,5 +3,5 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**transaction_id** | **String** | GUID assigned by Amazon to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction. | [optional] +**transaction_id** | **String** | GUID assigned by Buyer to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction. | [optional] diff --git a/lib/vendor-shipments-api-model/docs/TransportLabel.md b/lib/vendor-shipments-api-model/docs/TransportLabel.md new file mode 100644 index 000000000..cfe1ecaa2 --- /dev/null +++ b/lib/vendor-shipments-api-model/docs/TransportLabel.md @@ -0,0 +1,9 @@ +# AmzSpApi::VendorShipmentsApiModel::TransportLabel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**label_create_date_time** | **String** | Date on which label is created. | [optional] +**shipment_information** | [**ShipmentInformation**](ShipmentInformation.md) | | [optional] +**label_data** | [**Array<LabelData>**](LabelData.md) | Indicates the label data,format and type associated . | [optional] + diff --git a/lib/vendor-shipments-api-model/docs/TransportShipmentMeasurements.md b/lib/vendor-shipments-api-model/docs/TransportShipmentMeasurements.md new file mode 100644 index 000000000..b1bf6cd99 --- /dev/null +++ b/lib/vendor-shipments-api-model/docs/TransportShipmentMeasurements.md @@ -0,0 +1,11 @@ +# AmzSpApi::VendorShipmentsApiModel::TransportShipmentMeasurements + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_carton_count** | **Integer** | Total number of cartons present in the shipment. Provide the cartonCount only for non-palletized shipments. | [optional] +**total_pallet_stackable** | **Integer** | Total number of Stackable Pallets present in the shipment. | [optional] +**total_pallet_non_stackable** | **Integer** | Total number of Non Stackable Pallets present in the shipment. | [optional] +**shipment_weight** | [**Weight**](Weight.md) | | [optional] +**shipment_volume** | [**Volume**](Volume.md) | | [optional] + diff --git a/lib/vendor-shipments-api-model/docs/TransportationDetails.md b/lib/vendor-shipments-api-model/docs/TransportationDetails.md index 78bccef28..e1643038c 100644 --- a/lib/vendor-shipments-api-model/docs/TransportationDetails.md +++ b/lib/vendor-shipments-api-model/docs/TransportationDetails.md @@ -3,8 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**carrier_scac** | **String** | Code that identifies the carrier for the shipment. The Standard Carrier Alpha Code (SCAC) is a unique two to four letter code used to identify a carrier. Carrier SCAC codes are assigned and maintained by the NMFTA (National Motor Freight Association). This field is mandatory for US, CA, MX shipment confirmations. | [optional] -**carrier_shipment_reference_number** | **String** | The field also known as PRO number is a unique number assigned by the carrier. It is used to identify and track the shipment that goes out for delivery. This field is mandatory for UA, CA, MX shipment confirmations. | [optional] +**ship_mode** | **String** | The type of shipment. | [optional] **transportation_mode** | **String** | The mode of transportation for this shipment. | [optional] +**shipped_date** | **DateTime** | Date when shipment is performed by the Vendor to Buyer | [optional] +**estimated_delivery_date** | **DateTime** | Estimated Date on which shipment will be delivered from Vendor to Buyer | [optional] +**shipment_delivery_date** | **DateTime** | Date on which shipment will be delivered from Vendor to Buyer | [optional] +**carrier_details** | [**CarrierDetails**](CarrierDetails.md) | | [optional] **bill_of_lading_number** | **String** | Bill Of Lading (BOL) number is the unique number assigned by the vendor. The BOL present in the Shipment Confirmation message ideally matches the paper BOL provided with the shipment, but that is no must. Instead of BOL, an alternative reference number (like Delivery Note Number) for the shipment can also be sent in this field. | [optional] diff --git a/lib/vendor-shipments-api-model/docs/TransportationLabels.md b/lib/vendor-shipments-api-model/docs/TransportationLabels.md new file mode 100644 index 000000000..7c129973b --- /dev/null +++ b/lib/vendor-shipments-api-model/docs/TransportationLabels.md @@ -0,0 +1,8 @@ +# AmzSpApi::VendorShipmentsApiModel::TransportationLabels + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pagination** | [**Pagination**](Pagination.md) | | [optional] +**transport_labels** | [**Array<TransportLabel>**](TransportLabel.md) | | [optional] + diff --git a/lib/vendor-shipments-api-model/docs/VendorDetails.md b/lib/vendor-shipments-api-model/docs/VendorDetails.md new file mode 100644 index 000000000..99a311314 --- /dev/null +++ b/lib/vendor-shipments-api-model/docs/VendorDetails.md @@ -0,0 +1,8 @@ +# AmzSpApi::VendorShipmentsApiModel::VendorDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**selling_party** | [**PartyIdentification**](PartyIdentification.md) | | [optional] +**vendor_shipment_id** | **DateTime** | Unique vendor shipment id which is not used in last 365 days | [optional] + diff --git a/lib/vendor-shipments-api-model/docs/VendorShippingApi.md b/lib/vendor-shipments-api-model/docs/VendorShippingApi.md index 7259a60f8..3849c35e8 100644 --- a/lib/vendor-shipments-api-model/docs/VendorShippingApi.md +++ b/lib/vendor-shipments-api-model/docs/VendorShippingApi.md @@ -4,14 +4,169 @@ All URIs are relative to *https://sellingpartnerapi-na.amazon.com/* Method | HTTP request | Description ------------- | ------------- | ------------- +[**get_shipment_details**](VendorShippingApi.md#get_shipment_details) | **GET** /vendor/shipping/v1/shipments | +[**get_shipment_labels**](VendorShippingApi.md#get_shipment_labels) | **GET** /vendor/shipping/v1/transportLabels | [**submit_shipment_confirmations**](VendorShippingApi.md#submit_shipment_confirmations) | **POST** /vendor/shipping/v1/shipmentConfirmations | +[**submit_shipments**](VendorShippingApi.md#submit_shipments) | **POST** /vendor/shipping/v1/shipments | + +# **get_shipment_details** +> GetShipmentDetailsResponse get_shipment_details(opts) + + + +Returns the Details about Shipment, Carrier Details, status of the shipment, container details and other details related to shipment based on the filter parameters value that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + +### Example +```ruby +# load the gem +require 'vendor-shipments-api-model' + +api_instance = AmzSpApi::VendorShipmentsApiModel::VendorShippingApi.new +opts = { + limit: 789, # Integer | The limit to the number of records returned. Default value is 50 records. + sort_order: 'sort_order_example', # String | Sort in ascending or descending order by purchase order creation date. + next_token: 'next_token_example', # String | Used for pagination when there are more shipments than the specified result size limit. + created_after: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. + created_before: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. + shipment_confirmed_before: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details by passing Shipment confirmed create Date Before. Must be in ISO-8601 date/time format. + shipment_confirmed_after: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details by passing Shipment confirmed create Date After. Must be in ISO-8601 date/time format. + package_label_created_before: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details by passing Package label create Date by buyer. Must be in ISO-8601 date/time format. + package_label_created_after: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details by passing Package label create Date After by buyer. Must be in ISO-8601 date/time format. + shipped_before: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details by passing Shipped Date Before. Must be in ISO-8601 date/time format. + shipped_after: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details by passing Shipped Date After. Must be in ISO-8601 date/time format. + estimated_delivery_before: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. + estimated_delivery_after: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. + shipment_delivery_before: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details by passing Shipment Delivery Date Before. Must be in ISO-8601 date/time format. + shipment_delivery_after: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details by passing Shipment Delivery Date After. Must be in ISO-8601 date/time format. + requested_pick_up_before: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details by passing Before Requested pickup date. Must be in ISO-8601 date/time format. + requested_pick_up_after: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details by passing After Requested pickup date. Must be in ISO-8601 date/time format. + scheduled_pick_up_before: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details by passing Before scheduled pickup date. Must be in ISO-8601 date/time format. + scheduled_pick_up_after: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Get Shipment Details by passing After Scheduled pickup date. Must be in ISO-8601 date/time format. + current_shipment_status: 'current_shipment_status_example', # String | Get Shipment Details by passing Current shipment status. + vendor_shipment_identifier: 'vendor_shipment_identifier_example', # String | Get Shipment Details by passing Vendor Shipment ID + buyer_reference_number: 'buyer_reference_number_example', # String | Get Shipment Details by passing buyer Reference ID + buyer_warehouse_code: 'buyer_warehouse_code_example', # String | Get Shipping Details based on buyer warehouse code. This value should be same as 'shipToParty.partyId' in the Shipment. + seller_warehouse_code: 'seller_warehouse_code_example' # String | Get Shipping Details based on vendor warehouse code. This value should be same as 'sellingParty.partyId' in the Shipment. +} + +begin + result = api_instance.get_shipment_details(opts) + p result +rescue AmzSpApi::VendorShipmentsApiModel::ApiError => e + puts "Exception when calling VendorShippingApi->get_shipment_details: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **Integer**| The limit to the number of records returned. Default value is 50 records. | [optional] + **sort_order** | **String**| Sort in ascending or descending order by purchase order creation date. | [optional] + **next_token** | **String**| Used for pagination when there are more shipments than the specified result size limit. | [optional] + **created_after** | **DateTime**| Get Shipment Details that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. | [optional] + **created_before** | **DateTime**| Get Shipment Details that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. | [optional] + **shipment_confirmed_before** | **DateTime**| Get Shipment Details by passing Shipment confirmed create Date Before. Must be in ISO-8601 date/time format. | [optional] + **shipment_confirmed_after** | **DateTime**| Get Shipment Details by passing Shipment confirmed create Date After. Must be in ISO-8601 date/time format. | [optional] + **package_label_created_before** | **DateTime**| Get Shipment Details by passing Package label create Date by buyer. Must be in ISO-8601 date/time format. | [optional] + **package_label_created_after** | **DateTime**| Get Shipment Details by passing Package label create Date After by buyer. Must be in ISO-8601 date/time format. | [optional] + **shipped_before** | **DateTime**| Get Shipment Details by passing Shipped Date Before. Must be in ISO-8601 date/time format. | [optional] + **shipped_after** | **DateTime**| Get Shipment Details by passing Shipped Date After. Must be in ISO-8601 date/time format. | [optional] + **estimated_delivery_before** | **DateTime**| Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. | [optional] + **estimated_delivery_after** | **DateTime**| Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. | [optional] + **shipment_delivery_before** | **DateTime**| Get Shipment Details by passing Shipment Delivery Date Before. Must be in ISO-8601 date/time format. | [optional] + **shipment_delivery_after** | **DateTime**| Get Shipment Details by passing Shipment Delivery Date After. Must be in ISO-8601 date/time format. | [optional] + **requested_pick_up_before** | **DateTime**| Get Shipment Details by passing Before Requested pickup date. Must be in ISO-8601 date/time format. | [optional] + **requested_pick_up_after** | **DateTime**| Get Shipment Details by passing After Requested pickup date. Must be in ISO-8601 date/time format. | [optional] + **scheduled_pick_up_before** | **DateTime**| Get Shipment Details by passing Before scheduled pickup date. Must be in ISO-8601 date/time format. | [optional] + **scheduled_pick_up_after** | **DateTime**| Get Shipment Details by passing After Scheduled pickup date. Must be in ISO-8601 date/time format. | [optional] + **current_shipment_status** | **String**| Get Shipment Details by passing Current shipment status. | [optional] + **vendor_shipment_identifier** | **String**| Get Shipment Details by passing Vendor Shipment ID | [optional] + **buyer_reference_number** | **String**| Get Shipment Details by passing buyer Reference ID | [optional] + **buyer_warehouse_code** | **String**| Get Shipping Details based on buyer warehouse code. This value should be same as 'shipToParty.partyId' in the Shipment. | [optional] + **seller_warehouse_code** | **String**| Get Shipping Details based on vendor warehouse code. This value should be same as 'sellingParty.partyId' in the Shipment. | [optional] + +### Return type + +[**GetShipmentDetailsResponse**](GetShipmentDetailsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + + +# **get_shipment_labels** +> GetShipmentLabels get_shipment_labels(opts) + + + +Returns transport Labels based on the filters that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + +### Example +```ruby +# load the gem +require 'vendor-shipments-api-model' + +api_instance = AmzSpApi::VendorShipmentsApiModel::VendorShippingApi.new +opts = { + limit: 789, # Integer | The limit to the number of records returned. Default value is 50 records. + sort_order: 'sort_order_example', # String | Sort in ascending or descending order by transport label creation date. + next_token: 'next_token_example', # String | Used for pagination when there are more transport label than the specified result size limit. + label_created_after: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | transport Labels that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. + labelcreated_before: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | transport Labels that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. + buyer_reference_number: 'buyer_reference_number_example', # String | Get transport labels by passing Buyer Reference Number to retreive the corresponding transport label. + vendor_shipment_identifier: 'vendor_shipment_identifier_example', # String | Get transport labels by passing Vendor Shipment ID to retreive the corresponding transport label. + seller_warehouse_code: 'seller_warehouse_code_example' # String | Get Shipping labels based Vendor Warehouse code. This value should be same as 'shipFromParty.partyId' in the Shipment. +} + +begin + result = api_instance.get_shipment_labels(opts) + p result +rescue AmzSpApi::VendorShipmentsApiModel::ApiError => e + puts "Exception when calling VendorShippingApi->get_shipment_labels: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **Integer**| The limit to the number of records returned. Default value is 50 records. | [optional] + **sort_order** | **String**| Sort in ascending or descending order by transport label creation date. | [optional] + **next_token** | **String**| Used for pagination when there are more transport label than the specified result size limit. | [optional] + **label_created_after** | **DateTime**| transport Labels that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. | [optional] + **labelcreated_before** | **DateTime**| transport Labels that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. | [optional] + **buyer_reference_number** | **String**| Get transport labels by passing Buyer Reference Number to retreive the corresponding transport label. | [optional] + **vendor_shipment_identifier** | **String**| Get transport labels by passing Vendor Shipment ID to retreive the corresponding transport label. | [optional] + **seller_warehouse_code** | **String**| Get Shipping labels based Vendor Warehouse code. This value should be same as 'shipFromParty.partyId' in the Shipment. | [optional] + +### Return type + +[**GetShipmentLabels**](GetShipmentLabels.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + # **submit_shipment_confirmations** > SubmitShipmentConfirmationsResponse submit_shipment_confirmations(body) -Submits one or more shipment confirmations for vendor orders. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). ### Example ```ruby @@ -51,3 +206,48 @@ No authorization required +# **submit_shipments** +> SubmitShipmentConfirmationsResponse submit_shipments(body) + + + +Submits one or more shipment request for vendor Orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + +### Example +```ruby +# load the gem +require 'vendor-shipments-api-model' + +api_instance = AmzSpApi::VendorShipmentsApiModel::VendorShippingApi.new +body = AmzSpApi::VendorShipmentsApiModel::SubmitShipments.new # SubmitShipments | + + +begin + result = api_instance.submit_shipments(body) + p result +rescue AmzSpApi::VendorShipmentsApiModel::ApiError => e + puts "Exception when calling VendorShippingApi->submit_shipments: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**SubmitShipments**](SubmitShipments.md)| | + +### Return type + +[**SubmitShipmentConfirmationsResponse**](SubmitShipmentConfirmationsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + diff --git a/lib/vendor-shipments-api-model/models/address.rb b/lib/vendor-shipments-api-model/models/address.rb index e09e625a6..c4495b7c8 100644 --- a/lib/vendor-shipments-api-model/models/address.rb +++ b/lib/vendor-shipments-api-model/models/address.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-pricing-api-model/models/product.rb b/lib/vendor-shipments-api-model/models/carrier_details.rb similarity index 68% rename from lib/product-pricing-api-model/models/product.rb rename to lib/vendor-shipments-api-model/models/carrier_details.rb index fe0e5bbfb..6f9765f00 100644 --- a/lib/product-pricing-api-model/models/product.rb +++ b/lib/vendor-shipments-api-model/models/carrier_details.rb @@ -1,52 +1,52 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Retail Procurement Shipments -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. -OpenAPI spec version: v0 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - # An item. - class Product - attr_accessor :identifiers +module AmzSpApi::VendorShipmentsApiModel + class CarrierDetails + # The field is used to represent the carrier used for performing the shipment. + attr_accessor :name - attr_accessor :attribute_sets + # Code that identifies the carrier for the shipment. The Standard Carrier Alpha Code (SCAC) is a unique two to four letter code used to identify a carrier. Carrier SCAC codes are assigned and maintained by the NMFTA (National Motor Freight Association). + attr_accessor :code - attr_accessor :relationships + # The field is used to represent the Carrier contact number. + attr_accessor :phone - attr_accessor :competitive_pricing + # The field is used to represent the carrier Email id. + attr_accessor :email - attr_accessor :sales_rankings - - attr_accessor :offers + # The field is also known as PRO number is a unique number assigned by the carrier. It is used to identify and track the shipment that goes out for delivery. This field is mandatory for US, CA, MX shipment confirmations. + attr_accessor :shipment_reference_number # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'identifiers' => :'Identifiers', - :'attribute_sets' => :'AttributeSets', - :'relationships' => :'Relationships', - :'competitive_pricing' => :'CompetitivePricing', - :'sales_rankings' => :'SalesRankings', - :'offers' => :'Offers' + :'name' => :'name', + :'code' => :'code', + :'phone' => :'phone', + :'email' => :'email', + :'shipment_reference_number' => :'shipmentReferenceNumber' } end # Attribute type mapping. def self.openapi_types { - :'identifiers' => :'Object', - :'attribute_sets' => :'Object', - :'relationships' => :'Object', - :'competitive_pricing' => :'Object', - :'sales_rankings' => :'Object', - :'offers' => :'Object' + :'name' => :'Object', + :'code' => :'Object', + :'phone' => :'Object', + :'email' => :'Object', + :'shipment_reference_number' => :'Object' } end @@ -60,39 +60,35 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::Product` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorShipmentsApiModel::CarrierDetails` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::Product`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorShipmentsApiModel::CarrierDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - if attributes.key?(:'identifiers') - self.identifiers = attributes[:'identifiers'] - end - - if attributes.key?(:'attribute_sets') - self.attribute_sets = attributes[:'attribute_sets'] + if attributes.key?(:'name') + self.name = attributes[:'name'] end - if attributes.key?(:'relationships') - self.relationships = attributes[:'relationships'] + if attributes.key?(:'code') + self.code = attributes[:'code'] end - if attributes.key?(:'competitive_pricing') - self.competitive_pricing = attributes[:'competitive_pricing'] + if attributes.key?(:'phone') + self.phone = attributes[:'phone'] end - if attributes.key?(:'sales_rankings') - self.sales_rankings = attributes[:'sales_rankings'] + if attributes.key?(:'email') + self.email = attributes[:'email'] end - if attributes.key?(:'offers') - self.offers = attributes[:'offers'] + if attributes.key?(:'shipment_reference_number') + self.shipment_reference_number = attributes[:'shipment_reference_number'] end end @@ -100,17 +96,12 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @identifiers.nil? - invalid_properties.push('invalid value for "identifiers", identifiers cannot be nil.') - end - invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @identifiers.nil? true end @@ -119,12 +110,11 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - identifiers == o.identifiers && - attribute_sets == o.attribute_sets && - relationships == o.relationships && - competitive_pricing == o.competitive_pricing && - sales_rankings == o.sales_rankings && - offers == o.offers + name == o.name && + code == o.code && + phone == o.phone && + email == o.email && + shipment_reference_number == o.shipment_reference_number end # @see the `==` method @@ -136,7 +126,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [identifiers, attribute_sets, relationships, competitive_pricing, sales_rankings, offers].hash + [name, code, phone, email, shipment_reference_number].hash end # Builds the object from hash @@ -205,7 +195,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::VendorShipmentsApiModel.const_get(type).build_from_hash(value) end end diff --git a/lib/vendor-shipments-api-model/models/carton.rb b/lib/vendor-shipments-api-model/models/carton.rb index b902c4a39..916a5a078 100644 --- a/lib/vendor-shipments-api-model/models/carton.rb +++ b/lib/vendor-shipments-api-model/models/carton.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-shipments-api-model/models/carton_reference_details.rb b/lib/vendor-shipments-api-model/models/carton_reference_details.rb index 300c5ba48..e0db70da9 100644 --- a/lib/vendor-shipments-api-model/models/carton_reference_details.rb +++ b/lib/vendor-shipments-api-model/models/carton_reference_details.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-shipments-api-model/models/collect_freight_pickup_details.rb b/lib/vendor-shipments-api-model/models/collect_freight_pickup_details.rb new file mode 100644 index 000000000..2a53a74e4 --- /dev/null +++ b/lib/vendor-shipments-api-model/models/collect_freight_pickup_details.rb @@ -0,0 +1,228 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::VendorShipmentsApiModel + # Transport Request pickup date from Vendor Warehouse by Buyer + class CollectFreightPickupDetails + # Date on which the items can be picked up from vendor warehouse by Buyer used for WePay/Collect vendors. + attr_accessor :requested_pick_up + + # Date on which the items are scheduled to be picked from vendor warehouse by Buyer used for WePay/Collect vendors. + attr_accessor :scheduled_pick_up + + # Date on which the carrier is being scheduled to pickup items from vendor warehouse by Byer used for WePay/Collect vendors. + attr_accessor :carrier_assignment_date + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'requested_pick_up' => :'requestedPickUp', + :'scheduled_pick_up' => :'scheduledPickUp', + :'carrier_assignment_date' => :'carrierAssignmentDate' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'requested_pick_up' => :'Object', + :'scheduled_pick_up' => :'Object', + :'carrier_assignment_date' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorShipmentsApiModel::CollectFreightPickupDetails` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorShipmentsApiModel::CollectFreightPickupDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'requested_pick_up') + self.requested_pick_up = attributes[:'requested_pick_up'] + end + + if attributes.key?(:'scheduled_pick_up') + self.scheduled_pick_up = attributes[:'scheduled_pick_up'] + end + + if attributes.key?(:'carrier_assignment_date') + self.carrier_assignment_date = attributes[:'carrier_assignment_date'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + requested_pick_up == o.requested_pick_up && + scheduled_pick_up == o.scheduled_pick_up && + carrier_assignment_date == o.carrier_assignment_date + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [requested_pick_up, scheduled_pick_up, carrier_assignment_date].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::VendorShipmentsApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/vendor-shipments-api-model/models/container_identification.rb b/lib/vendor-shipments-api-model/models/container_identification.rb index 801ade980..da02a0974 100644 --- a/lib/vendor-shipments-api-model/models/container_identification.rb +++ b/lib/vendor-shipments-api-model/models/container_identification.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-shipments-api-model/models/container_item.rb b/lib/vendor-shipments-api-model/models/container_item.rb index 75141ff7d..6960f5081 100644 --- a/lib/vendor-shipments-api-model/models/container_item.rb +++ b/lib/vendor-shipments-api-model/models/container_item.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-pricing-api-model/models/listing_offers_response_list.rb b/lib/vendor-shipments-api-model/models/container_sequence_numbers.rb similarity index 83% rename from lib/product-pricing-api-model/models/listing_offers_response_list.rb rename to lib/vendor-shipments-api-model/models/container_sequence_numbers.rb index 9ac2be980..e62db67a9 100644 --- a/lib/product-pricing-api-model/models/listing_offers_response_list.rb +++ b/lib/vendor-shipments-api-model/models/container_sequence_numbers.rb @@ -1,28 +1,32 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Retail Procurement Shipments -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. -OpenAPI spec version: v0 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - # A list of getListingOffers batched responses. - class ListingOffersResponseList +module AmzSpApi::VendorShipmentsApiModel + class ContainerSequenceNumbers + # A list of containers shipped + attr_accessor :container_sequence_number + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'container_sequence_number' => :'containerSequenceNumber' } end # Attribute type mapping. def self.openapi_types { + :'container_sequence_number' => :'Object' } end @@ -36,25 +40,26 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::ListingOffersResponseList` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorShipmentsApiModel::ContainerSequenceNumbers` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::ListingOffersResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorShipmentsApiModel::ContainerSequenceNumbers`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - # call parent's initialize - super(attributes) + if attributes.key?(:'container_sequence_number') + self.container_sequence_number = attributes[:'container_sequence_number'] + end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties - invalid_properties = super + invalid_properties = Array.new invalid_properties end @@ -68,7 +73,8 @@ def valid? # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) - self.class == o.class && super(o) + self.class == o.class && + container_sequence_number == o.container_sequence_number end # @see the `==` method @@ -80,7 +86,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [].hash + [container_sequence_number].hash end # Builds the object from hash @@ -95,7 +101,6 @@ def self.build_from_hash(attributes) # @return [Object] Returns the model itself def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) - super(attributes) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute @@ -150,7 +155,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::VendorShipmentsApiModel.const_get(type).build_from_hash(value) end end @@ -169,7 +174,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash - hash = super + hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? diff --git a/lib/product-pricing-api-model/models/offer_type.rb b/lib/vendor-shipments-api-model/models/containers.rb similarity index 51% rename from lib/product-pricing-api-model/models/offer_type.rb rename to lib/vendor-shipments-api-model/models/containers.rb index 7fbd5fab7..376afd17b 100644 --- a/lib/product-pricing-api-model/models/offer_type.rb +++ b/lib/vendor-shipments-api-model/models/containers.rb @@ -1,67 +1,96 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Retail Procurement Shipments -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. -OpenAPI spec version: v0 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - class OfferType - attr_accessor :offer_type +module AmzSpApi::VendorShipmentsApiModel + class Containers + # The type of container. + attr_accessor :container_type - attr_accessor :buying_price + # An integer that must be submitted for multi-box shipments only, where one item may come in separate packages. + attr_accessor :container_sequence_number - attr_accessor :regular_price + # A list of carton identifiers. + attr_accessor :container_identifiers - attr_accessor :business_price + # The tracking number used for identifying the shipment. + attr_accessor :tracking_number - attr_accessor :quantity_discount_prices + attr_accessor :dimensions - # The fulfillment channel for the offer listing. Possible values: * Amazon - Fulfilled by Amazon. * Merchant - Fulfilled by the seller. - attr_accessor :fulfillment_channel + attr_accessor :weight - # The item condition for the offer listing. Possible values: New, Used, Collectible, Refurbished, or Club. - attr_accessor :item_condition + # Number of layers per pallet. + attr_accessor :tier - # The item subcondition for the offer listing. Possible values: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, or Other. - attr_accessor :item_sub_condition + # Number of cartons per layer on the pallet. + attr_accessor :block - # The seller stock keeping unit (SKU) of the item. - attr_accessor :seller_sku + attr_accessor :inner_containers_details + + # A list of packed items. + attr_accessor :packed_items + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'offer_type' => :'offerType', - :'buying_price' => :'BuyingPrice', - :'regular_price' => :'RegularPrice', - :'business_price' => :'businessPrice', - :'quantity_discount_prices' => :'quantityDiscountPrices', - :'fulfillment_channel' => :'FulfillmentChannel', - :'item_condition' => :'ItemCondition', - :'item_sub_condition' => :'ItemSubCondition', - :'seller_sku' => :'SellerSKU' + :'container_type' => :'containerType', + :'container_sequence_number' => :'containerSequenceNumber', + :'container_identifiers' => :'containerIdentifiers', + :'tracking_number' => :'trackingNumber', + :'dimensions' => :'dimensions', + :'weight' => :'weight', + :'tier' => :'tier', + :'block' => :'block', + :'inner_containers_details' => :'innerContainersDetails', + :'packed_items' => :'packedItems' } end # Attribute type mapping. def self.openapi_types { - :'offer_type' => :'Object', - :'buying_price' => :'Object', - :'regular_price' => :'Object', - :'business_price' => :'Object', - :'quantity_discount_prices' => :'Object', - :'fulfillment_channel' => :'Object', - :'item_condition' => :'Object', - :'item_sub_condition' => :'Object', - :'seller_sku' => :'Object' + :'container_type' => :'Object', + :'container_sequence_number' => :'Object', + :'container_identifiers' => :'Object', + :'tracking_number' => :'Object', + :'dimensions' => :'Object', + :'weight' => :'Object', + :'tier' => :'Object', + :'block' => :'Object', + :'inner_containers_details' => :'Object', + :'packed_items' => :'Object' } end @@ -75,53 +104,59 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::OfferType` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorShipmentsApiModel::Containers` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::OfferType`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorShipmentsApiModel::Containers`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - if attributes.key?(:'offer_type') - self.offer_type = attributes[:'offer_type'] + if attributes.key?(:'container_type') + self.container_type = attributes[:'container_type'] end - if attributes.key?(:'buying_price') - self.buying_price = attributes[:'buying_price'] + if attributes.key?(:'container_sequence_number') + self.container_sequence_number = attributes[:'container_sequence_number'] end - if attributes.key?(:'regular_price') - self.regular_price = attributes[:'regular_price'] + if attributes.key?(:'container_identifiers') + if (value = attributes[:'container_identifiers']).is_a?(Array) + self.container_identifiers = value + end end - if attributes.key?(:'business_price') - self.business_price = attributes[:'business_price'] + if attributes.key?(:'tracking_number') + self.tracking_number = attributes[:'tracking_number'] end - if attributes.key?(:'quantity_discount_prices') - if (value = attributes[:'quantity_discount_prices']).is_a?(Array) - self.quantity_discount_prices = value - end + if attributes.key?(:'dimensions') + self.dimensions = attributes[:'dimensions'] end - if attributes.key?(:'fulfillment_channel') - self.fulfillment_channel = attributes[:'fulfillment_channel'] + if attributes.key?(:'weight') + self.weight = attributes[:'weight'] end - if attributes.key?(:'item_condition') - self.item_condition = attributes[:'item_condition'] + if attributes.key?(:'tier') + self.tier = attributes[:'tier'] end - if attributes.key?(:'item_sub_condition') - self.item_sub_condition = attributes[:'item_sub_condition'] + if attributes.key?(:'block') + self.block = attributes[:'block'] end - if attributes.key?(:'seller_sku') - self.seller_sku = attributes[:'seller_sku'] + if attributes.key?(:'inner_containers_details') + self.inner_containers_details = attributes[:'inner_containers_details'] + end + + if attributes.key?(:'packed_items') + if (value = attributes[:'packed_items']).is_a?(Array) + self.packed_items = value + end end end @@ -129,28 +164,12 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @buying_price.nil? - invalid_properties.push('invalid value for "buying_price", buying_price cannot be nil.') - end - - if @regular_price.nil? - invalid_properties.push('invalid value for "regular_price", regular_price cannot be nil.') - end - - if @fulfillment_channel.nil? - invalid_properties.push('invalid value for "fulfillment_channel", fulfillment_channel cannot be nil.') - end - - if @item_condition.nil? - invalid_properties.push('invalid value for "item_condition", item_condition cannot be nil.') - end - - if @item_sub_condition.nil? - invalid_properties.push('invalid value for "item_sub_condition", item_sub_condition cannot be nil.') + if @container_type.nil? + invalid_properties.push('invalid value for "container_type", container_type cannot be nil.') end - if @seller_sku.nil? - invalid_properties.push('invalid value for "seller_sku", seller_sku cannot be nil.') + if @container_identifiers.nil? + invalid_properties.push('invalid value for "container_identifiers", container_identifiers cannot be nil.') end invalid_properties @@ -159,29 +178,38 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @buying_price.nil? - return false if @regular_price.nil? - return false if @fulfillment_channel.nil? - return false if @item_condition.nil? - return false if @item_sub_condition.nil? - return false if @seller_sku.nil? + return false if @container_type.nil? + container_type_validator = EnumAttributeValidator.new('Object', ['carton', 'pallet']) + return false unless container_type_validator.valid?(@container_type) + return false if @container_identifiers.nil? true end + # Custom attribute writer method checking allowed values (enum). + # @param [Object] container_type Object to be assigned + def container_type=(container_type) + validator = EnumAttributeValidator.new('Object', ['carton', 'pallet']) + unless validator.valid?(container_type) + fail ArgumentError, "invalid value for \"container_type\", must be one of #{validator.allowable_values}." + end + @container_type = container_type + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && - offer_type == o.offer_type && - buying_price == o.buying_price && - regular_price == o.regular_price && - business_price == o.business_price && - quantity_discount_prices == o.quantity_discount_prices && - fulfillment_channel == o.fulfillment_channel && - item_condition == o.item_condition && - item_sub_condition == o.item_sub_condition && - seller_sku == o.seller_sku + container_type == o.container_type && + container_sequence_number == o.container_sequence_number && + container_identifiers == o.container_identifiers && + tracking_number == o.tracking_number && + dimensions == o.dimensions && + weight == o.weight && + tier == o.tier && + block == o.block && + inner_containers_details == o.inner_containers_details && + packed_items == o.packed_items end # @see the `==` method @@ -193,7 +221,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [offer_type, buying_price, regular_price, business_price, quantity_discount_prices, fulfillment_channel, item_condition, item_sub_condition, seller_sku].hash + [container_type, container_sequence_number, container_identifiers, tracking_number, dimensions, weight, tier, block, inner_containers_details, packed_items].hash end # Builds the object from hash @@ -262,7 +290,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::VendorShipmentsApiModel.const_get(type).build_from_hash(value) end end diff --git a/lib/vendor-shipments-api-model/models/decimal.rb b/lib/vendor-shipments-api-model/models/decimal.rb index 9b8239a37..45eaf9b9e 100644 --- a/lib/vendor-shipments-api-model/models/decimal.rb +++ b/lib/vendor-shipments-api-model/models/decimal.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-shipments-api-model/models/dimensions.rb b/lib/vendor-shipments-api-model/models/dimensions.rb index 3b04fae82..2f8730a0d 100644 --- a/lib/vendor-shipments-api-model/models/dimensions.rb +++ b/lib/vendor-shipments-api-model/models/dimensions.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-shipments-api-model/models/duration.rb b/lib/vendor-shipments-api-model/models/duration.rb index 67f0c94af..8e951ff45 100644 --- a/lib/vendor-shipments-api-model/models/duration.rb +++ b/lib/vendor-shipments-api-model/models/duration.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-shipments-api-model/models/error.rb b/lib/vendor-shipments-api-model/models/error.rb index 10face5d2..b79da0568 100644 --- a/lib/vendor-shipments-api-model/models/error.rb +++ b/lib/vendor-shipments-api-model/models/error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-shipments-api-model/models/error_list.rb b/lib/vendor-shipments-api-model/models/error_list.rb index 72c7127b8..997ce7dac 100644 --- a/lib/vendor-shipments-api-model/models/error_list.rb +++ b/lib/vendor-shipments-api-model/models/error_list.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-shipments-api-model/models/expiry.rb b/lib/vendor-shipments-api-model/models/expiry.rb index 862cced25..6a4946539 100644 --- a/lib/vendor-shipments-api-model/models/expiry.rb +++ b/lib/vendor-shipments-api-model/models/expiry.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-shipments-api-model/models/get_shipment_details_response.rb b/lib/vendor-shipments-api-model/models/get_shipment_details_response.rb new file mode 100644 index 000000000..70014d93e --- /dev/null +++ b/lib/vendor-shipments-api-model/models/get_shipment_details_response.rb @@ -0,0 +1,216 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::VendorShipmentsApiModel + # The response schema for the GetShipmentDetails operation. + class GetShipmentDetailsResponse + attr_accessor :payload + + attr_accessor :errors + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'payload' => :'payload', + :'errors' => :'errors' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'payload' => :'Object', + :'errors' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorShipmentsApiModel::GetShipmentDetailsResponse` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorShipmentsApiModel::GetShipmentDetailsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'payload') + self.payload = attributes[:'payload'] + end + + if attributes.key?(:'errors') + self.errors = attributes[:'errors'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + payload == o.payload && + errors == o.errors + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [payload, errors].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::VendorShipmentsApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/product-pricing-api-model/models/get_pricing_response.rb b/lib/vendor-shipments-api-model/models/get_shipment_labels.rb similarity index 90% rename from lib/product-pricing-api-model/models/get_pricing_response.rb rename to lib/vendor-shipments-api-model/models/get_shipment_labels.rb index 088a49b90..93f05a4f4 100644 --- a/lib/product-pricing-api-model/models/get_pricing_response.rb +++ b/lib/vendor-shipments-api-model/models/get_shipment_labels.rb @@ -1,19 +1,19 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Retail Procurement Shipments -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. -OpenAPI spec version: v0 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - # The response schema for the getPricing and getCompetitivePricing operations. - class GetPricingResponse +module AmzSpApi::VendorShipmentsApiModel + # The response schema for the GetShipmentLabels operation. + class GetShipmentLabels attr_accessor :payload attr_accessor :errors @@ -44,13 +44,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::GetPricingResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorShipmentsApiModel::GetShipmentLabels` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::GetPricingResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorShipmentsApiModel::GetShipmentLabels`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } @@ -164,7 +164,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::VendorShipmentsApiModel.const_get(type).build_from_hash(value) end end diff --git a/lib/vendor-shipments-api-model/models/import_details.rb b/lib/vendor-shipments-api-model/models/import_details.rb index 96db8be7b..5c0554848 100644 --- a/lib/vendor-shipments-api-model/models/import_details.rb +++ b/lib/vendor-shipments-api-model/models/import_details.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' @@ -29,6 +29,9 @@ class ImportDetails # Date on which the shipment is expected to be shipped. This value should not be in the past and not more than 60 days out in the future. attr_accessor :estimated_ship_by_date + # Identification of the instructions on how specified item/carton/pallet should be handled. + attr_accessor :handling_instructions + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -59,7 +62,8 @@ def self.attribute_map :'route' => :'route', :'import_containers' => :'importContainers', :'billable_weight' => :'billableWeight', - :'estimated_ship_by_date' => :'estimatedShipByDate' + :'estimated_ship_by_date' => :'estimatedShipByDate', + :'handling_instructions' => :'handlingInstructions' } end @@ -71,7 +75,8 @@ def self.openapi_types :'route' => :'Object', :'import_containers' => :'Object', :'billable_weight' => :'Object', - :'estimated_ship_by_date' => :'Object' + :'estimated_ship_by_date' => :'Object', + :'handling_instructions' => :'Object' } end @@ -119,6 +124,10 @@ def initialize(attributes = {}) if attributes.key?(:'estimated_ship_by_date') self.estimated_ship_by_date = attributes[:'estimated_ship_by_date'] end + + if attributes.key?(:'handling_instructions') + self.handling_instructions = attributes[:'handling_instructions'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -133,6 +142,8 @@ def list_invalid_properties def valid? method_of_payment_validator = EnumAttributeValidator.new('Object', ['PaidByBuyer', 'CollectOnDelivery', 'DefinedByBuyerAndSeller', 'FOBPortOfCall', 'PrepaidBySeller', 'PaidBySeller']) return false unless method_of_payment_validator.valid?(@method_of_payment) + handling_instructions_validator = EnumAttributeValidator.new('Object', ['Oversized', 'Fragile', 'Food', 'HandleWithCare']) + return false unless handling_instructions_validator.valid?(@handling_instructions) true end @@ -146,6 +157,16 @@ def method_of_payment=(method_of_payment) @method_of_payment = method_of_payment end + # Custom attribute writer method checking allowed values (enum). + # @param [Object] handling_instructions Object to be assigned + def handling_instructions=(handling_instructions) + validator = EnumAttributeValidator.new('Object', ['Oversized', 'Fragile', 'Food', 'HandleWithCare']) + unless validator.valid?(handling_instructions) + fail ArgumentError, "invalid value for \"handling_instructions\", must be one of #{validator.allowable_values}." + end + @handling_instructions = handling_instructions + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) @@ -156,7 +177,8 @@ def ==(o) route == o.route && import_containers == o.import_containers && billable_weight == o.billable_weight && - estimated_ship_by_date == o.estimated_ship_by_date + estimated_ship_by_date == o.estimated_ship_by_date && + handling_instructions == o.handling_instructions end # @see the `==` method @@ -168,7 +190,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [method_of_payment, seal_number, route, import_containers, billable_weight, estimated_ship_by_date].hash + [method_of_payment, seal_number, route, import_containers, billable_weight, estimated_ship_by_date, handling_instructions].hash end # Builds the object from hash diff --git a/lib/vendor-shipments-api-model/models/inner_containers_details.rb b/lib/vendor-shipments-api-model/models/inner_containers_details.rb new file mode 100644 index 000000000..5fcdc54f4 --- /dev/null +++ b/lib/vendor-shipments-api-model/models/inner_containers_details.rb @@ -0,0 +1,220 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::VendorShipmentsApiModel + # Details of the innerContainersDetails. + class InnerContainersDetails + # Total containers as part of the shipment + attr_accessor :container_count + + # Container sequence numbers that are involved in this shipment. + attr_accessor :container_sequence_numbers + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'container_count' => :'containerCount', + :'container_sequence_numbers' => :'containerSequenceNumbers' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'container_count' => :'Object', + :'container_sequence_numbers' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorShipmentsApiModel::InnerContainersDetails` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorShipmentsApiModel::InnerContainersDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'container_count') + self.container_count = attributes[:'container_count'] + end + + if attributes.key?(:'container_sequence_numbers') + if (value = attributes[:'container_sequence_numbers']).is_a?(Array) + self.container_sequence_numbers = value + end + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + container_count == o.container_count && + container_sequence_numbers == o.container_sequence_numbers + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [container_count, container_sequence_numbers].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::VendorShipmentsApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/vendor-shipments-api-model/models/item.rb b/lib/vendor-shipments-api-model/models/item.rb index e9f40de69..dd570528c 100644 --- a/lib/vendor-shipments-api-model/models/item.rb +++ b/lib/vendor-shipments-api-model/models/item.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' @@ -17,7 +17,7 @@ class Item # Item sequence number for the item. The first item will be 001, the second 002, and so on. This number is used as a reference to refer to this item from the carton or pallet level. attr_accessor :item_sequence_number - # Amazon Standard Identification Number (ASIN) of an item. + # Buyer Standard Identification Number (ASIN) of an item. attr_accessor :amazon_product_identifier # The vendor selected product identification of the item. Should be the same as was sent in the purchase order. diff --git a/lib/vendor-shipments-api-model/models/item_details.rb b/lib/vendor-shipments-api-model/models/item_details.rb index c37b39bc9..d79ef87f6 100644 --- a/lib/vendor-shipments-api-model/models/item_details.rb +++ b/lib/vendor-shipments-api-model/models/item_details.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' @@ -14,7 +14,7 @@ module AmzSpApi::VendorShipmentsApiModel # Item details for be provided for every item in shipment at either the item or carton or pallet level, whichever is appropriate. class ItemDetails - # The Amazon purchase order number for the shipment being confirmed. If the items in this shipment belong to multiple purchase order numbers that are in particular carton or pallet within the shipment, then provide the purchaseOrderNumber at the appropriate carton or pallet level. Formatting Notes: 8-character alpha-numeric code. + # The purchase order number for the shipment being confirmed. If the items in this shipment belong to multiple purchase order numbers that are in particular carton or pallet within the shipment, then provide the purchaseOrderNumber at the appropriate carton or pallet level. Formatting Notes: 8-character alpha-numeric code. attr_accessor :purchase_order_number # The batch or lot number associates an item with information the manufacturer considers relevant for traceability of the trade item to which the Element String is applied. The data may refer to the trade item itself or to items contained. This field is mandatory for all perishable items. diff --git a/lib/vendor-shipments-api-model/models/item_quantity.rb b/lib/vendor-shipments-api-model/models/item_quantity.rb index 094d24d4d..c846e515b 100644 --- a/lib/vendor-shipments-api-model/models/item_quantity.rb +++ b/lib/vendor-shipments-api-model/models/item_quantity.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-shipments-api-model/models/label_data.rb b/lib/vendor-shipments-api-model/models/label_data.rb new file mode 100644 index 000000000..99f0303fb --- /dev/null +++ b/lib/vendor-shipments-api-model/models/label_data.rb @@ -0,0 +1,282 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::VendorShipmentsApiModel + # Label details as part of the transport label response + class LabelData + # Label list sequence number + attr_accessor :label_sequence_number + + # Type of the label format like PDF + attr_accessor :label_format + + # Unique identification for the carrier like UPS,DHL,USPS..etc + attr_accessor :carrier_code + + # Tracking Id for the transportation. + attr_accessor :tracking_id + + # Label created as part of the transportation and it is base64 encoded + attr_accessor :label + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'label_sequence_number' => :'labelSequenceNumber', + :'label_format' => :'labelFormat', + :'carrier_code' => :'carrierCode', + :'tracking_id' => :'trackingId', + :'label' => :'label' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'label_sequence_number' => :'Object', + :'label_format' => :'Object', + :'carrier_code' => :'Object', + :'tracking_id' => :'Object', + :'label' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorShipmentsApiModel::LabelData` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorShipmentsApiModel::LabelData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'label_sequence_number') + self.label_sequence_number = attributes[:'label_sequence_number'] + end + + if attributes.key?(:'label_format') + self.label_format = attributes[:'label_format'] + end + + if attributes.key?(:'carrier_code') + self.carrier_code = attributes[:'carrier_code'] + end + + if attributes.key?(:'tracking_id') + self.tracking_id = attributes[:'tracking_id'] + end + + if attributes.key?(:'label') + self.label = attributes[:'label'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + label_format_validator = EnumAttributeValidator.new('Object', ['PDF']) + return false unless label_format_validator.valid?(@label_format) + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] label_format Object to be assigned + def label_format=(label_format) + validator = EnumAttributeValidator.new('Object', ['PDF']) + unless validator.valid?(label_format) + fail ArgumentError, "invalid value for \"label_format\", must be one of #{validator.allowable_values}." + end + @label_format = label_format + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + label_sequence_number == o.label_sequence_number && + label_format == o.label_format && + carrier_code == o.carrier_code && + tracking_id == o.tracking_id && + label == o.label + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [label_sequence_number, label_format, carrier_code, tracking_id, label].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::VendorShipmentsApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/vendor-shipments-api-model/models/location.rb b/lib/vendor-shipments-api-model/models/location.rb index d6656edf6..3e8a7c46b 100644 --- a/lib/vendor-shipments-api-model/models/location.rb +++ b/lib/vendor-shipments-api-model/models/location.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-shipments-api-model/models/money.rb b/lib/vendor-shipments-api-model/models/money.rb index 2d9300b30..2269b5ff1 100644 --- a/lib/vendor-shipments-api-model/models/money.rb +++ b/lib/vendor-shipments-api-model/models/money.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-shipments-api-model/models/package_item_details.rb b/lib/vendor-shipments-api-model/models/package_item_details.rb new file mode 100644 index 000000000..939a12849 --- /dev/null +++ b/lib/vendor-shipments-api-model/models/package_item_details.rb @@ -0,0 +1,227 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::VendorShipmentsApiModel + # Item details for be provided for every item in shipment at either the item or carton or pallet level, whichever is appropriate. + class PackageItemDetails + # The purchase order number for the shipment being confirmed. If the items in this shipment belong to multiple purchase order numbers that are in particular carton or pallet within the shipment, then provide the purchaseOrderNumber at the appropriate carton or pallet level. Formatting Notes: 8-character alpha-numeric code. + attr_accessor :purchase_order_number + + # The batch or lot number associates an item with information the manufacturer considers relevant for traceability of the trade item to which the Element String is applied. The data may refer to the trade item itself or to items contained. This field is mandatory for all perishable items. + attr_accessor :lot_number + + attr_accessor :expiry + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'purchase_order_number' => :'purchaseOrderNumber', + :'lot_number' => :'lotNumber', + :'expiry' => :'expiry' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'purchase_order_number' => :'Object', + :'lot_number' => :'Object', + :'expiry' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorShipmentsApiModel::PackageItemDetails` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorShipmentsApiModel::PackageItemDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'purchase_order_number') + self.purchase_order_number = attributes[:'purchase_order_number'] + end + + if attributes.key?(:'lot_number') + self.lot_number = attributes[:'lot_number'] + end + + if attributes.key?(:'expiry') + self.expiry = attributes[:'expiry'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + purchase_order_number == o.purchase_order_number && + lot_number == o.lot_number && + expiry == o.expiry + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [purchase_order_number, lot_number, expiry].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::VendorShipmentsApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/vendor-shipments-api-model/models/packed_items.rb b/lib/vendor-shipments-api-model/models/packed_items.rb new file mode 100644 index 000000000..0e9f82bb5 --- /dev/null +++ b/lib/vendor-shipments-api-model/models/packed_items.rb @@ -0,0 +1,246 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::VendorShipmentsApiModel + # Details of the item being shipped. + class PackedItems + # Item sequence number for the item. The first item will be 001, the second 002, and so on. This number is used as a reference to refer to this item from the carton or pallet level. + attr_accessor :item_sequence_number + + # Buyer Standard Identification Number (ASIN) of an item. + attr_accessor :buyer_product_identifier + + # The vendor selected product identification of the item. Should be the same as was sent in the purchase order. + attr_accessor :vendor_product_identifier + + attr_accessor :packed_quantity + + attr_accessor :item_details + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'item_sequence_number' => :'itemSequenceNumber', + :'buyer_product_identifier' => :'buyerProductIdentifier', + :'vendor_product_identifier' => :'vendorProductIdentifier', + :'packed_quantity' => :'packedQuantity', + :'item_details' => :'itemDetails' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'item_sequence_number' => :'Object', + :'buyer_product_identifier' => :'Object', + :'vendor_product_identifier' => :'Object', + :'packed_quantity' => :'Object', + :'item_details' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorShipmentsApiModel::PackedItems` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorShipmentsApiModel::PackedItems`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'item_sequence_number') + self.item_sequence_number = attributes[:'item_sequence_number'] + end + + if attributes.key?(:'buyer_product_identifier') + self.buyer_product_identifier = attributes[:'buyer_product_identifier'] + end + + if attributes.key?(:'vendor_product_identifier') + self.vendor_product_identifier = attributes[:'vendor_product_identifier'] + end + + if attributes.key?(:'packed_quantity') + self.packed_quantity = attributes[:'packed_quantity'] + end + + if attributes.key?(:'item_details') + self.item_details = attributes[:'item_details'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + item_sequence_number == o.item_sequence_number && + buyer_product_identifier == o.buyer_product_identifier && + vendor_product_identifier == o.vendor_product_identifier && + packed_quantity == o.packed_quantity && + item_details == o.item_details + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [item_sequence_number, buyer_product_identifier, vendor_product_identifier, packed_quantity, item_details].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::VendorShipmentsApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/vendor-shipments-api-model/models/packed_quantity.rb b/lib/vendor-shipments-api-model/models/packed_quantity.rb new file mode 100644 index 000000000..db8f1720c --- /dev/null +++ b/lib/vendor-shipments-api-model/models/packed_quantity.rb @@ -0,0 +1,272 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::VendorShipmentsApiModel + # Details of item quantity. + class PackedQuantity + # Amount of units shipped for a specific item at a shipment level. If the item is present only in certain cartons or pallets within the shipment, please provide this at the appropriate carton or pallet level. + attr_accessor :amount + + # Unit of measure for the shipped quantity. + attr_accessor :unit_of_measure + + # The case size, in the event that we ordered using cases. Otherwise, 1. + attr_accessor :unit_size + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'amount' => :'amount', + :'unit_of_measure' => :'unitOfMeasure', + :'unit_size' => :'unitSize' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'amount' => :'Object', + :'unit_of_measure' => :'Object', + :'unit_size' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorShipmentsApiModel::PackedQuantity` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorShipmentsApiModel::PackedQuantity`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'amount') + self.amount = attributes[:'amount'] + end + + if attributes.key?(:'unit_of_measure') + self.unit_of_measure = attributes[:'unit_of_measure'] + end + + if attributes.key?(:'unit_size') + self.unit_size = attributes[:'unit_size'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @amount.nil? + invalid_properties.push('invalid value for "amount", amount cannot be nil.') + end + + if @unit_of_measure.nil? + invalid_properties.push('invalid value for "unit_of_measure", unit_of_measure cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return false if @amount.nil? + return false if @unit_of_measure.nil? + unit_of_measure_validator = EnumAttributeValidator.new('Object', ['Cases', 'Eaches']) + return false unless unit_of_measure_validator.valid?(@unit_of_measure) + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] unit_of_measure Object to be assigned + def unit_of_measure=(unit_of_measure) + validator = EnumAttributeValidator.new('Object', ['Cases', 'Eaches']) + unless validator.valid?(unit_of_measure) + fail ArgumentError, "invalid value for \"unit_of_measure\", must be one of #{validator.allowable_values}." + end + @unit_of_measure = unit_of_measure + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + amount == o.amount && + unit_of_measure == o.unit_of_measure && + unit_size == o.unit_size + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [amount, unit_of_measure, unit_size].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::VendorShipmentsApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/product-pricing-api-model/models/get_listing_offers_batch_response.rb b/lib/vendor-shipments-api-model/models/pagination.rb similarity index 83% rename from lib/product-pricing-api-model/models/get_listing_offers_batch_response.rb rename to lib/vendor-shipments-api-model/models/pagination.rb index c32326ebd..1a7bd3695 100644 --- a/lib/product-pricing-api-model/models/get_listing_offers_batch_response.rb +++ b/lib/vendor-shipments-api-model/models/pagination.rb @@ -1,32 +1,32 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Retail Procurement Shipments -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. -OpenAPI spec version: v0 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - # The response associated with the getListingOffersBatch API call. - class GetListingOffersBatchResponse - attr_accessor :responses +module AmzSpApi::VendorShipmentsApiModel + class Pagination + # A generated string used to pass information to your next request. If NextToken is returned, pass the value of NextToken to the next request. If NextToken is not returned, there are no more order items to return. + attr_accessor :next_token # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'responses' => :'responses' + :'next_token' => :'nextToken' } end # Attribute type mapping. def self.openapi_types { - :'responses' => :'Object' + :'next_token' => :'Object' } end @@ -40,19 +40,19 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::GetListingOffersBatchResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorShipmentsApiModel::Pagination` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::GetListingOffersBatchResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorShipmentsApiModel::Pagination`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - if attributes.key?(:'responses') - self.responses = attributes[:'responses'] + if attributes.key?(:'next_token') + self.next_token = attributes[:'next_token'] end end @@ -74,7 +74,7 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - responses == o.responses + next_token == o.next_token end # @see the `==` method @@ -86,7 +86,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [responses].hash + [next_token].hash end # Builds the object from hash @@ -155,7 +155,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::VendorShipmentsApiModel.const_get(type).build_from_hash(value) end end diff --git a/lib/vendor-shipments-api-model/models/pallet.rb b/lib/vendor-shipments-api-model/models/pallet.rb index 70c5ca709..239a123ef 100644 --- a/lib/vendor-shipments-api-model/models/pallet.rb +++ b/lib/vendor-shipments-api-model/models/pallet.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' @@ -17,10 +17,10 @@ class Pallet # A list of pallet identifiers. attr_accessor :pallet_identifiers - # Number of layers per pallet. + # Number of layers per pallet. Only applicable to container type Pallet. attr_accessor :tier - # Number of cartons per layer on the pallet. + # Number of cartons per layer on the pallet. Only applicable to container type Pallet. attr_accessor :block attr_accessor :dimensions diff --git a/lib/vendor-shipments-api-model/models/party_identification.rb b/lib/vendor-shipments-api-model/models/party_identification.rb index 0e2950d66..83cda9147 100644 --- a/lib/vendor-shipments-api-model/models/party_identification.rb +++ b/lib/vendor-shipments-api-model/models/party_identification.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-pricing-api-model/models/number_of_offer_listings_list.rb b/lib/vendor-shipments-api-model/models/purchase_order_item_details.rb similarity index 82% rename from lib/product-pricing-api-model/models/number_of_offer_listings_list.rb rename to lib/vendor-shipments-api-model/models/purchase_order_item_details.rb index c02b374af..cd7b631a7 100644 --- a/lib/product-pricing-api-model/models/number_of_offer_listings_list.rb +++ b/lib/vendor-shipments-api-model/models/purchase_order_item_details.rb @@ -1,28 +1,32 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Retail Procurement Shipments -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. -OpenAPI spec version: v0 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - # The number of active offer listings for the item that was submitted. The listing count is returned by condition, one for each listing condition value that is returned. - class NumberOfOfferListingsList +module AmzSpApi::VendorShipmentsApiModel + # Item details for be provided for every item in shipment at either the item or carton or pallet level, whichever is appropriate. + class PurchaseOrderItemDetails + attr_accessor :maximum_retail_price + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'maximum_retail_price' => :'maximumRetailPrice' } end # Attribute type mapping. def self.openapi_types { + :'maximum_retail_price' => :'Object' } end @@ -36,25 +40,26 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::NumberOfOfferListingsList` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorShipmentsApiModel::PurchaseOrderItemDetails` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::NumberOfOfferListingsList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorShipmentsApiModel::PurchaseOrderItemDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - # call parent's initialize - super(attributes) + if attributes.key?(:'maximum_retail_price') + self.maximum_retail_price = attributes[:'maximum_retail_price'] + end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties - invalid_properties = super + invalid_properties = Array.new invalid_properties end @@ -68,7 +73,8 @@ def valid? # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) - self.class == o.class && super(o) + self.class == o.class && + maximum_retail_price == o.maximum_retail_price end # @see the `==` method @@ -80,7 +86,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [].hash + [maximum_retail_price].hash end # Builds the object from hash @@ -95,7 +101,6 @@ def self.build_from_hash(attributes) # @return [Object] Returns the model itself def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) - super(attributes) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute @@ -150,7 +155,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::VendorShipmentsApiModel.const_get(type).build_from_hash(value) end end @@ -169,7 +174,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash - hash = super + hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? diff --git a/lib/product-pricing-api-model/models/item_offers_request.rb b/lib/vendor-shipments-api-model/models/purchase_order_items.rb similarity index 63% rename from lib/product-pricing-api-model/models/item_offers_request.rb rename to lib/vendor-shipments-api-model/models/purchase_order_items.rb index 1be455004..a4af065dc 100644 --- a/lib/product-pricing-api-model/models/item_offers_request.rb +++ b/lib/vendor-shipments-api-model/models/purchase_order_items.rb @@ -1,52 +1,51 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Retail Procurement Shipments -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. -OpenAPI spec version: v0 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - class ItemOffersRequest - attr_accessor :marketplace_id +module AmzSpApi::VendorShipmentsApiModel + # Details of the item being shipped. + class PurchaseOrderItems + # Item sequence number for the item. The first item will be 001, the second 002, and so on. This number is used as a reference to refer to this item from the carton or pallet level. + attr_accessor :item_sequence_number - attr_accessor :item_condition + # Amazon Standard Identification Number (ASIN) for a SKU + attr_accessor :buyer_product_identifier - attr_accessor :customer_type + # The vendor selected product identification of the item. Should be the same as was sent in the purchase order. + attr_accessor :vendor_product_identifier - # The `getItemOffers` resource path without any query parameters. **Example:** `/products/pricing/v0/items/B000P6Q7MY/offers` - attr_accessor :uri + attr_accessor :shipped_quantity - attr_accessor :method - - attr_accessor :headers + attr_accessor :maximum_retail_price # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'marketplace_id' => :'MarketplaceId', - :'item_condition' => :'ItemCondition', - :'customer_type' => :'CustomerType', - :'uri' => :'uri', - :'method' => :'method', - :'headers' => :'headers' + :'item_sequence_number' => :'itemSequenceNumber', + :'buyer_product_identifier' => :'buyerProductIdentifier', + :'vendor_product_identifier' => :'vendorProductIdentifier', + :'shipped_quantity' => :'shippedQuantity', + :'maximum_retail_price' => :'maximumRetailPrice' } end # Attribute type mapping. def self.openapi_types { - :'marketplace_id' => :'', - :'item_condition' => :'', - :'customer_type' => :'', - :'uri' => :'', - :'method' => :'', - :'headers' => :'' + :'item_sequence_number' => :'Object', + :'buyer_product_identifier' => :'Object', + :'vendor_product_identifier' => :'Object', + :'shipped_quantity' => :'Object', + :'maximum_retail_price' => :'Object' } end @@ -60,63 +59,48 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::ItemOffersRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorShipmentsApiModel::PurchaseOrderItems` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::ItemOffersRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorShipmentsApiModel::PurchaseOrderItems`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - # call parent's initialize - super(attributes) - - if attributes.key?(:'marketplace_id') - self.marketplace_id = attributes[:'marketplace_id'] - end - - if attributes.key?(:'item_condition') - self.item_condition = attributes[:'item_condition'] + if attributes.key?(:'item_sequence_number') + self.item_sequence_number = attributes[:'item_sequence_number'] end - if attributes.key?(:'customer_type') - self.customer_type = attributes[:'customer_type'] + if attributes.key?(:'buyer_product_identifier') + self.buyer_product_identifier = attributes[:'buyer_product_identifier'] end - if attributes.key?(:'uri') - self.uri = attributes[:'uri'] + if attributes.key?(:'vendor_product_identifier') + self.vendor_product_identifier = attributes[:'vendor_product_identifier'] end - if attributes.key?(:'method') - self.method = attributes[:'method'] + if attributes.key?(:'shipped_quantity') + self.shipped_quantity = attributes[:'shipped_quantity'] end - if attributes.key?(:'headers') - self.headers = attributes[:'headers'] + if attributes.key?(:'maximum_retail_price') + self.maximum_retail_price = attributes[:'maximum_retail_price'] end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties - invalid_properties = super - if @marketplace_id.nil? - invalid_properties.push('invalid value for "marketplace_id", marketplace_id cannot be nil.') - end - - if @item_condition.nil? - invalid_properties.push('invalid value for "item_condition", item_condition cannot be nil.') - end - - if @uri.nil? - invalid_properties.push('invalid value for "uri", uri cannot be nil.') + invalid_properties = Array.new + if @item_sequence_number.nil? + invalid_properties.push('invalid value for "item_sequence_number", item_sequence_number cannot be nil.') end - if @method.nil? - invalid_properties.push('invalid value for "method", method cannot be nil.') + if @shipped_quantity.nil? + invalid_properties.push('invalid value for "shipped_quantity", shipped_quantity cannot be nil.') end invalid_properties @@ -125,10 +109,8 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @marketplace_id.nil? - return false if @item_condition.nil? - return false if @uri.nil? - return false if @method.nil? + return false if @item_sequence_number.nil? + return false if @shipped_quantity.nil? true end @@ -137,12 +119,11 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - marketplace_id == o.marketplace_id && - item_condition == o.item_condition && - customer_type == o.customer_type && - uri == o.uri && - method == o.method && - headers == o.headers && super(o) + item_sequence_number == o.item_sequence_number && + buyer_product_identifier == o.buyer_product_identifier && + vendor_product_identifier == o.vendor_product_identifier && + shipped_quantity == o.shipped_quantity && + maximum_retail_price == o.maximum_retail_price end # @see the `==` method @@ -154,7 +135,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [marketplace_id, item_condition, customer_type, uri, method, headers].hash + [item_sequence_number, buyer_product_identifier, vendor_product_identifier, shipped_quantity, maximum_retail_price].hash end # Builds the object from hash @@ -169,7 +150,6 @@ def self.build_from_hash(attributes) # @return [Object] Returns the model itself def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) - super(attributes) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute @@ -224,7 +204,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::VendorShipmentsApiModel.const_get(type).build_from_hash(value) end end @@ -243,7 +223,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash - hash = super + hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? diff --git a/lib/vendor-shipments-api-model/models/purchase_orders.rb b/lib/vendor-shipments-api-model/models/purchase_orders.rb new file mode 100644 index 000000000..24a0c515e --- /dev/null +++ b/lib/vendor-shipments-api-model/models/purchase_orders.rb @@ -0,0 +1,240 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::VendorShipmentsApiModel + # Transport Request pickup date + class PurchaseOrders + # Purchase order numbers involved in this shipment, list all the PO that are involved as part of this shipment. + attr_accessor :purchase_order_number + + # Purchase order numbers involved in this shipment, list all the PO that are involved as part of this shipment. + attr_accessor :purchase_order_date + + # Date range in which shipment is expected for these purchase orders. + attr_accessor :ship_window + + # A list of the items that are associated to the PO in this transport and their associated details. + attr_accessor :items + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'purchase_order_number' => :'purchaseOrderNumber', + :'purchase_order_date' => :'purchaseOrderDate', + :'ship_window' => :'shipWindow', + :'items' => :'items' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'purchase_order_number' => :'Object', + :'purchase_order_date' => :'Object', + :'ship_window' => :'Object', + :'items' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorShipmentsApiModel::PurchaseOrders` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorShipmentsApiModel::PurchaseOrders`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'purchase_order_number') + self.purchase_order_number = attributes[:'purchase_order_number'] + end + + if attributes.key?(:'purchase_order_date') + self.purchase_order_date = attributes[:'purchase_order_date'] + end + + if attributes.key?(:'ship_window') + self.ship_window = attributes[:'ship_window'] + end + + if attributes.key?(:'items') + if (value = attributes[:'items']).is_a?(Array) + self.items = value + end + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + purchase_order_number == o.purchase_order_number && + purchase_order_date == o.purchase_order_date && + ship_window == o.ship_window && + items == o.items + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [purchase_order_number, purchase_order_date, ship_window, items].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::VendorShipmentsApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/vendor-shipments-api-model/models/route.rb b/lib/vendor-shipments-api-model/models/route.rb index af06cbd64..85ca2cafe 100644 --- a/lib/vendor-shipments-api-model/models/route.rb +++ b/lib/vendor-shipments-api-model/models/route.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-shipments-api-model/models/shipment.rb b/lib/vendor-shipments-api-model/models/shipment.rb new file mode 100644 index 000000000..7a2004546 --- /dev/null +++ b/lib/vendor-shipments-api-model/models/shipment.rb @@ -0,0 +1,484 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::VendorShipmentsApiModel + class Shipment + # Unique Transportation ID created by Vendor (Should not be used over the last 365 days). + attr_accessor :vendor_shipment_identifier + + # Indicates the type of transportation request such as (New,Cancel,Confirm and PackageLabelRequest). Each transactiontype has a unique set of operation and there are corresponding details to be populated for each operation. + attr_accessor :transaction_type + + # The buyer Reference Number is a unique identifier generated by buyer for all Collect/WePay shipments when you submit a transportation request. This field is mandatory for Collect/WePay shipments. + attr_accessor :buyer_reference_number + + # Date on which the transportation request was submitted. + attr_accessor :transaction_date + + # Indicates the current shipment status. + attr_accessor :current_shipment_status + + # Date and time when the last status was updated. + attr_accessor :currentshipment_status_date + + # Indicates the list of current shipment status details and when the last update was received from carrier this is available on shipment Details response. + attr_accessor :shipment_status_details + + # The date and time of the shipment request created by vendor. + attr_accessor :shipment_create_date + + # The date and time of the departure of the shipment from the vendor's location. Vendors are requested to send ASNs within 30 minutes of departure from their warehouse/distribution center or at least 6 hours prior to the appointment time at the Buyer destination warehouse, whichever is sooner. Shipped date mentioned in the shipment confirmation should not be in the future. + attr_accessor :shipment_confirm_date + + # The date and time of the package label created for the shipment by buyer. + attr_accessor :package_label_create_date + + # Indicates if this transportation request is WePay/Collect or TheyPay/Prepaid. This is a mandatory information. + attr_accessor :shipment_freight_term + + attr_accessor :selling_party + + attr_accessor :ship_from_party + + attr_accessor :ship_to_party + + attr_accessor :shipment_measurements + + attr_accessor :collect_freight_pickup_details + + # Indicates the purchase orders involved for the transportation request. This group is an array create 1 for each PO and list their corresponding items. This information is used for deciding the route,truck allocation and storage efficiently. This is a mandatory information for Buyer performing transportation from vendor warehouse (WePay/Collect) + attr_accessor :purchase_orders + + attr_accessor :import_details + + # A list of the items in this transportation and their associated inner container details. If any of the item detail fields are common at a carton or a pallet level, provide them at the corresponding carton or pallet level. + attr_accessor :containers + + attr_accessor :transportation_details + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'vendor_shipment_identifier' => :'vendorShipmentIdentifier', + :'transaction_type' => :'transactionType', + :'buyer_reference_number' => :'buyerReferenceNumber', + :'transaction_date' => :'transactionDate', + :'current_shipment_status' => :'currentShipmentStatus', + :'currentshipment_status_date' => :'currentshipmentStatusDate', + :'shipment_status_details' => :'shipmentStatusDetails', + :'shipment_create_date' => :'shipmentCreateDate', + :'shipment_confirm_date' => :'shipmentConfirmDate', + :'package_label_create_date' => :'packageLabelCreateDate', + :'shipment_freight_term' => :'shipmentFreightTerm', + :'selling_party' => :'sellingParty', + :'ship_from_party' => :'shipFromParty', + :'ship_to_party' => :'shipToParty', + :'shipment_measurements' => :'shipmentMeasurements', + :'collect_freight_pickup_details' => :'collectFreightPickupDetails', + :'purchase_orders' => :'purchaseOrders', + :'import_details' => :'importDetails', + :'containers' => :'containers', + :'transportation_details' => :'transportationDetails' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'vendor_shipment_identifier' => :'Object', + :'transaction_type' => :'Object', + :'buyer_reference_number' => :'Object', + :'transaction_date' => :'Object', + :'current_shipment_status' => :'Object', + :'currentshipment_status_date' => :'Object', + :'shipment_status_details' => :'Object', + :'shipment_create_date' => :'Object', + :'shipment_confirm_date' => :'Object', + :'package_label_create_date' => :'Object', + :'shipment_freight_term' => :'Object', + :'selling_party' => :'Object', + :'ship_from_party' => :'Object', + :'ship_to_party' => :'Object', + :'shipment_measurements' => :'Object', + :'collect_freight_pickup_details' => :'Object', + :'purchase_orders' => :'Object', + :'import_details' => :'Object', + :'containers' => :'Object', + :'transportation_details' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorShipmentsApiModel::Shipment` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorShipmentsApiModel::Shipment`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'vendor_shipment_identifier') + self.vendor_shipment_identifier = attributes[:'vendor_shipment_identifier'] + end + + if attributes.key?(:'transaction_type') + self.transaction_type = attributes[:'transaction_type'] + end + + if attributes.key?(:'buyer_reference_number') + self.buyer_reference_number = attributes[:'buyer_reference_number'] + end + + if attributes.key?(:'transaction_date') + self.transaction_date = attributes[:'transaction_date'] + end + + if attributes.key?(:'current_shipment_status') + self.current_shipment_status = attributes[:'current_shipment_status'] + end + + if attributes.key?(:'currentshipment_status_date') + self.currentshipment_status_date = attributes[:'currentshipment_status_date'] + end + + if attributes.key?(:'shipment_status_details') + if (value = attributes[:'shipment_status_details']).is_a?(Array) + self.shipment_status_details = value + end + end + + if attributes.key?(:'shipment_create_date') + self.shipment_create_date = attributes[:'shipment_create_date'] + end + + if attributes.key?(:'shipment_confirm_date') + self.shipment_confirm_date = attributes[:'shipment_confirm_date'] + end + + if attributes.key?(:'package_label_create_date') + self.package_label_create_date = attributes[:'package_label_create_date'] + end + + if attributes.key?(:'shipment_freight_term') + self.shipment_freight_term = attributes[:'shipment_freight_term'] + end + + if attributes.key?(:'selling_party') + self.selling_party = attributes[:'selling_party'] + end + + if attributes.key?(:'ship_from_party') + self.ship_from_party = attributes[:'ship_from_party'] + end + + if attributes.key?(:'ship_to_party') + self.ship_to_party = attributes[:'ship_to_party'] + end + + if attributes.key?(:'shipment_measurements') + self.shipment_measurements = attributes[:'shipment_measurements'] + end + + if attributes.key?(:'collect_freight_pickup_details') + self.collect_freight_pickup_details = attributes[:'collect_freight_pickup_details'] + end + + if attributes.key?(:'purchase_orders') + if (value = attributes[:'purchase_orders']).is_a?(Array) + self.purchase_orders = value + end + end + + if attributes.key?(:'import_details') + self.import_details = attributes[:'import_details'] + end + + if attributes.key?(:'containers') + if (value = attributes[:'containers']).is_a?(Array) + self.containers = value + end + end + + if attributes.key?(:'transportation_details') + self.transportation_details = attributes[:'transportation_details'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @vendor_shipment_identifier.nil? + invalid_properties.push('invalid value for "vendor_shipment_identifier", vendor_shipment_identifier cannot be nil.') + end + + if @transaction_type.nil? + invalid_properties.push('invalid value for "transaction_type", transaction_type cannot be nil.') + end + + if @transaction_date.nil? + invalid_properties.push('invalid value for "transaction_date", transaction_date cannot be nil.') + end + + if @selling_party.nil? + invalid_properties.push('invalid value for "selling_party", selling_party cannot be nil.') + end + + if @ship_from_party.nil? + invalid_properties.push('invalid value for "ship_from_party", ship_from_party cannot be nil.') + end + + if @ship_to_party.nil? + invalid_properties.push('invalid value for "ship_to_party", ship_to_party cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return false if @vendor_shipment_identifier.nil? + return false if @transaction_type.nil? + transaction_type_validator = EnumAttributeValidator.new('Object', ['New', 'Cancel']) + return false unless transaction_type_validator.valid?(@transaction_type) + return false if @transaction_date.nil? + current_shipment_status_validator = EnumAttributeValidator.new('Object', ['Created', 'TransportationRequested', 'CarrierAssigned', 'Shipped']) + return false unless current_shipment_status_validator.valid?(@current_shipment_status) + shipment_freight_term_validator = EnumAttributeValidator.new('Object', ['Collect', 'Prepaid']) + return false unless shipment_freight_term_validator.valid?(@shipment_freight_term) + return false if @selling_party.nil? + return false if @ship_from_party.nil? + return false if @ship_to_party.nil? + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] transaction_type Object to be assigned + def transaction_type=(transaction_type) + validator = EnumAttributeValidator.new('Object', ['New', 'Cancel']) + unless validator.valid?(transaction_type) + fail ArgumentError, "invalid value for \"transaction_type\", must be one of #{validator.allowable_values}." + end + @transaction_type = transaction_type + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] current_shipment_status Object to be assigned + def current_shipment_status=(current_shipment_status) + validator = EnumAttributeValidator.new('Object', ['Created', 'TransportationRequested', 'CarrierAssigned', 'Shipped']) + unless validator.valid?(current_shipment_status) + fail ArgumentError, "invalid value for \"current_shipment_status\", must be one of #{validator.allowable_values}." + end + @current_shipment_status = current_shipment_status + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] shipment_freight_term Object to be assigned + def shipment_freight_term=(shipment_freight_term) + validator = EnumAttributeValidator.new('Object', ['Collect', 'Prepaid']) + unless validator.valid?(shipment_freight_term) + fail ArgumentError, "invalid value for \"shipment_freight_term\", must be one of #{validator.allowable_values}." + end + @shipment_freight_term = shipment_freight_term + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + vendor_shipment_identifier == o.vendor_shipment_identifier && + transaction_type == o.transaction_type && + buyer_reference_number == o.buyer_reference_number && + transaction_date == o.transaction_date && + current_shipment_status == o.current_shipment_status && + currentshipment_status_date == o.currentshipment_status_date && + shipment_status_details == o.shipment_status_details && + shipment_create_date == o.shipment_create_date && + shipment_confirm_date == o.shipment_confirm_date && + package_label_create_date == o.package_label_create_date && + shipment_freight_term == o.shipment_freight_term && + selling_party == o.selling_party && + ship_from_party == o.ship_from_party && + ship_to_party == o.ship_to_party && + shipment_measurements == o.shipment_measurements && + collect_freight_pickup_details == o.collect_freight_pickup_details && + purchase_orders == o.purchase_orders && + import_details == o.import_details && + containers == o.containers && + transportation_details == o.transportation_details + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [vendor_shipment_identifier, transaction_type, buyer_reference_number, transaction_date, current_shipment_status, currentshipment_status_date, shipment_status_details, shipment_create_date, shipment_confirm_date, package_label_create_date, shipment_freight_term, selling_party, ship_from_party, ship_to_party, shipment_measurements, collect_freight_pickup_details, purchase_orders, import_details, containers, transportation_details].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::VendorShipmentsApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/vendor-shipments-api-model/models/shipment_confirmation.rb b/lib/vendor-shipments-api-model/models/shipment_confirmation.rb index 462400ea0..1a6969e5b 100644 --- a/lib/vendor-shipments-api-model/models/shipment_confirmation.rb +++ b/lib/vendor-shipments-api-model/models/shipment_confirmation.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' @@ -33,10 +33,10 @@ class ShipmentConfirmation # Date on which the shipment confirmation was submitted. attr_accessor :shipment_confirmation_date - # The date and time of the departure of the shipment from the vendor's location. Vendors are requested to send ASNs within 30 minutes of departure from their warehouse/distribution center or at least 6 hours prior to the appointment time at the Amazon destination warehouse, whichever is sooner. Shipped date mentioned in the shipment confirmation should not be in the future. + # The date and time of the departure of the shipment from the vendor's location. Vendors are requested to send ASNs within 30 minutes of departure from their warehouse/distribution center or at least 6 hours prior to the appointment time at the buyer destination warehouse, whichever is sooner. Shipped date mentioned in the shipment confirmation should not be in the future. attr_accessor :shipped_date - # The date and time on which the shipment is expected to reach buyer's warehouse. It needs to be an estimate based on the average transit time between ship from location and the destination. The exact appointment time will be provided by the buyer and is potentially not known when creating the shipment confirmation. + # The date and time on which the shipment is estimated to reach buyer's warehouse. It needs to be an estimate based on the average transit time between ship from location and the destination. The exact appointment time will be provided by the buyer and is potentially not known when creating the shipment confirmation. attr_accessor :estimated_delivery_date attr_accessor :selling_party diff --git a/lib/vendor-shipments-api-model/models/shipment_details.rb b/lib/vendor-shipments-api-model/models/shipment_details.rb new file mode 100644 index 000000000..749c7fd26 --- /dev/null +++ b/lib/vendor-shipments-api-model/models/shipment_details.rb @@ -0,0 +1,217 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::VendorShipmentsApiModel + class ShipmentDetails + attr_accessor :pagination + + attr_accessor :shipments + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'pagination' => :'pagination', + :'shipments' => :'shipments' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'pagination' => :'Object', + :'shipments' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorShipmentsApiModel::ShipmentDetails` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorShipmentsApiModel::ShipmentDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'pagination') + self.pagination = attributes[:'pagination'] + end + + if attributes.key?(:'shipments') + if (value = attributes[:'shipments']).is_a?(Array) + self.shipments = value + end + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + pagination == o.pagination && + shipments == o.shipments + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [pagination, shipments].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::VendorShipmentsApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/product-pricing-api-model/models/competitive_price_type.rb b/lib/vendor-shipments-api-model/models/shipment_information.rb similarity index 56% rename from lib/product-pricing-api-model/models/competitive_price_type.rb rename to lib/vendor-shipments-api-model/models/shipment_information.rb index 567e24a48..064f09c54 100644 --- a/lib/product-pricing-api-model/models/competitive_price_type.rb +++ b/lib/vendor-shipments-api-model/models/shipment_information.rb @@ -1,69 +1,87 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Retail Procurement Shipments -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. -OpenAPI spec version: v0 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - class CompetitivePriceType - # The pricing model for each price that is returned. Possible values: * 1 - New Buy Box Price. * 2 - Used Buy Box Price. - attr_accessor :competitive_price_id +module AmzSpApi::VendorShipmentsApiModel + # Shipment Information details for Label request. + class ShipmentInformation + attr_accessor :vendor_details - attr_accessor :price + # Buyer Reference number which is a unique number. + attr_accessor :buyer_reference_number - # Indicates the condition of the item whose pricing information is returned. Possible values are: New, Used, Collectible, Refurbished, or Club. - attr_accessor :condition + attr_accessor :ship_to_party - # Indicates the subcondition of the item whose pricing information is returned. Possible values are: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, or Other. - attr_accessor :subcondition + attr_accessor :ship_from_party - attr_accessor :offer_type + # Vendor Warehouse ID from where the shipment is scheduled to be picked up by buyer / Carrier. + attr_accessor :warehouse_id - # Indicates at what quantity this price becomes active. - attr_accessor :quantity_tier + # Unique Id with which the shipment can be tracked for Small Parcels. + attr_accessor :master_tracking_id - attr_accessor :quantity_discount_type + # Number of Labels that are created as part of this shipment. + attr_accessor :total_label_count - # The seller identifier for the offer. - attr_accessor :seller_id + # Type of shipment whether it is Small Parcel + attr_accessor :ship_mode - # Indicates whether or not the pricing information is for an offer listing that belongs to the requester. The requester is the seller associated with the SellerId that was submitted with the request. Possible values are: true and false. - attr_accessor :belongs_to_requester + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'competitive_price_id' => :'CompetitivePriceId', - :'price' => :'Price', - :'condition' => :'condition', - :'subcondition' => :'subcondition', - :'offer_type' => :'offerType', - :'quantity_tier' => :'quantityTier', - :'quantity_discount_type' => :'quantityDiscountType', - :'seller_id' => :'sellerId', - :'belongs_to_requester' => :'belongsToRequester' + :'vendor_details' => :'vendorDetails', + :'buyer_reference_number' => :'buyerReferenceNumber', + :'ship_to_party' => :'shipToParty', + :'ship_from_party' => :'shipFromParty', + :'warehouse_id' => :'warehouseId', + :'master_tracking_id' => :'masterTrackingId', + :'total_label_count' => :'totalLabelCount', + :'ship_mode' => :'shipMode' } end # Attribute type mapping. def self.openapi_types { - :'competitive_price_id' => :'Object', - :'price' => :'Object', - :'condition' => :'Object', - :'subcondition' => :'Object', - :'offer_type' => :'Object', - :'quantity_tier' => :'Object', - :'quantity_discount_type' => :'Object', - :'seller_id' => :'Object', - :'belongs_to_requester' => :'Object' + :'vendor_details' => :'Object', + :'buyer_reference_number' => :'Object', + :'ship_to_party' => :'Object', + :'ship_from_party' => :'Object', + :'warehouse_id' => :'Object', + :'master_tracking_id' => :'Object', + :'total_label_count' => :'Object', + :'ship_mode' => :'Object' } end @@ -77,51 +95,47 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::CompetitivePriceType` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorShipmentsApiModel::ShipmentInformation` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::CompetitivePriceType`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorShipmentsApiModel::ShipmentInformation`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - if attributes.key?(:'competitive_price_id') - self.competitive_price_id = attributes[:'competitive_price_id'] - end - - if attributes.key?(:'price') - self.price = attributes[:'price'] + if attributes.key?(:'vendor_details') + self.vendor_details = attributes[:'vendor_details'] end - if attributes.key?(:'condition') - self.condition = attributes[:'condition'] + if attributes.key?(:'buyer_reference_number') + self.buyer_reference_number = attributes[:'buyer_reference_number'] end - if attributes.key?(:'subcondition') - self.subcondition = attributes[:'subcondition'] + if attributes.key?(:'ship_to_party') + self.ship_to_party = attributes[:'ship_to_party'] end - if attributes.key?(:'offer_type') - self.offer_type = attributes[:'offer_type'] + if attributes.key?(:'ship_from_party') + self.ship_from_party = attributes[:'ship_from_party'] end - if attributes.key?(:'quantity_tier') - self.quantity_tier = attributes[:'quantity_tier'] + if attributes.key?(:'warehouse_id') + self.warehouse_id = attributes[:'warehouse_id'] end - if attributes.key?(:'quantity_discount_type') - self.quantity_discount_type = attributes[:'quantity_discount_type'] + if attributes.key?(:'master_tracking_id') + self.master_tracking_id = attributes[:'master_tracking_id'] end - if attributes.key?(:'seller_id') - self.seller_id = attributes[:'seller_id'] + if attributes.key?(:'total_label_count') + self.total_label_count = attributes[:'total_label_count'] end - if attributes.key?(:'belongs_to_requester') - self.belongs_to_requester = attributes[:'belongs_to_requester'] + if attributes.key?(:'ship_mode') + self.ship_mode = attributes[:'ship_mode'] end end @@ -129,39 +143,40 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @competitive_price_id.nil? - invalid_properties.push('invalid value for "competitive_price_id", competitive_price_id cannot be nil.') - end - - if @price.nil? - invalid_properties.push('invalid value for "price", price cannot be nil.') - end - invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @competitive_price_id.nil? - return false if @price.nil? + ship_mode_validator = EnumAttributeValidator.new('Object', ['SmallParcel', 'LTL']) + return false unless ship_mode_validator.valid?(@ship_mode) true end + # Custom attribute writer method checking allowed values (enum). + # @param [Object] ship_mode Object to be assigned + def ship_mode=(ship_mode) + validator = EnumAttributeValidator.new('Object', ['SmallParcel', 'LTL']) + unless validator.valid?(ship_mode) + fail ArgumentError, "invalid value for \"ship_mode\", must be one of #{validator.allowable_values}." + end + @ship_mode = ship_mode + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && - competitive_price_id == o.competitive_price_id && - price == o.price && - condition == o.condition && - subcondition == o.subcondition && - offer_type == o.offer_type && - quantity_tier == o.quantity_tier && - quantity_discount_type == o.quantity_discount_type && - seller_id == o.seller_id && - belongs_to_requester == o.belongs_to_requester + vendor_details == o.vendor_details && + buyer_reference_number == o.buyer_reference_number && + ship_to_party == o.ship_to_party && + ship_from_party == o.ship_from_party && + warehouse_id == o.warehouse_id && + master_tracking_id == o.master_tracking_id && + total_label_count == o.total_label_count && + ship_mode == o.ship_mode end # @see the `==` method @@ -173,7 +188,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [competitive_price_id, price, condition, subcondition, offer_type, quantity_tier, quantity_discount_type, seller_id, belongs_to_requester].hash + [vendor_details, buyer_reference_number, ship_to_party, ship_from_party, warehouse_id, master_tracking_id, total_label_count, ship_mode].hash end # Builds the object from hash @@ -242,7 +257,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::VendorShipmentsApiModel.const_get(type).build_from_hash(value) end end diff --git a/lib/vendor-shipments-api-model/models/shipment_measurements.rb b/lib/vendor-shipments-api-model/models/shipment_measurements.rb index fcf5efa37..2b5478653 100644 --- a/lib/vendor-shipments-api-model/models/shipment_measurements.rb +++ b/lib/vendor-shipments-api-model/models/shipment_measurements.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' @@ -18,7 +18,7 @@ class ShipmentMeasurements attr_accessor :shipment_volume - # Number of cartons present in the shipment. Provide the cartonCount only for unpalletized shipments. + # Number of cartons present in the shipment. Provide the cartonCount only for non-palletized shipments. attr_accessor :carton_count # Number of pallets present in the shipment. Provide the palletCount only for palletized shipments. diff --git a/lib/vendor-shipments-api-model/models/shipment_status_details.rb b/lib/vendor-shipments-api-model/models/shipment_status_details.rb new file mode 100644 index 000000000..0b4d02312 --- /dev/null +++ b/lib/vendor-shipments-api-model/models/shipment_status_details.rb @@ -0,0 +1,252 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::VendorShipmentsApiModel + # Shipment Status details. + class ShipmentStatusDetails + # Current status of the shipment on whether it is picked up or scheduled. + attr_accessor :shipment_status + + # Date and time on last status update received for the shipment + attr_accessor :shipment_status_date + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'shipment_status' => :'shipmentStatus', + :'shipment_status_date' => :'shipmentStatusDate' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'shipment_status' => :'Object', + :'shipment_status_date' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorShipmentsApiModel::ShipmentStatusDetails` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorShipmentsApiModel::ShipmentStatusDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'shipment_status') + self.shipment_status = attributes[:'shipment_status'] + end + + if attributes.key?(:'shipment_status_date') + self.shipment_status_date = attributes[:'shipment_status_date'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + shipment_status_validator = EnumAttributeValidator.new('Object', ['Created', 'TransportationRequested', 'CarrierAssigned', 'Shipped']) + return false unless shipment_status_validator.valid?(@shipment_status) + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] shipment_status Object to be assigned + def shipment_status=(shipment_status) + validator = EnumAttributeValidator.new('Object', ['Created', 'TransportationRequested', 'CarrierAssigned', 'Shipped']) + unless validator.valid?(shipment_status) + fail ArgumentError, "invalid value for \"shipment_status\", must be one of #{validator.allowable_values}." + end + @shipment_status = shipment_status + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + shipment_status == o.shipment_status && + shipment_status_date == o.shipment_status_date + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [shipment_status, shipment_status_date].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::VendorShipmentsApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/vendor-shipments-api-model/models/stop.rb b/lib/vendor-shipments-api-model/models/stop.rb index 5c789f83d..2c0af1091 100644 --- a/lib/vendor-shipments-api-model/models/stop.rb +++ b/lib/vendor-shipments-api-model/models/stop.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-shipments-api-model/models/submit_shipment_confirmations_request.rb b/lib/vendor-shipments-api-model/models/submit_shipment_confirmations_request.rb index db77d09f4..aba9b3c45 100644 --- a/lib/vendor-shipments-api-model/models/submit_shipment_confirmations_request.rb +++ b/lib/vendor-shipments-api-model/models/submit_shipment_confirmations_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-shipments-api-model/models/submit_shipment_confirmations_response.rb b/lib/vendor-shipments-api-model/models/submit_shipment_confirmations_response.rb index 56cfe00b2..3e1bae255 100644 --- a/lib/vendor-shipments-api-model/models/submit_shipment_confirmations_response.rb +++ b/lib/vendor-shipments-api-model/models/submit_shipment_confirmations_response.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/product-pricing-api-model/models/relationship_list.rb b/lib/vendor-shipments-api-model/models/submit_shipments.rb similarity index 84% rename from lib/product-pricing-api-model/models/relationship_list.rb rename to lib/vendor-shipments-api-model/models/submit_shipments.rb index 7e6478108..d97d196bc 100644 --- a/lib/product-pricing-api-model/models/relationship_list.rb +++ b/lib/vendor-shipments-api-model/models/submit_shipments.rb @@ -1,28 +1,32 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Retail Procurement Shipments -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. -OpenAPI spec version: v0 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - # A list that contains product variation information, if applicable. - class RelationshipList +module AmzSpApi::VendorShipmentsApiModel + # The request schema for the SubmitTransportRequestConfirmations operation. + class SubmitShipments + attr_accessor :shipments + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'shipments' => :'shipments' } end # Attribute type mapping. def self.openapi_types { + :'shipments' => :'Object' } end @@ -36,25 +40,28 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::RelationshipList` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorShipmentsApiModel::SubmitShipments` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::RelationshipList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorShipmentsApiModel::SubmitShipments`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - # call parent's initialize - super(attributes) + if attributes.key?(:'shipments') + if (value = attributes[:'shipments']).is_a?(Array) + self.shipments = value + end + end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties - invalid_properties = super + invalid_properties = Array.new invalid_properties end @@ -68,7 +75,8 @@ def valid? # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) - self.class == o.class && super(o) + self.class == o.class && + shipments == o.shipments end # @see the `==` method @@ -80,7 +88,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [].hash + [shipments].hash end # Builds the object from hash @@ -95,7 +103,6 @@ def self.build_from_hash(attributes) # @return [Object] Returns the model itself def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) - super(attributes) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute @@ -150,7 +157,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::VendorShipmentsApiModel.const_get(type).build_from_hash(value) end end @@ -169,7 +176,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash - hash = super + hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? diff --git a/lib/vendor-shipments-api-model/models/tax_registration_details.rb b/lib/vendor-shipments-api-model/models/tax_registration_details.rb index ac6d35287..7d8c60dea 100644 --- a/lib/vendor-shipments-api-model/models/tax_registration_details.rb +++ b/lib/vendor-shipments-api-model/models/tax_registration_details.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' diff --git a/lib/vendor-shipments-api-model/models/transaction_reference.rb b/lib/vendor-shipments-api-model/models/transaction_reference.rb index 88ad89d5f..55e0c6fb1 100644 --- a/lib/vendor-shipments-api-model/models/transaction_reference.rb +++ b/lib/vendor-shipments-api-model/models/transaction_reference.rb @@ -6,14 +6,14 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::VendorShipmentsApiModel class TransactionReference - # GUID assigned by Amazon to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction. + # GUID assigned by Buyer to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction. attr_accessor :transaction_id # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/vendor-shipments-api-model/models/transport_label.rb b/lib/vendor-shipments-api-model/models/transport_label.rb new file mode 100644 index 000000000..90e0615f2 --- /dev/null +++ b/lib/vendor-shipments-api-model/models/transport_label.rb @@ -0,0 +1,228 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::VendorShipmentsApiModel + class TransportLabel + # Date on which label is created. + attr_accessor :label_create_date_time + + attr_accessor :shipment_information + + # Indicates the label data,format and type associated . + attr_accessor :label_data + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'label_create_date_time' => :'labelCreateDateTime', + :'shipment_information' => :'shipmentInformation', + :'label_data' => :'labelData' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'label_create_date_time' => :'Object', + :'shipment_information' => :'Object', + :'label_data' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorShipmentsApiModel::TransportLabel` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorShipmentsApiModel::TransportLabel`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'label_create_date_time') + self.label_create_date_time = attributes[:'label_create_date_time'] + end + + if attributes.key?(:'shipment_information') + self.shipment_information = attributes[:'shipment_information'] + end + + if attributes.key?(:'label_data') + if (value = attributes[:'label_data']).is_a?(Array) + self.label_data = value + end + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + label_create_date_time == o.label_create_date_time && + shipment_information == o.shipment_information && + label_data == o.label_data + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [label_create_date_time, shipment_information, label_data].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::VendorShipmentsApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/vendor-shipments-api-model/models/transport_shipment_measurements.rb b/lib/vendor-shipments-api-model/models/transport_shipment_measurements.rb new file mode 100644 index 000000000..1d3a85f27 --- /dev/null +++ b/lib/vendor-shipments-api-model/models/transport_shipment_measurements.rb @@ -0,0 +1,246 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::VendorShipmentsApiModel + # Shipment measurement details. + class TransportShipmentMeasurements + # Total number of cartons present in the shipment. Provide the cartonCount only for non-palletized shipments. + attr_accessor :total_carton_count + + # Total number of Stackable Pallets present in the shipment. + attr_accessor :total_pallet_stackable + + # Total number of Non Stackable Pallets present in the shipment. + attr_accessor :total_pallet_non_stackable + + attr_accessor :shipment_weight + + attr_accessor :shipment_volume + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'total_carton_count' => :'totalCartonCount', + :'total_pallet_stackable' => :'totalPalletStackable', + :'total_pallet_non_stackable' => :'totalPalletNonStackable', + :'shipment_weight' => :'shipmentWeight', + :'shipment_volume' => :'shipmentVolume' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'total_carton_count' => :'Object', + :'total_pallet_stackable' => :'Object', + :'total_pallet_non_stackable' => :'Object', + :'shipment_weight' => :'Object', + :'shipment_volume' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorShipmentsApiModel::TransportShipmentMeasurements` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorShipmentsApiModel::TransportShipmentMeasurements`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'total_carton_count') + self.total_carton_count = attributes[:'total_carton_count'] + end + + if attributes.key?(:'total_pallet_stackable') + self.total_pallet_stackable = attributes[:'total_pallet_stackable'] + end + + if attributes.key?(:'total_pallet_non_stackable') + self.total_pallet_non_stackable = attributes[:'total_pallet_non_stackable'] + end + + if attributes.key?(:'shipment_weight') + self.shipment_weight = attributes[:'shipment_weight'] + end + + if attributes.key?(:'shipment_volume') + self.shipment_volume = attributes[:'shipment_volume'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + total_carton_count == o.total_carton_count && + total_pallet_stackable == o.total_pallet_stackable && + total_pallet_non_stackable == o.total_pallet_non_stackable && + shipment_weight == o.shipment_weight && + shipment_volume == o.shipment_volume + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [total_carton_count, total_pallet_stackable, total_pallet_non_stackable, shipment_weight, shipment_volume].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::VendorShipmentsApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/vendor-shipments-api-model/models/transportation_details.rb b/lib/vendor-shipments-api-model/models/transportation_details.rb index e4fce2d94..59f56f557 100644 --- a/lib/vendor-shipments-api-model/models/transportation_details.rb +++ b/lib/vendor-shipments-api-model/models/transportation_details.rb @@ -6,22 +6,30 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::VendorShipmentsApiModel class TransportationDetails - # Code that identifies the carrier for the shipment. The Standard Carrier Alpha Code (SCAC) is a unique two to four letter code used to identify a carrier. Carrier SCAC codes are assigned and maintained by the NMFTA (National Motor Freight Association). This field is mandatory for US, CA, MX shipment confirmations. - attr_accessor :carrier_scac - - # The field also known as PRO number is a unique number assigned by the carrier. It is used to identify and track the shipment that goes out for delivery. This field is mandatory for UA, CA, MX shipment confirmations. - attr_accessor :carrier_shipment_reference_number + # The type of shipment. + attr_accessor :ship_mode # The mode of transportation for this shipment. attr_accessor :transportation_mode + # Date when shipment is performed by the Vendor to Buyer + attr_accessor :shipped_date + + # Estimated Date on which shipment will be delivered from Vendor to Buyer + attr_accessor :estimated_delivery_date + + # Date on which shipment will be delivered from Vendor to Buyer + attr_accessor :shipment_delivery_date + + attr_accessor :carrier_details + # Bill Of Lading (BOL) number is the unique number assigned by the vendor. The BOL present in the Shipment Confirmation message ideally matches the paper BOL provided with the shipment, but that is no must. Instead of BOL, an alternative reference number (like Delivery Note Number) for the shipment can also be sent in this field. attr_accessor :bill_of_lading_number @@ -50,9 +58,12 @@ def valid?(value) # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'carrier_scac' => :'carrierScac', - :'carrier_shipment_reference_number' => :'carrierShipmentReferenceNumber', + :'ship_mode' => :'shipMode', :'transportation_mode' => :'transportationMode', + :'shipped_date' => :'shippedDate', + :'estimated_delivery_date' => :'estimatedDeliveryDate', + :'shipment_delivery_date' => :'shipmentDeliveryDate', + :'carrier_details' => :'carrierDetails', :'bill_of_lading_number' => :'billOfLadingNumber' } end @@ -60,9 +71,12 @@ def self.attribute_map # Attribute type mapping. def self.openapi_types { - :'carrier_scac' => :'Object', - :'carrier_shipment_reference_number' => :'Object', + :'ship_mode' => :'Object', :'transportation_mode' => :'Object', + :'shipped_date' => :'Object', + :'estimated_delivery_date' => :'Object', + :'shipment_delivery_date' => :'Object', + :'carrier_details' => :'Object', :'bill_of_lading_number' => :'Object' } end @@ -88,18 +102,30 @@ def initialize(attributes = {}) h[k.to_sym] = v } - if attributes.key?(:'carrier_scac') - self.carrier_scac = attributes[:'carrier_scac'] - end - - if attributes.key?(:'carrier_shipment_reference_number') - self.carrier_shipment_reference_number = attributes[:'carrier_shipment_reference_number'] + if attributes.key?(:'ship_mode') + self.ship_mode = attributes[:'ship_mode'] end if attributes.key?(:'transportation_mode') self.transportation_mode = attributes[:'transportation_mode'] end + if attributes.key?(:'shipped_date') + self.shipped_date = attributes[:'shipped_date'] + end + + if attributes.key?(:'estimated_delivery_date') + self.estimated_delivery_date = attributes[:'estimated_delivery_date'] + end + + if attributes.key?(:'shipment_delivery_date') + self.shipment_delivery_date = attributes[:'shipment_delivery_date'] + end + + if attributes.key?(:'carrier_details') + self.carrier_details = attributes[:'carrier_details'] + end + if attributes.key?(:'bill_of_lading_number') self.bill_of_lading_number = attributes[:'bill_of_lading_number'] end @@ -115,11 +141,23 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + ship_mode_validator = EnumAttributeValidator.new('Object', ['TruckLoad', 'LessThanTruckLoad', 'SmallParcel']) + return false unless ship_mode_validator.valid?(@ship_mode) transportation_mode_validator = EnumAttributeValidator.new('Object', ['Road', 'Air', 'Ocean']) return false unless transportation_mode_validator.valid?(@transportation_mode) true end + # Custom attribute writer method checking allowed values (enum). + # @param [Object] ship_mode Object to be assigned + def ship_mode=(ship_mode) + validator = EnumAttributeValidator.new('Object', ['TruckLoad', 'LessThanTruckLoad', 'SmallParcel']) + unless validator.valid?(ship_mode) + fail ArgumentError, "invalid value for \"ship_mode\", must be one of #{validator.allowable_values}." + end + @ship_mode = ship_mode + end + # Custom attribute writer method checking allowed values (enum). # @param [Object] transportation_mode Object to be assigned def transportation_mode=(transportation_mode) @@ -135,9 +173,12 @@ def transportation_mode=(transportation_mode) def ==(o) return true if self.equal?(o) self.class == o.class && - carrier_scac == o.carrier_scac && - carrier_shipment_reference_number == o.carrier_shipment_reference_number && + ship_mode == o.ship_mode && transportation_mode == o.transportation_mode && + shipped_date == o.shipped_date && + estimated_delivery_date == o.estimated_delivery_date && + shipment_delivery_date == o.shipment_delivery_date && + carrier_details == o.carrier_details && bill_of_lading_number == o.bill_of_lading_number end @@ -150,7 +191,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [carrier_scac, carrier_shipment_reference_number, transportation_mode, bill_of_lading_number].hash + [ship_mode, transportation_mode, shipped_date, estimated_delivery_date, shipment_delivery_date, carrier_details, bill_of_lading_number].hash end # Builds the object from hash diff --git a/lib/vendor-shipments-api-model/models/transportation_labels.rb b/lib/vendor-shipments-api-model/models/transportation_labels.rb new file mode 100644 index 000000000..f6a0e6f85 --- /dev/null +++ b/lib/vendor-shipments-api-model/models/transportation_labels.rb @@ -0,0 +1,217 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'date' + +module AmzSpApi::VendorShipmentsApiModel + class TransportationLabels + attr_accessor :pagination + + attr_accessor :transport_labels + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'pagination' => :'pagination', + :'transport_labels' => :'transportLabels' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'pagination' => :'Object', + :'transport_labels' => :'Object' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorShipmentsApiModel::TransportationLabels` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorShipmentsApiModel::TransportationLabels`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'pagination') + self.pagination = attributes[:'pagination'] + end + + if attributes.key?(:'transport_labels') + if (value = attributes[:'transport_labels']).is_a?(Array) + self.transport_labels = value + end + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + pagination == o.pagination && + transport_labels == o.transport_labels + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [pagination, transport_labels].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + AmzSpApi::VendorShipmentsApiModel.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end end +end diff --git a/lib/product-pricing-api-model/models/identifier_type.rb b/lib/vendor-shipments-api-model/models/vendor_details.rb similarity index 80% rename from lib/product-pricing-api-model/models/identifier_type.rb rename to lib/vendor-shipments-api-model/models/vendor_details.rb index b22c0c05e..1f4aa68eb 100644 --- a/lib/product-pricing-api-model/models/identifier_type.rb +++ b/lib/vendor-shipments-api-model/models/vendor_details.rb @@ -1,36 +1,37 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Retail Procurement Shipments -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. -OpenAPI spec version: v0 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' -module AmzSpApi::ProductPricingApiModel - # Specifies the identifiers used to uniquely identify an item. - class IdentifierType - attr_accessor :marketplace_asin +module AmzSpApi::VendorShipmentsApiModel + # Vendor Details as part of Label response. + class VendorDetails + attr_accessor :selling_party - attr_accessor :sku_identifier + # Unique vendor shipment id which is not used in last 365 days + attr_accessor :vendor_shipment_id # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'marketplace_asin' => :'MarketplaceASIN', - :'sku_identifier' => :'SKUIdentifier' + :'selling_party' => :'sellingParty', + :'vendor_shipment_id' => :'vendorShipmentId' } end # Attribute type mapping. def self.openapi_types { - :'marketplace_asin' => :'Object', - :'sku_identifier' => :'Object' + :'selling_party' => :'Object', + :'vendor_shipment_id' => :'Object' } end @@ -44,23 +45,23 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::ProductPricingApiModel::IdentifierType` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AmzSpApi::VendorShipmentsApiModel::VendorDetails` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::ProductPricingApiModel::IdentifierType`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AmzSpApi::VendorShipmentsApiModel::VendorDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - if attributes.key?(:'marketplace_asin') - self.marketplace_asin = attributes[:'marketplace_asin'] + if attributes.key?(:'selling_party') + self.selling_party = attributes[:'selling_party'] end - if attributes.key?(:'sku_identifier') - self.sku_identifier = attributes[:'sku_identifier'] + if attributes.key?(:'vendor_shipment_id') + self.vendor_shipment_id = attributes[:'vendor_shipment_id'] end end @@ -68,17 +69,12 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @marketplace_asin.nil? - invalid_properties.push('invalid value for "marketplace_asin", marketplace_asin cannot be nil.') - end - invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @marketplace_asin.nil? true end @@ -87,8 +83,8 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - marketplace_asin == o.marketplace_asin && - sku_identifier == o.sku_identifier + selling_party == o.selling_party && + vendor_shipment_id == o.vendor_shipment_id end # @see the `==` method @@ -100,7 +96,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [marketplace_asin, sku_identifier].hash + [selling_party, vendor_shipment_id].hash end # Builds the object from hash @@ -169,7 +165,7 @@ def _deserialize(type, value) end end else # model - AmzSpApi::ProductPricingApiModel.const_get(type).build_from_hash(value) + AmzSpApi::VendorShipmentsApiModel.const_get(type).build_from_hash(value) end end diff --git a/lib/vendor-shipments-api-model/models/volume.rb b/lib/vendor-shipments-api-model/models/volume.rb index b56179a69..033c71211 100644 --- a/lib/vendor-shipments-api-model/models/volume.rb +++ b/lib/vendor-shipments-api-model/models/volume.rb @@ -6,13 +6,13 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::VendorShipmentsApiModel - # The volume of the container. + # The volume of the shipment. class Volume # The unit of measurement. attr_accessor :unit_of_measure diff --git a/lib/vendor-shipments-api-model/models/weight.rb b/lib/vendor-shipments-api-model/models/weight.rb index 84b985619..4b8da3392 100644 --- a/lib/vendor-shipments-api-model/models/weight.rb +++ b/lib/vendor-shipments-api-model/models/weight.rb @@ -6,13 +6,13 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'date' module AmzSpApi::VendorShipmentsApiModel - # The weight. + # The weight of the shipment. class Weight # The unit of measurement. attr_accessor :unit_of_measure diff --git a/lib/vendor-shipments-api-model/spec/api/vendor_shipping_api_spec.rb b/lib/vendor-shipments-api-model/spec/api/vendor_shipping_api_spec.rb index d370b344b..da5c55bd1 100644 --- a/lib/vendor-shipments-api-model/spec/api/vendor_shipping_api_spec.rb +++ b/lib/vendor-shipments-api-model/spec/api/vendor_shipping_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -31,8 +31,60 @@ end end + # unit tests for get_shipment_details + # Returns the Details about Shipment, Carrier Details, status of the shipment, container details and other details related to shipment based on the filter parameters value that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + # @param [Hash] opts the optional parameters + # @option opts [Integer] :limit The limit to the number of records returned. Default value is 50 records. + # @option opts [String] :sort_order Sort in ascending or descending order by purchase order creation date. + # @option opts [String] :next_token Used for pagination when there are more shipments than the specified result size limit. + # @option opts [DateTime] :created_after Get Shipment Details that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :created_before Get Shipment Details that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :shipment_confirmed_before Get Shipment Details by passing Shipment confirmed create Date Before. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :shipment_confirmed_after Get Shipment Details by passing Shipment confirmed create Date After. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :package_label_created_before Get Shipment Details by passing Package label create Date by buyer. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :package_label_created_after Get Shipment Details by passing Package label create Date After by buyer. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :shipped_before Get Shipment Details by passing Shipped Date Before. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :shipped_after Get Shipment Details by passing Shipped Date After. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :estimated_delivery_before Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :estimated_delivery_after Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :shipment_delivery_before Get Shipment Details by passing Shipment Delivery Date Before. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :shipment_delivery_after Get Shipment Details by passing Shipment Delivery Date After. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :requested_pick_up_before Get Shipment Details by passing Before Requested pickup date. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :requested_pick_up_after Get Shipment Details by passing After Requested pickup date. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :scheduled_pick_up_before Get Shipment Details by passing Before scheduled pickup date. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :scheduled_pick_up_after Get Shipment Details by passing After Scheduled pickup date. Must be in ISO-8601 date/time format. + # @option opts [String] :current_shipment_status Get Shipment Details by passing Current shipment status. + # @option opts [String] :vendor_shipment_identifier Get Shipment Details by passing Vendor Shipment ID + # @option opts [String] :buyer_reference_number Get Shipment Details by passing buyer Reference ID + # @option opts [String] :buyer_warehouse_code Get Shipping Details based on buyer warehouse code. This value should be same as 'shipToParty.partyId' in the Shipment. + # @option opts [String] :seller_warehouse_code Get Shipping Details based on vendor warehouse code. This value should be same as 'sellingParty.partyId' in the Shipment. + # @return [GetShipmentDetailsResponse] + describe 'get_shipment_details test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + # unit tests for get_shipment_labels + # Returns transport Labels based on the filters that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + # @param [Hash] opts the optional parameters + # @option opts [Integer] :limit The limit to the number of records returned. Default value is 50 records. + # @option opts [String] :sort_order Sort in ascending or descending order by transport label creation date. + # @option opts [String] :next_token Used for pagination when there are more transport label than the specified result size limit. + # @option opts [DateTime] :label_created_after transport Labels that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. + # @option opts [DateTime] :labelcreated_before transport Labels that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. + # @option opts [String] :buyer_reference_number Get transport labels by passing Buyer Reference Number to retreive the corresponding transport label. + # @option opts [String] :vendor_shipment_identifier Get transport labels by passing Vendor Shipment ID to retreive the corresponding transport label. + # @option opts [String] :seller_warehouse_code Get Shipping labels based Vendor Warehouse code. This value should be same as 'shipFromParty.partyId' in the Shipment. + # @return [GetShipmentLabels] + describe 'get_shipment_labels test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + # unit tests for submit_shipment_confirmations - # Submits one or more shipment confirmations for vendor orders. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. + # Submits one or more shipment confirmations for vendor orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). # @param body # @param [Hash] opts the optional parameters # @return [SubmitShipmentConfirmationsResponse] @@ -42,4 +94,15 @@ end end + # unit tests for submit_shipments + # Submits one or more shipment request for vendor Orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). + # @param body + # @param [Hash] opts the optional parameters + # @return [SubmitShipmentConfirmationsResponse] + describe 'submit_shipments test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/lib/vendor-shipments-api-model/spec/api_client_spec.rb b/lib/vendor-shipments-api-model/spec/api_client_spec.rb index f07e936eb..ee68e3c8a 100644 --- a/lib/vendor-shipments-api-model/spec/api_client_spec.rb +++ b/lib/vendor-shipments-api-model/spec/api_client_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-shipments-api-model/spec/configuration_spec.rb b/lib/vendor-shipments-api-model/spec/configuration_spec.rb index 01d65ac2d..21460f090 100644 --- a/lib/vendor-shipments-api-model/spec/configuration_spec.rb +++ b/lib/vendor-shipments-api-model/spec/configuration_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-shipments-api-model/spec/models/address_spec.rb b/lib/vendor-shipments-api-model/spec/models/address_spec.rb index d4e623307..5239c270d 100644 --- a/lib/vendor-shipments-api-model/spec/models/address_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/address_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-shipments-api-model/spec/models/carrier_details_spec.rb b/lib/vendor-shipments-api-model/spec/models/carrier_details_spec.rb new file mode 100644 index 000000000..9d010bb5c --- /dev/null +++ b/lib/vendor-shipments-api-model/spec/models/carrier_details_spec.rb @@ -0,0 +1,64 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorShipmentsApiModel::CarrierDetails +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'CarrierDetails' do + before do + # run before each test + @instance = AmzSpApi::VendorShipmentsApiModel::CarrierDetails.new + end + + after do + # run after each test + end + + describe 'test an instance of CarrierDetails' do + it 'should create an instance of CarrierDetails' do + expect(@instance).to be_instance_of(AmzSpApi::VendorShipmentsApiModel::CarrierDetails) + end + end + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "code"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "phone"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "email"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "shipment_reference_number"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/vendor-shipments-api-model/spec/models/carton_reference_details_spec.rb b/lib/vendor-shipments-api-model/spec/models/carton_reference_details_spec.rb index c58d15754..48494082c 100644 --- a/lib/vendor-shipments-api-model/spec/models/carton_reference_details_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/carton_reference_details_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-shipments-api-model/spec/models/carton_spec.rb b/lib/vendor-shipments-api-model/spec/models/carton_spec.rb index 97c3abc58..f9f0e3a7c 100644 --- a/lib/vendor-shipments-api-model/spec/models/carton_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/carton_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-shipments-api-model/spec/models/collect_freight_pickup_details_spec.rb b/lib/vendor-shipments-api-model/spec/models/collect_freight_pickup_details_spec.rb new file mode 100644 index 000000000..49763b511 --- /dev/null +++ b/lib/vendor-shipments-api-model/spec/models/collect_freight_pickup_details_spec.rb @@ -0,0 +1,52 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorShipmentsApiModel::CollectFreightPickupDetails +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'CollectFreightPickupDetails' do + before do + # run before each test + @instance = AmzSpApi::VendorShipmentsApiModel::CollectFreightPickupDetails.new + end + + after do + # run after each test + end + + describe 'test an instance of CollectFreightPickupDetails' do + it 'should create an instance of CollectFreightPickupDetails' do + expect(@instance).to be_instance_of(AmzSpApi::VendorShipmentsApiModel::CollectFreightPickupDetails) + end + end + describe 'test attribute "requested_pick_up"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "scheduled_pick_up"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "carrier_assignment_date"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/vendor-shipments-api-model/spec/models/container_identification_spec.rb b/lib/vendor-shipments-api-model/spec/models/container_identification_spec.rb index 570ad4f05..ecedb168f 100644 --- a/lib/vendor-shipments-api-model/spec/models/container_identification_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/container_identification_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-shipments-api-model/spec/models/container_item_spec.rb b/lib/vendor-shipments-api-model/spec/models/container_item_spec.rb index 2a63a69ff..7b3f04c86 100644 --- a/lib/vendor-shipments-api-model/spec/models/container_item_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/container_item_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-shipments-api-model/spec/models/container_sequence_numbers_spec.rb b/lib/vendor-shipments-api-model/spec/models/container_sequence_numbers_spec.rb new file mode 100644 index 000000000..a6ee57ed2 --- /dev/null +++ b/lib/vendor-shipments-api-model/spec/models/container_sequence_numbers_spec.rb @@ -0,0 +1,40 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorShipmentsApiModel::ContainerSequenceNumbers +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'ContainerSequenceNumbers' do + before do + # run before each test + @instance = AmzSpApi::VendorShipmentsApiModel::ContainerSequenceNumbers.new + end + + after do + # run after each test + end + + describe 'test an instance of ContainerSequenceNumbers' do + it 'should create an instance of ContainerSequenceNumbers' do + expect(@instance).to be_instance_of(AmzSpApi::VendorShipmentsApiModel::ContainerSequenceNumbers) + end + end + describe 'test attribute "container_sequence_number"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/product-pricing-api-model/spec/models/summary_spec.rb b/lib/vendor-shipments-api-model/spec/models/containers_spec.rb similarity index 58% rename from lib/product-pricing-api-model/spec/models/summary_spec.rb rename to lib/vendor-shipments-api-model/spec/models/containers_spec.rb index c5c75d626..ee4219ad0 100644 --- a/lib/product-pricing-api-model/spec/models/summary_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/containers_spec.rb @@ -1,91 +1,95 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Retail Procurement Shipments -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. -OpenAPI spec version: v0 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' require 'json' require 'date' -# Unit tests for AmzSpApi::ProductPricingApiModel::Summary +# Unit tests for AmzSpApi::VendorShipmentsApiModel::Containers # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'Summary' do +describe 'Containers' do before do # run before each test - @instance = AmzSpApi::ProductPricingApiModel::Summary.new + @instance = AmzSpApi::VendorShipmentsApiModel::Containers.new end after do # run after each test end - describe 'test an instance of Summary' do - it 'should create an instance of Summary' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::Summary) + describe 'test an instance of Containers' do + it 'should create an instance of Containers' do + expect(@instance).to be_instance_of(AmzSpApi::VendorShipmentsApiModel::Containers) end end - describe 'test attribute "total_offer_count"' do + describe 'test attribute "container_type"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["carton", "pallet"]) + # validator.allowable_values.each do |value| + # expect { @instance.container_type = value }.not_to raise_error + # end end end - describe 'test attribute "number_of_offers"' do + describe 'test attribute "container_sequence_number"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "lowest_prices"' do + describe 'test attribute "container_identifiers"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "buy_box_prices"' do + describe 'test attribute "tracking_number"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "list_price"' do + describe 'test attribute "dimensions"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "competitive_price_threshold"' do + describe 'test attribute "weight"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "suggested_lower_price_plus_shipping"' do + describe 'test attribute "tier"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "sales_rankings"' do + describe 'test attribute "block"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "buy_box_eligible_offers"' do + describe 'test attribute "inner_containers_details"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "offers_available_time"' do + describe 'test attribute "packed_items"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/lib/vendor-shipments-api-model/spec/models/decimal_spec.rb b/lib/vendor-shipments-api-model/spec/models/decimal_spec.rb index 62f7e036f..3330da764 100644 --- a/lib/vendor-shipments-api-model/spec/models/decimal_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/decimal_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-shipments-api-model/spec/models/dimensions_spec.rb b/lib/vendor-shipments-api-model/spec/models/dimensions_spec.rb index 9f75af57a..c012c728f 100644 --- a/lib/vendor-shipments-api-model/spec/models/dimensions_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/dimensions_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-shipments-api-model/spec/models/duration_spec.rb b/lib/vendor-shipments-api-model/spec/models/duration_spec.rb index 05ace40e1..45eda8ea8 100644 --- a/lib/vendor-shipments-api-model/spec/models/duration_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/duration_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-shipments-api-model/spec/models/error_list_spec.rb b/lib/vendor-shipments-api-model/spec/models/error_list_spec.rb index b57d3c4b2..2ff739cef 100644 --- a/lib/vendor-shipments-api-model/spec/models/error_list_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/error_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-shipments-api-model/spec/models/error_spec.rb b/lib/vendor-shipments-api-model/spec/models/error_spec.rb index 89cb9c17d..af00fc0cd 100644 --- a/lib/vendor-shipments-api-model/spec/models/error_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/error_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-shipments-api-model/spec/models/expiry_spec.rb b/lib/vendor-shipments-api-model/spec/models/expiry_spec.rb index 26dad9613..ea145c94e 100644 --- a/lib/vendor-shipments-api-model/spec/models/expiry_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/expiry_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-shipments-api-model/spec/models/get_shipment_details_response_spec.rb b/lib/vendor-shipments-api-model/spec/models/get_shipment_details_response_spec.rb new file mode 100644 index 000000000..159c67216 --- /dev/null +++ b/lib/vendor-shipments-api-model/spec/models/get_shipment_details_response_spec.rb @@ -0,0 +1,46 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorShipmentsApiModel::GetShipmentDetailsResponse +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'GetShipmentDetailsResponse' do + before do + # run before each test + @instance = AmzSpApi::VendorShipmentsApiModel::GetShipmentDetailsResponse.new + end + + after do + # run after each test + end + + describe 'test an instance of GetShipmentDetailsResponse' do + it 'should create an instance of GetShipmentDetailsResponse' do + expect(@instance).to be_instance_of(AmzSpApi::VendorShipmentsApiModel::GetShipmentDetailsResponse) + end + end + describe 'test attribute "payload"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "errors"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/product-pricing-api-model/spec/models/get_offers_response_spec.rb b/lib/vendor-shipments-api-model/spec/models/get_shipment_labels_spec.rb similarity index 54% rename from lib/product-pricing-api-model/spec/models/get_offers_response_spec.rb rename to lib/vendor-shipments-api-model/spec/models/get_shipment_labels_spec.rb index ec9ac28d6..6f409d6c6 100644 --- a/lib/product-pricing-api-model/spec/models/get_offers_response_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/get_shipment_labels_spec.rb @@ -1,34 +1,34 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Retail Procurement Shipments -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. -OpenAPI spec version: v0 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' require 'json' require 'date' -# Unit tests for AmzSpApi::ProductPricingApiModel::GetOffersResponse +# Unit tests for AmzSpApi::VendorShipmentsApiModel::GetShipmentLabels # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'GetOffersResponse' do +describe 'GetShipmentLabels' do before do # run before each test - @instance = AmzSpApi::ProductPricingApiModel::GetOffersResponse.new + @instance = AmzSpApi::VendorShipmentsApiModel::GetShipmentLabels.new end after do # run after each test end - describe 'test an instance of GetOffersResponse' do - it 'should create an instance of GetOffersResponse' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::GetOffersResponse) + describe 'test an instance of GetShipmentLabels' do + it 'should create an instance of GetShipmentLabels' do + expect(@instance).to be_instance_of(AmzSpApi::VendorShipmentsApiModel::GetShipmentLabels) end end describe 'test attribute "payload"' do diff --git a/lib/vendor-shipments-api-model/spec/models/import_details_spec.rb b/lib/vendor-shipments-api-model/spec/models/import_details_spec.rb index e72ece919..1c7cef87c 100644 --- a/lib/vendor-shipments-api-model/spec/models/import_details_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/import_details_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -71,4 +71,14 @@ end end + describe 'test attribute "handling_instructions"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Oversized", "Fragile", "Food", "HandleWithCare"]) + # validator.allowable_values.each do |value| + # expect { @instance.handling_instructions = value }.not_to raise_error + # end + end + end + end diff --git a/lib/vendor-shipments-api-model/spec/models/inner_containers_details_spec.rb b/lib/vendor-shipments-api-model/spec/models/inner_containers_details_spec.rb new file mode 100644 index 000000000..abdc63caa --- /dev/null +++ b/lib/vendor-shipments-api-model/spec/models/inner_containers_details_spec.rb @@ -0,0 +1,46 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorShipmentsApiModel::InnerContainersDetails +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'InnerContainersDetails' do + before do + # run before each test + @instance = AmzSpApi::VendorShipmentsApiModel::InnerContainersDetails.new + end + + after do + # run after each test + end + + describe 'test an instance of InnerContainersDetails' do + it 'should create an instance of InnerContainersDetails' do + expect(@instance).to be_instance_of(AmzSpApi::VendorShipmentsApiModel::InnerContainersDetails) + end + end + describe 'test attribute "container_count"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "container_sequence_numbers"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/vendor-shipments-api-model/spec/models/item_details_spec.rb b/lib/vendor-shipments-api-model/spec/models/item_details_spec.rb index e84a3aae3..0fb5c1c09 100644 --- a/lib/vendor-shipments-api-model/spec/models/item_details_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/item_details_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-shipments-api-model/spec/models/item_quantity_spec.rb b/lib/vendor-shipments-api-model/spec/models/item_quantity_spec.rb index ff897a5e9..03e3fbc9e 100644 --- a/lib/vendor-shipments-api-model/spec/models/item_quantity_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/item_quantity_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-shipments-api-model/spec/models/item_spec.rb b/lib/vendor-shipments-api-model/spec/models/item_spec.rb index f5faf1037..2fc75cba4 100644 --- a/lib/vendor-shipments-api-model/spec/models/item_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/item_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-pricing-api-model/spec/models/detailed_shipping_time_type_spec.rb b/lib/vendor-shipments-api-model/spec/models/label_data_spec.rb similarity index 50% rename from lib/product-pricing-api-model/spec/models/detailed_shipping_time_type_spec.rb rename to lib/vendor-shipments-api-model/spec/models/label_data_spec.rb index 7295e1bb7..2bb593bad 100644 --- a/lib/product-pricing-api-model/spec/models/detailed_shipping_time_type_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/label_data_spec.rb @@ -1,61 +1,67 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Retail Procurement Shipments -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. -OpenAPI spec version: v0 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' require 'json' require 'date' -# Unit tests for AmzSpApi::ProductPricingApiModel::DetailedShippingTimeType +# Unit tests for AmzSpApi::VendorShipmentsApiModel::LabelData # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'DetailedShippingTimeType' do +describe 'LabelData' do before do # run before each test - @instance = AmzSpApi::ProductPricingApiModel::DetailedShippingTimeType.new + @instance = AmzSpApi::VendorShipmentsApiModel::LabelData.new end after do # run after each test end - describe 'test an instance of DetailedShippingTimeType' do - it 'should create an instance of DetailedShippingTimeType' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::DetailedShippingTimeType) + describe 'test an instance of LabelData' do + it 'should create an instance of LabelData' do + expect(@instance).to be_instance_of(AmzSpApi::VendorShipmentsApiModel::LabelData) end end - describe 'test attribute "minimum_hours"' do + describe 'test attribute "label_sequence_number"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "maximum_hours"' do + describe 'test attribute "label_format"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PDF"]) + # validator.allowable_values.each do |value| + # expect { @instance.label_format = value }.not_to raise_error + # end end end - describe 'test attribute "available_date"' do + describe 'test attribute "carrier_code"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "availability_type"' do + describe 'test attribute "tracking_id"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "label"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["NOW", "FUTURE_WITHOUT_DATE", "FUTURE_WITH_DATE"]) - # validator.allowable_values.each do |value| - # expect { @instance.availability_type = value }.not_to raise_error - # end end end diff --git a/lib/vendor-shipments-api-model/spec/models/location_spec.rb b/lib/vendor-shipments-api-model/spec/models/location_spec.rb index ffe5327ca..2ae39b554 100644 --- a/lib/vendor-shipments-api-model/spec/models/location_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/location_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-shipments-api-model/spec/models/money_spec.rb b/lib/vendor-shipments-api-model/spec/models/money_spec.rb index 142a3b6c2..8802b2b16 100644 --- a/lib/vendor-shipments-api-model/spec/models/money_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/money_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-shipments-api-model/spec/models/package_item_details_spec.rb b/lib/vendor-shipments-api-model/spec/models/package_item_details_spec.rb new file mode 100644 index 000000000..764208e6a --- /dev/null +++ b/lib/vendor-shipments-api-model/spec/models/package_item_details_spec.rb @@ -0,0 +1,52 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorShipmentsApiModel::PackageItemDetails +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'PackageItemDetails' do + before do + # run before each test + @instance = AmzSpApi::VendorShipmentsApiModel::PackageItemDetails.new + end + + after do + # run after each test + end + + describe 'test an instance of PackageItemDetails' do + it 'should create an instance of PackageItemDetails' do + expect(@instance).to be_instance_of(AmzSpApi::VendorShipmentsApiModel::PackageItemDetails) + end + end + describe 'test attribute "purchase_order_number"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "lot_number"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "expiry"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/vendor-shipments-api-model/spec/models/packed_items_spec.rb b/lib/vendor-shipments-api-model/spec/models/packed_items_spec.rb new file mode 100644 index 000000000..50dbe9b30 --- /dev/null +++ b/lib/vendor-shipments-api-model/spec/models/packed_items_spec.rb @@ -0,0 +1,64 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorShipmentsApiModel::PackedItems +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'PackedItems' do + before do + # run before each test + @instance = AmzSpApi::VendorShipmentsApiModel::PackedItems.new + end + + after do + # run after each test + end + + describe 'test an instance of PackedItems' do + it 'should create an instance of PackedItems' do + expect(@instance).to be_instance_of(AmzSpApi::VendorShipmentsApiModel::PackedItems) + end + end + describe 'test attribute "item_sequence_number"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "buyer_product_identifier"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "vendor_product_identifier"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "packed_quantity"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "item_details"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/vendor-shipments-api-model/spec/models/packed_quantity_spec.rb b/lib/vendor-shipments-api-model/spec/models/packed_quantity_spec.rb new file mode 100644 index 000000000..b6214e29d --- /dev/null +++ b/lib/vendor-shipments-api-model/spec/models/packed_quantity_spec.rb @@ -0,0 +1,56 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorShipmentsApiModel::PackedQuantity +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'PackedQuantity' do + before do + # run before each test + @instance = AmzSpApi::VendorShipmentsApiModel::PackedQuantity.new + end + + after do + # run after each test + end + + describe 'test an instance of PackedQuantity' do + it 'should create an instance of PackedQuantity' do + expect(@instance).to be_instance_of(AmzSpApi::VendorShipmentsApiModel::PackedQuantity) + end + end + describe 'test attribute "amount"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "unit_of_measure"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Cases", "Eaches"]) + # validator.allowable_values.each do |value| + # expect { @instance.unit_of_measure = value }.not_to raise_error + # end + end + end + + describe 'test attribute "unit_size"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/vendor-shipments-api-model/spec/models/pagination_spec.rb b/lib/vendor-shipments-api-model/spec/models/pagination_spec.rb new file mode 100644 index 000000000..da0529007 --- /dev/null +++ b/lib/vendor-shipments-api-model/spec/models/pagination_spec.rb @@ -0,0 +1,40 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorShipmentsApiModel::Pagination +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'Pagination' do + before do + # run before each test + @instance = AmzSpApi::VendorShipmentsApiModel::Pagination.new + end + + after do + # run after each test + end + + describe 'test an instance of Pagination' do + it 'should create an instance of Pagination' do + expect(@instance).to be_instance_of(AmzSpApi::VendorShipmentsApiModel::Pagination) + end + end + describe 'test attribute "next_token"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/vendor-shipments-api-model/spec/models/pallet_spec.rb b/lib/vendor-shipments-api-model/spec/models/pallet_spec.rb index bedecc5a8..902df2904 100644 --- a/lib/vendor-shipments-api-model/spec/models/pallet_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/pallet_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-shipments-api-model/spec/models/party_identification_spec.rb b/lib/vendor-shipments-api-model/spec/models/party_identification_spec.rb index 1504995d1..186aedcde 100644 --- a/lib/vendor-shipments-api-model/spec/models/party_identification_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/party_identification_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-shipments-api-model/spec/models/purchase_order_item_details_spec.rb b/lib/vendor-shipments-api-model/spec/models/purchase_order_item_details_spec.rb new file mode 100644 index 000000000..c28820de9 --- /dev/null +++ b/lib/vendor-shipments-api-model/spec/models/purchase_order_item_details_spec.rb @@ -0,0 +1,40 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorShipmentsApiModel::PurchaseOrderItemDetails +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'PurchaseOrderItemDetails' do + before do + # run before each test + @instance = AmzSpApi::VendorShipmentsApiModel::PurchaseOrderItemDetails.new + end + + after do + # run after each test + end + + describe 'test an instance of PurchaseOrderItemDetails' do + it 'should create an instance of PurchaseOrderItemDetails' do + expect(@instance).to be_instance_of(AmzSpApi::VendorShipmentsApiModel::PurchaseOrderItemDetails) + end + end + describe 'test attribute "maximum_retail_price"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/vendor-shipments-api-model/spec/models/purchase_order_items_spec.rb b/lib/vendor-shipments-api-model/spec/models/purchase_order_items_spec.rb new file mode 100644 index 000000000..0880d0ea8 --- /dev/null +++ b/lib/vendor-shipments-api-model/spec/models/purchase_order_items_spec.rb @@ -0,0 +1,64 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorShipmentsApiModel::PurchaseOrderItems +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'PurchaseOrderItems' do + before do + # run before each test + @instance = AmzSpApi::VendorShipmentsApiModel::PurchaseOrderItems.new + end + + after do + # run after each test + end + + describe 'test an instance of PurchaseOrderItems' do + it 'should create an instance of PurchaseOrderItems' do + expect(@instance).to be_instance_of(AmzSpApi::VendorShipmentsApiModel::PurchaseOrderItems) + end + end + describe 'test attribute "item_sequence_number"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "buyer_product_identifier"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "vendor_product_identifier"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "shipped_quantity"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "maximum_retail_price"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/product-pricing-api-model/spec/models/price_type_spec.rb b/lib/vendor-shipments-api-model/spec/models/purchase_orders_spec.rb similarity index 54% rename from lib/product-pricing-api-model/spec/models/price_type_spec.rb rename to lib/vendor-shipments-api-model/spec/models/purchase_orders_spec.rb index b1f56440f..965e0aab7 100644 --- a/lib/product-pricing-api-model/spec/models/price_type_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/purchase_orders_spec.rb @@ -1,55 +1,55 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Retail Procurement Shipments -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. -OpenAPI spec version: v0 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' require 'json' require 'date' -# Unit tests for AmzSpApi::ProductPricingApiModel::PriceType +# Unit tests for AmzSpApi::VendorShipmentsApiModel::PurchaseOrders # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'PriceType' do +describe 'PurchaseOrders' do before do # run before each test - @instance = AmzSpApi::ProductPricingApiModel::PriceType.new + @instance = AmzSpApi::VendorShipmentsApiModel::PurchaseOrders.new end after do # run after each test end - describe 'test an instance of PriceType' do - it 'should create an instance of PriceType' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::PriceType) + describe 'test an instance of PurchaseOrders' do + it 'should create an instance of PurchaseOrders' do + expect(@instance).to be_instance_of(AmzSpApi::VendorShipmentsApiModel::PurchaseOrders) end end - describe 'test attribute "landed_price"' do + describe 'test attribute "purchase_order_number"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "listing_price"' do + describe 'test attribute "purchase_order_date"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "shipping"' do + describe 'test attribute "ship_window"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "points"' do + describe 'test attribute "items"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/lib/vendor-shipments-api-model/spec/models/route_spec.rb b/lib/vendor-shipments-api-model/spec/models/route_spec.rb index fd889d77c..5d9e04a91 100644 --- a/lib/vendor-shipments-api-model/spec/models/route_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/route_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-shipments-api-model/spec/models/shipment_confirmation_spec.rb b/lib/vendor-shipments-api-model/spec/models/shipment_confirmation_spec.rb index 4484d3575..8e8a6beb2 100644 --- a/lib/vendor-shipments-api-model/spec/models/shipment_confirmation_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/shipment_confirmation_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-shipments-api-model/spec/models/shipment_details_spec.rb b/lib/vendor-shipments-api-model/spec/models/shipment_details_spec.rb new file mode 100644 index 000000000..cd39111c7 --- /dev/null +++ b/lib/vendor-shipments-api-model/spec/models/shipment_details_spec.rb @@ -0,0 +1,46 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorShipmentsApiModel::ShipmentDetails +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'ShipmentDetails' do + before do + # run before each test + @instance = AmzSpApi::VendorShipmentsApiModel::ShipmentDetails.new + end + + after do + # run after each test + end + + describe 'test an instance of ShipmentDetails' do + it 'should create an instance of ShipmentDetails' do + expect(@instance).to be_instance_of(AmzSpApi::VendorShipmentsApiModel::ShipmentDetails) + end + end + describe 'test attribute "pagination"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "shipments"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/product-pricing-api-model/spec/models/competitive_price_type_spec.rb b/lib/vendor-shipments-api-model/spec/models/shipment_information_spec.rb similarity index 54% rename from lib/product-pricing-api-model/spec/models/competitive_price_type_spec.rb rename to lib/vendor-shipments-api-model/spec/models/shipment_information_spec.rb index 7b0897024..4976c9753 100644 --- a/lib/product-pricing-api-model/spec/models/competitive_price_type_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/shipment_information_spec.rb @@ -1,87 +1,85 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Retail Procurement Shipments -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. -OpenAPI spec version: v0 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' require 'json' require 'date' -# Unit tests for AmzSpApi::ProductPricingApiModel::CompetitivePriceType +# Unit tests for AmzSpApi::VendorShipmentsApiModel::ShipmentInformation # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'CompetitivePriceType' do +describe 'ShipmentInformation' do before do # run before each test - @instance = AmzSpApi::ProductPricingApiModel::CompetitivePriceType.new + @instance = AmzSpApi::VendorShipmentsApiModel::ShipmentInformation.new end after do # run after each test end - describe 'test an instance of CompetitivePriceType' do - it 'should create an instance of CompetitivePriceType' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::CompetitivePriceType) + describe 'test an instance of ShipmentInformation' do + it 'should create an instance of ShipmentInformation' do + expect(@instance).to be_instance_of(AmzSpApi::VendorShipmentsApiModel::ShipmentInformation) end end - describe 'test attribute "competitive_price_id"' do + describe 'test attribute "vendor_details"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "price"' do + describe 'test attribute "buyer_reference_number"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "condition"' do + describe 'test attribute "ship_to_party"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "subcondition"' do + describe 'test attribute "ship_from_party"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "offer_type"' do + describe 'test attribute "warehouse_id"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "quantity_tier"' do + describe 'test attribute "master_tracking_id"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "quantity_discount_type"' do + describe 'test attribute "total_label_count"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "seller_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "belongs_to_requester"' do + describe 'test attribute "ship_mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["SmallParcel", "LTL"]) + # validator.allowable_values.each do |value| + # expect { @instance.ship_mode = value }.not_to raise_error + # end end end diff --git a/lib/vendor-shipments-api-model/spec/models/shipment_measurements_spec.rb b/lib/vendor-shipments-api-model/spec/models/shipment_measurements_spec.rb index 88557a6c9..13dade30b 100644 --- a/lib/vendor-shipments-api-model/spec/models/shipment_measurements_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/shipment_measurements_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-shipments-api-model/spec/models/shipment_spec.rb b/lib/vendor-shipments-api-model/spec/models/shipment_spec.rb new file mode 100644 index 000000000..c258eace9 --- /dev/null +++ b/lib/vendor-shipments-api-model/spec/models/shipment_spec.rb @@ -0,0 +1,166 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorShipmentsApiModel::Shipment +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'Shipment' do + before do + # run before each test + @instance = AmzSpApi::VendorShipmentsApiModel::Shipment.new + end + + after do + # run after each test + end + + describe 'test an instance of Shipment' do + it 'should create an instance of Shipment' do + expect(@instance).to be_instance_of(AmzSpApi::VendorShipmentsApiModel::Shipment) + end + end + describe 'test attribute "vendor_shipment_identifier"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "transaction_type"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["New", "Cancel"]) + # validator.allowable_values.each do |value| + # expect { @instance.transaction_type = value }.not_to raise_error + # end + end + end + + describe 'test attribute "buyer_reference_number"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "transaction_date"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "current_shipment_status"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Created", "TransportationRequested", "CarrierAssigned", "Shipped"]) + # validator.allowable_values.each do |value| + # expect { @instance.current_shipment_status = value }.not_to raise_error + # end + end + end + + describe 'test attribute "currentshipment_status_date"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "shipment_status_details"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "shipment_create_date"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "shipment_confirm_date"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "package_label_create_date"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "shipment_freight_term"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Collect", "Prepaid"]) + # validator.allowable_values.each do |value| + # expect { @instance.shipment_freight_term = value }.not_to raise_error + # end + end + end + + describe 'test attribute "selling_party"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "ship_from_party"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "ship_to_party"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "shipment_measurements"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "collect_freight_pickup_details"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "purchase_orders"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "import_details"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "containers"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "transportation_details"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/vendor-shipments-api-model/spec/models/shipment_status_details_spec.rb b/lib/vendor-shipments-api-model/spec/models/shipment_status_details_spec.rb new file mode 100644 index 000000000..56089011f --- /dev/null +++ b/lib/vendor-shipments-api-model/spec/models/shipment_status_details_spec.rb @@ -0,0 +1,50 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorShipmentsApiModel::ShipmentStatusDetails +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'ShipmentStatusDetails' do + before do + # run before each test + @instance = AmzSpApi::VendorShipmentsApiModel::ShipmentStatusDetails.new + end + + after do + # run after each test + end + + describe 'test an instance of ShipmentStatusDetails' do + it 'should create an instance of ShipmentStatusDetails' do + expect(@instance).to be_instance_of(AmzSpApi::VendorShipmentsApiModel::ShipmentStatusDetails) + end + end + describe 'test attribute "shipment_status"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Created", "TransportationRequested", "CarrierAssigned", "Shipped"]) + # validator.allowable_values.each do |value| + # expect { @instance.shipment_status = value }.not_to raise_error + # end + end + end + + describe 'test attribute "shipment_status_date"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/vendor-shipments-api-model/spec/models/stop_spec.rb b/lib/vendor-shipments-api-model/spec/models/stop_spec.rb index b9004887a..d8ed2246d 100644 --- a/lib/vendor-shipments-api-model/spec/models/stop_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/stop_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-shipments-api-model/spec/models/submit_shipment_confirmations_request_spec.rb b/lib/vendor-shipments-api-model/spec/models/submit_shipment_confirmations_request_spec.rb index d44593cd7..185214127 100644 --- a/lib/vendor-shipments-api-model/spec/models/submit_shipment_confirmations_request_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/submit_shipment_confirmations_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-shipments-api-model/spec/models/submit_shipment_confirmations_response_spec.rb b/lib/vendor-shipments-api-model/spec/models/submit_shipment_confirmations_response_spec.rb index 2ed1d61bd..95c58e6e6 100644 --- a/lib/vendor-shipments-api-model/spec/models/submit_shipment_confirmations_response_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/submit_shipment_confirmations_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-shipments-api-model/spec/models/submit_shipments_spec.rb b/lib/vendor-shipments-api-model/spec/models/submit_shipments_spec.rb new file mode 100644 index 000000000..6942e503c --- /dev/null +++ b/lib/vendor-shipments-api-model/spec/models/submit_shipments_spec.rb @@ -0,0 +1,40 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorShipmentsApiModel::SubmitShipments +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'SubmitShipments' do + before do + # run before each test + @instance = AmzSpApi::VendorShipmentsApiModel::SubmitShipments.new + end + + after do + # run after each test + end + + describe 'test an instance of SubmitShipments' do + it 'should create an instance of SubmitShipments' do + expect(@instance).to be_instance_of(AmzSpApi::VendorShipmentsApiModel::SubmitShipments) + end + end + describe 'test attribute "shipments"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/vendor-shipments-api-model/spec/models/tax_registration_details_spec.rb b/lib/vendor-shipments-api-model/spec/models/tax_registration_details_spec.rb index 85119af95..e7b86e909 100644 --- a/lib/vendor-shipments-api-model/spec/models/tax_registration_details_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/tax_registration_details_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-shipments-api-model/spec/models/transaction_reference_spec.rb b/lib/vendor-shipments-api-model/spec/models/transaction_reference_spec.rb index 37aa6489d..6e689da0c 100644 --- a/lib/vendor-shipments-api-model/spec/models/transaction_reference_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/transaction_reference_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/product-pricing-api-model/spec/models/seller_sku_identifier_spec.rb b/lib/vendor-shipments-api-model/spec/models/transport_label_spec.rb similarity index 50% rename from lib/product-pricing-api-model/spec/models/seller_sku_identifier_spec.rb rename to lib/vendor-shipments-api-model/spec/models/transport_label_spec.rb index b1883eb04..f862c0647 100644 --- a/lib/product-pricing-api-model/spec/models/seller_sku_identifier_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/transport_label_spec.rb @@ -1,49 +1,49 @@ =begin -#Selling Partner API for Pricing +#Selling Partner API for Retail Procurement Shipments -#The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. -OpenAPI spec version: v0 +OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' require 'json' require 'date' -# Unit tests for AmzSpApi::ProductPricingApiModel::SellerSKUIdentifier +# Unit tests for AmzSpApi::VendorShipmentsApiModel::TransportLabel # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'SellerSKUIdentifier' do +describe 'TransportLabel' do before do # run before each test - @instance = AmzSpApi::ProductPricingApiModel::SellerSKUIdentifier.new + @instance = AmzSpApi::VendorShipmentsApiModel::TransportLabel.new end after do # run after each test end - describe 'test an instance of SellerSKUIdentifier' do - it 'should create an instance of SellerSKUIdentifier' do - expect(@instance).to be_instance_of(AmzSpApi::ProductPricingApiModel::SellerSKUIdentifier) + describe 'test an instance of TransportLabel' do + it 'should create an instance of TransportLabel' do + expect(@instance).to be_instance_of(AmzSpApi::VendorShipmentsApiModel::TransportLabel) end end - describe 'test attribute "marketplace_id"' do + describe 'test attribute "label_create_date_time"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "seller_id"' do + describe 'test attribute "shipment_information"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "seller_sku"' do + describe 'test attribute "label_data"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/lib/vendor-shipments-api-model/spec/models/transport_shipment_measurements_spec.rb b/lib/vendor-shipments-api-model/spec/models/transport_shipment_measurements_spec.rb new file mode 100644 index 000000000..626120ab3 --- /dev/null +++ b/lib/vendor-shipments-api-model/spec/models/transport_shipment_measurements_spec.rb @@ -0,0 +1,64 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorShipmentsApiModel::TransportShipmentMeasurements +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'TransportShipmentMeasurements' do + before do + # run before each test + @instance = AmzSpApi::VendorShipmentsApiModel::TransportShipmentMeasurements.new + end + + after do + # run after each test + end + + describe 'test an instance of TransportShipmentMeasurements' do + it 'should create an instance of TransportShipmentMeasurements' do + expect(@instance).to be_instance_of(AmzSpApi::VendorShipmentsApiModel::TransportShipmentMeasurements) + end + end + describe 'test attribute "total_carton_count"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "total_pallet_stackable"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "total_pallet_non_stackable"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "shipment_weight"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "shipment_volume"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/vendor-shipments-api-model/spec/models/transportation_details_spec.rb b/lib/vendor-shipments-api-model/spec/models/transportation_details_spec.rb index a2ead2f88..7c39ab2bc 100644 --- a/lib/vendor-shipments-api-model/spec/models/transportation_details_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/transportation_details_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' @@ -31,15 +31,13 @@ expect(@instance).to be_instance_of(AmzSpApi::VendorShipmentsApiModel::TransportationDetails) end end - describe 'test attribute "carrier_scac"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "carrier_shipment_reference_number"' do + describe 'test attribute "ship_mode"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["TruckLoad", "LessThanTruckLoad", "SmallParcel"]) + # validator.allowable_values.each do |value| + # expect { @instance.ship_mode = value }.not_to raise_error + # end end end @@ -53,6 +51,30 @@ end end + describe 'test attribute "shipped_date"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "estimated_delivery_date"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "shipment_delivery_date"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "carrier_details"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "bill_of_lading_number"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/lib/vendor-shipments-api-model/spec/models/transportation_labels_spec.rb b/lib/vendor-shipments-api-model/spec/models/transportation_labels_spec.rb new file mode 100644 index 000000000..0364d3325 --- /dev/null +++ b/lib/vendor-shipments-api-model/spec/models/transportation_labels_spec.rb @@ -0,0 +1,46 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorShipmentsApiModel::TransportationLabels +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'TransportationLabels' do + before do + # run before each test + @instance = AmzSpApi::VendorShipmentsApiModel::TransportationLabels.new + end + + after do + # run after each test + end + + describe 'test an instance of TransportationLabels' do + it 'should create an instance of TransportationLabels' do + expect(@instance).to be_instance_of(AmzSpApi::VendorShipmentsApiModel::TransportationLabels) + end + end + describe 'test attribute "pagination"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "transport_labels"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/vendor-shipments-api-model/spec/models/vendor_details_spec.rb b/lib/vendor-shipments-api-model/spec/models/vendor_details_spec.rb new file mode 100644 index 000000000..568b0185e --- /dev/null +++ b/lib/vendor-shipments-api-model/spec/models/vendor_details_spec.rb @@ -0,0 +1,46 @@ +=begin +#Selling Partner API for Retail Procurement Shipments + +#The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors. + +OpenAPI spec version: v1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 3.0.46 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for AmzSpApi::VendorShipmentsApiModel::VendorDetails +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'VendorDetails' do + before do + # run before each test + @instance = AmzSpApi::VendorShipmentsApiModel::VendorDetails.new + end + + after do + # run after each test + end + + describe 'test an instance of VendorDetails' do + it 'should create an instance of VendorDetails' do + expect(@instance).to be_instance_of(AmzSpApi::VendorShipmentsApiModel::VendorDetails) + end + end + describe 'test attribute "selling_party"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "vendor_shipment_id"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/lib/vendor-shipments-api-model/spec/models/volume_spec.rb b/lib/vendor-shipments-api-model/spec/models/volume_spec.rb index 1610e9403..635a36094 100644 --- a/lib/vendor-shipments-api-model/spec/models/volume_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/volume_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-shipments-api-model/spec/models/weight_spec.rb b/lib/vendor-shipments-api-model/spec/models/weight_spec.rb index fcf34bfe9..b48298b90 100644 --- a/lib/vendor-shipments-api-model/spec/models/weight_spec.rb +++ b/lib/vendor-shipments-api-model/spec/models/weight_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end require 'spec_helper' diff --git a/lib/vendor-shipments-api-model/spec/spec_helper.rb b/lib/vendor-shipments-api-model/spec/spec_helper.rb index 7811b43a4..47a52b154 100644 --- a/lib/vendor-shipments-api-model/spec/spec_helper.rb +++ b/lib/vendor-shipments-api-model/spec/spec_helper.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end # load the gem diff --git a/lib/vendor-shipments-api-model/version.rb b/lib/vendor-shipments-api-model/version.rb index 74ef0d1e0..7a96c62ab 100644 --- a/lib/vendor-shipments-api-model/version.rb +++ b/lib/vendor-shipments-api-model/version.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 3.0.24 +Swagger Codegen version: 3.0.46 =end module AmzSpApi::VendorShipmentsApiModel