mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
payment response for adjust seats
This commit is contained in:
@@ -243,7 +243,7 @@ export abstract class ApiService {
|
|||||||
postOrganizationApiKey: (id: string, request: PasswordVerificationRequest) => Promise<ApiKeyResponse>;
|
postOrganizationApiKey: (id: string, request: PasswordVerificationRequest) => Promise<ApiKeyResponse>;
|
||||||
postOrganizationRotateApiKey: (id: string, request: PasswordVerificationRequest) => Promise<ApiKeyResponse>;
|
postOrganizationRotateApiKey: (id: string, request: PasswordVerificationRequest) => Promise<ApiKeyResponse>;
|
||||||
postOrganizationUpgrade: (id: string, request: OrganizationUpgradeRequest) => Promise<PaymentResponse>;
|
postOrganizationUpgrade: (id: string, request: OrganizationUpgradeRequest) => Promise<PaymentResponse>;
|
||||||
postOrganizationSeat: (id: string, request: SeatRequest) => Promise<any>;
|
postOrganizationSeat: (id: string, request: SeatRequest) => Promise<PaymentResponse>;
|
||||||
postOrganizationStorage: (id: string, request: StorageRequest) => Promise<any>;
|
postOrganizationStorage: (id: string, request: StorageRequest) => Promise<any>;
|
||||||
postOrganizationPayment: (id: string, request: PaymentRequest) => Promise<any>;
|
postOrganizationPayment: (id: string, request: PaymentRequest) => Promise<any>;
|
||||||
postOrganizationVerifyBank: (id: string, request: VerifyBankRequest) => Promise<any>;
|
postOrganizationVerifyBank: (id: string, request: VerifyBankRequest) => Promise<any>;
|
||||||
|
|||||||
@@ -788,8 +788,9 @@ export class ApiService implements ApiServiceAbstraction {
|
|||||||
return new PaymentResponse(r);
|
return new PaymentResponse(r);
|
||||||
}
|
}
|
||||||
|
|
||||||
postOrganizationSeat(id: string, request: SeatRequest): Promise<any> {
|
async postOrganizationSeat(id: string, request: SeatRequest): Promise<PaymentResponse> {
|
||||||
return this.send('POST', '/organizations/' + id + '/seat', request, true, false);
|
const r = await this.send('POST', '/organizations/' + id + '/seat', request, true, true);
|
||||||
|
return new PaymentResponse(r);
|
||||||
}
|
}
|
||||||
|
|
||||||
async postOrganizationStorage(id: string, request: StorageRequest): Promise<PaymentResponse> {
|
async postOrganizationStorage(id: string, request: StorageRequest): Promise<PaymentResponse> {
|
||||||
|
|||||||
Reference in New Issue
Block a user