Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(unit-price): Add PreciseUnitAmount to Fee object #141

Merged
merged 1 commit into from
Nov 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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