Skip to content

Commit c75a7b1

Browse files
add partner statement fields (#270)
* add partner statement fields * cleanup
1 parent a5c5730 commit c75a7b1

File tree

1 file changed

+28
-16
lines changed

1 file changed

+28
-16
lines changed

pkg/moov/statement_models.go

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,30 @@ type Statement struct {
1616
CreatedOn time.Time `json:"createdOn,omitempty"`
1717
UpdatedOn time.Time `json:"updatedOn,omitempty"`
1818
Summary Summary `json:"summary,omitempty"`
19-
CardAcquiringFees CardAcquiringFees `json:"cardAcquiringFees,omitempty"`
19+
CardAcquiringFees *CardAcquiringFees `json:"cardAcquiringFees,omitempty"`
2020
ACHFees *ACHFees `json:"achFees,omitempty"`
2121
InstantPaymentFees *InstantPaymentFees `json:"instantPaymentFees,omitempty"`
2222
PlatformFees *PlatformFees `json:"platformFees,omitempty"`
23+
AccountFees *AccountFees `json:"accountFees,omitempty"`
2324
OtherCardFees *OtherCardFees `json:"otherCardFees,omitempty"`
2425
PartnerFees *PartnerFees `json:"partnerFees,omitempty"`
2526
}
2627

2728
type Summary struct {
28-
CardAcquiring SummaryDetailsWithInterchange `json:"cardAcquiring,omitempty"`
29-
ACH *SummaryDetails `json:"ach,omitempty"`
30-
InstantPayments *SummaryDetails `json:"instantPayments,omitempty"`
31-
PlatformFees *AmountDecimal `json:"platformFees,omitempty"`
32-
AdjustmentFees *AmountDecimal `json:"adjustmentFees,omitempty"`
33-
OtherFees *AmountDecimal `json:"otherFees,omitempty"`
34-
Total *AmountDecimal `json:"total,omitempty"`
35-
NetIncomeSubtotal *SummaryDetails `json:"netIncomeSubtotal,omitempty"`
36-
RevenueShare *string `json:"revenueShare,omitempty"`
37-
ResidualSubtotal *AmountDecimal `json:"residualSubtotal,omitempty"`
38-
MonthlyPartnerCosts *PartnerFees `json:"monthlyPartnerCosts,omitempty"`
39-
NetPartnerPayment *AmountDecimal `json:"netPartnerPayment,omitempty"`
29+
CardAcquiring *SummaryDetailsWithInterchange `json:"cardAcquiring,omitempty"`
30+
ACH *SummaryDetails `json:"ach,omitempty"`
31+
InstantPayments *SummaryDetails `json:"instantPayments,omitempty"`
32+
PlatformFees *AmountDecimal `json:"platformFees,omitempty"`
33+
AccountFees *SummaryDetails `json:"accountFees,omitempty"`
34+
AdjustmentFees *AmountDecimal `json:"adjustmentFees,omitempty"`
35+
OtherFees *AmountDecimal `json:"otherFees,omitempty"`
36+
OtherCardFees *SummaryDetails `json:"otherCardFees,omitempty"`
37+
Total *AmountDecimal `json:"total,omitempty"`
38+
NetIncomeSubtotal *SummaryDetails `json:"netIncomeSubtotal,omitempty"`
39+
RevenueShare *string `json:"revenueShare,omitempty"`
40+
ResidualSubtotal *AmountDecimal `json:"residualSubtotal,omitempty"`
41+
MonthlyPartnerCosts *PartnerFees `json:"monthlyPartnerCosts,omitempty"`
42+
NetPartnerPayment *AmountDecimal `json:"netPartnerPayment,omitempty"`
4043
}
4144

4245
type SummaryDetails struct {
@@ -120,6 +123,15 @@ type PlatformFees struct {
120123
Total AmountDecimal `json:"total,omitempty"`
121124
}
122125

126+
type AccountFees struct {
127+
WalletFee AmountDecimal `json:"walletFee,omitempty"`
128+
MerchantPCIFee AmountDecimal `json:"merchantPCIFee,omitempty"`
129+
KYBFee *AmountDecimal `json:"kybFee,omitempty"`
130+
KYCFee *AmountDecimal `json:"kycFee,omitempty"`
131+
TransactionMonitoringFee *AmountDecimal `json:"transactionMonitoringFee,omitempty"`
132+
Total AmountDecimal `json:"total,omitempty"`
133+
}
134+
123135
type OtherCardFees struct {
124136
CardAccountUpdater CountAndAmount `json:"cardAccountUpdater,omitempty"`
125137
CardVerification CountAndAmount `json:"cardVerification,omitempty"`
@@ -129,9 +141,9 @@ type OtherCardFees struct {
129141
}
130142

131143
type PartnerFees struct {
132-
MinimumCommitment *CountAndAmount `json:"minimumCommitment,omitempty"`
133-
MonthlyPlatform *CountAndAmount `json:"monthlyPlatform,omitempty"`
134-
Total CountAndAmount `json:"total,omitempty"`
144+
MinimumCommitment AmountDecimal `json:"minimumCommitment,omitempty"`
145+
MonthlyPlatform AmountDecimal `json:"monthlyPlatform,omitempty"`
146+
Total AmountDecimal `json:"total,omitempty"`
135147
}
136148

137149
type ListStatementFilter callArg

0 commit comments

Comments
 (0)