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

Commit

Permalink
feat: made PayWithAmazonEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
justinemmanuelmercado committed Jun 18, 2020
1 parent dc3dc62 commit 5e533a1
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions src/sections/finances/codec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,27 @@ const ShipmentEvent = Codec.interface({
const RefundEvent = ShipmentEvent
const GuaranteeClaimEvent = ShipmentEvent
const ChargebackEvent = ShipmentEvent
/**
* @todo
*/
const PayWithAmazonEvent = unknown

enum FulfillmentChannelEnum {
AFN = 'AFN',
MFN = 'MFN',
}

const FulfillmentChannel = enumeration(FulfillmentChannelEnum)

const PayWithAmazonEvent = Codec.interface({
SellerOrderId: optional(string),
TransactionPostedDate: optional(mwsDate),
BusinessObjectType: optional(string),
SalesChannel: optional(string),
Charge: optional(ChargeComponent),
FeeList: optional(ensureArray('FeeComponent', FeeComponent)),
PaymentAmountType: optional(string),
AmountDescription: optional(string),
FulfillmentChannel: optional(FulfillmentChannel),
StoreName: optional(string),
})

/**
* @todo
*/
Expand Down

0 comments on commit 5e533a1

Please sign in to comment.