@spreeloop/orange_money 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 (285) hide show
  1. package/package.json +3 -2
  2. package/src/index.ts +2 -0
  3. package/dist/logging/index.d.ts +0 -2
  4. package/dist/logging/index.d.ts.map +0 -1
  5. package/dist/logging/index.js +0 -18
  6. package/dist/logging/index.js.map +0 -1
  7. package/dist/logging/src/log_level.d.ts +0 -24
  8. package/dist/logging/src/log_level.d.ts.map +0 -1
  9. package/dist/logging/src/log_level.js +0 -34
  10. package/dist/logging/src/log_level.js.map +0 -1
  11. package/dist/logging/src/logging.d.ts +0 -50
  12. package/dist/logging/src/logging.d.ts.map +0 -1
  13. package/dist/logging/src/logging.js +0 -87
  14. package/dist/logging/src/logging.js.map +0 -1
  15. package/dist/logging/src/printer.d.ts +0 -10
  16. package/dist/logging/src/printer.d.ts.map +0 -1
  17. package/dist/logging/src/printer.js +0 -3
  18. package/dist/logging/src/printer.js.map +0 -1
  19. package/dist/main.js +0 -3
  20. package/dist/main.js.LICENSE.txt +0 -1
  21. package/dist/main.js.map +0 -1
  22. package/dist/orange_money/index.d.ts +0 -2
  23. package/dist/orange_money/index.d.ts.map +0 -1
  24. package/dist/orange_money/index.js +0 -18
  25. package/dist/orange_money/index.js.map +0 -1
  26. package/dist/orange_money/src/common/utils/https.d.ts +0 -77
  27. package/dist/orange_money/src/common/utils/https.d.ts.map +0 -1
  28. package/dist/orange_money/src/common/utils/https.js +0 -240
  29. package/dist/orange_money/src/common/utils/https.js.map +0 -1
  30. package/dist/orange_money/src/common/utils/https.spec.d.ts +0 -2
  31. package/dist/orange_money/src/common/utils/https.spec.d.ts.map +0 -1
  32. package/dist/orange_money/src/common/utils/https.spec.js +0 -77
  33. package/dist/orange_money/src/common/utils/https.spec.js.map +0 -1
  34. package/dist/orange_money/src/common/utils/logging_interface.d.ts +0 -23
  35. package/dist/orange_money/src/common/utils/logging_interface.d.ts.map +0 -1
  36. package/dist/orange_money/src/common/utils/logging_interface.js +0 -3
  37. package/dist/orange_money/src/common/utils/logging_interface.js.map +0 -1
  38. package/dist/orange_money/src/common/utils/operation_response.d.ts +0 -16
  39. package/dist/orange_money/src/common/utils/operation_response.d.ts.map +0 -1
  40. package/dist/orange_money/src/common/utils/operation_response.js +0 -3
  41. package/dist/orange_money/src/common/utils/operation_response.js.map +0 -1
  42. package/dist/orange_money/src/common/utils/utils.d.ts +0 -6
  43. package/dist/orange_money/src/common/utils/utils.d.ts.map +0 -1
  44. package/dist/orange_money/src/common/utils/utils.js +0 -10
  45. package/dist/orange_money/src/common/utils/utils.js.map +0 -1
  46. package/dist/orange_money/src/constants.d.ts +0 -95
  47. package/dist/orange_money/src/constants.d.ts.map +0 -1
  48. package/dist/orange_money/src/constants.js +0 -111
  49. package/dist/orange_money/src/constants.js.map +0 -1
  50. package/dist/orange_money/src/disbursements/implementations/disbursement_service.d.ts +0 -63
  51. package/dist/orange_money/src/disbursements/implementations/disbursement_service.d.ts.map +0 -1
  52. package/dist/orange_money/src/disbursements/implementations/disbursement_service.js +0 -84
  53. package/dist/orange_money/src/disbursements/implementations/disbursement_service.js.map +0 -1
  54. package/dist/orange_money/src/disbursements/implementations/src/live.d.ts +0 -40
  55. package/dist/orange_money/src/disbursements/implementations/src/live.d.ts.map +0 -1
  56. package/dist/orange_money/src/disbursements/implementations/src/live.js +0 -61
  57. package/dist/orange_money/src/disbursements/implementations/src/live.js.map +0 -1
  58. package/dist/orange_money/src/disbursements/implementations/src/sandbox.d.ts +0 -40
  59. package/dist/orange_money/src/disbursements/implementations/src/sandbox.d.ts.map +0 -1
  60. package/dist/orange_money/src/disbursements/implementations/src/sandbox.js +0 -110
  61. package/dist/orange_money/src/disbursements/implementations/src/sandbox.js.map +0 -1
  62. package/dist/orange_money/src/disbursements/operations/create_access_token.d.ts +0 -28
  63. package/dist/orange_money/src/disbursements/operations/create_access_token.d.ts.map +0 -1
  64. package/dist/orange_money/src/disbursements/operations/create_access_token.js +0 -45
  65. package/dist/orange_money/src/disbursements/operations/create_access_token.js.map +0 -1
  66. package/dist/orange_money/src/disbursements/operations/create_access_token.spec.d.ts +0 -2
  67. package/dist/orange_money/src/disbursements/operations/create_access_token.spec.d.ts.map +0 -1
  68. package/dist/orange_money/src/disbursements/operations/create_access_token.spec.js +0 -106
  69. package/dist/orange_money/src/disbursements/operations/create_access_token.spec.js.map +0 -1
  70. package/dist/orange_money/src/disbursements/operations/get_transfer_status.d.ts +0 -114
  71. package/dist/orange_money/src/disbursements/operations/get_transfer_status.d.ts.map +0 -1
  72. package/dist/orange_money/src/disbursements/operations/get_transfer_status.js +0 -128
  73. package/dist/orange_money/src/disbursements/operations/get_transfer_status.js.map +0 -1
  74. package/dist/orange_money/src/disbursements/operations/get_transfer_status.spec.d.ts +0 -2
  75. package/dist/orange_money/src/disbursements/operations/get_transfer_status.spec.d.ts.map +0 -1
  76. package/dist/orange_money/src/disbursements/operations/get_transfer_status.spec.js +0 -148
  77. package/dist/orange_money/src/disbursements/operations/get_transfer_status.spec.js.map +0 -1
  78. package/dist/orange_money/src/disbursements/operations/transfer.d.ts +0 -45
  79. package/dist/orange_money/src/disbursements/operations/transfer.d.ts.map +0 -1
  80. package/dist/orange_money/src/disbursements/operations/transfer.js +0 -74
  81. package/dist/orange_money/src/disbursements/operations/transfer.js.map +0 -1
  82. package/dist/orange_money/src/disbursements/operations/transfer.spec.d.ts +0 -2
  83. package/dist/orange_money/src/disbursements/operations/transfer.spec.d.ts.map +0 -1
  84. package/dist/orange_money/src/disbursements/operations/transfer.spec.js +0 -178
  85. package/dist/orange_money/src/disbursements/operations/transfer.spec.js.map +0 -1
  86. package/dist/orange_money/src/disbursements/routes/routes.d.ts +0 -38
  87. package/dist/orange_money/src/disbursements/routes/routes.d.ts.map +0 -1
  88. package/dist/orange_money/src/disbursements/routes/routes.js +0 -53
  89. package/dist/orange_money/src/disbursements/routes/routes.js.map +0 -1
  90. package/dist/orange_money/src/disbursements/utils/constants.d.ts +0 -5
  91. package/dist/orange_money/src/disbursements/utils/constants.d.ts.map +0 -1
  92. package/dist/orange_money/src/disbursements/utils/constants.js +0 -9
  93. package/dist/orange_money/src/disbursements/utils/constants.js.map +0 -1
  94. package/dist/orange_money/src/disbursements/utils/https.d.ts +0 -74
  95. package/dist/orange_money/src/disbursements/utils/https.d.ts.map +0 -1
  96. package/dist/orange_money/src/disbursements/utils/https.js +0 -206
  97. package/dist/orange_money/src/disbursements/utils/https.js.map +0 -1
  98. package/dist/orange_money/src/disbursements/utils/https.spec.d.ts +0 -2
  99. package/dist/orange_money/src/disbursements/utils/https.spec.d.ts.map +0 -1
  100. package/dist/orange_money/src/disbursements/utils/https.spec.js +0 -77
  101. package/dist/orange_money/src/disbursements/utils/https.spec.js.map +0 -1
  102. package/dist/orange_money/src/disbursements/utils/regex.d.ts +0 -9
  103. package/dist/orange_money/src/disbursements/utils/regex.d.ts.map +0 -1
  104. package/dist/orange_money/src/disbursements/utils/regex.js +0 -12
  105. package/dist/orange_money/src/disbursements/utils/regex.js.map +0 -1
  106. package/dist/orange_money/src/disbursements/utils/regex.spec.d.ts +0 -2
  107. package/dist/orange_money/src/disbursements/utils/regex.spec.d.ts.map +0 -1
  108. package/dist/orange_money/src/disbursements/utils/regex.spec.js +0 -32
  109. package/dist/orange_money/src/disbursements/utils/regex.spec.js.map +0 -1
  110. package/dist/orange_money/src/disbursements/utils/status.d.ts +0 -53
  111. package/dist/orange_money/src/disbursements/utils/status.d.ts.map +0 -1
  112. package/dist/orange_money/src/disbursements/utils/status.js +0 -58
  113. package/dist/orange_money/src/disbursements/utils/status.js.map +0 -1
  114. package/dist/orange_money/src/disbursements/utils/utils.d.ts +0 -9
  115. package/dist/orange_money/src/disbursements/utils/utils.d.ts.map +0 -1
  116. package/dist/orange_money/src/disbursements/utils/utils.js +0 -26
  117. package/dist/orange_money/src/disbursements/utils/utils.js.map +0 -1
  118. package/dist/orange_money/src/disbursements/utils/utils.spec.d.ts +0 -2
  119. package/dist/orange_money/src/disbursements/utils/utils.spec.d.ts.map +0 -1
  120. package/dist/orange_money/src/disbursements/utils/utils.spec.js +0 -43
  121. package/dist/orange_money/src/disbursements/utils/utils.spec.js.map +0 -1
  122. package/dist/orange_money/src/index.d.ts +0 -8
  123. package/dist/orange_money/src/index.d.ts.map +0 -1
  124. package/dist/orange_money/src/index.js +0 -21
  125. package/dist/orange_money/src/index.js.map +0 -1
  126. package/dist/orange_money/src/orange_money/orange_money.d.ts +0 -58
  127. package/dist/orange_money/src/orange_money/orange_money.d.ts.map +0 -1
  128. package/dist/orange_money/src/orange_money/orange_money.js +0 -33
  129. package/dist/orange_money/src/orange_money/orange_money.js.map +0 -1
  130. package/dist/orange_money/src/orange_money/orange_money_fake/fake_result.d.ts +0 -7
  131. package/dist/orange_money/src/orange_money/orange_money_fake/fake_result.d.ts.map +0 -1
  132. package/dist/orange_money/src/orange_money/orange_money_fake/fake_result.js +0 -16
  133. package/dist/orange_money/src/orange_money/orange_money_fake/fake_result.js.map +0 -1
  134. package/dist/orange_money/src/orange_money/orange_money_fake/orange_money_fake_payment.d.ts +0 -29
  135. package/dist/orange_money/src/orange_money/orange_money_fake/orange_money_fake_payment.d.ts.map +0 -1
  136. package/dist/orange_money/src/orange_money/orange_money_fake/orange_money_fake_payment.js +0 -67
  137. package/dist/orange_money/src/orange_money/orange_money_fake/orange_money_fake_payment.js.map +0 -1
  138. package/dist/orange_money/src/orange_money/orange_money_fake/orange_money_fake_payment.spec.d.ts +0 -2
  139. package/dist/orange_money/src/orange_money/orange_money_fake/orange_money_fake_payment.spec.d.ts.map +0 -1
  140. package/dist/orange_money/src/orange_money/orange_money_fake/orange_money_fake_payment.spec.js +0 -51
  141. package/dist/orange_money/src/orange_money/orange_money_fake/orange_money_fake_payment.spec.js.map +0 -1
  142. package/dist/orange_money/src/orange_money/orange_money_live/mobile_platfom/mobile_platform.d.ts +0 -105
  143. package/dist/orange_money/src/orange_money/orange_money_live/mobile_platfom/mobile_platform.d.ts.map +0 -1
  144. package/dist/orange_money/src/orange_money/orange_money_live/mobile_platfom/mobile_platform.js +0 -459
  145. package/dist/orange_money/src/orange_money/orange_money_live/mobile_platfom/mobile_platform.js.map +0 -1
  146. package/dist/orange_money/src/orange_money/orange_money_live/mobile_platfom/mobile_platform.spec.d.ts +0 -2
  147. package/dist/orange_money/src/orange_money/orange_money_live/mobile_platfom/mobile_platform.spec.d.ts.map +0 -1
  148. package/dist/orange_money/src/orange_money/orange_money_live/mobile_platfom/mobile_platform.spec.js +0 -497
  149. package/dist/orange_money/src/orange_money/orange_money_live/mobile_platfom/mobile_platform.spec.js.map +0 -1
  150. package/dist/orange_money/src/orange_money/orange_money_live/orange_money_live_payment.d.ts +0 -26
  151. package/dist/orange_money/src/orange_money/orange_money_live/orange_money_live_payment.d.ts.map +0 -1
  152. package/dist/orange_money/src/orange_money/orange_money_live/orange_money_live_payment.js +0 -26
  153. package/dist/orange_money/src/orange_money/orange_money_live/orange_money_live_payment.js.map +0 -1
  154. package/dist/orange_money/src/payments/implementations/fake.d.ts +0 -33
  155. package/dist/orange_money/src/payments/implementations/fake.d.ts.map +0 -1
  156. package/dist/orange_money/src/payments/implementations/fake.js +0 -110
  157. package/dist/orange_money/src/payments/implementations/fake.js.map +0 -1
  158. package/dist/orange_money/src/payments/implementations/live.d.ts +0 -45
  159. package/dist/orange_money/src/payments/implementations/live.d.ts.map +0 -1
  160. package/dist/orange_money/src/payments/implementations/live.js +0 -69
  161. package/dist/orange_money/src/payments/implementations/live.js.map +0 -1
  162. package/dist/orange_money/src/payments/implementations/payment_service.d.ts +0 -44
  163. package/dist/orange_money/src/payments/implementations/payment_service.d.ts.map +0 -1
  164. package/dist/orange_money/src/payments/implementations/payment_service.js +0 -44
  165. package/dist/orange_money/src/payments/implementations/payment_service.js.map +0 -1
  166. package/dist/orange_money/src/payments/implementations/src/fake.d.ts +0 -31
  167. package/dist/orange_money/src/payments/implementations/src/fake.d.ts.map +0 -1
  168. package/dist/orange_money/src/payments/implementations/src/fake.js +0 -62
  169. package/dist/orange_money/src/payments/implementations/src/fake.js.map +0 -1
  170. package/dist/orange_money/src/payments/implementations/src/live.d.ts +0 -29
  171. package/dist/orange_money/src/payments/implementations/src/live.d.ts.map +0 -1
  172. package/dist/orange_money/src/payments/implementations/src/live.js +0 -44
  173. package/dist/orange_money/src/payments/implementations/src/live.js.map +0 -1
  174. package/dist/orange_money/src/payments/operations/create_access_token.d.ts +0 -19
  175. package/dist/orange_money/src/payments/operations/create_access_token.d.ts.map +0 -1
  176. package/dist/orange_money/src/payments/operations/create_access_token.js +0 -51
  177. package/dist/orange_money/src/payments/operations/create_access_token.js.map +0 -1
  178. package/dist/orange_money/src/payments/operations/create_access_token.spec.d.ts +0 -2
  179. package/dist/orange_money/src/payments/operations/create_access_token.spec.d.ts.map +0 -1
  180. package/dist/orange_money/src/payments/operations/create_access_token.spec.js +0 -70
  181. package/dist/orange_money/src/payments/operations/create_access_token.spec.js.map +0 -1
  182. package/dist/orange_money/src/payments/operations/create_pay_token.d.ts +0 -12
  183. package/dist/orange_money/src/payments/operations/create_pay_token.d.ts.map +0 -1
  184. package/dist/orange_money/src/payments/operations/create_pay_token.js +0 -62
  185. package/dist/orange_money/src/payments/operations/create_pay_token.js.map +0 -1
  186. package/dist/orange_money/src/payments/operations/create_pay_token.spec.d.ts +0 -2
  187. package/dist/orange_money/src/payments/operations/create_pay_token.spec.d.ts.map +0 -1
  188. package/dist/orange_money/src/payments/operations/create_pay_token.spec.js +0 -91
  189. package/dist/orange_money/src/payments/operations/create_pay_token.spec.js.map +0 -1
  190. package/dist/orange_money/src/payments/operations/get_access_token.d.ts +0 -11
  191. package/dist/orange_money/src/payments/operations/get_access_token.d.ts.map +0 -1
  192. package/dist/orange_money/src/payments/operations/get_access_token.js +0 -47
  193. package/dist/orange_money/src/payments/operations/get_access_token.js.map +0 -1
  194. package/dist/orange_money/src/payments/operations/get_access_token.spec.d.ts +0 -2
  195. package/dist/orange_money/src/payments/operations/get_access_token.spec.d.ts.map +0 -1
  196. package/dist/orange_money/src/payments/operations/get_access_token.spec.js +0 -75
  197. package/dist/orange_money/src/payments/operations/get_access_token.spec.js.map +0 -1
  198. package/dist/orange_money/src/payments/operations/get_pay_token.d.ts +0 -12
  199. package/dist/orange_money/src/payments/operations/get_pay_token.d.ts.map +0 -1
  200. package/dist/orange_money/src/payments/operations/get_pay_token.js +0 -43
  201. package/dist/orange_money/src/payments/operations/get_pay_token.js.map +0 -1
  202. package/dist/orange_money/src/payments/operations/get_pay_token.spec.d.ts +0 -2
  203. package/dist/orange_money/src/payments/operations/get_pay_token.spec.d.ts.map +0 -1
  204. package/dist/orange_money/src/payments/operations/get_pay_token.spec.js +0 -75
  205. package/dist/orange_money/src/payments/operations/get_pay_token.spec.js.map +0 -1
  206. package/dist/orange_money/src/payments/operations/get_payment_status.d.ts +0 -23
  207. package/dist/orange_money/src/payments/operations/get_payment_status.d.ts.map +0 -1
  208. package/dist/orange_money/src/payments/operations/get_payment_status.js +0 -51
  209. package/dist/orange_money/src/payments/operations/get_payment_status.js.map +0 -1
  210. package/dist/orange_money/src/payments/operations/get_payment_status.spec.d.ts +0 -2
  211. package/dist/orange_money/src/payments/operations/get_payment_status.spec.d.ts.map +0 -1
  212. package/dist/orange_money/src/payments/operations/get_payment_status.spec.js +0 -102
  213. package/dist/orange_money/src/payments/operations/get_payment_status.spec.js.map +0 -1
  214. package/dist/orange_money/src/payments/operations/initialize_om_payment.d.ts +0 -22
  215. package/dist/orange_money/src/payments/operations/initialize_om_payment.d.ts.map +0 -1
  216. package/dist/orange_money/src/payments/operations/initialize_om_payment.js +0 -124
  217. package/dist/orange_money/src/payments/operations/initialize_om_payment.js.map +0 -1
  218. package/dist/orange_money/src/payments/operations/initialize_om_payment.spec.d.ts +0 -2
  219. package/dist/orange_money/src/payments/operations/initialize_om_payment.spec.d.ts.map +0 -1
  220. package/dist/orange_money/src/payments/operations/initialize_om_payment.spec.js +0 -246
  221. package/dist/orange_money/src/payments/operations/initialize_om_payment.spec.js.map +0 -1
  222. package/dist/orange_money/src/payments/operations/payment.d.ts +0 -21
  223. package/dist/orange_money/src/payments/operations/payment.d.ts.map +0 -1
  224. package/dist/orange_money/src/payments/operations/payment.js +0 -204
  225. package/dist/orange_money/src/payments/operations/payment.js.map +0 -1
  226. package/dist/orange_money/src/payments/operations/payment.spec.d.ts +0 -2
  227. package/dist/orange_money/src/payments/operations/payment.spec.d.ts.map +0 -1
  228. package/dist/orange_money/src/payments/operations/payment.spec.js +0 -282
  229. package/dist/orange_money/src/payments/operations/payment.spec.js.map +0 -1
  230. package/dist/orange_money/src/payments/payments.d.ts +0 -57
  231. package/dist/orange_money/src/payments/payments.d.ts.map +0 -1
  232. package/dist/orange_money/src/payments/payments.js +0 -36
  233. package/dist/orange_money/src/payments/payments.js.map +0 -1
  234. package/dist/orange_money/src/payments/routes/routes.d.ts +0 -48
  235. package/dist/orange_money/src/payments/routes/routes.d.ts.map +0 -1
  236. package/dist/orange_money/src/payments/routes/routes.js +0 -61
  237. package/dist/orange_money/src/payments/routes/routes.js.map +0 -1
  238. package/dist/orange_money/src/payments/utils/constants.d.ts +0 -100
  239. package/dist/orange_money/src/payments/utils/constants.d.ts.map +0 -1
  240. package/dist/orange_money/src/payments/utils/constants.js +0 -117
  241. package/dist/orange_money/src/payments/utils/constants.js.map +0 -1
  242. package/dist/orange_money/src/payments/utils/https.d.ts +0 -43
  243. package/dist/orange_money/src/payments/utils/https.d.ts.map +0 -1
  244. package/dist/orange_money/src/payments/utils/https.js +0 -137
  245. package/dist/orange_money/src/payments/utils/https.js.map +0 -1
  246. package/dist/orange_money/src/payments/utils/joi_schema.d.ts +0 -71
  247. package/dist/orange_money/src/payments/utils/joi_schema.d.ts.map +0 -1
  248. package/dist/orange_money/src/payments/utils/joi_schema.js +0 -44
  249. package/dist/orange_money/src/payments/utils/joi_schema.js.map +0 -1
  250. package/dist/orange_money/src/payments/utils/logging_interface.d.ts +0 -23
  251. package/dist/orange_money/src/payments/utils/logging_interface.d.ts.map +0 -1
  252. package/dist/orange_money/src/payments/utils/logging_interface.js +0 -3
  253. package/dist/orange_money/src/payments/utils/logging_interface.js.map +0 -1
  254. package/dist/orange_money/src/payments/utils/request_model.d.ts +0 -75
  255. package/dist/orange_money/src/payments/utils/request_model.d.ts.map +0 -1
  256. package/dist/orange_money/src/payments/utils/request_model.js +0 -3
  257. package/dist/orange_money/src/payments/utils/request_model.js.map +0 -1
  258. package/dist/orange_money/src/payments/utils/utils.d.ts +0 -15
  259. package/dist/orange_money/src/payments/utils/utils.d.ts.map +0 -1
  260. package/dist/orange_money/src/payments/utils/utils.js +0 -27
  261. package/dist/orange_money/src/payments/utils/utils.js.map +0 -1
  262. package/dist/orange_money/src/payments/utils/utils.spec.d.ts +0 -2
  263. package/dist/orange_money/src/payments/utils/utils.spec.d.ts.map +0 -1
  264. package/dist/orange_money/src/payments/utils/utils.spec.js +0 -17
  265. package/dist/orange_money/src/payments/utils/utils.spec.js.map +0 -1
  266. package/dist/orange_money/src/utils/logging_interface.d.ts +0 -23
  267. package/dist/orange_money/src/utils/logging_interface.d.ts.map +0 -1
  268. package/dist/orange_money/src/utils/logging_interface.js +0 -3
  269. package/dist/orange_money/src/utils/logging_interface.js.map +0 -1
  270. package/dist/orange_money/src/utils/requests_responses.d.ts +0 -118
  271. package/dist/orange_money/src/utils/requests_responses.d.ts.map +0 -1
  272. package/dist/orange_money/src/utils/requests_responses.js +0 -31
  273. package/dist/orange_money/src/utils/requests_responses.js.map +0 -1
  274. package/dist/orange_money/src/utils/resquest_params.d.ts +0 -222
  275. package/dist/orange_money/src/utils/resquest_params.d.ts.map +0 -1
  276. package/dist/orange_money/src/utils/resquest_params.js +0 -57
  277. package/dist/orange_money/src/utils/resquest_params.js.map +0 -1
  278. package/dist/orange_money/src/utils/utils.d.ts +0 -65
  279. package/dist/orange_money/src/utils/utils.d.ts.map +0 -1
  280. package/dist/orange_money/src/utils/utils.js +0 -199
  281. package/dist/orange_money/src/utils/utils.js.map +0 -1
  282. package/dist/orange_money/src/utils/utils.spec.d.ts +0 -2
  283. package/dist/orange_money/src/utils/utils.spec.d.ts.map +0 -1
  284. package/dist/orange_money/src/utils/utils.spec.js +0 -17
  285. package/dist/orange_money/src/utils/utils.spec.js.map +0 -1
