Skip to content

Commit

Permalink
fix: item dimension type in Catalog Item V20220401 (#460)
Browse files Browse the repository at this point in the history
Co-authored-by: nguyentoanit <[email protected]>
  • Loading branch information
github-actions[bot] and nguyentoanit authored May 21, 2022
1 parent fbbb2e3 commit cecdc3c
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 59 deletions.
114 changes: 57 additions & 57 deletions src/api-models/catalog-items-api-model-v20220401/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,56 @@ export interface ClassificationRefinement {
*/
classificationId: string;
}
/**
* Individual dimension value of an Amazon catalog item or item package.
* @export
* @interface Dimension
*/
export interface Dimension {
/**
* Measurement unit of the dimension value.
* @type {string}
* @memberof Dimension
*/
unit?: string;
/**
* Numeric dimension value.
* @type {number}
* @memberof Dimension
*/
value?: number;
}
/**
* Dimensions of an Amazon catalog item or item in its packaging.
* @export
* @interface Dimensions
*/
export interface Dimensions {
/**
*
* @type {Dimension}
* @memberof Dimensions
*/
height?: Dimension;
/**
*
* @type {Dimension}
* @memberof Dimensions
*/
length?: Dimension;
/**
*
* @type {Dimension}
* @memberof Dimensions
*/
weight?: Dimension;
/**
*
* @type {Dimension}
* @memberof Dimensions
*/
width?: Dimension;
}
/**
* A list of error responses returned when a request is unsuccessful.
* @export
Expand Down Expand Up @@ -97,11 +147,11 @@ export interface Item {
*/
attributes?: object;
/**
*
* @type {ItemDimensionsByMarketplace}
* Array of dimensions associated with the item in the Amazon catalog by Amazon marketplace.
* @type {Array<ItemDimensionsByMarketplace>}
* @memberof Item
*/
dimensions?: ItemDimensionsByMarketplace;
dimensions?: Array<ItemDimensionsByMarketplace>;
/**
* Identifiers associated with the item in the Amazon catalog, such as UPC and EAN identifiers.
* @type {Array<ItemIdentifiersByMarketplace>}
Expand Down Expand Up @@ -195,56 +245,6 @@ export interface ItemClassificationSalesRank {
*/
rank: number;
}
/**
* Individual dimension value of an Amazon catalog item or item package.
* @export
* @interface ItemDimension
*/
export interface ItemDimension {
/**
* Measurement unit of the dimension value.
* @type {string}
* @memberof ItemDimension
*/
unit?: string;
/**
* Numeric dimension value.
* @type {number}
* @memberof ItemDimension
*/
value?: number;
}
/**
* Dimensions of an Amazon catalog item or item in its packaging.
* @export
* @interface ItemDimensions
*/
export interface ItemDimensions {
/**
*
* @type {ItemDimension}
* @memberof ItemDimensions
*/
height?: ItemDimension;
/**
*
* @type {ItemDimension}
* @memberof ItemDimensions
*/
length?: ItemDimension;
/**
*
* @type {ItemDimension}
* @memberof ItemDimensions
*/
weight?: ItemDimension;
/**
*
* @type {ItemDimension}
* @memberof ItemDimensions
*/
width?: ItemDimension;
}
/**
* Dimensions associated with the item in the Amazon catalog for the indicated Amazon marketplace.
* @export
Expand All @@ -259,16 +259,16 @@ export interface ItemDimensionsByMarketplace {
marketplaceId: string;
/**
*
* @type {ItemDimensions}
* @type {Dimensions}
* @memberof ItemDimensionsByMarketplace
*/
item?: ItemDimensions;
item?: Dimensions;
/**
*
* @type {ItemDimensions}
* @type {Dimensions}
* @memberof ItemDimensionsByMarketplace
*/
_package?: ItemDimensions;
_package?: Dimensions;
}
/**
* Sales rank of an Amazon catalog item by website display group.
Expand Down
4 changes: 2 additions & 2 deletions src/api-models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@ export {
ItemVendorDetailsByMarketplaceReplenishmentCategoryEnum as CatalogItemsApiModelV20220401ItemVendorDetailsByMarketplaceReplenishmentCategoryEnum,
BrandRefinement as CatalogItemsApiModelV20220401BrandRefinement,
ClassificationRefinement as CatalogItemsApiModelV20220401ClassificationRefinement,
Dimension as CatalogItemsApiModelV20220401Dimension,
Dimensions as CatalogItemsApiModelV20220401Dimensions,
ErrorList as CatalogItemsApiModelV20220401ErrorList,
Item as CatalogItemsApiModelV20220401Item,
ItemBrowseClassification as CatalogItemsApiModelV20220401ItemBrowseClassification,
ItemClassificationSalesRank as CatalogItemsApiModelV20220401ItemClassificationSalesRank,
ItemDimension as CatalogItemsApiModelV20220401ItemDimension,
ItemDimensions as CatalogItemsApiModelV20220401ItemDimensions,
ItemDimensionsByMarketplace as CatalogItemsApiModelV20220401ItemDimensionsByMarketplace,
ItemDisplayGroupSalesRank as CatalogItemsApiModelV20220401ItemDisplayGroupSalesRank,
ItemIdentifier as CatalogItemsApiModelV20220401ItemIdentifier,
Expand Down

0 comments on commit cecdc3c

Please sign in to comment.