Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Commit

Permalink
payment response for adjust seats
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin committed Aug 10, 2019
1 parent de9bcac commit 4f876fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/abstractions/api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
Expand Down
5 changes: 3 additions & 2 deletions src/services/api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down

0 comments on commit 4f876fc

Please sign in to comment.