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 (charges): change instant to pay in advance #89

Merged
merged 2 commits into from
May 23, 2023
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion charge.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type Charge struct {
BillableMetricCode string `json:"billable_metric_code,omitempty"`
ChargeModel ChargeModel `json:"charge_model,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty"`
Instant bool `json:"instant,omitempty"`
PayInAdvance bool `json:"pay_in_advance,omitempty"`
MinAmountCents int `json:"min_amount_cents,omitempty"`
Properties map[string]interface{} `json:"properties,omitempty"`
GroupProperties []GroupProperties `json:"group_properties,omitempty"`
Expand Down
1 change: 1 addition & 0 deletions fee.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ type Fee struct {
VatAmountCurrency string `json:"vat_amount_currency,omitempty"`
TotalAmountCents int `json:"total_amount_cents,omitempty"`
TotalAmountCurrency string `json:"total_amount_currency,omitempty"`
PayInAdvance bool `json:"pay_in_advance,omitempty"`
FromDate string `json:"from_date,omitempty"`
ToDate string `json:"to_date,omitempty"`

Expand Down
2 changes: 1 addition & 1 deletion plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type PlanChargeInput struct {
BillableMetricID uuid.UUID `json:"billable_metric_id,omitempty"`
AmountCurrency Currency `json:"amount_currency,omitempty"`
ChargeModel ChargeModel `json:"charge_model,omitempty"`
Instant bool `json:"instant,omitempty"`
PayInAdvance bool `json:"pay_in_advance,omitempty"`
MinAmountCents int `json:"min_amount_cents,omitempty"`
Properties map[string]interface{} `json:"properties"`
GroupProperties []GroupProperties `json:"group_properties,omitempty"`
Expand Down