@@ -1,38 +0,0 @@
1
- /**
2
- * Orange Money API routes builder.
3
- * @class
4
- */
5
- export declare class Routes {
6
- /**
7
- * Constructs a new {CommonRoutes}.
8
- * @constructor
9
- * @param {RoutesParams} config - The required global route configuration.
10
- */
11
- /**
12
- * Returns the base route for the API.
13
- * e.g: https://docs.google.com/document/d/1h-gMj7PSGAALxRSofOvLa2g5vF3IpDkUufNrU1hX6Yk/edit?pli=1
14
- * @return {string} The base route.
15
- */
16
- private baseRoute;
17
- /**
18
- * This route is used to create an access token which can then be used to authorize and authenticate towards the other end-points of the API.
19
- * e.g : https://docs.google.com/document/d/1h-gMj7PSGAALxRSofOvLa2g5vF3IpDkUufNrU1hX6Yk/edit?pli=1 page 2
20
- * @return {string}
21
- */
22
- createAccessToken(): string;
23
- /**
24
- * This route is used to transfer an amount from the owner’s account to a payee account (customer).
25
- * e.g : https://docs.google.com/document/d/1h-gMj7PSGAALxRSofOvLa2g5vF3IpDkUufNrU1hX6Yk/edit?pli=1 page 4
26
- * @return {string} - The transfer route.
27
- */
28
- transfer(): string;
29
- /**
30
- * This route is used to get the status of a transfer.
31
- *
32
- * @param {string} Id - The reference of the transfer.
33
- * e.g : https://docs.google.com/document/d/1h-gMj7PSGAALxRSofOvLa2g5vF3IpDkUufNrU1hX6Yk/edit?pli=1 page 9
34
- * @return {string} - The transfer status route.
35
- */
36
- transferStatus(Id: string): string;
37
- }
38
- //# sourceMappingURL=routes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../../../src/disbursements/routes/routes.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,qBAAa,MAAM;IACjB;;;;OAIG;IAEH;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAIjB;;;;OAIG;IACH,iBAAiB,IAAI,MAAM;IAI3B;;;;OAIG;IACH,QAAQ,IAAI,MAAM;IAIlB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM;CAGnC"}
@@ -1,53 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Routes = void 0;
4
- const constants_1 = require("../utils/constants");
5
- const apiHost = 'https://omapi.ynote.africa';
6
- const apiTokenHost = 'https://omapi-token.ynote.africa/oauth2/token';
7
- /**
8
- * Orange Money API routes builder.
9
- * @class
10
- */
11
- class Routes {
12
- /**
13
- * Constructs a new {CommonRoutes}.
14
- * @constructor
15
- * @param {RoutesParams} config - The required global route configuration.
16
- */
17
- /**
18
- * Returns the base route for the API.
19
- * e.g: https://docs.google.com/document/d/1h-gMj7PSGAALxRSofOvLa2g5vF3IpDkUufNrU1hX6Yk/edit?pli=1
20
- * @return {string} The base route.
21
- */
22
- baseRoute() {
23
- return `${apiHost}/${constants_1.DisbursementXTargetEnvironmentType.prod}`;
24
- }
25
- /**
26
- * This route is used to create an access token which can then be used to authorize and authenticate towards the other end-points of the API.
27
- * e.g : https://docs.google.com/document/d/1h-gMj7PSGAALxRSofOvLa2g5vF3IpDkUufNrU1hX6Yk/edit?pli=1 page 2
28
- * @return {string}
29
- */
30
- createAccessToken() {
31
- return apiTokenHost;
32
- }
33
- /**
34
- * This route is used to transfer an amount from the owner’s account to a payee account (customer).
35
- * e.g : https://docs.google.com/document/d/1h-gMj7PSGAALxRSofOvLa2g5vF3IpDkUufNrU1hX6Yk/edit?pli=1 page 4
36
- * @return {string} - The transfer route.
37
- */
38
- transfer() {
39
- return `${this.baseRoute()}/refund`;
40
- }
41
- /**
42
- * This route is used to get the status of a transfer.
43
- *
44
- * @param {string} Id - The reference of the transfer.
45
- * e.g : https://docs.google.com/document/d/1h-gMj7PSGAALxRSofOvLa2g5vF3IpDkUufNrU1hX6Yk/edit?pli=1 page 9
46
- * @return {string} - The transfer status route.
47
- */
48
- transferStatus(Id) {
49
- return `${this.baseRoute()}/refund/status/${Id}`;
50
- }
51
- }
52
- exports.Routes = Routes;
53
- //# sourceMappingURL=routes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"routes.js","sourceRoot":"","sources":["../../../../../src/disbursements/routes/routes.ts"],"names":[],"mappings":";;;AAAA,kDAAwE;AAExE,MAAM,OAAO,GAAG,4BAA4B,CAAC;AAC7C,MAAM,YAAY,GAAG,+CAA+C,CAAC;AAErE;;;GAGG;AACH,MAAa,MAAM;IACjB;;;;OAIG;IAEH;;;;OAIG;IACK,SAAS;QACf,OAAO,GAAG,OAAO,IAAI,8CAAkC,CAAC,IAAI,EAAE,CAAC;IACjE,CAAC;IAED;;;;OAIG;IACH,iBAAiB;QACf,OAAO,YAAY,CAAC;IACtB,CAAC;IAED;;;;OAIG;IACH,QAAQ;QACN,OAAO,GAAG,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC;IACtC,CAAC;IAED;;;;;;OAMG;IACH,cAAc,CAAC,EAAU;QACvB,OAAO,GAAG,IAAI,CAAC,SAAS,EAAE,kBAAkB,EAAE,EAAE,CAAC;IACnD,CAAC;CACF;AA5CD,wBA4CC"}
@@ -1,5 +0,0 @@
1
- export declare enum DisbursementXTargetEnvironmentType {
2
- sandbox = "dev",
3
- prod = "prod"
4
- }
5
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/disbursements/utils/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,kCAAkC;IAC5C,OAAO,QAAQ;IACf,IAAI,SAAS;CACd"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DisbursementXTargetEnvironmentType = void 0;
4
- var DisbursementXTargetEnvironmentType;
5
- (function (DisbursementXTargetEnvironmentType) {
6
- DisbursementXTargetEnvironmentType["sandbox"] = "dev";
7
- DisbursementXTargetEnvironmentType["prod"] = "prod";
8
- })(DisbursementXTargetEnvironmentType = exports.DisbursementXTargetEnvironmentType || (exports.DisbursementXTargetEnvironmentType = {}));
9
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/disbursements/utils/constants.ts"],"names":[],"mappings":";;;AAAA,IAAY,kCAGX;AAHD,WAAY,kCAAkC;IAC5C,qDAAe,CAAA;IACf,mDAAa,CAAA;AACf,CAAC,EAHW,kCAAkC,GAAlC,0CAAkC,KAAlC,0CAAkC,QAG7C"}
@@ -1,74 +0,0 @@
1
- import { AxiosResponse } from 'axios';
2
- import { LoggerInterface } from '../../payments/utils/logging_interface';
3
- export declare type RequestResponse<T> = {
4
- response?: AxiosResponse<T>;
5
- error?: unknown;
6
- };
7
- /**
8
- * Posts an http request to the given route.
9
- * @param {Record<string, string | undefined> | string} data The data to be posted.
10
- * @param {string} route The end point url.
11
- * @param {Record<string, string>} headers The type content of request.
12
- * @param {LoggerInterface} logger The logger to use when posting data.
13
- * @return {Promise<unknown | undefined>} The server response.
14
- */
15
- export declare function postRequest<T>({ data, route, headers, logger, rejectUnauthorized, }: {
16
- data?: Record<string, unknown> | string | null;
17
- route: string;
18
- logger: LoggerInterface;
19
- headers?: Record<string, string>;
20
- rejectUnauthorized?: boolean;
21
- }): Promise<RequestResponse<T>>;
22
- /**
23
- * Gets an http request to the given route.
24
- * @param {Record<string, string | undefined> | string} data The data to be posted.
25
- * @param {string} route The end point url.
26
- * @param {Record<string, string>} headers The type content of request.
27
- * @param {LoggerInterface} logger The logger to use when getting data.
28
- * @return {Promise<unknown | undefined>} The server response.
29
- */
30
- export declare function getRequest<T>({ data, route, headers, logger, rejectUnauthorized, }: {
31
- data?: Record<string, string | undefined> | string;
32
- route: string;
33
- headers?: Record<string, string>;
34
- logger: LoggerInterface;
35
- rejectUnauthorized?: boolean;
36
- }): Promise<RequestResponse<T>>;
37
- /**
38
- * Parses an Axios error and returns a modified error object.
39
- *
40
- * @param {unknown} error - The error object to be parsed.
41
- * @return {unknown} The modified error object.
42
- */
43
- export declare function parseAxiosError(error: unknown): unknown;
44
- /**
45
- * Generates a hash using the given key and secret.
46
- *
47
- * @param {string} key - The key to be hashed.
48
- * @param {string} secret - The secret to be hashed.
49
- * @return {string} - The generated hash.
50
- */
51
- export declare function hash(key: string, secret: string): string;
52
- /**
53
- * Encode the body of the request.
54
- * @param {Record<string, string>} bodyRequest the body request.
55
- * @return {string} the encoded body request result.
56
- */
57
- export declare function encodeTheBodyOfRequest(bodyRequest: Record<string, string>): string;
58
- export declare const encodeToBase64: (apiUsername: string, apiPassword: string) => string;
59
- export declare type OperationResponse<T, T2 = unknown> = Promise<{
60
- data: T;
61
- raw: T2;
62
- error?: undefined;
63
- } | {
64
- data?: undefined;
65
- raw?: undefined;
66
- error: unknown;
67
- }>;
68
- /**
69
- * Encode the data to w3 x form encoded url.
70
- * @param {Record<string, string>} data the data to encode.
71
- * @return {string} the encoded value.
72
- */
73
- export declare function encodeDataToXFormUrl(data: Record<string, string>): string;
74
- //# sourceMappingURL=https.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"https.d.ts","sourceRoot":"","sources":["../../../../../src/disbursements/utils/https.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,aAAa,EAAE,MAAM,OAAO,CAAC;AAGlD,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAEzE,oBAAY,eAAe,CAAC,CAAC,IAAI;IAC/B,QAAQ,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IAC5B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAsB,WAAW,CAAC,CAAC,EAAE,EACnC,IAAI,EACJ,KAAK,EACL,OAAO,EACP,MAAM,EACN,kBAAyB,GAC1B,EAAE;IACD,IAAI,CAAC,EAAE,M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,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,GACD;IACE,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;CAChB,CACJ,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAUzE"}
@@ -1,206 +0,0 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.encodeDataToXFormUrl = exports.encodeToBase64 = exports.encodeTheBodyOfRequest = exports.hash = exports.parseAxiosError = exports.getRequest = exports.postRequest = void 0;
30
- const axios = __importStar(require("axios"));
31
- const axios_1 = require("axios");
32
- const base64url_1 = __importDefault(require("base64url"));
33
- const https = __importStar(require("https"));
34
- /**
35
- * Posts an http request to the given route.
36
- * @param {Record<string, string | undefined> | string} data The data to be posted.
37
- * @param {string} route The end point url.
38
- * @param {Record<string, string>} headers The type content of request.
39
- * @param {LoggerInterface} logger The logger to use when posting data.
40
- * @return {Promise<unknown | undefined>} The server response.
41
- */
42
- async function postRequest({ data, route, headers, logger, rejectUnauthorized = true, }) {
43
- try {
44
- logger.info(`Request on the route ${route} is running with data : ${JSON.stringify({
45
- headers,
46
- data,
47
- route,
48
- })}`);
49
- const agent = new https.Agent({
50
- rejectUnauthorized: rejectUnauthorized,
51
- });
52
- const response = await axios.default({
53
- method: 'post',
54
- url: route,
55
- headers: headers,
56
- data: data,
57
- httpsAgent: agent,
58
- });
59
- logger.info(`Request on the route ${route} completed successfully with data : ${JSON.stringify({
60
- response: response.data,
61
- status: response.status,
62
- statusText: response.statusText,
63
- })}`);
64
- return { response: response };
65
- }
66
- catch (error) {
67
- logger.warn(`[Axios] failed to post request on the route: ${route} with data : ${JSON.stringify({ headers, data, route })}`);
68
- const parsedError = parseAxiosError(error);
69
- logger.error(JSON.stringify(parsedError));
70
- return { error: parsedError };
71
- }
72
- }
73
- exports.postRequest = postRequest;
74
- /**
75
- * Gets an http request to the given route.
76
- * @param {Record<string, string | undefined> | string} data The data to be posted.
77
- * @param {string} route The end point url.
78
- * @param {Record<string, string>} headers The type content of request.
79
- * @param {LoggerInterface} logger The logger to use when getting data.
80
- * @return {Promise<unknown | undefined>} The server response.
81
- */
82
- async function getRequest({ data, route, headers, logger, rejectUnauthorized = true, }) {
83
- try {
84
- logger.info(`Request on the route ${route} is running with data : ${JSON.stringify({
85
- headers,
86
- data,
87
- route,
88
- })}`);
89
- const agent = new https.Agent({
90
- rejectUnauthorized: rejectUnauthorized,
91
- });
92
- const response = await axios.default({
93
- method: 'get',
94
- url: route,
95
- headers: headers,
96
- data: data,
97
- httpsAgent: agent,
98
- });
99
- logger.info(`Request on the route ${route} completed successfully with data : ${JSON.stringify({
100
- response: response.data,
101
- status: response.status,
102
- statusText: response.statusText,
103
- })}`);
104
- return { response: response };
105
- }
106
- catch (error) {
107
- logger.warn(`[Axios] failed to get request on the route: ${route} with data : ${JSON.stringify({ headers, data, route })}`);
108
- const parsedError = parseAxiosError(error);
109
- logger.error(JSON.stringify(parsedError));
110
- return { error: parsedError };
111
- }
112
- }
113
- exports.getRequest = getRequest;
114
- /**
115
- * Parses an Axios error and returns a modified error object.
116
- *
117
- * @param {unknown} error - The error object to be parsed.
118
- * @return {unknown} The modified error object.
119
- */
120
- function parseAxiosError(error) {
121
- var _a, _b;
122
- let err = error;
123
- if (error instanceof axios_1.AxiosError) {
124
- if (error.response) {
125
- err = {
126
- responseError: {
127
- data: error.response.data,
128
- status: error.response.status,
129
- statusText: error.response.statusText,
130
- headers: error.response.headers,
131
- },
132
- requestBody: error.request.body,
133
- };
134
- }
135
- else if (error.request) {
136
- err = {
137
- requestFailed: {
138
- headers: (_a = error.config) === null || _a === void 0 ? void 0 : _a.headers,
139
- data: (_b = error.config) === null || _b === void 0 ? void 0 : _b.data,
140
- },
141
- };
142
- }
143
- else {
144
- err = {
145
- configFailed: error.message,
146
- };
147
- }
148
- }
149
- return err;
150
- }
151
- exports.parseAxiosError = parseAxiosError;
152
- /**
153
- * Generates a hash using the given key and secret.
154
- *
155
- * @param {string} key - The key to be hashed.
156
- * @param {string} secret - The secret to be hashed.
157
- * @return {string} - The generated hash.
158
- */
159
- function hash(key, secret) {
160
- const toHash = `${key}:${secret}`;
161
- if (!global.btoa) {
162
- return Buffer.from(toHash).toString('base64');
163
- }
164
- return global.btoa(toHash);
165
- }
166
- exports.hash = hash;
167
- /**
168
- * Encode the body of the request.
169
- * @param {Record<string, string>} bodyRequest the body request.
170
- * @return {string} the encoded body request result.
171
- */
172
- function encodeTheBodyOfRequest(bodyRequest) {
173
- const formBody = [];
174
- for (const key in bodyRequest) {
175
- if ({}.hasOwnProperty.call(bodyRequest, key)) {
176
- const encodedKey = encodeURIComponent(key);
177
- const encodedValue = encodeURIComponent(bodyRequest[key]);
178
- formBody.push(encodedKey + '=' + encodedValue);
179
- }
180
- }
181
- return formBody.join('&');
182
- }
183
- exports.encodeTheBodyOfRequest = encodeTheBodyOfRequest;
184
- // Encode to base64
185
- const encodeToBase64 = (apiUsername, apiPassword) => {
186
- return (0, base64url_1.default)(`${apiUsername}:${apiPassword}`);
187
- };
188
- exports.encodeToBase64 = encodeToBase64;
189
- /**
190
- * Encode the data to w3 x form encoded url.
191
- * @param {Record<string, string>} data the data to encode.
192
- * @return {string} the encoded value.
193
- */
194
- function encodeDataToXFormUrl(data) {
195
- const segments = [];
196
- for (const key in data) {
197
- if (Object.hasOwnProperty.call(data, key)) {
198
- const encodedKey = encodeURIComponent(key);
199
- const encodedValue = encodeURIComponent(data[key]);
200
- segments.push(`${encodedKey}=${encodedValue}`);
201
- }
202
- }
203
- return segments.join('&');
204
- }
205
- exports.encodeDataToXFormUrl = encodeDataToXFormUrl;
206
- //# sourceMappingURL=https.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"https.js","sourceRoot":"","sources":["../../../../../src/disbursements/utils/https.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAC/B,iCAAkD;AAClD,0DAAkC;AAClC,6CAA+B;AAQ/B;;;;;;;GAOG;AACI,KAAK,UAAU,WAAW,CAAI,EACnC,IAAI,EACJ,KAAK,EACL,OAAO,EACP,MAAM,EACN,kBAAkB,GAAG,IAAI,GAO1B;IACC,IAAI;QACF,MAAM,CAAC,IAAI,CACT,wBAAwB,KAAK,2BAA2B,IAAI,CAAC,SAAS,CAAC;YACrE,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CAAC,EAAE,CACL,CAAC;QACF,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC;YAC5B,kBAAkB,EAAE,kBAAkB;SACvC,CAAC,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,OAAO,CAAC;YACnC,MAAM,EAAE,MAAM;YACd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ACX,EAAE;IACV,OAAO,IAAA,mBAAS,EAAC,GAAG,WAAW,IAAI,WAAW,EAAE,CAAC,CAAC;AACpD,CAAC,CAAC;AALW,QAAA,cAAc,kBAKzB;AAeF;;;;GAIG;AACH,SAAgB,oBAAoB,CAAC,IAA4B;IAC/D,MAAM,QAAQ,GAAa,EAAE,CAAC;IAC9B,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;QACtB,IAAI,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE;YACzC,MAAM,UAAU,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC;YAC3C,MAAM,YAAY,GAAG,kBAAkB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;YACnD,QAAQ,CAAC,IAAI,CAAC,GAAG,UAAU,IAAI,YAAY,EAAE,CAAC,CAAC;SAChD;KACF;IACD,OAAO,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC5B,CAAC;AAVD,oDAUC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=https.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"https.spec.d.ts","sourceRoot":"","sources":["../../../../../src/disbursements/utils/https.spec.ts"],"names":[],"mappings":""}
@@ -1,77 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const https_1 = require("./https");
4
- const axios_1 = require("axios");
5
- describe('hash', () => {
6
- const btoaRef = global.btoa;
7
- it('should still Hash if the btao function is not available', () => {
8
- global.btoa = undefined;
9
- const hashResponse = (0, https_1.hash)('key', 'secret');
10
- expect(hashResponse).toBe('a2V5OnNlY3JldA==');
11
- global.btoa = btoaRef;
12
- });
13
- });
14
- describe('parseAxiosError', () => {
15
- it('should return initial obj if not instance of axios error', () => {
16
- const initialObj = { key: 'ERROR_100' };
17
- const parsedResponse = (0, https_1.parseAxiosError)(initialObj);
18
- expect(parsedResponse).toBe(initialObj);
19
- });
20
- it('should have the configuration failed message when config failed', () => {
21
- const message = 'configuration failed';
22
- const parsedResponse = (0, https_1.parseAxiosError)(new axios_1.AxiosError(message));
23
- expect(parsedResponse).toEqual({
24
- configFailed: message,
25
- });
26
- });
27
- it('should return request failed when axios is unable to send the request.', () => {
28
- const request = {
29
- headers: {
30
- 'Content-Type': 'application/json',
31
- },
32
- };
33
- const parsedResponse = (0, https_1.parseAxiosError)(new axios_1.AxiosError('message', '400', undefined, request));
34
- expect(parsedResponse).toEqual({
35
- requestFailed: { data: undefined, headers: undefined },
36
- });
37
- });
38
- it('should return response error when the request response fail to be retrieve.', () => {
39
- const request = {
40
- headers: {
41
- 'Content-Type': 'application/json',
42
- },
43
- body: '',
44
- };
45
- const response = {
46
- data: '',
47
- status: 201,
48
- statusText: 'created',
49
- headers: {},
50
- request: request,
51
- };
52
- const parsedResponse = (0, https_1.parseAxiosError)(new axios_1.AxiosError('message', '400', undefined, request, response));
53
- expect(parsedResponse).toEqual({
54
- responseError: {
55
- data: response.data,
56
- status: response.status,
57
- statusText: response.statusText,
58
- headers: response.headers,
59
- },
60
- requestBody: request.body,
61
- });
62
- });
63
- });
64
- describe('Test the utils function', () => {
65
- it('Generate the base 64 encoding', async () => {
66
- const value = (0, https_1.encodeToBase64)('123', '123');
67
- expect(value).toEqual('MTIzOjEyMw');
68
- });
69
- it('encode the body request', async () => {
70
- const body = {
71
- amount: '123',
72
- };
73
- const value = (0, https_1.encodeTheBodyOfRequest)(body);
74
- expect(value).toEqual('amount=123');
75
- });
76
- });
77
- //# sourceMappingURL=https.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"https.spec.js","sourceRoot":"","sources":["../../../../../src/disbursements/utils/https.spec.ts"],"names":[],"mappings":";;AAAA,mCAKiB;AACjB,iCAAkD;AAElD,QAAQ,CAAC,MAAM,EAAE,GAAG,EAAE;IACpB,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC;IAC5B,EAAE,CAAC,yDAAyD,EAAE,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AAC,IAAI,CAAC,CAAC;QAC3C,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,9 +0,0 @@
1
- /**
2
- * The merchant number regExp authorized for numbers by y-note.
3
- */
4
- export declare const merchantPhoneNumberRegex: RegExp;
5
- /**
6
- * The orange money phone number regex for orange money numbers without the country code.
7
- */
8
- export declare const orangeMoneyPhoneNumberWithoutCountryCodeRegex: RegExp;
9
- //# sourceMappingURL=regex.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"regex.d.ts","sourceRoot":"","sources":["../../../../../src/disbursements/utils/regex.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,wBAAwB,QAAoC,CAAC;AAE1E;;GAEG;AACH,eAAO,MAAM,6CAA6C,QAC7B,CAAC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.orangeMoneyPhoneNumberWithoutCountryCodeRegex = exports.merchantPhoneNumberRegex = void 0;
4
- /**
5
- * The merchant number regExp authorized for numbers by y-note.
6
- */
7
- exports.merchantPhoneNumberRegex = /^(237)?(69\d{7}$|65[5-9]\d{6}$)/;
8
- /**
9
- * The orange money phone number regex for orange money numbers without the country code.
10
- */
11
- exports.orangeMoneyPhoneNumberWithoutCountryCodeRegex = /^(69\d{7}$|65[5-9]\d{6}$)/;
12
- //# sourceMappingURL=regex.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"regex.js","sourceRoot":"","sources":["../../../../../src/disbursements/utils/regex.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACU,QAAA,wBAAwB,GAAG,iCAAiC,CAAC;AAE1E;;GAEG;AACU,QAAA,6CAA6C,GACxD,2BAA2B,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=regex.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"regex.spec.d.ts","sourceRoot":"","sources":["../../../../../src/disbursements/utils/regex.spec.ts"],"names":[],"mappings":""}
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const regex_1 = require("./regex");
4
- describe('Test regex merchant phone number', () => {
5
- test('Merchant phone number regex matches valid numbers', () => {
6
- const validNumbers = ['699947943', '237699947943'];
7
- validNumbers.forEach((number) => {
8
- expect(regex_1.merchantPhoneNumberRegex.test(number)).toBe(true);
9
- });
10
- });
11
- test('Merchant phone number regex does not match invalid numbers', () => {
12
- const invalidNumbers = ['12345', '23712345', 'abc'];
13
- invalidNumbers.forEach((number) => {
14
- expect(regex_1.merchantPhoneNumberRegex.test(number)).toBe(false);
15
- });
16
- });
17
- });
18
- describe('Test regex orange money phone number without country code', () => {
19
- test('Oman phone number without country code regex matches valid numbers', () => {
20
- const validNumbers = ['696512345', '696898765'];
21
- validNumbers.forEach((number) => {
22
- expect(regex_1.orangeMoneyPhoneNumberWithoutCountryCodeRegex.test(number)).toBe(true);
23
- });
24
- });
25
- test('Orange money phone number without country code regex does not match invalid numbers', () => {
26
- const invalidNumbers = ['12345', '96812345', 'abc'];
27
- invalidNumbers.forEach((number) => {
28
- expect(regex_1.orangeMoneyPhoneNumberWithoutCountryCodeRegex.test(number)).toBe(false);
29
- });
30
- });
31
- });
32
- //# sourceMappingURL=regex.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"regex.spec.js","sourceRoot":"","sources":["../../../../../src/disbursements/utils/regex.spec.ts"],"names":[],"mappings":";;AAAA,mCAGiB;AAEjB,QAAQ,CAAC,kCAAkC,EAAE,GAAG,EAAE;IAChD,IAAI,CAAC,mDAAmD,EAAE,GAAG,EAAE;QAC7D,MAAM,YAAY,GAAG,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;QACnD,YAAY,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;YAC9B,MAAM,CAAC,gCAAwB,CAAC,IA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action failed.
7
- */
8
- failed = "FAILED",
9
- /**
10
- * The transaction is pending.
11
- */
12
- pending = "PENDING",
13
- /**
14
- * The transaction succeeded.
15
- */
16
- succeeded = "SUCCEEDED",
17
- /**
18
- * The status received from the endpoint was not recognized.
19
- */
20
- unknown = "UNKNOWN"
21
- }
22
- export declare enum DisbursementApiRawStatus {
23
- /**
24
- * Transaction is in progress on Orange system.
25
- */
26
- pending = "PENDING",
27
- /**
28
- * The user canceled the disbursement.
29
- */
30
- canceled = "CANCELLED",
31
- /**
32
- * Waiting for user entry.
33
- */
34
- initialized = "INITIATED",
35
- /**
36
- * Disbursement is done for mobile.
37
- */
38
- succeeded = "SUCCESSFULL",
39
- /**
40
- * Disbursement is done for web.
41
- */
42
- succeeded2 = "SUCCESS",
43
- /**
44
- * Disbursement failed.
45
- */
46
- failed = "FAILED",
47
- /**
48
- * The token timed out.
49
- * Note that the minimum token expiration time is 7 min.
50
- */
51
- expired = "EXPIRED"
52
- }
53
- //# sourceMappingURL=status.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../../../src/disbursements/utils/status.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,kBAAkB;IAC5B;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,OAAO,YAAY;IAEnB;;OAEG;IACH,SAAS,cAAc;IAEvB;;OAEG;IACH,OAAO,YAAY;CACpB;AAED,oBAAY,wBAAwB;IAClC;;OAEG;IACH,OAAO,YAAY;IAEnB;;OAEG;IACH,QAAQ,cAAc;IAEtB;;OAEG;IACH,WAAW,cAAc;IAEzB;;OAEG;IACH,SAAS,gBAAgB;IAEzB;;OAEG;IACH,UAAU,YAAY;IAEtB;;OAEG;IACH,MAAM,WAAW;IAEjB;;;OAGG;IACH,OAAO,YAAY;CACpB"}