1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

Send SkipTrial = true to organization create when trial length is 0 (#14701)

This commit is contained in:
Alex Morask
2025-05-13 09:31:47 -04:00
committed by GitHub
parent 4cf6e19b30
commit 992b1456a8
4 changed files with 4 additions and 0 deletions

View File

@@ -6,4 +6,5 @@ import { OrganizationNoPaymentMethodCreateRequest } from "../../../billing/model
export class OrganizationCreateRequest extends OrganizationNoPaymentMethodCreateRequest {
paymentMethodType: PaymentMethodType;
paymentToken: string;
skipTrial?: boolean;
}

View File

@@ -39,6 +39,7 @@ export type BillingInformation = {
export type PaymentInformation = {
paymentMethod: [string, PaymentMethodType];
billing: BillingInformation;
skipTrial?: boolean;
};
export type SubscriptionInformation = {

View File

@@ -174,6 +174,7 @@ export class OrganizationBillingService implements OrganizationBillingServiceAbs
const [paymentToken, paymentMethodType] = information.paymentMethod;
request.paymentToken = paymentToken;
request.paymentMethodType = paymentMethodType;
request.skipTrial = information.skipTrial;
const billingInformation = information.billing;
request.billingAddressPostalCode = billingInformation.postalCode;