kotanipay-sdk 1.0.3 → 1.0.5

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.
Files changed (164) hide show
  1. package/README.md +277 -22
  2. package/dist/cjs/client/kotani-pay.client.d.ts +3 -0
  3. package/dist/cjs/client/kotani-pay.client.d.ts.map +1 -1
  4. package/dist/cjs/client/kotani-pay.client.js +3 -0
  5. package/dist/cjs/client/kotani-pay.client.js.map +1 -1
  6. package/dist/cjs/modules/index.d.ts +3 -0
  7. package/dist/cjs/modules/index.d.ts.map +1 -1
  8. package/dist/cjs/modules/index.js +3 -0
  9. package/dist/cjs/modules/index.js.map +1 -1
  10. package/dist/cjs/modules/integrator/integrator.service.d.ts +1 -0
  11. package/dist/cjs/modules/integrator/integrator.service.d.ts.map +1 -1
  12. package/dist/cjs/modules/integrator/integrator.service.js +4 -0
  13. package/dist/cjs/modules/integrator/integrator.service.js.map +1 -1
  14. package/dist/cjs/modules/mobile-money/index.d.ts +2 -0
  15. package/dist/cjs/modules/mobile-money/index.d.ts.map +1 -0
  16. package/dist/cjs/modules/mobile-money/index.js +18 -0
  17. package/dist/cjs/modules/mobile-money/index.js.map +1 -0
  18. package/dist/cjs/modules/mobile-money/mobile-money.service.d.ts +10 -0
  19. package/dist/cjs/modules/mobile-money/mobile-money.service.d.ts.map +1 -1
  20. package/dist/cjs/modules/mobile-money/mobile-money.service.js +22 -0
  21. package/dist/cjs/modules/mobile-money/mobile-money.service.js.map +1 -1
  22. package/dist/cjs/modules/mobile-money-deposit/deposit.service.d.ts +10 -0
  23. package/dist/cjs/modules/mobile-money-deposit/deposit.service.d.ts.map +1 -0
  24. package/dist/cjs/modules/mobile-money-deposit/deposit.service.js +26 -0
  25. package/dist/cjs/modules/mobile-money-deposit/deposit.service.js.map +1 -0
  26. package/dist/cjs/modules/mobile-money-deposit/index.d.ts +2 -0
  27. package/dist/cjs/modules/mobile-money-deposit/index.d.ts.map +1 -0
  28. package/dist/cjs/modules/mobile-money-deposit/index.js +18 -0
  29. package/dist/cjs/modules/mobile-money-deposit/index.js.map +1 -0
  30. package/dist/cjs/modules/onramp/create-onramp.service.d.ts +10 -0
  31. package/dist/cjs/modules/onramp/create-onramp.service.d.ts.map +1 -0
  32. package/dist/cjs/modules/onramp/create-onramp.service.js +26 -0
  33. package/dist/cjs/modules/onramp/create-onramp.service.js.map +1 -0
  34. package/dist/cjs/modules/onramp/index.d.ts +2 -0
  35. package/dist/cjs/modules/onramp/index.d.ts.map +1 -0
  36. package/dist/cjs/modules/onramp/index.js +18 -0
  37. package/dist/cjs/modules/onramp/index.js.map +1 -0
  38. package/dist/cjs/modules/wallet/index.d.ts +2 -0
  39. package/dist/cjs/modules/wallet/index.d.ts.map +1 -0
  40. package/dist/cjs/modules/wallet/index.js +18 -0
  41. package/dist/cjs/modules/wallet/index.js.map +1 -0
  42. package/dist/cjs/modules/wallet/wallet.service.d.ts +12 -0
  43. package/dist/cjs/modules/wallet/wallet.service.d.ts.map +1 -0
  44. package/dist/cjs/modules/wallet/wallet.service.js +50 -0
  45. package/dist/cjs/modules/wallet/wallet.service.js.map +1 -0
  46. package/dist/cjs/types/deposit.types.d.ts +40 -0
  47. package/dist/cjs/types/deposit.types.d.ts.map +1 -0
  48. package/dist/cjs/types/deposit.types.js +3 -0
  49. package/dist/cjs/types/deposit.types.js.map +1 -0
  50. package/dist/cjs/types/index.d.ts +3 -0
  51. package/dist/cjs/types/index.d.ts.map +1 -1
  52. package/dist/cjs/types/index.js +3 -0
  53. package/dist/cjs/types/index.js.map +1 -1
  54. package/dist/cjs/types/mobile-money.types.d.ts.map +1 -1
  55. package/dist/cjs/types/mobile-money.types.js +0 -1
  56. package/dist/cjs/types/mobile-money.types.js.map +1 -1
  57. package/dist/cjs/types/onramp.types.d.ts +28 -0
  58. package/dist/cjs/types/onramp.types.d.ts.map +1 -0
  59. package/dist/cjs/types/onramp.types.js +3 -0
  60. package/dist/cjs/types/onramp.types.js.map +1 -0
  61. package/dist/cjs/types/wallet.types.d.ts +19 -0
  62. package/dist/cjs/types/wallet.types.d.ts.map +1 -0
  63. package/dist/cjs/types/wallet.types.js +4 -0
  64. package/dist/cjs/types/wallet.types.js.map +1 -0
  65. package/dist/cjs/utils/validation.util.d.ts.map +1 -1
  66. package/dist/cjs/utils/validation.util.js.map +1 -1
  67. package/dist/esm/client/kotani-pay.client.d.ts +3 -0
  68. package/dist/esm/client/kotani-pay.client.d.ts.map +1 -1
  69. package/dist/esm/client/kotani-pay.client.js +3 -0
  70. package/dist/esm/client/kotani-pay.client.js.map +1 -1
  71. package/dist/esm/modules/index.d.ts +3 -0
  72. package/dist/esm/modules/index.d.ts.map +1 -1
  73. package/dist/esm/modules/index.js +3 -0
  74. package/dist/esm/modules/index.js.map +1 -1
  75. package/dist/esm/modules/integrator/integrator.service.d.ts +1 -0
  76. package/dist/esm/modules/integrator/integrator.service.d.ts.map +1 -1
  77. package/dist/esm/modules/integrator/integrator.service.js +4 -0
  78. package/dist/esm/modules/integrator/integrator.service.js.map +1 -1
  79. package/dist/esm/modules/mobile-money/index.d.ts +2 -0
  80. package/dist/esm/modules/mobile-money/index.d.ts.map +1 -0
  81. package/dist/esm/modules/mobile-money/index.js +2 -0
  82. package/dist/esm/modules/mobile-money/index.js.map +1 -0
  83. package/dist/esm/modules/mobile-money/mobile-money.service.d.ts +10 -0
  84. package/dist/esm/modules/mobile-money/mobile-money.service.d.ts.map +1 -1
  85. package/dist/esm/modules/mobile-money/mobile-money.service.js +22 -0
  86. package/dist/esm/modules/mobile-money/mobile-money.service.js.map +1 -1
  87. package/dist/esm/modules/mobile-money-deposit/deposit.service.d.ts +10 -0
  88. package/dist/esm/modules/mobile-money-deposit/deposit.service.d.ts.map +1 -0
  89. package/dist/esm/modules/mobile-money-deposit/deposit.service.js +22 -0
  90. package/dist/esm/modules/mobile-money-deposit/deposit.service.js.map +1 -0
  91. package/dist/esm/modules/mobile-money-deposit/index.d.ts +2 -0
  92. package/dist/esm/modules/mobile-money-deposit/index.d.ts.map +1 -0
  93. package/dist/esm/modules/mobile-money-deposit/index.js +2 -0
  94. package/dist/esm/modules/mobile-money-deposit/index.js.map +1 -0
  95. package/dist/esm/modules/onramp/create-onramp.service.d.ts +10 -0
  96. package/dist/esm/modules/onramp/create-onramp.service.d.ts.map +1 -0
  97. package/dist/esm/modules/onramp/create-onramp.service.js +22 -0
  98. package/dist/esm/modules/onramp/create-onramp.service.js.map +1 -0
  99. package/dist/esm/modules/onramp/index.d.ts +2 -0
  100. package/dist/esm/modules/onramp/index.d.ts.map +1 -0
  101. package/dist/esm/modules/onramp/index.js +2 -0
  102. package/dist/esm/modules/onramp/index.js.map +1 -0
  103. package/dist/esm/modules/wallet/index.d.ts +2 -0
  104. package/dist/esm/modules/wallet/index.d.ts.map +1 -0
  105. package/dist/esm/modules/wallet/index.js +2 -0
  106. package/dist/esm/modules/wallet/index.js.map +1 -0
  107. package/dist/esm/modules/wallet/wallet.service.d.ts +12 -0
  108. package/dist/esm/modules/wallet/wallet.service.d.ts.map +1 -0
  109. package/dist/esm/modules/wallet/wallet.service.js +46 -0
  110. package/dist/esm/modules/wallet/wallet.service.js.map +1 -0
  111. package/dist/esm/types/deposit.types.d.ts +40 -0
  112. package/dist/esm/types/deposit.types.d.ts.map +1 -0
  113. package/dist/esm/types/deposit.types.js +2 -0
  114. package/dist/esm/types/deposit.types.js.map +1 -0
  115. package/dist/esm/types/index.d.ts +3 -0
  116. package/dist/esm/types/index.d.ts.map +1 -1
  117. package/dist/esm/types/index.js +3 -0
  118. package/dist/esm/types/index.js.map +1 -1
  119. package/dist/esm/types/mobile-money.types.d.ts.map +1 -1
  120. package/dist/esm/types/mobile-money.types.js +0 -1
  121. package/dist/esm/types/mobile-money.types.js.map +1 -1
  122. package/dist/esm/types/onramp.types.d.ts +28 -0
  123. package/dist/esm/types/onramp.types.d.ts.map +1 -0
  124. package/dist/esm/types/onramp.types.js +2 -0
  125. package/dist/esm/types/onramp.types.js.map +1 -0
  126. package/dist/esm/types/wallet.types.d.ts +19 -0
  127. package/dist/esm/types/wallet.types.d.ts.map +1 -0
  128. package/dist/esm/types/wallet.types.js +3 -0
  129. package/dist/esm/types/wallet.types.js.map +1 -0
  130. package/dist/esm/utils/validation.util.d.ts.map +1 -1
  131. package/dist/esm/utils/validation.util.js.map +1 -1
  132. package/dist/types/client/kotani-pay.client.d.ts +3 -0
  133. package/dist/types/client/kotani-pay.client.d.ts.map +1 -1
  134. package/dist/types/modules/index.d.ts +3 -0
  135. package/dist/types/modules/index.d.ts.map +1 -1
  136. package/dist/types/modules/integrator/integrator.service.d.ts +1 -0
  137. package/dist/types/modules/integrator/integrator.service.d.ts.map +1 -1
  138. package/dist/types/modules/mobile-money/index.d.ts +2 -0
  139. package/dist/types/modules/mobile-money/index.d.ts.map +1 -0
  140. package/dist/types/modules/mobile-money/mobile-money.service.d.ts +10 -0
  141. package/dist/types/modules/mobile-money/mobile-money.service.d.ts.map +1 -1
  142. package/dist/types/modules/mobile-money-deposit/deposit.service.d.ts +10 -0
  143. package/dist/types/modules/mobile-money-deposit/deposit.service.d.ts.map +1 -0
  144. package/dist/types/modules/mobile-money-deposit/index.d.ts +2 -0
  145. package/dist/types/modules/mobile-money-deposit/index.d.ts.map +1 -0
  146. package/dist/types/modules/onramp/create-onramp.service.d.ts +10 -0
  147. package/dist/types/modules/onramp/create-onramp.service.d.ts.map +1 -0
  148. package/dist/types/modules/onramp/index.d.ts +2 -0
  149. package/dist/types/modules/onramp/index.d.ts.map +1 -0
  150. package/dist/types/modules/wallet/index.d.ts +2 -0
  151. package/dist/types/modules/wallet/index.d.ts.map +1 -0
  152. package/dist/types/modules/wallet/wallet.service.d.ts +12 -0
  153. package/dist/types/modules/wallet/wallet.service.d.ts.map +1 -0
  154. package/dist/types/types/deposit.types.d.ts +40 -0
  155. package/dist/types/types/deposit.types.d.ts.map +1 -0
  156. package/dist/types/types/index.d.ts +3 -0
  157. package/dist/types/types/index.d.ts.map +1 -1
  158. package/dist/types/types/mobile-money.types.d.ts.map +1 -1
  159. package/dist/types/types/onramp.types.d.ts +28 -0
  160. package/dist/types/types/onramp.types.d.ts.map +1 -0
  161. package/dist/types/types/wallet.types.d.ts +19 -0
  162. package/dist/types/types/wallet.types.d.ts.map +1 -0
  163. package/dist/types/utils/validation.util.d.ts.map +1 -1
  164. package/package.json +5 -3
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MobileMoneyDepositService = void 0;
4
+ const validation_util_1 = require("../../utils/validation.util");
5
+ class MobileMoneyDepositService {
6
+ constructor(httpClient) {
7
+ this.httpClient = httpClient;
8
+ }
9
+ validateCreateCustomerRequest(request) {
10
+ const requiredFields = [
11
+ 'amount', 'wallet_id', 'customer_key'
12
+ ];
13
+ validation_util_1.ValidationUtil.validateRequiredFields(request, requiredFields);
14
+ }
15
+ async createDeposit(request) {
16
+ this.validateCreateCustomerRequest(request);
17
+ const response = await this.httpClient.post('/api/v3/deposit/mobile-money', request);
18
+ return response.data;
19
+ }
20
+ async getDepositTransactionStatus(reference_id) {
21
+ const response = await this.httpClient.get(`/api/v3/deposit/mobile-money/status/${reference_id}`);
22
+ return response.data;
23
+ }
24
+ }
25
+ exports.MobileMoneyDepositService = MobileMoneyDepositService;
26
+ //# 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,iEAA6D;AAO7D,MAAa,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,gCAAc,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;AA7BD,8DA6BC"}
@@ -0,0 +1,2 @@
1
+ export * from './deposit.service';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./deposit.service"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/mobile-money-deposit/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
@@ -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,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OnrampService = void 0;
4
+ const validation_util_1 = require("../../utils/validation.util");
5
+ class OnrampService {
6
+ constructor(httpClient) {
7
+ this.httpClient = httpClient;
8
+ }
9
+ validateCreateCustomerRequest(request) {
10
+ const requiredFields = [
11
+ 'mobileMoney', 'fiatAmount', 'currency', 'chain', 'token', 'receiverAddress', 'referenceId', 'callbackUrl', 'rateId'
12
+ ];
13
+ validation_util_1.ValidationUtil.validateRequiredFields(request, requiredFields);
14
+ }
15
+ async iniatiateOnramp(request) {
16
+ this.validateCreateCustomerRequest(request);
17
+ const response = await this.httpClient.post('/api/v3/onramp', request);
18
+ return response.data;
19
+ }
20
+ async getOnRampTransactionStatus(referenceId) {
21
+ const response = await this.httpClient.get(`/api/v3/onramp/${referenceId}`);
22
+ return response.data;
23
+ }
24
+ }
25
+ exports.OnrampService = OnrampService;
26
+ //# 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,iEAA6D;AAO7D,MAAa,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,gCAAc,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;AA7BD,sCA6BC"}
@@ -0,0 +1,2 @@
1
+ export * from './create-onramp.service';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./create-onramp.service"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/onramp/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC"}
@@ -0,0 +1,2 @@
1
+ export * from './wallet.service';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./wallet.service"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/wallet/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
@@ -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,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WalletService = void 0;
4
+ const validation_util_1 = require("../../utils/validation.util");
5
+ class WalletService {
6
+ constructor(httpClient) {
7
+ this.httpClient = httpClient;
8
+ }
9
+ validateCreateWalletRequest(request) {
10
+ const requiredFields = [
11
+ 'name', 'currency'
12
+ ];
13
+ validation_util_1.ValidationUtil.validateRequiredFields(request, requiredFields);
14
+ async function validateCurrency(currency) {
15
+ const supportedCurrencies = [
16
+ 'USD', 'EUR', 'GBP', 'GHS', 'KES', 'ZAR',
17
+ 'NGN', 'TZS', 'UGX', 'RWF', 'MWK', 'ZMW'
18
+ ];
19
+ if (!supportedCurrencies.includes(currency)) {
20
+ throw new Error(`Unsupported currency: ${currency}. Supported currencies are: ${supportedCurrencies.join(', ')}`);
21
+ }
22
+ }
23
+ validateCurrency(request.currency)
24
+ .catch(error => {
25
+ throw new Error(`Currency validation failed: ${error.message}`);
26
+ });
27
+ }
28
+ async create(request) {
29
+ this.validateCreateWalletRequest(request);
30
+ const response = await this.httpClient.post('/api/v3/wallet/fiat', request);
31
+ return response.data;
32
+ }
33
+ getIntegratorFiatWallets() {
34
+ return this.httpClient.get('/api/v3/wallet/fiat').then(response => response.data);
35
+ }
36
+ getIntegratorFiatWalletById(walletId) {
37
+ if (!walletId) {
38
+ throw new Error('Wallet ID is required');
39
+ }
40
+ return this.httpClient.get(`/api/v3/wallet/fiat/${walletId}`).then(response => response.data);
41
+ }
42
+ getIntegratorFiatWalletsByCurrency(currency) {
43
+ if (!currency) {
44
+ throw new Error('Currency is required');
45
+ }
46
+ return this.httpClient.get(`/api/v3/wallet/fiat/currency/${currency}`).then(response => response.data);
47
+ }
48
+ }
49
+ exports.WalletService = WalletService;
50
+ //# 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,iEAA6D;AAO7D,MAAa,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,gCAAc,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;AAhED,sCAgEC"}
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=deposit.types.js.map
@@ -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"}
@@ -19,4 +19,7 @@ __exportStar(require("./integrator.types"), exports);
19
19
  __exportStar(require("./authentication.types"), exports);
