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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user