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

Commit

Permalink
feat: make LoanServicingEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
justinemmanuelmercado committed Jun 19, 2020
1 parent bd8eb20 commit 51f7a05
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions src/sections/finances/codec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,20 @@ const DebtRecoveryEvent = Codec.interface({
DebtRecoveryItemList: optional(ensureArray('DebtRecoveryItem', DebtRecoveryItem)),
ChargeInstrumentList: optional(ensureArray('ChargeInstrument', ChargeInstrument)),
})
/**
* @todo
*/
const LoanServicingEvent = unknown

enum SourceBusinessEventTypeEnum {
LoanAdvance = 'LoanAdvance',
LoanPayment = 'LoanPayment',
LoanRefund = 'LoanRefund',
}

const SourceBusinessEventType = enumeration(SourceBusinessEventTypeEnum)

const LoanServicingEvent = Codec.interface({
LoanAmount: optional(CurrencyAmount),
SourceBusinessEventType: optional(SourceBusinessEventType),
})

/**
* @todo
*/
Expand Down

0 comments on commit 51f7a05

Please sign in to comment.