From 388e32556e420b5bc84f7ac87b40c80cd837e934 Mon Sep 17 00:00:00 2001 From: Henk Bourgonje Date: Wed, 29 Nov 2023 13:57:09 +0100 Subject: [PATCH] replace PreciseUnitAmount type string to int --- fee.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fee.go b/fee.go index 3ebb9c4..92387d5 100644 --- a/fee.go +++ b/fee.go @@ -110,7 +110,7 @@ type Fee struct { AmountCents int `json:"amount_cents,omitempty"` AmountDetails map[string]interface{} `json:"amount_details,omitempty"` UnitAmountCents int `json:"unit_amount_cents,omitempty"` // deprecated - PreciseUnitAmount int `json:"precise_unit_amount,omitempty"` + PreciseUnitAmount string `json:"precise_unit_amount,omitempty"` AmountCurrency string `json:"amount_currency,omitempty"` TaxesAmountCents int `json:"taxes_amount_cents,omitempty"` TaxesRate float32 `json:"taxes_rate,omitempty"`