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

Commit

Permalink
feat: create ServiceFeeEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
justinemmanuelmercado committed Jun 19, 2020
1 parent a33514d commit ddac653
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/sections/finances/codec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ const RetrochargeEventType = enumeration(RetrochargeEventTypeEnum)

const RetrochargeEvent = Codec.interface({
RetrochargeEventType: optional(RetrochargeEventType),
AmazonOrderId: optional(ensureString),
AmazonOrderId: optional(string),
PostedDate: optional(mwsDate),
BaseTax: optional(CurrencyAmount),
ShippingTax: optional(CurrencyAmount),
Expand Down Expand Up @@ -283,10 +283,16 @@ const ProductAdsPaymentEvent = Codec.interface({
taxValue: optional(CurrencyAmount),
transactionValue: optional(CurrencyAmount),
})
/**
* @todo
*/
const ServiceFeeEvent = unknown

const ServiceFeeEvent = Codec.interface({
AmazonOrderId: optional(string),
FeeReason: optional(string),
FeeList: optional(ensureArray('FeeComponent', FeeComponent)),
SellerSKU: optional(string),
FnSKU: optional(string),
FeeDesription: optional(string),
ASIN: optional(string),
})
/**
* @todo
*/
Expand Down

0 comments on commit ddac653

Please sign in to comment.