Skip to content

Commit

Permalink
Merge pull request #141 from getlago/unit-price
Browse files Browse the repository at this point in the history
feat(unit-price): Add PreciseUnitAmount to Fee object
  • Loading branch information
rsempe authored Nov 6, 2023
2 parents 3aec74d + 2e50c8b commit 4d0d886
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fee.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -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"`
Expand Down

0 comments on commit 4d0d886

Please sign in to comment.