Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

Commit

Permalink
client/tier: expose tax parameters for Checkout (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmizerany committed Mar 23, 2023
1 parent 5510564 commit 8270536
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/tier/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ func (c *Client) Checkout(ctx context.Context, org string, successURL string, p
TrialDays: p.TrialDays,
Features: p.Features,
RequireBillingAddress: p.RequireBillingAddress,
Tax: p.Tax,
}
return fetchOK[*apitypes.CheckoutResponse, *apitypes.Error](ctx, c, "POST", "/v1/checkout", r)
}
Expand All @@ -307,6 +308,7 @@ type CheckoutParams struct {
Features []string
CancelURL string
RequireBillingAddress bool
Tax Taxation
}

type Taxation = apitypes.Taxation
Expand Down

0 comments on commit 8270536

Please sign in to comment.