Skip to content

Commit

Permalink
feat: update order api v0 (#1051)
Browse files Browse the repository at this point in the history
**API changes**
[Orders API
v0](https://developer-docs.amazon.com/sp-api/docs/orders-api-v0-reference)
Added the the CompanyName attribute to the [Orders API
v0](https://developer-docs.amazon.com/sp-api/docs/orders-api-v0-reference)
API.

**BREAKING CHANGE:** 
Updated the IsBuyerRequestedCancel, IsGift and NumberOfItems object
types from boolean/integer to string.

Co-authored-by: nguyentoanit <[email protected]>
  • Loading branch information
github-actions[bot] and nguyentoanit authored May 2, 2024
1 parent e59a842 commit ac536be
Show file tree
Hide file tree
Showing 9 changed files with 288 additions and 252 deletions.
38 changes: 19 additions & 19 deletions src/api-models/easy-ship-model/api.ts

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions src/api-models/feeds-api-model-v20210630/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export interface CreateFeedSpecification {
*/
export interface ErrorList {
/**
*
* An error response returned when the request is unsuccessful.
* @type {Array<Error>}
* @memberof ErrorList
*/
Expand Down Expand Up @@ -244,7 +244,7 @@ export interface ModelError {
*/
code: string;
/**
* A message that describes the error condition in a human-readable form.
* A message that describes the error condition.
* @type {string}
* @memberof ModelError
*/
Expand Down Expand Up @@ -298,7 +298,7 @@ export const FeedsApiAxiosParamCreator = function (configuration?: Configuration
},
/**
* Creates a feed. Upload the contents of the feed document before calling this operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0083 | 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 {CreateFeedSpecification} body
* @param {CreateFeedSpecification} body Information required to create the feed.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
Expand Down Expand Up @@ -333,7 +333,7 @@ export const FeedsApiAxiosParamCreator = function (configuration?: Configuration
},
/**
* 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.5 | 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 {CreateFeedDocumentSpecification} body
* @param {CreateFeedDocumentSpecification} body Specifies the content type for the createFeedDocument operation.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
Expand Down Expand Up @@ -522,7 +522,7 @@ export const FeedsApiFp = function(configuration?: Configuration) {
},
/**
* Creates a feed. Upload the contents of the feed document before calling this operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0083 | 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 {CreateFeedSpecification} body
* @param {CreateFeedSpecification} body Information required to create the feed.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
Expand All @@ -532,7 +532,7 @@ export const FeedsApiFp = function(configuration?: Configuration) {
},
/**
* 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.5 | 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 {CreateFeedDocumentSpecification} body
* @param {CreateFeedDocumentSpecification} body Specifies the content type for the createFeedDocument operation.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
Expand Down Expand Up @@ -597,7 +597,7 @@ export const FeedsApiFactory = function (configuration?: Configuration, basePath
},
/**
* Creates a feed. Upload the contents of the feed document before calling this operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0083 | 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 {CreateFeedSpecification} body
* @param {CreateFeedSpecification} body Information required to create the feed.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
Expand All @@ -606,7 +606,7 @@ export const FeedsApiFactory = function (configuration?: Configuration, basePath
},
/**
* 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.5 | 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 {CreateFeedDocumentSpecification} body
* @param {CreateFeedDocumentSpecification} body Specifies the content type for the createFeedDocument operation.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
Expand Down Expand Up @@ -670,7 +670,7 @@ export interface FeedsApiCancelFeedRequest {
*/
export interface FeedsApiCreateFeedRequest {
/**
*
* Information required to create the feed.
* @type {CreateFeedSpecification}
* @memberof FeedsApiCreateFeed
*/
Expand All @@ -684,7 +684,7 @@ export interface FeedsApiCreateFeedRequest {
*/
export interface FeedsApiCreateFeedDocumentRequest {
/**
*
* Specifies the content type for the createFeedDocument operation.
* @type {CreateFeedDocumentSpecification}
* @memberof FeedsApiCreateFeedDocument
*/
Expand Down
2 changes: 2 additions & 0 deletions src/api-models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,7 @@ export {
AssociationType as OrdersApiModelAssociationType,
BusinessHoursDayOfWeekEnum as OrdersApiModelBusinessHoursDayOfWeekEnum,
ConfirmShipmentRequestCodCollectionMethodEnum as OrdersApiModelConfirmShipmentRequestCodCollectionMethodEnum,
ConstraintType as OrdersApiModelConstraintType,
EasyShipShipmentStatus as OrdersApiModelEasyShipShipmentStatus,
ElectronicInvoiceStatus as OrdersApiModelElectronicInvoiceStatus,
MeasurementUnitEnum as OrdersApiModelMeasurementUnitEnum,
Expand Down Expand Up @@ -953,6 +954,7 @@ export {
RegulatedInformationField as OrdersApiModelRegulatedInformationField,
RegulatedOrderVerificationStatus as OrdersApiModelRegulatedOrderVerificationStatus,
RejectionReason as OrdersApiModelRejectionReason,
ShippingConstraints as OrdersApiModelShippingConstraints,
SubstitutionOption as OrdersApiModelSubstitutionOption,
SubstitutionPreferences as OrdersApiModelSubstitutionPreferences,
TaxClassification as OrdersApiModelTaxClassification,
Expand Down
Loading

0 comments on commit ac536be

Please sign in to comment.