From 2e50c8b6beacd9cea280ae54f75b50ef369229c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Semp=C3=A9?= Date: Thu, 2 Nov 2023 11:56:08 +0100 Subject: [PATCH] feat(unit-price): Add PreciseUnitAmount to Fee object --- fee.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fee.go b/fee.go index 89015d7..3c7143e 100644 --- a/fee.go +++ b/fee.go @@ -108,7 +108,8 @@ type Fee struct { ExternalSubscriptionID string `json:"external_subscription_id,omitempty"` AmountCents int `json:"amount_cents,omitempty"` - UnitAmountCents int `json:"unit_amount_cents,omitempty"` + UnitAmountCents int `json:"unit_amount_cents,omitempty"` // deprecated + PreciseUnitAmount int `json:"precise_unit_amount,omitempty"` AmountCurrency string `json:"amount_currency,omitempty"` TaxesAmountCents int `json:"taxes_amount_cents,omitempty"` TaxesRate float32 `json:"taxes_rate,omitempty"` @@ -118,7 +119,7 @@ type Fee struct { Invoiceable bool `json:"invoiceable,omitempty"` FromDate string `json:"from_date,omitempty"` ToDate string `json:"to_date,omitempty"` - InvoiceDisplayName string `json:"invoice_display_name,omitempty"` + InvoiceDisplayName string `json:"invoice_display_name,omitempty"` Units string `json:"units,omitempty"` Description string `json:"description,omitempty"`