payment response for adjust seats

This commit is contained in:
Kyle Spearrin 2019-08-10 13:14:53 -04:00
parent de9bcac0ec
commit 4f876fc222
2 changed files with 4 additions and 3 deletions

View File

@ -243,7 +243,7 @@ export abstract class ApiService {
postOrganizationApiKey: (id: string, request: PasswordVerificationRequest) => Promise<ApiKeyResponse>;
postOrganizationRotateApiKey: (id: string, request: PasswordVerificationRequest) => Promise<ApiKeyResponse>;
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>;
postOrganizationPayment: (id: string, request: PaymentRequest) => Promise<any>;
postOrganizationVerifyBank: (id: string, request: VerifyBankRequest) => Promise<any>;

View File

@ -788,8 +788,9 @@ export class ApiService implements ApiServiceAbstraction {
return new PaymentResponse(r);
}
postOrganizationSeat(id: string, request: SeatRequest): Promise<any> {
return this.send('POST', '/organizations/' + id + '/seat', request, true, false);
async postOrganizationSeat(id: string, request: SeatRequest): Promise<PaymentResponse> {
const r = await this.send('POST', '/organizations/' + id + '/seat', request, true, true);
return new PaymentResponse(r);
}
async postOrganizationStorage(id: string, request: StorageRequest): Promise<PaymentResponse> {