1
0
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:
Stephon Brown
2026-01-23 13:50:33 -06:00
parent 1e361c8a7b
commit 6a00637b5a
2 changed files with 3 additions and 2 deletions

View File

@@ -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,
);

View File

@@ -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",