kotanipay-sdk 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +277 -22
- package/dist/cjs/client/kotani-pay.client.d.ts +4 -0
- package/dist/cjs/client/kotani-pay.client.d.ts.map +1 -1
- package/dist/cjs/client/kotani-pay.client.js +4 -0
- package/dist/cjs/client/kotani-pay.client.js.map +1 -1
- package/dist/cjs/modules/index.d.ts +3 -0
- package/dist/cjs/modules/index.d.ts.map +1 -1
- package/dist/cjs/modules/index.js +3 -0
- package/dist/cjs/modules/index.js.map +1 -1
- package/dist/cjs/modules/integrator/integrator.service.d.ts +1 -0
- package/dist/cjs/modules/integrator/integrator.service.d.ts.map +1 -1
- package/dist/cjs/modules/integrator/integrator.service.js +4 -0
- package/dist/cjs/modules/integrator/integrator.service.js.map +1 -1
- package/dist/cjs/modules/mobile-money/index.d.ts +2 -0
- package/dist/cjs/modules/mobile-money/index.d.ts.map +1 -0
- package/dist/cjs/modules/mobile-money/index.js +18 -0
- package/dist/cjs/modules/mobile-money/index.js.map +1 -0
- package/dist/cjs/modules/mobile-money/mobile-money.service.d.ts +10 -0
- package/dist/cjs/modules/mobile-money/mobile-money.service.d.ts.map +1 -1
- package/dist/cjs/modules/mobile-money/mobile-money.service.js +22 -0
- package/dist/cjs/modules/mobile-money/mobile-money.service.js.map +1 -1
- package/dist/cjs/modules/mobile-money-deposit/deposit.service.d.ts +10 -0
- package/dist/cjs/modules/mobile-money-deposit/deposit.service.d.ts.map +1 -0
- package/dist/cjs/modules/mobile-money-deposit/deposit.service.js +26 -0
- package/dist/cjs/modules/mobile-money-deposit/deposit.service.js.map +1 -0
- package/dist/cjs/modules/mobile-money-deposit/index.d.ts +2 -0
- package/dist/cjs/modules/mobile-money-deposit/index.d.ts.map +1 -0
- package/dist/cjs/modules/mobile-money-deposit/index.js +18 -0
- package/dist/cjs/modules/mobile-money-deposit/index.js.map +1 -0
- package/dist/cjs/modules/onramp/create-onramp.service.d.ts +10 -0
- package/dist/cjs/modules/onramp/create-onramp.service.d.ts.map +1 -0
- package/dist/cjs/modules/onramp/create-onramp.service.js +26 -0
- package/dist/cjs/modules/onramp/create-onramp.service.js.map +1 -0
- package/dist/cjs/modules/onramp/index.d.ts +2 -0
- package/dist/cjs/modules/onramp/index.d.ts.map +1 -0
- package/dist/cjs/modules/onramp/index.js +18 -0
- package/dist/cjs/modules/onramp/index.js.map +1 -0
- package/dist/cjs/modules/wallet/index.d.ts +2 -0
- package/dist/cjs/modules/wallet/index.d.ts.map +1 -0
- package/dist/cjs/modules/wallet/index.js +18 -0
- package/dist/cjs/modules/wallet/index.js.map +1 -0
- package/dist/cjs/modules/wallet/wallet.service.d.ts +12 -0
- package/dist/cjs/modules/wallet/wallet.service.d.ts.map +1 -0
- package/dist/cjs/modules/wallet/wallet.service.js +50 -0
- package/dist/cjs/modules/wallet/wallet.service.js.map +1 -0
- package/dist/cjs/types/deposit.types.d.ts +40 -0
- package/dist/cjs/types/deposit.types.d.ts.map +1 -0
- package/dist/cjs/types/deposit.types.js +3 -0
- package/dist/cjs/types/deposit.types.js.map +1 -0
- package/dist/cjs/types/index.d.ts +3 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +3 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/types/mobile-money.types.d.ts.map +1 -1
- package/dist/cjs/types/mobile-money.types.js +0 -1
- package/dist/cjs/types/mobile-money.types.js.map +1 -1
- package/dist/cjs/types/onramp.types.d.ts +28 -0
- package/dist/cjs/types/onramp.types.d.ts.map +1 -0
- package/dist/cjs/types/onramp.types.js +3 -0
- package/dist/cjs/types/onramp.types.js.map +1 -0
- package/dist/cjs/types/wallet.types.d.ts +19 -0
- package/dist/cjs/types/wallet.types.d.ts.map +1 -0
- package/dist/cjs/types/wallet.types.js +4 -0
- package/dist/cjs/types/wallet.types.js.map +1 -0
- package/dist/cjs/utils/validation.util.d.ts.map +1 -1
- package/dist/cjs/utils/validation.util.js.map +1 -1
- package/dist/esm/client/kotani-pay.client.d.ts +4 -0
- package/dist/esm/client/kotani-pay.client.d.ts.map +1 -1
- package/dist/esm/client/kotani-pay.client.js +4 -0
- package/dist/esm/client/kotani-pay.client.js.map +1 -1
- package/dist/esm/modules/index.d.ts +3 -0
- package/dist/esm/modules/index.d.ts.map +1 -1
- package/dist/esm/modules/index.js +3 -0
- package/dist/esm/modules/index.js.map +1 -1
- package/dist/esm/modules/integrator/integrator.service.d.ts +1 -0
- package/dist/esm/modules/integrator/integrator.service.d.ts.map +1 -1
- package/dist/esm/modules/integrator/integrator.service.js +4 -0
- package/dist/esm/modules/integrator/integrator.service.js.map +1 -1
- package/dist/esm/modules/mobile-money/index.d.ts +2 -0
- package/dist/esm/modules/mobile-money/index.d.ts.map +1 -0
- package/dist/esm/modules/mobile-money/index.js +2 -0
- package/dist/esm/modules/mobile-money/index.js.map +1 -0
- package/dist/esm/modules/mobile-money/mobile-money.service.d.ts +10 -0
- package/dist/esm/modules/mobile-money/mobile-money.service.d.ts.map +1 -1
- package/dist/esm/modules/mobile-money/mobile-money.service.js +22 -0
- package/dist/esm/modules/mobile-money/mobile-money.service.js.map +1 -1
- package/dist/esm/modules/mobile-money-deposit/deposit.service.d.ts +10 -0
- package/dist/esm/modules/mobile-money-deposit/deposit.service.d.ts.map +1 -0
- package/dist/esm/modules/mobile-money-deposit/deposit.service.js +22 -0
- package/dist/esm/modules/mobile-money-deposit/deposit.service.js.map +1 -0
- package/dist/esm/modules/mobile-money-deposit/index.d.ts +2 -0
- package/dist/esm/modules/mobile-money-deposit/index.d.ts.map +1 -0
- package/dist/esm/modules/mobile-money-deposit/index.js +2 -0
- package/dist/esm/modules/mobile-money-deposit/index.js.map +1 -0
- package/dist/esm/modules/onramp/create-onramp.service.d.ts +10 -0
- package/dist/esm/modules/onramp/create-onramp.service.d.ts.map +1 -0
- package/dist/esm/modules/onramp/create-onramp.service.js +22 -0
- package/dist/esm/modules/onramp/create-onramp.service.js.map +1 -0
- package/dist/esm/modules/onramp/index.d.ts +2 -0
- package/dist/esm/modules/onramp/index.d.ts.map +1 -0
- package/dist/esm/modules/onramp/index.js +2 -0
- package/dist/esm/modules/onramp/index.js.map +1 -0
- package/dist/esm/modules/wallet/index.d.ts +2 -0
- package/dist/esm/modules/wallet/index.d.ts.map +1 -0
- package/dist/esm/modules/wallet/index.js +2 -0
- package/dist/esm/modules/wallet/index.js.map +1 -0
- package/dist/esm/modules/wallet/wallet.service.d.ts +12 -0
- package/dist/esm/modules/wallet/wallet.service.d.ts.map +1 -0
- package/dist/esm/modules/wallet/wallet.service.js +46 -0
- package/dist/esm/modules/wallet/wallet.service.js.map +1 -0
- package/dist/esm/types/deposit.types.d.ts +40 -0
- package/dist/esm/types/deposit.types.d.ts.map +1 -0
- package/dist/esm/types/deposit.types.js +2 -0
- package/dist/esm/types/deposit.types.js.map +1 -0
- package/dist/esm/types/index.d.ts +3 -0
- package/dist/esm/types/index.d.ts.map +1 -1
- package/dist/esm/types/index.js +3 -0
- package/dist/esm/types/index.js.map +1 -1
- package/dist/esm/types/mobile-money.types.d.ts.map +1 -1
- package/dist/esm/types/mobile-money.types.js +0 -1
- package/dist/esm/types/mobile-money.types.js.map +1 -1
- package/dist/esm/types/onramp.types.d.ts +28 -0
- package/dist/esm/types/onramp.types.d.ts.map +1 -0
- package/dist/esm/types/onramp.types.js +2 -0
- package/dist/esm/types/onramp.types.js.map +1 -0
- package/dist/esm/types/wallet.types.d.ts +19 -0
- package/dist/esm/types/wallet.types.d.ts.map +1 -0
- package/dist/esm/types/wallet.types.js +3 -0
- package/dist/esm/types/wallet.types.js.map +1 -0
- package/dist/esm/utils/validation.util.d.ts.map +1 -1
- package/dist/esm/utils/validation.util.js.map +1 -1
- package/dist/types/client/kotani-pay.client.d.ts +4 -0
- package/dist/types/client/kotani-pay.client.d.ts.map +1 -1
- package/dist/types/modules/index.d.ts +3 -0
- package/dist/types/modules/index.d.ts.map +1 -1
- package/dist/types/modules/integrator/integrator.service.d.ts +1 -0
- package/dist/types/modules/integrator/integrator.service.d.ts.map +1 -1
- package/dist/types/modules/mobile-money/index.d.ts +2 -0
- package/dist/types/modules/mobile-money/index.d.ts.map +1 -0
- package/dist/types/modules/mobile-money/mobile-money.service.d.ts +10 -0
- package/dist/types/modules/mobile-money/mobile-money.service.d.ts.map +1 -1
- package/dist/types/modules/mobile-money-deposit/deposit.service.d.ts +10 -0
- package/dist/types/modules/mobile-money-deposit/deposit.service.d.ts.map +1 -0
- package/dist/types/modules/mobile-money-deposit/index.d.ts +2 -0
- package/dist/types/modules/mobile-money-deposit/index.d.ts.map +1 -0
- package/dist/types/modules/onramp/create-onramp.service.d.ts +10 -0
- package/dist/types/modules/onramp/create-onramp.service.d.ts.map +1 -0
- package/dist/types/modules/onramp/index.d.ts +2 -0
- package/dist/types/modules/onramp/index.d.ts.map +1 -0
- package/dist/types/modules/wallet/index.d.ts +2 -0
- package/dist/types/modules/wallet/index.d.ts.map +1 -0
- package/dist/types/modules/wallet/wallet.service.d.ts +12 -0
- package/dist/types/modules/wallet/wallet.service.d.ts.map +1 -0
- package/dist/types/types/deposit.types.d.ts +40 -0
- package/dist/types/types/deposit.types.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +3 -0
- package/dist/types/types/index.d.ts.map +1 -1
- package/dist/types/types/mobile-money.types.d.ts.map +1 -1
- package/dist/types/types/onramp.types.d.ts +28 -0
- package/dist/types/types/onramp.types.d.ts.map +1 -0
- package/dist/types/types/wallet.types.d.ts +19 -0
- package/dist/types/types/wallet.types.d.ts.map +1 -0
- package/dist/types/utils/validation.util.d.ts.map +1 -1
- package/package.json +5 -3
@@ -57,5 +57,27 @@ export class MobileMoneyService {
|
|
57
57
|
const response = await this.httpClient.get(`/api/v3/customer/mobile-money/${customerId}`);
|
58
58
|
return response.data;
|
59
59
|
}
|
60
|
+
/**
|
61
|
+
* Get mobile money customers by customer key
|
62
|
+
* Requires API key authentication
|
63
|
+
*/
|
64
|
+
async getCustomersByKey(customerKey) {
|
65
|
+
if (!customerKey) {
|
66
|
+
throw new Error('Customer key is required');
|
67
|
+
}
|
68
|
+
const response = await this.httpClient.get(`/api/v3/customer/mobile-money/${customerKey}`);
|
69
|
+
return response.data;
|
70
|
+
}
|
71
|
+
/**
|
72
|
+
* Get mobile money customers by phone number
|
73
|
+
* Requires API key authentication
|
74
|
+
*/
|
75
|
+
async getCustomersByPhoneNumber(phoneNumber) {
|
76
|
+
if (!phoneNumber) {
|
77
|
+
throw new Error('Phone number is required');
|
78
|
+
}
|
79
|
+
const response = await this.httpClient.get(`/api/v3/customer/mobile-money/phone/${phoneNumber}`);
|
80
|
+
return response.data;
|
81
|
+
}
|
60
82
|
}
|
61
83
|
//# sourceMappingURL=mobile-money.service.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mobile-money.service.js","sourceRoot":"","sources":["../../../../src/modules/mobile-money/mobile-money.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAQ7D,MAAM,OAAO,kBAAkB;IAC7B,YAAoB,UAA0B;QAA1B,eAAU,GAAV,UAAU,CAAgB;IAAG,CAAC;IAE1C,6BAA6B,CAAC,OAAyC;QAC7E,MAAM,cAAc,GAA+C;YACjE,cAAc,EAAE,cAAc;SAC/B,CAAC;QAEF,cAAc,CAAC,sBAAsB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;QAC/D,cAAc,CAAC,aAAa,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;QACnD,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;QAE/C,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YACpB,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;IACH,CAAC;IAEO,mBAAmB,CAAC,WAAmB;QAC7C,MAAM,iBAAiB,GAAG;YACxB,KAAK,EAAE,KA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OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAGD;;;OAGG;IACH,KAAK,CAAC,iBAAiB,CAAC,WAAmB;QACzC,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;QAC9C,CAAC;QAED,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CACxC,iCAAiC,WAAW,EAAE,CAC/C,CAAC;QAEF,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAEC;;;KAGC;IACH,KAAK,CAAC,yBAAyB,CAAC,WAAmB;QACjD,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;QAC9C,CAAC;QAED,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CACxC,uCAAuC,WAAW,EAAE,CACrD,CAAC;QAEF,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;CACF"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { HttpClientUtil } from '../../utils/http-client.util';
|
2
|
+
import { CreateMobileMoneyDepositRequest, MobileMoneyDepositResponse } from '../../types';
|
3
|
+
export declare class MobileMoneyDepositService {
|
4
|
+
private httpClient;
|
5
|
+
constructor(httpClient: HttpClientUtil);
|
6
|
+
private validateCreateCustomerRequest;
|
7
|
+
createDeposit(request: CreateMobileMoneyDepositRequest): Promise<MobileMoneyDepositResponse['data']>;
|
8
|
+
getDepositTransactionStatus(reference_id: string): Promise<MobileMoneyDepositResponse['data']>;
|
9
|
+
}
|
10
|
+
//# sourceMappingURL=deposit.service.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"deposit.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/mobile-money-deposit/deposit.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,EACL,+BAA+B,EAC/B,0BAA0B,EAE3B,MAAM,aAAa,CAAC;AAErB,qBAAa,yBAAyB;IACxB,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,cAAc;IAE9C,OAAO,CAAC,6BAA6B;IAQ7B,aAAa,CAAC,OAAO,EAAE,+BAA+B,GAAG,OAAO,CAAC,0BAA0B,CAAC,MAAM,CAAC,CAAC;IAWpG,2BAA2B,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,0BAA0B,CAAC,MAAM,CAAC,CAAC;CAOvG"}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { ValidationUtil } from '../../utils/validation.util';
|
2
|
+
export class MobileMoneyDepositService {
|
3
|
+
constructor(httpClient) {
|
4
|
+
this.httpClient = httpClient;
|
5
|
+
}
|
6
|
+
validateCreateCustomerRequest(request) {
|
7
|
+
const requiredFields = [
|
8
|
+
'amount', 'wallet_id', 'customer_key'
|
9
|
+
];
|
10
|
+
ValidationUtil.validateRequiredFields(request, requiredFields);
|
11
|
+
}
|
12
|
+
async createDeposit(request) {
|
13
|
+
this.validateCreateCustomerRequest(request);
|
14
|
+
const response = await this.httpClient.post('/api/v3/deposit/mobile-money', request);
|
15
|
+
return response.data;
|
16
|
+
}
|
17
|
+
async getDepositTransactionStatus(reference_id) {
|
18
|
+
const response = await this.httpClient.get(`/api/v3/deposit/mobile-money/status/${reference_id}`);
|
19
|
+
return response.data;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
//# sourceMappingURL=deposit.service.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"deposit.service.js","sourceRoot":"","sources":["../../../../src/modules/mobile-money-deposit/deposit.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAO7D,MAAM,OAAO,yBAAyB;IACpC,YAAoB,UAA0B;QAA1B,eAAU,GAAV,UAAU,CAAgB;IAAG,CAAC;IAE1C,6BAA6B,CAAC,OAAwC;QAC5E,MAAM,cAAc,GAA8C;YAChE,QAAQ,EAAE,WAAW,EAAE,cAAc;SACtC,CAAC;QAEF,cAAc,CAAC,sBAAsB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;IAEjE,CAAC;IACC,KAAK,CAAC,aAAa,CAAC,OAAwC;QACxD,IAAI,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAC;QAE5C,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAC3C,8BAA8B,EAC9B,OAAO,CACN,CAAC;QAEF,OAAO,QAAQ,CAAC,IAAI,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,2BAA2B,CAAC,YAAoB;QACtD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CACtC,uCAAuC,YAAY,EAAE,CACxD,CAAC;QAEF,OAAO,QAAQ,CAAC,IAAI,CAAC;IACzB,CAAC;CACA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/mobile-money-deposit/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/mobile-money-deposit/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { HttpClientUtil } from '../../utils/http-client.util';
|
2
|
+
import { CreateOnRampRequest, OnrampResponse } from '../../types';
|
3
|
+
export declare class OnrampService {
|
4
|
+
private httpClient;
|
5
|
+
constructor(httpClient: HttpClientUtil);
|
6
|
+
private validateCreateCustomerRequest;
|
7
|
+
iniatiateOnramp(request: CreateOnRampRequest): Promise<OnrampResponse['data']>;
|
8
|
+
getOnRampTransactionStatus(referenceId: string): Promise<OnrampResponse['data']>;
|
9
|
+
}
|
10
|
+
//# sourceMappingURL=create-onramp.service.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"create-onramp.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/onramp/create-onramp.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,EACH,mBAAmB,EAErB,cAAc,EACf,MAAM,aAAa,CAAC;AAErB,qBAAa,aAAa;IACZ,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,cAAc;IAE9C,OAAO,CAAC,6BAA6B;IAQ7B,eAAe,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IAW9E,0BAA0B,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;CAOzF"}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { ValidationUtil } from '../../utils/validation.util';
|
2
|
+
export class OnrampService {
|
3
|
+
constructor(httpClient) {
|
4
|
+
this.httpClient = httpClient;
|
5
|
+
}
|
6
|
+
validateCreateCustomerRequest(request) {
|
7
|
+
const requiredFields = [
|
8
|
+
'mobileMoney', 'fiatAmount', 'currency', 'chain', 'token', 'receiverAddress', 'referenceId', 'callbackUrl', 'rateId'
|
9
|
+
];
|
10
|
+
ValidationUtil.validateRequiredFields(request, requiredFields);
|
11
|
+
}
|
12
|
+
async iniatiateOnramp(request) {
|
13
|
+
this.validateCreateCustomerRequest(request);
|
14
|
+
const response = await this.httpClient.post('/api/v3/onramp', request);
|
15
|
+
return response.data;
|
16
|
+
}
|
17
|
+
async getOnRampTransactionStatus(referenceId) {
|
18
|
+
const response = await this.httpClient.get(`/api/v3/onramp/${referenceId}`);
|
19
|
+
return response.data;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
//# sourceMappingURL=create-onramp.service.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"create-onramp.service.js","sourceRoot":"","sources":["../../../../src/modules/onramp/create-onramp.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAO7D,MAAM,OAAO,aAAa;IACxB,YAAoB,UAA0B;QAA1B,eAAU,GAAV,UAAU,CAAgB;IAAG,CAAC;IAE1C,6BAA6B,CAAC,OAA4B;QAChE,MAAM,cAAc,GAAkC;YACpD,aAAa,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ;SACrH,CAAC;QAEF,cAAc,CAAC,sBAAsB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;IAEjE,CAAC;IACC,KAAK,CAAC,eAAe,CAAC,OAA4B;QAC9C,IAAI,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAC;QAE5C,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAC3C,gBAAgB,EAChB,OAAO,CACN,CAAC;QAEF,OAAO,QAAQ,CAAC,IAAI,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,0BAA0B,CAAC,WAAmB;QACpD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CACtC,kBAAkB,WAAW,EAAE,CAClC,CAAC;QAEF,OAAO,QAAQ,CAAC,IAAI,CAAC;IACzB,CAAC;CACA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/onramp/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/onramp/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallet/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/wallet/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { HttpClientUtil } from '../../utils/http-client.util';
|
2
|
+
import { CreateWalletRequest, CreateWalletResponse } from '../../types';
|
3
|
+
export declare class WalletService {
|
4
|
+
private httpClient;
|
5
|
+
constructor(httpClient: HttpClientUtil);
|
6
|
+
private validateCreateWalletRequest;
|
7
|
+
create(request: CreateWalletRequest): Promise<CreateWalletResponse>;
|
8
|
+
getIntegratorFiatWallets(): Promise<CreateWalletResponse[]>;
|
9
|
+
getIntegratorFiatWalletById(walletId: string): Promise<CreateWalletResponse>;
|
10
|
+
getIntegratorFiatWalletsByCurrency(currency: string): Promise<CreateWalletResponse[]>;
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=wallet.service.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"wallet.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallet/wallet.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EAErB,MAAM,aAAa,CAAC;AAErB,qBAAa,aAAa;IACZ,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,cAAc;IAE9C,OAAO,CAAC,2BAA2B;IAwB3B,MAAM,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAWzE,wBAAwB,IAAI,OAAO,CAAC,oBAAoB,EAAE,CAAC;IAO3D,2BAA2B,CAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAU7E,kCAAkC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;CASxF"}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
import { ValidationUtil } from '../../utils/validation.util';
|
2
|
+
export class WalletService {
|
3
|
+
constructor(httpClient) {
|
4
|
+
this.httpClient = httpClient;
|
5
|
+
}
|
6
|
+
validateCreateWalletRequest(request) {
|
7
|
+
const requiredFields = [
|
8
|
+
'name', 'currency'
|
9
|
+
];
|
10
|
+
ValidationUtil.validateRequiredFields(request, requiredFields);
|
11
|
+
async function validateCurrency(currency) {
|
12
|
+
const supportedCurrencies = [
|
13
|
+
'USD', 'EUR', 'GBP', 'GHS', 'KES', 'ZAR',
|
14
|
+
'NGN', 'TZS', 'UGX', 'RWF', 'MWK', 'ZMW'
|
15
|
+
];
|
16
|
+
if (!supportedCurrencies.includes(currency)) {
|
17
|
+
throw new Error(`Unsupported currency: ${currency}. Supported currencies are: ${supportedCurrencies.join(', ')}`);
|
18
|
+
}
|
19
|
+
}
|
20
|
+
validateCurrency(request.currency)
|
21
|
+
.catch(error => {
|
22
|
+
throw new Error(`Currency validation failed: ${error.message}`);
|
23
|
+
});
|
24
|
+
}
|
25
|
+
async create(request) {
|
26
|
+
this.validateCreateWalletRequest(request);
|
27
|
+
const response = await this.httpClient.post('/api/v3/wallet/fiat', request);
|
28
|
+
return response.data;
|
29
|
+
}
|
30
|
+
getIntegratorFiatWallets() {
|
31
|
+
return this.httpClient.get('/api/v3/wallet/fiat').then(response => response.data);
|
32
|
+
}
|
33
|
+
getIntegratorFiatWalletById(walletId) {
|
34
|
+
if (!walletId) {
|
35
|
+
throw new Error('Wallet ID is required');
|
36
|
+
}
|
37
|
+
return this.httpClient.get(`/api/v3/wallet/fiat/${walletId}`).then(response => response.data);
|
38
|
+
}
|
39
|
+
getIntegratorFiatWalletsByCurrency(currency) {
|
40
|
+
if (!currency) {
|
41
|
+
throw new Error('Currency is required');
|
42
|
+
}
|
43
|
+
return this.httpClient.get(`/api/v3/wallet/fiat/currency/${currency}`).then(response => response.data);
|
44
|
+
}
|
45
|
+
}
|
46
|
+
//# sourceMappingURL=wallet.service.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"wallet.service.js","sourceRoot":"","sources":["../../../../src/modules/wallet/wallet.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAO7D,MAAM,OAAO,aAAa;IACxB,YAAoB,UAA0B;QAA1B,eAAU,GAAV,UAAU,CAAgB;IAAG,CAAC;IAE1C,2BAA2B,CAAC,OAA4B;QAC9D,MAAM,cAAc,GAAkC;YACpD,MAAM,EAAE,UAAU;SACnB,CAAC;QAEF,cAAc,CAAC,sBAAsB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;QAG/D,KAAK,UAAU,gBAAgB,CAAC,QAAgB;YAC9C,MAAM,mBAAmB,GAAG;gBAC1B,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK;gBACxC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK;aACzC,CAAC;YAEF,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;gBAC5C,MAAM,IAAI,KAAK,CAAC,yBAAyB,QAAQ,+BAA+B,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACpH,CAAC;QACH,CAAC;QACD,gBAAgB,CAAC,OAAO,CAAC,QAAQ,CAAC;aAC/B,KAAK,CAAC,KAAK,CAAC,EAAE;YACb,MAAM,IAAI,KAAK,CAAC,+BAA+B,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;QAClE,CAAC,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAA4B;QACvC,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC;QAE1C,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CACzC,qBAAqB,EACrB,OAAO,CACR,CAAC;QAEF,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAED,wBAAwB;QAEtB,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CACxB,qBAAqB,CACtB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC;IAED,2BAA2B,CAAE,QAAgB;QAC3C,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;QAC3C,CAAC;QAED,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CACxB,uBAAuB,QAAQ,EAAE,CAClC,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC;IAED,kCAAkC,CAAC,QAAgB;QACjD,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAC1C,CAAC;QAED,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CACxB,gCAAgC,QAAQ,EAAE,CAC3C,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC;CACJ"}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
export interface CreateMobileMoneyDepositRequest {
|
2
|
+
amount: number;
|
3
|
+
wallet_id: string;
|
4
|
+
customer_key: string;
|
5
|
+
callback_url?: string;
|
6
|
+
reference_id?: string;
|
7
|
+
}
|
8
|
+
export interface MobileMoneyDepositResponse {
|
9
|
+
sussess: boolean;
|
10
|
+
message: string;
|
11
|
+
data: {
|
12
|
+
id: string;
|
13
|
+
message: string;
|
14
|
+
reference_id: string;
|
15
|
+
reference_number: string;
|
16
|
+
customer_key: string;
|
17
|
+
redirect_url: string;
|
18
|
+
};
|
19
|
+
}
|
20
|
+
export interface MobileMoneyDepositStatusResponse {
|
21
|
+
success: boolean;
|
22
|
+
message: string;
|
23
|
+
data: {
|
24
|
+
id: string;
|
25
|
+
message: string;
|
26
|
+
reference_id: string;
|
27
|
+
reference_number: string;
|
28
|
+
customer_key: string;
|
29
|
+
callback_url: string;
|
30
|
+
status: 'PENDING' | 'INITIATED' | 'SUCCESSFUL' | 'FAILED' | 'EXPIRED' | 'CANCELLED' | 'DECLINED' | 'REVERSED' | 'IN_PROGRESS' | 'DUPLICATE' | 'ERROR_OCCURRED' | 'REQUIRE_REVIEW' | 'SUCCESS' | 'RETRY';
|
31
|
+
created_at: string;
|
32
|
+
transaction_cost: number;
|
33
|
+
initialDepositBalance?: number;
|
34
|
+
finalDepositBalance?: number;
|
35
|
+
error_message?: string;
|
36
|
+
error_code?: string;
|
37
|
+
error_description?: string;
|
38
|
+
};
|
39
|
+
}
|
40
|
+
//# sourceMappingURL=deposit.types.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"deposit.types.d.ts","sourceRoot":"","sources":["../../../src/types/deposit.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,+BAA+B;IAC9C,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,MAAM,CAAC;QAChB,YAAY,EAAE,MAAM,CAAC;QACrB,gBAAgB,EAAE,MAAM,CAAC;QACzB,YAAY,EAAE,MAAM,CAAC;QACrB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;CACH;AAED,MAAM,WAAW,gCAAgC;IAC7C,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE;QACF,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,MAAM,CAAC;QAChB,YAAY,EAAE,MAAM,CAAC;QACrB,gBAAgB,EAAE,MAAM,CAAC;QACzB,YAAY,EAAE,MAAM,CAAC;QACrB,YAAY,EAAE,MAAM,CAAC;QACrB,MAAM,EAAE,SAAS,GAAG,WAAW,GAAG,YAAY,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,UAAU,GAAG,aAAa,GAAG,WAAW,GAAG,gBAAgB,GAAG,gBAAgB,GAAG,SAAS,GAAG,OAAO,CAAC;QACxM,UAAU,EAAE,MAAM,CAAC;QACnB,gBAAgB,EAAE,MAAM,CAAC;QACzB,qBAAqB,CAAC,EAAE,MAAM,CAAC;QAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;KAC9B,CAAC;CACL"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"deposit.types.js","sourceRoot":"","sources":["../../../src/types/deposit.types.ts"],"names":[],"mappings":""}
|
@@ -3,4 +3,7 @@ export * from './integrator.types';
|
|
3
3
|
export * from './authentication.types';
|
4
4
|
export * from './error.types';
|
5
5
|
export * from './mobile-money.types';
|
6
|
+
export * from './wallet.types';
|
7
|
+
export * from './deposit.types';
|
8
|
+
export * from './onramp.types';
|
6
9
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
|
package/dist/esm/types/index.js
CHANGED
@@ -3,4 +3,7 @@ export * from './integrator.types';
|
|
3
3
|
export * from './authentication.types';
|
4
4
|
export * from './error.types';
|
5
5
|
export * from './mobile-money.types';
|
6
|
+
export * from './wallet.types';
|
7
|
+
export * from './deposit.types';
|
8
|
+
export * from './onramp.types';
|
6
9
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mobile-money.types.d.ts","sourceRoot":"","sources":["../../../src/types/mobile-money.types.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"mobile-money.types.d.ts","sourceRoot":"","sources":["../../../src/types/mobile-money.types.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,gCAAgC;IAC/C,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IACpH,OAAO,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,eAAe,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CAAC;IACxM,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,YAAY,EAAE,MAAM,CAAC;QACrB,YAAY,EAAE,MAAM,CAAC;QACrB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,MAAM,EAAE,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;QAC1C,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;CACH;AAED,MAAM,WAAW,+BAA+B;IAC9C,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,2BAA2B,CAAC,MAAM,CAAC,EAAE,CAAC;CAC7C"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mobile-money.types.js","sourceRoot":"","sources":["../../../src/types/mobile-money.types.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"mobile-money.types.js","sourceRoot":"","sources":["../../../src/types/mobile-money.types.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
export interface CreateOnRampRequest {
|
2
|
+
mobileMoney: {
|
3
|
+
phoneNumber: string;
|
4
|
+
accountName: string;
|
5
|
+
providerNetwork: string;
|
6
|
+
};
|
7
|
+
currency: string;
|
8
|
+
chain: string;
|
9
|
+
token: string;
|
10
|
+
fiatAmount: number;
|
11
|
+
receiverAddress: string;
|
12
|
+
referenceId: string;
|
13
|
+
callbackUrl: string;
|
14
|
+
rateId: string;
|
15
|
+
}
|
16
|
+
export interface OnrampResponse {
|
17
|
+
success: boolean;
|
18
|
+
message: string;
|
19
|
+
data: {
|
20
|
+
id: string;
|
21
|
+
message: string;
|
22
|
+
referenceId: string;
|
23
|
+
referenceNumber: string;
|
24
|
+
customerKey: string;
|
25
|
+
redirectUrl: string;
|
26
|
+
};
|
27
|
+
}
|
28
|
+
//# sourceMappingURL=onramp.types.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"onramp.types.d.ts","sourceRoot":"","sources":["../../../src/types/onramp.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IACpC,WAAW,EAAE;QACT,WAAW,EAAE,MAAM,CAAC;QACpB,WAAW,EAAE,MAAM,CAAC;QACpB,eAAe,EAAE,MAAM,CAAC;KAC3B,CAAA;IACC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,cAAc;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE;QACF,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,EAAE,MAAM,CAAC;QACpB,eAAe,EAAE,MAAM,CAAC;QACxB,WAAW,EAAE,MAAM,CAAC;QACpB,WAAW,EAAE,MAAM,CAAC;KACvB,CAAA;CACJ"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"onramp.types.js","sourceRoot":"","sources":["../../../src/types/onramp.types.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
export interface CreateWalletResponse {
|
2
|
+
sucess: boolean;
|
3
|
+
message: string;
|
4
|
+
data: {
|
5
|
+
name: string;
|
6
|
+
type: 'fiat' | 'crypto';
|
7
|
+
currency: string;
|
8
|
+
integrator: string;
|
9
|
+
status: 'active' | 'inactive' | 'suspended' | 'deleted';
|
10
|
+
id: string;
|
11
|
+
balance: number;
|
12
|
+
depositbalance: number;
|
13
|
+
};
|
14
|
+
}
|
15
|
+
export interface CreateWalletRequest {
|
16
|
+
name: string;
|
17
|
+
currency: string;
|
18
|
+
}
|
19
|
+
//# sourceMappingURL=wallet.types.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"wallet.types.d.ts","sourceRoot":"","sources":["../../../src/types/wallet.types.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,GAAG,QAAQ,CAAC;QACxB,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,EAAE,QAAQ,GAAG,UAAU,GAAG,WAAW,GAAG,SAAS,CAAC;QACxD,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,MAAM,CAAC;QAChB,cAAc,EAAE,MAAM,CAAC;KACxB,CAAC;CACH;AAED,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CACpB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"wallet.types.js","sourceRoot":"","sources":["../../../src/types/wallet.types.ts"],"names":[],"mappings":"AAmBC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validation.util.d.ts","sourceRoot":"","sources":["../../../src/utils/validation.util.ts"],"names":[],"mappings":"AAEA,qBAAa,cAAc;IACzB,MAAM,CAAC,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAOzC,MAAM,CAAC,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAOzC,MAAM,CAAC,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAOrD,MAAM,CAAC,sBAAsB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,IAAI;
|
1
|
+
{"version":3,"file":"validation.util.d.ts","sourceRoot":"","sources":["../../../src/utils/validation.util.ts"],"names":[],"mappings":"AAEA,qBAAa,cAAc;IACzB,MAAM,CAAC,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAOzC,MAAM,CAAC,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAOzC,MAAM,CAAC,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAOrD,MAAM,CAAC,sBAAsB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,IAAI;CAW5E"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validation.util.js","sourceRoot":"","sources":["../../../src/utils/validation.util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,OAAO,cAAc;IACzB,MAAM,CAAC,aAAa,CAAC,KAAa;QAChC,MAAM,UAAU,GAAG,4BA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,IAAI,eAAe,CAAC,sBAAsB,CAAC,CAAC;QACpD,CAAC;IACH,CAAC;IAED,MAAM,CAAC,aAAa,CAAC,KAAa;QAChC,MAAM,UAAU,GAAG,oBAAoB,CAAC;QACxC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YAC5B,MAAM,IAAI,eAAe,CAAC,6BAA6B,CAAC,CAAC;QAC3D,CAAC;IACH,CAAC;IAED,MAAM,CAAC,mBAAmB,CAAC,WAAmB;QAC5C,MAAM,gBAAgB,GAAG,aAAa,CAAC;QACvC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;YACxC,MAAM,IAAI,eAAe,CAAC,0CAA0C,CAAC,CAAC;QACxE,CAAC;IACH,CAAC;IAED,MAAM,CAAC,sBAAsB,CAAI,GAAM,EAAE,cAA2B;QAClE,MAAM,aAAa,GAAG,cAAc,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;QAClE,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC7B,MAAM,IAAI,eAAe,CACvB,4BAA4B,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CACvD,CAAC;QACJ,CAAC;IACH,CAAC;CAIF"}
|
@@ -2,11 +2,15 @@ import { IntegratorService } from '../modules/integrator';
|
|
2
2
|
import { AuthService } from '../modules/auth';
|
3
3
|
import { MobileMoneyService } from '../modules/mobile-money/mobile-money.service';
|
4
4
|
import { KotaniPayConfig, AuthenticatedSession } from '../types';
|
5
|
+
import { WalletService } from '../modules/wallet';
|
6
|
+
import { MobileMoneyDepositService } from '../modules/mobile-money-deposit';
|
5
7
|
export declare class KotaniPayClient {
|
6
8
|
private httpClient;
|
7
9
|
integrator: IntegratorService;
|
8
10
|
auth: AuthService;
|
9
11
|
mobileMoney: MobileMoneyService;
|
12
|
+
wallet: WalletService;
|
13
|
+
mobileMoneyDeposit: MobileMoneyDepositService;
|
10
14
|
constructor(config: KotaniPayConfig);
|
11
15
|
/**
|
12
16
|
* Initialize client with session data after user login
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"kotani-pay.client.d.ts","sourceRoot":"","sources":["../../../src/client/kotani-pay.client.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;
|
1
|
+
{"version":3,"file":"kotani-pay.client.d.ts","sourceRoot":"","sources":["../../../src/client/kotani-pay.client.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,EAAG,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAE5E,qBAAa,eAAe;IAC1B,OAAO,CAAC,UAAU,CAAiB;IAC5B,UAAU,EAAE,iBAAiB,CAAC;IAC9B,IAAI,EAAE,WAAW,CAAC;IAClB,WAAW,EAAE,kBAAkB,CAAC;IAChC,MAAM,EAAE,aAAa,CAAC;IACtB,kBAAkB,EAAE,yBAAyB,CAAC;gBAEzC,MAAM,EAAE,eAAe;IAYnC;;OAEG;IACH,qBAAqB,CAAC,WAAW,EAAE,oBAAoB,GAAG,IAAI;IAI9D;;OAEG;IACH,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAIpC,WAAW,IAAI,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAKnE,SAAS,IAAI;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE;IAIrD,UAAU,IAAI,MAAM;IAIpB;;OAEG;IACH,eAAe,IAAI,OAAO;IAI1B;;OAEG;IACH,aAAa,IAAI;QACf,eAAe,EAAE,OAAO,CAAC;QACzB,UAAU,EAAE,OAAO,CAAC;QACpB,SAAS,EAAE,OAAO,CAAC;QACnB,SAAS,CAAC,EAAE,GAAG,CAAC;KACjB;CAYF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,wBAAwB,CAAC"}
|
@@ -5,6 +5,7 @@ export declare class IntegratorService {
|
|
5
5
|
constructor(httpClient: HttpClientUtil);
|
6
6
|
private validateCreateIntegratorRequest;
|
7
7
|
create(request: CreateIntegratorRequest): Promise<IntegratorResponse>;
|
8
|
+
getIntegratorInfo(): Promise<IntegratorResponse[]>;
|
8
9
|
getById(id: string): Promise<IntegratorResponse>;
|
9
10
|
}
|
10
11
|
//# sourceMappingURL=integrator.service.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"integrator.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/integrator/integrator.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAe,MAAM,aAAa,CAAC;AAEvF,qBAAa,iBAAiB;IAChB,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,cAAc;IAE9C,OAAO,CAAC,+BAA+B;IAYjC,MAAM,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAWrE,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAWvD"}
|
1
|
+
{"version":3,"file":"integrator.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/integrator/integrator.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAe,MAAM,aAAa,CAAC;AAEvF,qBAAa,iBAAiB;IAChB,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,cAAc;IAE9C,OAAO,CAAC,+BAA+B;IAYjC,MAAM,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAWrE,iBAAiB,IAAI,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAQlD,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAWvD"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/mobile-money/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
@@ -17,5 +17,15 @@ export declare class MobileMoneyService {
|
|
17
17
|
* Requires API key authentication
|
18
18
|
*/
|
19
19
|
getCustomerById(customerId: string): Promise<MobileMoneyCustomerResponse['data']>;
|
20
|
+
/**
|
21
|
+
* Get mobile money customers by customer key
|
22
|
+
* Requires API key authentication
|
23
|
+
*/
|
24
|
+
getCustomersByKey(customerKey: string): Promise<MobileMoneyCustomerResponse['data'][]>;
|
25
|
+
/**
|
26
|
+
* Get mobile money customers by phone number
|
27
|
+
* Requires API key authentication
|
28
|
+
*/
|
29
|
+
getCustomersByPhoneNumber(phoneNumber: string): Promise<MobileMoneyCustomerResponse['data'][]>;
|
20
30
|
}
|
21
31
|
//# sourceMappingURL=mobile-money.service.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mobile-money.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/mobile-money/mobile-money.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,EACL,gCAAgC,EAChC,2BAA2B,EAG5B,MAAM,aAAa,CAAC;AAErB,qBAAa,kBAAkB;IACjB,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,cAAc;IAE9C,OAAO,CAAC,6BAA6B;IAcrC,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,eAAe;IAajB,cAAc,CAAC,OAAO,EAAE,gCAAgC,GAAG,OAAO,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAC;IAW7G;;;OAGG;IACG,eAAe,IAAI,OAAO,CAAC,2BAA2B,CAAC,MAAM,CAAC,EAAE,CAAC;IAQvE;;;OAGG;IACG,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"mobile-money.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/mobile-money/mobile-money.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,EACL,gCAAgC,EAChC,2BAA2B,EAG5B,MAAM,aAAa,CAAC;AAErB,qBAAa,kBAAkB;IACjB,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,cAAc;IAE9C,OAAO,CAAC,6BAA6B;IAcrC,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,eAAe;IAajB,cAAc,CAAC,OAAO,EAAE,gCAAgC,GAAG,OAAO,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAC;IAW7G;;;OAGG;IACG,eAAe,IAAI,OAAO,CAAC,2BAA2B,CAAC,MAAM,CAAC,EAAE,CAAC;IAQvE;;;OAGG;IACG,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAC;IAavF;;;OAGG;IACG,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC,MAAM,CAAC,EAAE,CAAC;IAY1F;;;KAGC;IACG,yBAAyB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC,MAAM,CAAC,EAAE,CAAC;CAWrG"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { HttpClientUtil } from '../../utils/http-client.util';
|
2
|
+
import { CreateMobileMoneyDepositRequest, MobileMoneyDepositResponse } from '../../types';
|
3
|
+
export declare class MobileMoneyDepositService {
|
4
|
+
private httpClient;
|
5
|
+
constructor(httpClient: HttpClientUtil);
|
6
|
+
private validateCreateCustomerRequest;
|
7
|
+
createDeposit(request: CreateMobileMoneyDepositRequest): Promise<MobileMoneyDepositResponse['data']>;
|
8
|
+
getDepositTransactionStatus(reference_id: string): Promise<MobileMoneyDepositResponse['data']>;
|
9
|
+
}
|
10
|
+
//# sourceMappingURL=deposit.service.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"deposit.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/mobile-money-deposit/deposit.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,EACL,+BAA+B,EAC/B,0BAA0B,EAE3B,MAAM,aAAa,CAAC;AAErB,qBAAa,yBAAyB;IACxB,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,cAAc;IAE9C,OAAO,CAAC,6BAA6B;IAQ7B,aAAa,CAAC,OAAO,EAAE,+BAA+B,GAAG,OAAO,CAAC,0BAA0B,CAAC,MAAM,CAAC,CAAC;IAWpG,2BAA2B,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,0BAA0B,CAAC,MAAM,CAAC,CAAC;CAOvG"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/mobile-money-deposit/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { HttpClientUtil } from '../../utils/http-client.util';
|
2
|
+
import { CreateOnRampRequest, OnrampResponse } from '../../types';
|
3
|
+
export declare class OnrampService {
|
4
|
+
private httpClient;
|
5
|
+
constructor(httpClient: HttpClientUtil);
|
6
|
+
private validateCreateCustomerRequest;
|
7
|
+
iniatiateOnramp(request: CreateOnRampRequest): Promise<OnrampResponse['data']>;
|
8
|
+
getOnRampTransactionStatus(referenceId: string): Promise<OnrampResponse['data']>;
|
9
|
+
}
|
10
|
+
//# sourceMappingURL=create-onramp.service.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"create-onramp.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/onramp/create-onramp.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,EACH,mBAAmB,EAErB,cAAc,EACf,MAAM,aAAa,CAAC;AAErB,qBAAa,aAAa;IACZ,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,cAAc;IAE9C,OAAO,CAAC,6BAA6B;IAQ7B,eAAe,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IAW9E,0BAA0B,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;CAOzF"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/onramp/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallet/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { HttpClientUtil } from '../../utils/http-client.util';
|
2
|
+
import { CreateWalletRequest, CreateWalletResponse } from '../../types';
|
3
|
+
export declare class WalletService {
|
4
|
+
private httpClient;
|
5
|
+
constructor(httpClient: HttpClientUtil);
|
6
|
+
private validateCreateWalletRequest;
|
7
|
+
create(request: CreateWalletRequest): Promise<CreateWalletResponse>;
|
8
|
+
getIntegratorFiatWallets(): Promise<CreateWalletResponse[]>;
|
9
|
+
getIntegratorFiatWalletById(walletId: string): Promise<CreateWalletResponse>;
|
10
|
+
getIntegratorFiatWalletsByCurrency(currency: string): Promise<CreateWalletResponse[]>;
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=wallet.service.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"wallet.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallet/wallet.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EAErB,MAAM,aAAa,CAAC;AAErB,qBAAa,aAAa;IACZ,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,cAAc;IAE9C,OAAO,CAAC,2BAA2B;IAwB3B,MAAM,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAWzE,wBAAwB,IAAI,OAAO,CAAC,oBAAoB,EAAE,CAAC;IAO3D,2BAA2B,CAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAU7E,kCAAkC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;CASxF"}
|