mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 05:13:29 +00:00
* (No Logic) Fix typo in billing-api-service.abstraction file name * (Cleanup) Remove payment method components and API methods from provider portal Product team decided not to have a payment method page in the provider portal for consolidated billing. This just removes all the unused components and API methods. * Add organization endpoints to support new payment method behavior * Add payment-v2.component This component existed in the libs folder because we used it for the provider portal, but since we've removed payment functionality from the provider portal, I moved it into web in this commit. * (No Logic) Move existing payment.component into new payment component folder * Add verify-bank-account.component This component existed in the libs folder because we used it for the provider portal, but since we've removed payment functionality from the provider portal, I moved it into web in this commit. * Add adjust-payment-dialog-v2.component * (No Logic) Move existing adjust-payment-dialog.component into new adjust-payment-dialog component folder * Add organization-payment-method.component * Add feature flag: AC-2476-deprecate-stripe-sources-api * Pivot organization payment method route on new feature flag * Fix broken test
29 lines
931 B
TypeScript
29 lines
931 B
TypeScript
import { BaseResponse } from "../../../models/response/base.response";
|
|
|
|
import { PaymentSourceResponse } from "./payment-source.response";
|
|
import { TaxInfoResponse } from "./tax-info.response";
|
|
|
|
export class PaymentMethodResponse extends BaseResponse {
|
|
accountCredit: number;
|
|
paymentSource?: PaymentSourceResponse;
|
|
subscriptionStatus?: string;
|
|
taxInformation?: TaxInfoResponse;
|
|
|
|
constructor(response: any) {
|
|
super(response);
|
|
this.accountCredit = this.getResponseProperty("AccountCredit");
|
|
|
|
const paymentSource = this.getResponseProperty("PaymentSource");
|
|
if (paymentSource) {
|
|
this.paymentSource = new PaymentSourceResponse(paymentSource);
|
|
}
|
|
|
|
this.subscriptionStatus = this.getResponseProperty("SubscriptionStatus");
|
|
|
|
const taxInformation = this.getResponseProperty("TaxInformation");
|
|
if (taxInformation) {
|
|
this.taxInformation = new TaxInfoResponse(taxInformation);
|
|
}
|
|
}
|
|
}
|