Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
fix: naming for some members with incorrect name from updated fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
justinemmanuelmercado committed May 19, 2020
1 parent d22342c commit 12cc824
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/sections/fulfillment-inventory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const InventorySupply = Codec.interface({
TotalSupplyQuantity: number,
InStockSupplyQuantity: number,
EarliestAvailability: optional(Timepoint),
SupplyDetail: optional(ensureArray('InventorySupplyDetail', InventorySupplyDetail)),
SupplyDetail: optional(ensureArray('member', InventorySupplyDetail)),
})

const InventorySupplyList = Codec.interface({
Expand All @@ -78,15 +78,16 @@ type InventorySupplyList = GetInterface<typeof InventorySupplyList>

const canonicalizeParameters = (parameters: ListInventorySupplyRequestParameters) => {
return {
'SellersSkus.member': parameters.SellerSKU,
'SellersSkus.member': parameters.SellerSku,
QueryStartDateTime: parameters.QueryStartDateTime?.toISOString(),
ResponseGroup: parameters.ResponseGroup,
MarketplaceId: parameters.MarketplaceId,
}
}

interface ListInventorySupplyRequestParameters {
SellerSKU?: string[]
QueryStartDateTime?: Date // No examples of usage of QueryStartDateTime as parameter shown on docs
SellerSku?: string[]
QueryStartDateTime?: Date
ResponseGroup?: 'Basic' | 'Detailed'
MarketplaceId?: string
}
Expand Down

0 comments on commit 12cc824

Please sign in to comment.