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

Commit

Permalink
feat: made CouponPaymentEvent and SAFETReimbursementEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
justinemmanuelmercado committed Jun 19, 2020
1 parent 63ef1a1 commit 78078d5
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions src/sections/finances/codec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,14 +365,31 @@ const AdjustmentEvent = Codec.interface({
AdjustmentItemList: optional(ensureArray('AdjustmentItem', AdjustmentItem)),
PostedDate: optional(mwsDate),
})
/**
* @todo
*/
const CouponPaymentEvent = unknown
/**
* @todo
*/
const SAFETReimbursementEvent = unknown

const CouponPaymentEvent = Codec.interface({
PostedDate: optional(mwsDate),
CouponId: optional(ensureString),
SellerCouponDescription: optional(string),
ClipOrRedemptionCount: optional(number),
PaymentEventId: optional(ensureString),
FeeComponent: optional(FeeComponent),
ChargeComponent: optional(ChargeComponent),
TotalAmount: optional(CurrencyAmount),
})

const SAFETReimbursementItem = Codec.interface({
ItemChargeList: optional(ensureArray('ChargeComponent', ChargeComponent)),
})

const SAFETReimbursementEvent = Codec.interface({
PostedDate: optional(mwsDate),
SAFETClaimId: optional(ensureString),
ReimbursedAmount: optional(CurrencyAmount),
SAFETReimbursementItemList: optional(
ensureArray('SAFETReimbursementItem', SAFETReimbursementItem),
),
})

/**
* @todo
*/
Expand Down

0 comments on commit 78078d5

Please sign in to comment.