@houlak/plexo-sdk 0.1.19 → 0.1.21

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 (364) hide show
  1. package/README.md +14 -14
  2. package/lib/IPaymentGatewayClient.d.ts +31 -0
  3. package/lib/IPaymentGatewayClient.js +2 -0
  4. package/lib/PaymentGatewayClient.d.ts +32 -0
  5. package/lib/PaymentGatewayClient.js +90 -0
  6. package/lib/config/config.d.ts +12 -12
  7. package/lib/config/config.js +16 -16
  8. package/lib/handler/PlexoHandler.d.ts +21 -21
  9. package/lib/handler/PlexoHandler.js +271 -275
  10. package/lib/handler/services/evaluator.service.d.ts +6 -6
  11. package/lib/handler/services/evaluator.service.js +118 -118
  12. package/lib/handler/types/BaseResponse.d.ts +8 -8
  13. package/lib/handler/types/BaseResponse.js +16 -16
  14. package/lib/helpers/signature/signatureHelper.d.ts +1 -0
  15. package/lib/helpers/signature/signatureHelper.js +52 -0
  16. package/lib/index.d.ts +2 -2
  17. package/lib/index.js +6 -6
  18. package/lib/lib/logger.lib.d.ts +10 -10
  19. package/lib/lib/logger.lib.js +33 -33
  20. package/lib/models/ActionType.d.ts +9 -0
  21. package/lib/models/ActionType.js +13 -0
  22. package/lib/models/AmountLimit.d.ts +7 -0
  23. package/lib/models/AmountLimit.js +2 -0
  24. package/lib/models/Authorization.d.ts +16 -0
  25. package/lib/models/Authorization.js +32 -0
  26. package/lib/models/AuthorizationInfo.d.ts +6 -0
  27. package/lib/models/AuthorizationInfo.js +11 -0
  28. package/lib/models/AuthorizationType.d.ts +5 -0
  29. package/lib/models/AuthorizationType.js +9 -0
  30. package/lib/models/BaseServerResponse.d.ts +7 -0
  31. package/lib/models/BaseServerResponse.js +12 -0
  32. package/lib/models/CancelRequest.d.ts +6 -0
  33. package/lib/models/CancelRequest.js +29 -0
  34. package/lib/models/CardStatus.d.ts +7 -0
  35. package/lib/models/CardStatus.js +11 -0
  36. package/lib/models/CardTypes.d.ts +9 -0
  37. package/lib/models/CardTypes.js +13 -0
  38. package/lib/models/ClientRequest.d.ts +4 -0
  39. package/lib/models/ClientRequest.js +10 -0
  40. package/lib/models/ClientResponse.d.ts +6 -0
  41. package/lib/models/ClientResponse.js +29 -0
  42. package/lib/models/ClientSignedRequest.d.ts +4 -0
  43. package/lib/models/ClientSignedRequest.js +27 -0
  44. package/lib/models/ClientSignedResponse.d.ts +4 -0
  45. package/lib/models/ClientSignedResponse.js +27 -0
  46. package/lib/models/CodeAction.d.ts +10 -0
  47. package/lib/models/CodeAction.js +10 -0
  48. package/lib/models/CodeRequest.d.ts +5 -0
  49. package/lib/models/CodeRequest.js +2 -0
  50. package/lib/models/Commerce.d.ts +4 -0
  51. package/lib/models/Commerce.js +2 -0
  52. package/lib/models/CommerceIdRequest.d.ts +3 -0
  53. package/lib/models/CommerceIdRequest.js +2 -0
  54. package/lib/models/CommerceIssuerIdRequest.d.ts +4 -0
  55. package/lib/models/CommerceIssuerIdRequest.js +2 -0
  56. package/lib/models/CommerceModifyRequest.d.ts +4 -0
  57. package/lib/models/CommerceModifyRequest.js +2 -0
  58. package/lib/models/CommerceRequest.d.ts +3 -0
  59. package/lib/models/CommerceRequest.js +2 -0
  60. package/lib/models/CreateBankInstrumentRequest.d.ts +6 -0
  61. package/lib/models/CreateBankInstrumentRequest.js +2 -0
  62. package/lib/models/Currency.d.ts +6 -0
  63. package/lib/models/Currency.js +2 -0
  64. package/lib/models/DeleteInstrumentRequest.d.ts +6 -0
  65. package/lib/models/DeleteInstrumentRequest.js +29 -0
  66. package/lib/models/ExpressCheckoutRequest.d.ts +6 -0
  67. package/lib/models/ExpressCheckoutRequest.js +2 -0
  68. package/lib/models/ExtendedCredit.d.ts +4 -0
  69. package/lib/models/ExtendedCredit.js +2 -0
  70. package/lib/models/FieldInfo.d.ts +6 -0
  71. package/lib/models/FieldInfo.js +2 -0
  72. package/lib/models/FieldInfoPaymentProcessors.d.ts +6 -0
  73. package/lib/models/FieldInfoPaymentProcessors.js +11 -0
  74. package/lib/models/FieldType.d.ts +76 -0
  75. package/lib/models/FieldType.js +89 -0
  76. package/lib/models/FinancialInclusion.d.ts +8 -0
  77. package/lib/models/FinancialInclusion.js +2 -0
  78. package/lib/models/FinancialInclusionResult.d.ts +6 -0
  79. package/lib/models/FinancialInclusionResult.js +2 -0
  80. package/lib/models/GenericClientRequest.d.ts +5 -0
  81. package/lib/models/GenericClientRequest.js +29 -0
  82. package/lib/models/GenericClientSignedRequest.d.ts +4 -0
  83. package/lib/models/GenericClientSignedRequest.js +27 -0
  84. package/lib/models/GenericIssuerRequest.d.ts +5 -0
  85. package/lib/models/GenericIssuerRequest.js +29 -0
  86. package/lib/models/GenericIssuerSignedRequest.d.ts +4 -0
  87. package/lib/models/GenericIssuerSignedRequest.js +27 -0
  88. package/lib/models/GenericServerSignedResponse.d.ts +4 -0
  89. package/lib/models/GenericServerSignedResponse.js +27 -0
  90. package/lib/models/GenericSignedObject.d.ts +6 -0
  91. package/lib/models/GenericSignedObject.js +11 -0
  92. package/lib/models/GenericStateObject.d.ts +5 -0
  93. package/lib/models/GenericStateObject.js +29 -0
  94. package/lib/models/IClientCallback.d.ts +3 -0
  95. package/lib/models/IClientCallback.js +2 -0
  96. package/lib/models/IdentificationType.d.ts +6 -0
  97. package/lib/models/IdentificationType.js +10 -0
  98. package/lib/models/InclusionType.d.ts +5 -0
  99. package/lib/models/InclusionType.js +9 -0
  100. package/lib/models/IndexSDK.d.ts +33 -0
  101. package/lib/models/IndexSDK.js +39 -0
  102. package/lib/models/InfoLine.d.ts +4 -0
  103. package/lib/models/InfoLine.js +2 -0
  104. package/lib/models/InstrumentCallback.d.ts +9 -0
  105. package/lib/models/InstrumentCallback.js +31 -0
  106. package/lib/models/InstrumentWithMetadata.d.ts +6 -0
  107. package/lib/models/InstrumentWithMetadata.js +11 -0
  108. package/lib/models/IssuerData.d.ts +5 -0
  109. package/lib/models/IssuerData.js +2 -0
  110. package/lib/models/IssuerInfo.d.ts +14 -0
  111. package/lib/models/IssuerInfo.js +2 -0
  112. package/lib/models/IssuerProcessor.d.ts +7 -0
  113. package/lib/models/IssuerProcessor.js +12 -0
  114. package/lib/models/IssuerRequest.d.ts +4 -0
  115. package/lib/models/IssuerRequest.js +10 -0
  116. package/lib/models/IssuerSignedRequest.d.ts +4 -0
  117. package/lib/models/IssuerSignedRequest.js +27 -0
  118. package/lib/models/Item.d.ts +8 -0
  119. package/lib/models/Item.js +2 -0
  120. package/lib/models/PaymentInstrument.d.ts +20 -0
  121. package/lib/models/PaymentInstrument.js +2 -0
  122. package/lib/models/PaymentInstrumentInput.d.ts +6 -0
  123. package/lib/models/PaymentInstrumentInput.js +2 -0
  124. package/lib/models/PaymentProcessor.d.ts +6 -0
  125. package/lib/models/PaymentProcessor.js +11 -0
  126. package/lib/models/PaymentRequest.d.ts +17 -0
  127. package/lib/models/PaymentRequest.js +20 -0
  128. package/lib/models/PublicKeyInfo.d.ts +4 -0
  129. package/lib/models/PublicKeyInfo.js +2 -0
  130. package/lib/models/Reference.d.ts +6 -0
  131. package/lib/models/Reference.js +11 -0
  132. package/lib/models/ReferenceType.d.ts +6 -0
  133. package/lib/models/ReferenceType.js +10 -0
  134. package/lib/models/Reserve.d.ts +6 -0
  135. package/lib/models/Reserve.js +29 -0
  136. package/lib/models/ReserveRequest.d.ts +6 -0
  137. package/lib/models/ReserveRequest.js +29 -0
  138. package/lib/models/ResultCodes.d.ts +30 -0
  139. package/lib/models/ResultCodes.js +35 -0
  140. package/lib/models/ServerResponse.d.ts +6 -0
  141. package/lib/models/ServerResponse.js +29 -0
  142. package/lib/models/ServerSignedCallback.d.ts +3 -0
  143. package/lib/models/ServerSignedCallback.js +27 -0
  144. package/lib/models/ServerSignedRequest.d.ts +3 -0
  145. package/lib/models/ServerSignedRequest.js +27 -0
  146. package/lib/models/ServerSignedResponse.d.ts +4 -0
  147. package/lib/models/ServerSignedResponse.js +27 -0
  148. package/lib/models/Session.d.ts +5 -0
  149. package/lib/models/Session.js +2 -0
  150. package/lib/models/SignedObject.d.ts +6 -0
  151. package/lib/models/SignedObject.js +11 -0
  152. package/lib/models/StateObject.d.ts +5 -0
  153. package/lib/models/StateObject.js +11 -0
  154. package/lib/models/TimeLimit.d.ts +5 -0
  155. package/lib/models/TimeLimit.js +2 -0
  156. package/lib/models/Transaction.d.ts +26 -0
  157. package/lib/models/Transaction.js +26 -0
  158. package/lib/models/TransactionCallback.d.ts +7 -0
  159. package/lib/models/TransactionCallback.js +29 -0
  160. package/lib/models/TransactionCursor.d.ts +6 -0
  161. package/lib/models/TransactionCursor.js +2 -0
  162. package/lib/models/TransactionInfo.d.ts +12 -0
  163. package/lib/models/TransactionInfo.js +2 -0
  164. package/lib/models/TransactionOrder.d.ts +5 -0
  165. package/lib/models/TransactionOrder.js +2 -0
  166. package/lib/models/TransactionQuery.d.ts +54 -0
  167. package/lib/models/TransactionQuery.js +47 -0
  168. package/lib/models/TransactionResult.d.ts +13 -0
  169. package/lib/models/TransactionResult.js +17 -0
  170. package/lib/models/TransactionType.d.ts +5 -0
  171. package/lib/models/TransactionType.js +9 -0
  172. package/lib/sdk/IPaymentGatewayClient.d.ts +31 -31
  173. package/lib/sdk/IPaymentGatewayClient.js +2 -2
  174. package/lib/sdk/PaymentGatewayClient.d.ts +32 -32
  175. package/lib/sdk/PaymentGatewayClient.js +379 -379
  176. package/lib/sdk/PaymentGatewayMock.d.ts +31 -31
  177. package/lib/sdk/PaymentGatewayMock.js +336 -336
  178. package/lib/sdk/enums/plexo-error-enum.d.ts +38 -38
  179. package/lib/sdk/enums/plexo-error-enum.js +46 -46
  180. package/lib/sdk/helpers/signature/signatureHelper.d.ts +9 -9
  181. package/lib/sdk/helpers/signature/signatureHelper.js +277 -275
  182. package/lib/sdk/helpers/signature/stringifyWithFloats.d.ts +1 -1
  183. package/lib/sdk/helpers/signature/stringifyWithFloats.js +71 -71
  184. package/lib/sdk/index.d.ts +4 -4
  185. package/lib/sdk/index.js +22 -22
  186. package/lib/sdk/mocks/mocks.d.ts +24 -24
  187. package/lib/sdk/mocks/mocks.js +180 -180
  188. package/lib/sdk/models/ActionType.d.ts +9 -9
  189. package/lib/sdk/models/ActionType.js +13 -13
  190. package/lib/sdk/models/AmountLimit.d.ts +7 -7
  191. package/lib/sdk/models/AmountLimit.js +2 -2
  192. package/lib/sdk/models/Authorization.d.ts +18 -18
  193. package/lib/sdk/models/Authorization.js +32 -32
  194. package/lib/sdk/models/AuthorizationInfo.d.ts +6 -6
  195. package/lib/sdk/models/AuthorizationInfo.js +11 -11
  196. package/lib/sdk/models/AuthorizationType.d.ts +5 -5
  197. package/lib/sdk/models/AuthorizationType.js +9 -9
  198. package/lib/sdk/models/BaseServerResponse.d.ts +7 -7
  199. package/lib/sdk/models/BaseServerResponse.js +12 -12
  200. package/lib/sdk/models/BuiltInPagesOptionsDto.d.ts +4 -4
  201. package/lib/sdk/models/BuiltInPagesOptionsDto.js +9 -9
  202. package/lib/sdk/models/CancelRequest.d.ts +6 -6
  203. package/lib/sdk/models/CancelRequest.js +29 -29
  204. package/lib/sdk/models/CardStatus.d.ts +7 -7
  205. package/lib/sdk/models/CardStatus.js +11 -11
  206. package/lib/sdk/models/CardTypes.d.ts +9 -9
  207. package/lib/sdk/models/CardTypes.js +13 -13
  208. package/lib/sdk/models/ClientRequest.d.ts +4 -4
  209. package/lib/sdk/models/ClientRequest.js +10 -10
  210. package/lib/sdk/models/ClientResponse.d.ts +6 -6
  211. package/lib/sdk/models/ClientResponse.js +29 -29
  212. package/lib/sdk/models/ClientSignedRequest.d.ts +4 -4
  213. package/lib/sdk/models/ClientSignedRequest.js +27 -27
  214. package/lib/sdk/models/ClientSignedResponse.d.ts +4 -4
  215. package/lib/sdk/models/ClientSignedResponse.js +27 -27
  216. package/lib/sdk/models/CodeAction.d.ts +10 -10
  217. package/lib/sdk/models/CodeAction.js +10 -10
  218. package/lib/sdk/models/CodeRequest.d.ts +5 -5
  219. package/lib/sdk/models/CodeRequest.js +2 -2
  220. package/lib/sdk/models/Commerce.d.ts +4 -4
  221. package/lib/sdk/models/Commerce.js +2 -2
  222. package/lib/sdk/models/CommerceIdRequest.d.ts +3 -3
  223. package/lib/sdk/models/CommerceIdRequest.js +2 -2
  224. package/lib/sdk/models/CommerceIssuerIdRequest.d.ts +4 -4
  225. package/lib/sdk/models/CommerceIssuerIdRequest.js +2 -2
  226. package/lib/sdk/models/CommerceModifyRequest.d.ts +4 -4
  227. package/lib/sdk/models/CommerceModifyRequest.js +2 -2
  228. package/lib/sdk/models/CommerceRequest.d.ts +3 -3
  229. package/lib/sdk/models/CommerceRequest.js +2 -2
  230. package/lib/sdk/models/CreateBankInstrumentRequest.d.ts +6 -6
  231. package/lib/sdk/models/CreateBankInstrumentRequest.js +2 -2
  232. package/lib/sdk/models/Currency.d.ts +6 -6
  233. package/lib/sdk/models/Currency.js +2 -2
  234. package/lib/sdk/models/DeleteInstrumentRequest.d.ts +6 -6
  235. package/lib/sdk/models/DeleteInstrumentRequest.js +29 -29
  236. package/lib/sdk/models/DisplayOptionsDto.d.ts +7 -7
  237. package/lib/sdk/models/DisplayOptionsDto.js +9 -9
  238. package/lib/sdk/models/ExpressCheckoutRequest.d.ts +6 -6
  239. package/lib/sdk/models/ExpressCheckoutRequest.js +2 -2
  240. package/lib/sdk/models/ExpressCheckoutSettingsDto.d.ts +6 -6
  241. package/lib/sdk/models/ExpressCheckoutSettingsDto.js +9 -9
  242. package/lib/sdk/models/ExtendedCredit.d.ts +4 -4
  243. package/lib/sdk/models/ExtendedCredit.js +2 -2
  244. package/lib/sdk/models/FieldInfo.d.ts +6 -6
  245. package/lib/sdk/models/FieldInfo.js +2 -2
  246. package/lib/sdk/models/FieldInfoPaymentProcessors.d.ts +6 -6
  247. package/lib/sdk/models/FieldInfoPaymentProcessors.js +11 -11
  248. package/lib/sdk/models/FieldType.d.ts +76 -76
  249. package/lib/sdk/models/FieldType.js +89 -89
  250. package/lib/sdk/models/FinancialInclusion.d.ts +9 -9
  251. package/lib/sdk/models/FinancialInclusion.js +2 -2
  252. package/lib/sdk/models/FinancialInclusionResult.d.ts +6 -6
  253. package/lib/sdk/models/FinancialInclusionResult.js +2 -2
  254. package/lib/sdk/models/GenericClientRequest.d.ts +5 -5
  255. package/lib/sdk/models/GenericClientRequest.js +29 -29
  256. package/lib/sdk/models/GenericClientSignedRequest.d.ts +4 -4
  257. package/lib/sdk/models/GenericClientSignedRequest.js +27 -27
  258. package/lib/sdk/models/GenericIssuerRequest.d.ts +5 -5
  259. package/lib/sdk/models/GenericIssuerRequest.js +29 -29
  260. package/lib/sdk/models/GenericIssuerSignedRequest.d.ts +4 -4
  261. package/lib/sdk/models/GenericIssuerSignedRequest.js +27 -27
  262. package/lib/sdk/models/GenericServerSignedResponse.d.ts +4 -4
  263. package/lib/sdk/models/GenericServerSignedResponse.js +27 -27
  264. package/lib/sdk/models/GenericSignedObject.d.ts +6 -6
  265. package/lib/sdk/models/GenericSignedObject.js +11 -11
  266. package/lib/sdk/models/GenericStateObject.d.ts +5 -5
  267. package/lib/sdk/models/GenericStateObject.js +29 -29
  268. package/lib/sdk/models/IClientCallback.d.ts +3 -3
  269. package/lib/sdk/models/IClientCallback.js +2 -2
  270. package/lib/sdk/models/IdentificationType.d.ts +6 -6
  271. package/lib/sdk/models/IdentificationType.js +10 -10
  272. package/lib/sdk/models/InclusionType.d.ts +5 -5
  273. package/lib/sdk/models/InclusionType.js +9 -9
  274. package/lib/sdk/models/IndexSDK.d.ts +85 -84
  275. package/lib/sdk/models/IndexSDK.js +114 -112
  276. package/lib/sdk/models/InfoLine.d.ts +4 -4
  277. package/lib/sdk/models/InfoLine.js +2 -2
  278. package/lib/sdk/models/InstrumentCallback.d.ts +9 -9
  279. package/lib/sdk/models/InstrumentCallback.js +31 -31
  280. package/lib/sdk/models/InstrumentWithMetadata.d.ts +6 -6
  281. package/lib/sdk/models/InstrumentWithMetadata.js +11 -11
  282. package/lib/sdk/models/IssuerData.d.ts +5 -5
  283. package/lib/sdk/models/IssuerData.js +2 -2
  284. package/lib/sdk/models/IssuerInfo.d.ts +14 -14
  285. package/lib/sdk/models/IssuerInfo.js +2 -2
  286. package/lib/sdk/models/IssuerProcessor.d.ts +7 -7
  287. package/lib/sdk/models/IssuerProcessor.js +12 -12
  288. package/lib/sdk/models/IssuerRequest.d.ts +4 -4
  289. package/lib/sdk/models/IssuerRequest.js +10 -10
  290. package/lib/sdk/models/IssuerSignedRequest.d.ts +4 -4
  291. package/lib/sdk/models/IssuerSignedRequest.js +27 -27
  292. package/lib/sdk/models/Item.d.ts +8 -8
  293. package/lib/sdk/models/Item.js +2 -2
  294. package/lib/sdk/models/PaymentInstrument.d.ts +18 -18
  295. package/lib/sdk/models/PaymentInstrument.js +2 -2
  296. package/lib/sdk/models/PaymentInstrumentInput.d.ts +6 -6
  297. package/lib/sdk/models/PaymentInstrumentInput.js +2 -2
  298. package/lib/sdk/models/PaymentProcessor.d.ts +6 -6
  299. package/lib/sdk/models/PaymentProcessor.js +11 -11
  300. package/lib/sdk/models/PaymentRequest.d.ts +17 -17
  301. package/lib/sdk/models/PaymentRequest.js +20 -20
  302. package/lib/sdk/models/PlexoSdkSettings.d.ts +8 -8
  303. package/lib/sdk/models/PlexoSdkSettings.js +14 -14
  304. package/lib/sdk/models/PublicKeyInfo.d.ts +4 -4
  305. package/lib/sdk/models/PublicKeyInfo.js +2 -2
  306. package/lib/sdk/models/Reference.d.ts +6 -6
  307. package/lib/sdk/models/Reference.js +11 -11
  308. package/lib/sdk/models/ReferenceType.d.ts +6 -6
  309. package/lib/sdk/models/ReferenceType.js +10 -10
  310. package/lib/sdk/models/Reserve.d.ts +6 -6
  311. package/lib/sdk/models/Reserve.js +29 -29
  312. package/lib/sdk/models/ReserveRequest.d.ts +6 -6
  313. package/lib/sdk/models/ReserveRequest.js +29 -29
  314. package/lib/sdk/models/ResultCodes.d.ts +30 -30
  315. package/lib/sdk/models/ResultCodes.js +35 -35
  316. package/lib/sdk/models/ServerResponse.d.ts +6 -6
  317. package/lib/sdk/models/ServerResponse.js +29 -29
  318. package/lib/sdk/models/ServerSignedCallback.d.ts +3 -3
  319. package/lib/sdk/models/ServerSignedCallback.js +27 -27
  320. package/lib/sdk/models/ServerSignedRequest.d.ts +3 -3
  321. package/lib/sdk/models/ServerSignedRequest.js +27 -27
  322. package/lib/sdk/models/ServerSignedResponse.d.ts +4 -4
  323. package/lib/sdk/models/ServerSignedResponse.js +27 -27
  324. package/lib/sdk/models/Session.d.ts +5 -5
  325. package/lib/sdk/models/Session.js +2 -2
  326. package/lib/sdk/models/Settings.d.ts +11 -11
  327. package/lib/sdk/models/Settings.js +19 -19
  328. package/lib/sdk/models/SignedObject.d.ts +6 -6
  329. package/lib/sdk/models/SignedObject.js +11 -11
  330. package/lib/sdk/models/StateObject.d.ts +5 -5
  331. package/lib/sdk/models/StateObject.js +11 -11
  332. package/lib/sdk/models/TimeLimit.d.ts +5 -5
  333. package/lib/sdk/models/TimeLimit.js +2 -2
  334. package/lib/sdk/models/TokenizationSettingsDto.d.ts +4 -4
  335. package/lib/sdk/models/TokenizationSettingsDto.js +9 -9
  336. package/lib/sdk/models/Transaction.d.ts +31 -31
  337. package/lib/sdk/models/Transaction.js +26 -26
  338. package/lib/sdk/models/TransactionCallback.d.ts +7 -7
  339. package/lib/sdk/models/TransactionCallback.js +29 -29
  340. package/lib/sdk/models/TransactionCursor.d.ts +6 -6
  341. package/lib/sdk/models/TransactionCursor.js +2 -2
  342. package/lib/sdk/models/TransactionInfo.d.ts +12 -12
  343. package/lib/sdk/models/TransactionInfo.js +2 -2
  344. package/lib/sdk/models/TransactionOrder.d.ts +5 -5
  345. package/lib/sdk/models/TransactionOrder.js +2 -2
  346. package/lib/sdk/models/TransactionQuery.d.ts +54 -54
  347. package/lib/sdk/models/TransactionQuery.js +47 -47
  348. package/lib/sdk/models/TransactionResult.d.ts +13 -13
  349. package/lib/sdk/models/TransactionResult.js +17 -17
  350. package/lib/sdk/models/TransactionType.d.ts +5 -5
  351. package/lib/sdk/models/TransactionType.js +9 -9
  352. package/lib/sdk/models/UIOptionsDto.d.ts +8 -8
  353. package/lib/sdk/models/UIOptionsDto.js +13 -13
  354. package/lib/sdk/models/WebFormSettingsDto.d.ts +8 -8
  355. package/lib/sdk/models/WebFormSettingsDto.js +9 -9
  356. package/lib/sdk/types/signatureHelper.type.d.ts +5 -5
  357. package/lib/sdk/types/signatureHelper.type.js +2 -2
  358. package/lib/sdk/types/ui_options_dto.type.d.ts +6 -6
  359. package/lib/sdk/types/ui_options_dto.type.js +2 -2
  360. package/lib/utils/case.util.d.ts +4 -4
  361. package/lib/utils/case.util.js +54 -43
  362. package/lib/utils/index.d.ts +1 -1
  363. package/lib/utils/index.js +5 -5
  364. package/package.json +52 -52
