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

Commit

Permalink
feat: made AffordabilityExpenseEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
justinemmanuelmercado committed Jun 19, 2020
1 parent 5f3379a commit 86d61f4
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions src/sections/finances/codec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ const RentalTransactionEvent = Codec.interface({
const PerformanceBondRefundEvent = unknown

/**
* Not sure what case MWS returns. Fixture has them captialized but docs has them in lower case
* Not sure what case MWS returns. Sample requests has them captialized but docs has them in lower case
*/
enum transactionTypeEnum {
charge = 'charge',
Expand Down Expand Up @@ -405,14 +405,25 @@ const FBALiquidationEvent = Codec.interface({
LiquidationProceedsAmount: optional(CurrencyAmount),
LiquidationFeeAmount: optional(CurrencyAmount),
})
/**
* @todo
*/
const ImagingServicesFeeEvent = unknown
/**
* @todo
*/
const AffordabilityExpenseEvent = unknown

const ImagingServicesFeeEvent = Codec.interface({
ImagingRequestBillingItemID: optional(ensureString),
ASIN: optional(string),
PostedDate: optional(mwsDate),
FeeList: optional(ensureArray('FeeComponent', FeeComponent)),
})

const AffordabilityExpenseEvent = Codec.interface({
PostedDate: optional(mwsDate),
TransactionType: optional(transactionType),
AmazonOrderId: optional(string),
BaseExpense: optional(CurrencyAmount),
TotalExpense: optional(CurrencyAmount),
TaxTypeIGST: optional(CurrencyAmount),
TaxTypeCGST: optional(CurrencyAmount),
TaxTypeSGST: optional(CurrencyAmount),
MarketplaceId: optional(string),
})
/**
* @todo
*/
Expand Down

0 comments on commit 86d61f4

Please sign in to comment.