From 8ac39f8d0e7d02fa27ca4832b3931d180e8daf42 Mon Sep 17 00:00:00 2001 From: FiretronP75 Date: Wed, 23 Mar 2022 18:08:26 -0500 Subject: [PATCH] Updated KYC API paths. --- src/services/bookie.ts | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/services/bookie.ts b/src/services/bookie.ts index 2ec62ec..ec594e3 100644 --- a/src/services/bookie.ts +++ b/src/services/bookie.ts @@ -49,23 +49,23 @@ export class Bookie { } public async deleteBillingAccount(billingAccountId: string): Promise { - return ApiClient.handleResponse(await this.client.delete(`kyc_applicatons/${billingAccountId}`)); + return ApiClient.handleResponse(await this.client.delete(`kyc_applications/${billingAccountId}`)); } public async fetchKycApplications(params?: any): Promise> { - return ApiClient.handleResponse(await this.client.get(`kyc_applicatons`, params || {})) as PaginatedResponse; + return ApiClient.handleResponse(await this.client.get(`kyc_applications`, params || {})) as PaginatedResponse; } public async fetchKycApplicationDetails(kycApplicationId: string, params?: any): Promise { - return ApiClient.handleResponse(await this.client.get(`kyc_applicatons/${kycApplicationId}`, params || {})) as KycApplication; + return ApiClient.handleResponse(await this.client.get(`kyc_applications/${kycApplicationId}`, params || {})) as KycApplication; } public async createKycApplication(params: KycApplicationParams): Promise { - return ApiClient.handleResponse(await this.client.post('kyc_applicatons', params)) as KycApplication; + return ApiClient.handleResponse(await this.client.post('kyc_applications', params)) as KycApplication; } public async updateKycApplication(kycApplicationId: string, params: Partial): Promise { - return ApiClient.handleResponse(await this.client.put(`kyc_applicatons/${kycApplicationId}`, params)); + return ApiClient.handleResponse(await this.client.put(`kyc_applications/${kycApplicationId}`, params)); } public async createPayment(params: any): Promise { @@ -73,7 +73,7 @@ export class Bookie { } public async createFacility(params: any): Promise { - return ApiClient.handleResponse(await this.client.post('facilities', params)) as Facility; + return ApiClient.handleResponse(await this.client.post('facilities', params)) as Facility; } public async fetchFacilities(params?: any): Promise> { @@ -85,11 +85,11 @@ export class Bookie { } public async createAgreement(facilityId: string, params: any): Promise { - return ApiClient.handleResponse(await this.client.post(`facilities/${facilityId}/agreements`, params)) as Agreement; + return ApiClient.handleResponse(await this.client.post(`facilities/${facilityId}/agreements`, params)) as Agreement; } public async fetchAgreements(facilityId: string, params?: any): Promise> { - return ApiClient.handleResponse(await this.client.get(`facilities/${facilityId}/agreements`, params || {})) as PaginatedResponse; + return ApiClient.handleResponse(await this.client.get(`facilities/${facilityId}/agreements`, params || {})) as PaginatedResponse; } public async fetchAgreementDetails(facilityId: string, agreementId: string, params?: any): Promise { @@ -97,7 +97,7 @@ export class Bookie { } public async createTokenizationPolicy(params: any): Promise { - return ApiClient.handleResponse(await this.client.post('tokenization_policies', params)) as TokenizationPolicy; + return ApiClient.handleResponse(await this.client.post('tokenization_policies', params)) as TokenizationPolicy; } public async fetchTokenizationPolicies(params?: any): Promise> { @@ -107,9 +107,9 @@ export class Bookie { public async fetchTokenizationPolicyDetails(tokenizationPolicyId: string, params?: any): Promise { return ApiClient.handleResponse(await this.client.get(`tokenization_policies/${tokenizationPolicyId}`, params || {})) as TokenizationPolicy; } - + public async createBillingAccountTransaction(billingAccountId: string, params: any): Promise { - return ApiClient.handleResponse(await this.client.post(`billing_accounts/${billingAccountId}/transactions`, params)) as Transaction; + return ApiClient.handleResponse(await this.client.post(`billing_accounts/${billingAccountId}/transactions`, params)) as Transaction; } public async fetchBillingAccountTransactions(billingAccountId: string, params?: any): Promise> {