mirror of
https://github.com/bitwarden/browser
synced 2026-01-31 00:33:33 +00:00
fix(billing): add billing address to clients
This commit is contained in:
@@ -61,12 +61,13 @@ export class AccountBillingClient {
|
||||
organizationKey: string,
|
||||
planTier: ProductTierType,
|
||||
cadence: SubscriptionCadence,
|
||||
billingAddress: Pick<BillingAddress, "country" | "postalCode">,
|
||||
): Promise<void> => {
|
||||
const path = `${this.endpoint}/upgrade`;
|
||||
await this.apiService.send(
|
||||
"POST",
|
||||
path,
|
||||
{ organizationName, key: organizationKey, tier: planTier, cadence },
|
||||
{ organizationName, key: organizationKey, tier: planTier, cadence, billingAddress },
|
||||
true,
|
||||
false,
|
||||
);
|
||||
|
||||
@@ -146,7 +146,7 @@ export class PreviewInvoiceClient {
|
||||
|
||||
previewProrationForPremiumUpgrade = async (
|
||||
planTier: ProductTierType,
|
||||
billingAddress: BillingAddress,
|
||||
billingAddress: Pick<BillingAddress, "country" | "postalCode">,
|
||||
): Promise<ProrationPreviewResponse> => {
|
||||
const prorationResponse = await this.apiService.send(
|
||||
"POST",
|
||||
|
||||
Reference in New Issue
Block a user