mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 13:23:34 +00:00
* Added select-payment-method.component in shared lib Because we're going to be implementing the same functionality for providers and orgs/users, I wanted to start moving some of this shared functionality into libs so it can be accessed in both web and bit-web. Additionally, the Stripe and Braintree functionality has been moved into their own services for more central management. * Added generalized manage-tax-information component to shared lib * Added generalized add-account-credit-dialog component to shared libs * Added generalized verify-bank-account component to shared libs * Added dialog for selection of provider payment method * Added provider-payment-method component * Added provider-payment-method component to provider layout
15 lines
518 B
TypeScript
15 lines
518 B
TypeScript
import { PaymentMethodType } from "@bitwarden/common/billing/enums";
|
|
import { TokenizedPaymentMethod } from "@bitwarden/common/billing/models/domain";
|
|
|
|
export class TokenizedPaymentMethodRequest {
|
|
type: PaymentMethodType;
|
|
token: string;
|
|
|
|
static From(tokenizedPaymentMethod: TokenizedPaymentMethod): TokenizedPaymentMethodRequest {
|
|
const request = new TokenizedPaymentMethodRequest();
|
|
request.type = tokenizedPaymentMethod.type;
|
|
request.token = tokenizedPaymentMethod.token;
|
|
return request;
|
|
}
|
|
}
|