1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-07 12:13:45 +00:00

fix(billing): Remove method from subscriber-billing client

This commit is contained in:
Stephon Brown
2025-10-01 18:33:06 -04:00
parent 1fe7e40cc8
commit 30b213325c

View File

@@ -62,16 +62,6 @@ export class SubscriberBillingClient {
}
};
purchasePremiumSubscription = async (
subscriber: BitwardenSubscriber,
paymentMethod: TokenizedPaymentMethod,
billingAddress: Pick<BillingAddress, "country" | "postalCode">,
): Promise<void> => {
const path = `${this.getEndpoint(subscriber)}/subscription`;
const request = { tokenizedPaymentMethod: paymentMethod, billingAddress: billingAddress };
await this.apiService.send("POST", path, request, true, true);
};
getBillingAddress = async (subscriber: BitwardenSubscriber): Promise<BillingAddress | null> => {
const path = `${this.getEndpoint(subscriber)}/address`;
const data = await this.apiService.send("GET", path, null, true, true);