From f788a0929c46f58e3aed15d0fd9176ca17db8603 Mon Sep 17 00:00:00 2001 From: envy124 Date: Thu, 24 Aug 2017 18:03:34 +0300 Subject: [PATCH] int in str unmarshall fixed --- types.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types.go b/types.go index 9a76801..cbaa1c4 100644 --- a/types.go +++ b/types.go @@ -61,13 +61,13 @@ type ( // AgreementDetails struct AgreementDetails struct { OutstandingBalance AmountPayout `json:"outstanding_balance"` - CyclesRemaining int `json:"cycles_remaining"` - CyclesCompleted int `json:"cycles_completed"` + CyclesRemaining int `json:"cycles_remaining,string"` + CyclesCompleted int `json:"cycles_completed,string"` NextBillingDate time.Time `json:"next_billing_date"` LastPaymentDate time.Time `json:"last_payment_date"` LastPaymentAmount AmountPayout `json:"last_payment_amount"` FinalPaymentDate time.Time `json:"final_payment_date"` - FailedPaymentCount int `json:"failed_payment_count"` + FailedPaymentCount int `json:"failed_payment_count,string"` } // Amount struct