int in str unmarshall fixed

This commit is contained in:
envy124 2017-08-24 18:03:34 +03:00
parent 08b9849c20
commit f788a0929c

View File

@ -61,13 +61,13 @@ type (
// AgreementDetails struct // AgreementDetails struct
AgreementDetails struct { AgreementDetails struct {
OutstandingBalance AmountPayout `json:"outstanding_balance"` OutstandingBalance AmountPayout `json:"outstanding_balance"`
CyclesRemaining int `json:"cycles_remaining"` CyclesRemaining int `json:"cycles_remaining,string"`
CyclesCompleted int `json:"cycles_completed"` CyclesCompleted int `json:"cycles_completed,string"`
NextBillingDate time.Time `json:"next_billing_date"` NextBillingDate time.Time `json:"next_billing_date"`
LastPaymentDate time.Time `json:"last_payment_date"` LastPaymentDate time.Time `json:"last_payment_date"`
LastPaymentAmount AmountPayout `json:"last_payment_amount"` LastPaymentAmount AmountPayout `json:"last_payment_amount"`
FinalPaymentDate time.Time `json:"final_payment_date"` FinalPaymentDate time.Time `json:"final_payment_date"`
FailedPaymentCount int `json:"failed_payment_count"` FailedPaymentCount int `json:"failed_payment_count,string"`
} }
// Amount struct // Amount struct