@@ -1,38 +1,38 @@
1
- export declare enum PlexoErrorEnum {
2
- CommerceAlreadyExists = 25,
3
- ExceptionHandlingTransaction = 1200,
4
- PlexoAuthorizationError = 1201,
5
- InstrumentNotFound = 1202,
6
- PlexoPaymentError = 1203,
7
- PlexoUnknownError = 1204,
8
- InvalidCard = 1205,
9
- InvalidCurrency = 1206,
10
- InvalidIssuer = 1207,
11
- InvalidInstrument = 1208,
12
- InvalidVerification = 1209,
13
- AlreadyExists = 1210,
14
- MissingFields = 1211,
15
- CodeExpired = 1212,
16
- RequiresSessionExtendedAmount = 1213,
17
- RequiresClientExtendedAmount = 1214,
18
- ExternalLimitedCard = 1215,
19
- Forbidden = 1216,
20
- ExpiredSession = 1217,
21
- InvalidSession = 1218,
22
- SystemError = 1219,
23
- DisabledCard = 1220,
24
- ExpiredCard = 1221,
25
- ClientServerError = 1222,
26
- DuplicateTransaction = 1223,
27
- ArgumentError = 1224,
28
- Started = 1225,
29
- Pending = 1226,
30
- Denied = 1227,
31
- Expired = 1228,
32
- NotProcessed = 1229,
33
- UnableToCancel = 1230,
34
- IssuerOperationNotSupported = 1231,
35
- ExtendedCreditVerificationRequired = 1232,
36
- BadArgument = 1233,
37
- Generic = 9999
38
- }
1
+ export declare enum PlexoErrorEnum {
2
+ CommerceAlreadyExists = 25,
3
+ ExceptionHandlingTransaction = 1200,
4
+ PlexoAuthorizationError = 1201,
5
+ InstrumentNotFound = 1202,
6
+ PlexoPaymentError = 1203,
7
+ PlexoUnknownError = 1204,
8
+ InvalidCard = 1205,
9
+ InvalidCurrency = 1206,
10
+ InvalidIssuer = 1207,
11
+ InvalidInstrument = 1208,
12
+ InvalidVerification = 1209,
13
+ AlreadyExists = 1210,
14
+ MissingFields = 1211,
15
+ CodeExpired = 1212,
16
+ RequiresSessionExtendedAmount = 1213,
17
+ RequiresClientExtendedAmount = 1214,
18
+ ExternalLimitedCard = 1215,
19
+ Forbidden = 1216,
20
+ ExpiredSession = 1217,
21
+ InvalidSession = 1218,
22
+ SystemError = 1219,
23
+ DisabledCard = 1220,
24
+ ExpiredCard = 1221,
25
+ ClientServerError = 1222,
26
+ DuplicateTransaction = 1223,
27
+ ArgumentError = 1224,
28
+ Started = 1225,
29
+ Pending = 1226,
30
+ Denied = 1227,
31
+ Expired = 1228,
32
+ NotProcessed = 1229,
33
+ UnableToCancel = 1230,
34
+ IssuerOperationNotSupported = 1231,
35
+ ExtendedCreditVerificationRequired = 1232,
36
+ BadArgument = 1233,
37
+ Generic = 9999
38
+ }
@@ -1,46 +1,46 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PlexoErrorEnum = void 0;
4
- var PlexoErrorEnum;
5
- (function (PlexoErrorEnum) {
6
- PlexoErrorEnum[PlexoErrorEnum["CommerceAlreadyExists"] = 25] = "CommerceAlreadyExists";
7
- PlexoErrorEnum[PlexoErrorEnum["ExceptionHandlingTransaction"] = 1200] = "ExceptionHandlingTransaction";
8
- PlexoErrorEnum[PlexoErrorEnum["PlexoAuthorizationError"] = 1201] = "PlexoAuthorizationError";
9
- PlexoErrorEnum[PlexoErrorEnum["InstrumentNotFound"] = 1202] = "InstrumentNotFound";
10
- PlexoErrorEnum[PlexoErrorEnum["PlexoPaymentError"] = 1203] = "PlexoPaymentError";
11
- PlexoErrorEnum[PlexoErrorEnum["PlexoUnknownError"] = 1204] = "PlexoUnknownError";
12
- PlexoErrorEnum[PlexoErrorEnum["InvalidCard"] = 1205] = "InvalidCard";
13
- PlexoErrorEnum[PlexoErrorEnum["InvalidCurrency"] = 1206] = "InvalidCurrency";
14
- PlexoErrorEnum[PlexoErrorEnum["InvalidIssuer"] = 1207] = "InvalidIssuer";
15
- PlexoErrorEnum[PlexoErrorEnum["InvalidInstrument"] = 1208] = "InvalidInstrument";
16
- PlexoErrorEnum[PlexoErrorEnum["InvalidVerification"] = 1209] = "InvalidVerification";
17
- PlexoErrorEnum[PlexoErrorEnum["AlreadyExists"] = 1210] = "AlreadyExists";
18
- PlexoErrorEnum[PlexoErrorEnum["MissingFields"] = 1211] = "MissingFields";
19
- // I don't really know what code this is talking about, but it seemed important
20
- PlexoErrorEnum[PlexoErrorEnum["CodeExpired"] = 1212] = "CodeExpired";
21
- PlexoErrorEnum[PlexoErrorEnum["RequiresSessionExtendedAmount"] = 1213] = "RequiresSessionExtendedAmount";
22
- // I guess one of these two have to do with extended credits / insufficient funds
23
- PlexoErrorEnum[PlexoErrorEnum["RequiresClientExtendedAmount"] = 1214] = "RequiresClientExtendedAmount";
24
- // When a card reached a certain limit imposed by the issuer or the cardholder?
25
- PlexoErrorEnum[PlexoErrorEnum["ExternalLimitedCard"] = 1215] = "ExternalLimitedCard";
26
- PlexoErrorEnum[PlexoErrorEnum["Forbidden"] = 1216] = "Forbidden";
27
- PlexoErrorEnum[PlexoErrorEnum["ExpiredSession"] = 1217] = "ExpiredSession";
28
- PlexoErrorEnum[PlexoErrorEnum["InvalidSession"] = 1218] = "InvalidSession";
29
- PlexoErrorEnum[PlexoErrorEnum["SystemError"] = 1219] = "SystemError";
30
- PlexoErrorEnum[PlexoErrorEnum["DisabledCard"] = 1220] = "DisabledCard";
31
- PlexoErrorEnum[PlexoErrorEnum["ExpiredCard"] = 1221] = "ExpiredCard";
32
- PlexoErrorEnum[PlexoErrorEnum["ClientServerError"] = 1222] = "ClientServerError";
33
- PlexoErrorEnum[PlexoErrorEnum["DuplicateTransaction"] = 1223] = "DuplicateTransaction";
34
- PlexoErrorEnum[PlexoErrorEnum["ArgumentError"] = 1224] = "ArgumentError";
35
- // Now transaction errors
36
- PlexoErrorEnum[PlexoErrorEnum["Started"] = 1225] = "Started";
37
- PlexoErrorEnum[PlexoErrorEnum["Pending"] = 1226] = "Pending";
38
- PlexoErrorEnum[PlexoErrorEnum["Denied"] = 1227] = "Denied";
39
- PlexoErrorEnum[PlexoErrorEnum["Expired"] = 1228] = "Expired";
40
- PlexoErrorEnum[PlexoErrorEnum["NotProcessed"] = 1229] = "NotProcessed";
41
- PlexoErrorEnum[PlexoErrorEnum["UnableToCancel"] = 1230] = "UnableToCancel";
42
- PlexoErrorEnum[PlexoErrorEnum["IssuerOperationNotSupported"] = 1231] = "IssuerOperationNotSupported";
43
- PlexoErrorEnum[PlexoErrorEnum["ExtendedCreditVerificationRequired"] = 1232] = "ExtendedCreditVerificationRequired";
44
- PlexoErrorEnum[PlexoErrorEnum["BadArgument"] = 1233] = "BadArgument";
45
- PlexoErrorEnum[PlexoErrorEnum["Generic"] = 9999] = "Generic";
46
- })(PlexoErrorEnum = exports.PlexoErrorEnum || (exports.PlexoErrorEnum = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PlexoErrorEnum = void 0;
4
+ var PlexoErrorEnum;
5
+ (function (PlexoErrorEnum) {
6
+ PlexoErrorEnum[PlexoErrorEnum["CommerceAlreadyExists"] = 25] = "CommerceAlreadyExists";
7
+ PlexoErrorEnum[PlexoErrorEnum["ExceptionHandlingTransaction"] = 1200] = "ExceptionHandlingTransaction";
8
+ PlexoErrorEnum[PlexoErrorEnum["PlexoAuthorizationError"] = 1201] = "PlexoAuthorizationError";
9
+ PlexoErrorEnum[PlexoErrorEnum["InstrumentNotFound"] = 1202] = "InstrumentNotFound";
10
+ PlexoErrorEnum[PlexoErrorEnum["PlexoPaymentError"] = 1203] = "PlexoPaymentError";
11
+ PlexoErrorEnum[PlexoErrorEnum["PlexoUnknownError"] = 1204] = "PlexoUnknownError";
12
+ PlexoErrorEnum[PlexoErrorEnum["InvalidCard"] = 1205] = "InvalidCard";
13
+ PlexoErrorEnum[PlexoErrorEnum["InvalidCurrency"] = 1206] = "InvalidCurrency";
14
+ PlexoErrorEnum[PlexoErrorEnum["InvalidIssuer"] = 1207] = "InvalidIssuer";
15
+ PlexoErrorEnum[PlexoErrorEnum["InvalidInstrument"] = 1208] = "InvalidInstrument";
16
+ PlexoErrorEnum[PlexoErrorEnum["InvalidVerification"] = 1209] = "InvalidVerification";
17
+ PlexoErrorEnum[PlexoErrorEnum["AlreadyExists"] = 1210] = "AlreadyExists";
18
+ PlexoErrorEnum[PlexoErrorEnum["MissingFields"] = 1211] = "MissingFields";
19
+ // I don't really know what code this is talking about, but it seemed important
20
+ PlexoErrorEnum[PlexoErrorEnum["CodeExpired"] = 1212] = "CodeExpired";
21
+ PlexoErrorEnum[PlexoErrorEnum["RequiresSessionExtendedAmount"] = 1213] = "RequiresSessionExtendedAmount";
22
+ // I guess one of these two have to do with extended credits / insufficient funds
23
+ PlexoErrorEnum[PlexoErrorEnum["RequiresClientExtendedAmount"] = 1214] = "RequiresClientExtendedAmount";
24
+ // When a card reached a certain limit imposed by the issuer or the cardholder?
25
+ PlexoErrorEnum[PlexoErrorEnum["ExternalLimitedCard"] = 1215] = "ExternalLimitedCard";
26
+ PlexoErrorEnum[PlexoErrorEnum["Forbidden"] = 1216] = "Forbidden";
27
+ PlexoErrorEnum[PlexoErrorEnum["ExpiredSession"] = 1217] = "ExpiredSession";
28
+ PlexoErrorEnum[PlexoErrorEnum["InvalidSession"] = 1218] = "InvalidSession";
29
+ PlexoErrorEnum[PlexoErrorEnum["SystemError"] = 1219] = "SystemError";
30
+ PlexoErrorEnum[PlexoErrorEnum["DisabledCard"] = 1220] = "DisabledCard";
31
+ PlexoErrorEnum[PlexoErrorEnum["ExpiredCard"] = 1221] = "ExpiredCard";
32
+ PlexoErrorEnum[PlexoErrorEnum["ClientServerError"] = 1222] = "ClientServerError";
33
+ PlexoErrorEnum[PlexoErrorEnum["DuplicateTransaction"] = 1223] = "DuplicateTransaction";
34
+ PlexoErrorEnum[PlexoErrorEnum["ArgumentError"] = 1224] = "ArgumentError";
35
+ // Now transaction errors
36
+ PlexoErrorEnum[PlexoErrorEnum["Started"] = 1225] = "Started";
37
+ PlexoErrorEnum[PlexoErrorEnum["Pending"] = 1226] = "Pending";
38
+ PlexoErrorEnum[PlexoErrorEnum["Denied"] = 1227] = "Denied";
39
+ PlexoErrorEnum[PlexoErrorEnum["Expired"] = 1228] = "Expired";
40
+ PlexoErrorEnum[PlexoErrorEnum["NotProcessed"] = 1229] = "NotProcessed";
41
+ PlexoErrorEnum[PlexoErrorEnum["UnableToCancel"] = 1230] = "UnableToCancel";
42
+ PlexoErrorEnum[PlexoErrorEnum["IssuerOperationNotSupported"] = 1231] = "IssuerOperationNotSupported";
43
+ PlexoErrorEnum[PlexoErrorEnum["ExtendedCreditVerificationRequired"] = 1232] = "ExtendedCreditVerificationRequired";
44
+ PlexoErrorEnum[PlexoErrorEnum["BadArgument"] = 1233] = "BadArgument";
45
+ PlexoErrorEnum[PlexoErrorEnum["Generic"] = 9999] = "Generic";
46
+ })(PlexoErrorEnum = exports.PlexoErrorEnum || (exports.PlexoErrorEnum = {}));
@@ -1,9 +1,9 @@
1
- import { ClientSignedResponse, GenericSignedObject, GenericStateObject, InstrumentCallback, ServerResponse, TransactionCallback } from '../..';
2
- import { Certificate } from '../../types/signatureHelper.type';
3
- export declare const canonizeJson: <T>(object: T) => T;
4
- export declare const SignatureHelper: {
5
- getCertificate: () => Promise<Certificate>;
6
- getSignatureFromPlexo: <T extends object>(objectToSign: GenericStateObject<T>) => Promise<GenericSignedObject<T>>;
7
- getSignatureFromCallback: (response: ServerResponse<InstrumentCallback | TransactionCallback>) => Promise<ServerResponse<ClientSignedResponse>>;
8
- getPlexoSignature: <T_1 extends object>(fingerprint: string, response: GenericSignedObject<T_1>) => Promise<ServerResponse<T_1>>;
9
- };
1
+ import { ClientSignedResponse, GenericSignedObject, GenericStateObject, InstrumentCallback, ServerResponse, TransactionCallback } from '../..';
2
+ import { Certificate } from '../../types/signatureHelper.type';
3
+ export declare const canonizeJson: <T>(object: T) => T;
4
+ export declare const SignatureHelper: {
5
+ getCertificate: () => Promise<Certificate>;
6
+ getSignatureFromPlexo: <T extends object>(objectToSign: GenericStateObject<T>) => Promise<GenericSignedObject<T>>;
7
+ getSignatureFromCallback: (response: ServerResponse<InstrumentCallback | TransactionCallback>) => Promise<ServerResponse<ClientSignedResponse>>;
8
+ getPlexoSignature: <T_1 extends object>(fingerprint: string, response: GenericSignedObject<T_1>) => Promise<ServerResponse<T_1>>;
9
+ };