20
20
  __exportStar(require("./error.types"), exports);
21
21
  __exportStar(require("./mobile-money.types"), exports);
22
+ __exportStar(require("./wallet.types"), exports);
23
+ __exportStar(require("./deposit.types"), exports);
24
+ __exportStar(require("./onramp.types"), exports);
22
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,qDAAmC;AACnC,yDAAuC;AACvC,gDAA8B;AAC9B,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,qDAAmC;AACnC,yDAAuC;AACvC,gDAA8B;AAC9B,uDAAqC;AACrC,iDAA+B;AAC/B,kDAAgC;AAChC,iDAA+B"}
@@ -1 +1 @@
1
- {"version":3,"file":"mobile-money.types.d.ts","sourceRoot":"","sources":["../../../src/types/mobile-money.types.ts"],"names":[],"mappings":"AAEA,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,G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AAG,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,4 +1,3 @@
1
1
  "use strict";
2
- // src/types/mobile-money.types.ts
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  //# sourceMappingURL=mobile-money.types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mobile-money.types.js","sourceRoot":"","sources":["../../../src/types/mobile-money.types.ts"],"names":[],"mappings":";AAAA,kCAAkC"}
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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=onramp.types.js.map
@@ -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,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ ;
4
+ //# sourceMappingURL=wallet.types.js.map
@@ -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;CAQ5E"}
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,sDAAuD;AAEvD,MAAa,cAAc;IACzB,MAAM,CAAC,aAAa,CAAC,KAAa;QAChC,MAAM,UAAU,GAAG,4BAA4B,CAAC;QAChD,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YAC5B,MAAM,IAAI,6BAAe,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,6BAAe,CAAC,6BAA6B,CAAC,CAAC;QAC3D,CAAC;IACH,CAAC;IAED,MAAM,CAAC,mBAAmB,CAAC,WAAm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AC;YACxC,MAAM,IAAI,6BAAe,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,6BAAe,CACvB,4BAA4B,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CACvD,CAAC;QACJ,CAAC;IACH,CAAC;CAIF;AAjCD,wCAiCC"}
@@ -2,11 +2,14 @@ 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 { MobileMoneyDepositService, WalletService } from '@/modules';
5
6
  export declare class KotaniPayClient {
6
7
  private httpClient;
7
8
  integrator: IntegratorService;
8
9
  auth: AuthService;
9
10
  mobileMoney: MobileMoneyService;
11
+ wallet: WalletService;
12
+ mobileMoneyDeposit: MobileMoneyDepositService;
10
13
  constructor(config: KotaniPayConfig);
11
14
  /**
12
15
  * 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;AAEjE,qBAAa,eAAe;IAC1B,OAAO,CAAC,UAAU,CAAiB;IAC5B,UAAU,EAA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AAyB,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"}
@@ -2,6 +2,7 @@ import { HttpClientUtil } from '../utils/http-client.util';
2
2
  import { IntegratorService } from '../modules/integrator';
3
3
  import { AuthService } from '../modules/auth';
4
4
  import { MobileMoneyService } from '../modules/mobile-money/mobile-money.service';
5
+ import { MobileMoneyDepositService, WalletService } from '@/modules';
5
6
  export class KotaniPayClient {
6
7
  constructor(config) {
7
8
  // Create HTTP client with config
@@ -10,6 +11,8 @@ export class KotaniPayClient {
10
11
  this.integrator = new IntegratorService(this.httpClient);
11
12
  this.auth = new AuthService(this.httpClient);
12
13
  this.mobileMoney = new MobileMoneyService(this.httpClient);
14
+ this.wallet = new WalletService(this.httpClient);
15
+ this.mobileMoneyDeposit = new MobileMoneyDepositService(this.httpClient);
13
16
  }
14
17
  /**
15
18
  * Initialize client with session data after user login
@@ -1 +1 @@
1
- {"version":3,"file":"kotani-pay.client.js","sourceRoot":"","sources":["../../../src/client/kotani-pay.client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3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
+ export * from './wallet';
5
+ export * from './mobile-money-deposit';
3
6
  //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -1,3 +1,6 @@
1
1
  export * from './integrator';
2
2
  export * from './auth';
3
+ export * from './mobile-money';
4
+ export * from './wallet';
5
+ export * from './mobile-money-deposit';
3
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.js","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"}
@@ -18,6 +18,10 @@ export class IntegratorService {
18
18
  const response = await this.httpClient.post('/api/v3/integrator', request);
19
19
  return response.data;
20
20
  }
21
+ async getIntegratorInfo() {
22
+ const response = await this.httpClient.get('/api/v3/integrator');
23
+ return response.data;
24
+ }
21
25
  async getById(id) {
22
26
  if (!id) {
23
27
  throw new Error('Integrator ID is required');
@@ -1 +1 @@
1
- {"version":3,"file":"integrator.service.js","sourceRoot":"","sources":["../../../../src/modules/integrator/integrator.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAG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"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/mobile-money/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './mobile-money.service';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","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,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