connect-sdk-nodejs 3.17.0 → 4.0.0

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 (520) hide show
  1. package/README.md +27 -3
  2. package/lib/captures/get.d.ts +3 -0
  3. package/lib/captures/get.js +17 -0
  4. package/lib/captures/get.js.map +1 -0
  5. package/lib/captures/index.d.ts +3 -0
  6. package/lib/captures/index.js +13 -0
  7. package/lib/captures/index.js.map +1 -0
  8. package/lib/captures/refund.d.ts +4 -0
  9. package/lib/captures/refund.js +30 -0
  10. package/lib/captures/refund.js.map +1 -0
  11. package/lib/disputes/cancel.d.ts +3 -0
  12. package/lib/disputes/cancel.js +17 -0
  13. package/lib/disputes/cancel.js.map +1 -0
  14. package/lib/disputes/get.d.ts +3 -0
  15. package/lib/disputes/get.js +17 -0
  16. package/lib/disputes/get.js.map +1 -0
  17. package/lib/disputes/index.d.ts +3 -0
  18. package/lib/disputes/index.js +17 -0
  19. package/lib/disputes/index.js.map +1 -0
  20. package/lib/disputes/submit.d.ts +3 -0
  21. package/lib/disputes/submit.js +17 -0
  22. package/lib/disputes/submit.js.map +1 -0
  23. package/lib/disputes/uploadFile.d.ts +4 -0
  24. package/lib/disputes/uploadFile.js +17 -0
  25. package/lib/disputes/uploadFile.js.map +1 -0
  26. package/lib/files/getFile.d.ts +3 -0
  27. package/lib/files/getFile.js +17 -0
  28. package/lib/files/getFile.js.map +1 -0
  29. package/lib/files/index.d.ts +3 -0
  30. package/lib/files/index.js +11 -0
  31. package/lib/files/index.js.map +1 -0
  32. package/lib/hostedcheckouts/create.d.ts +4 -0
  33. package/lib/hostedcheckouts/create.js +30 -0
  34. package/lib/hostedcheckouts/create.js.map +1 -0
  35. package/lib/hostedcheckouts/get.d.ts +3 -0
  36. package/lib/hostedcheckouts/get.js +17 -0
  37. package/lib/hostedcheckouts/get.js.map +1 -0
  38. package/lib/hostedcheckouts/index.d.ts +3 -0
  39. package/lib/hostedcheckouts/index.js +15 -0
  40. package/lib/hostedcheckouts/index.js.map +1 -0
  41. package/lib/hostedcheckouts/remove.d.ts +3 -0
  42. package/lib/hostedcheckouts/remove.js +17 -0
  43. package/lib/hostedcheckouts/remove.js.map +1 -0
  44. package/lib/hostedmandatemanagements/create.d.ts +4 -0
  45. package/lib/hostedmandatemanagements/create.js +30 -0
  46. package/lib/hostedmandatemanagements/create.js.map +1 -0
  47. package/lib/hostedmandatemanagements/get.d.ts +3 -0
  48. package/lib/hostedmandatemanagements/get.js +17 -0
  49. package/lib/hostedmandatemanagements/get.js.map +1 -0
  50. package/lib/hostedmandatemanagements/index.d.ts +3 -0
  51. package/lib/hostedmandatemanagements/index.js +13 -0
  52. package/lib/hostedmandatemanagements/index.js.map +1 -0
  53. package/lib/index.d.ts +3 -0
  54. package/lib/index.js +85 -0
  55. package/lib/index.js.map +1 -0
  56. package/lib/mandates/block.d.ts +3 -0
  57. package/lib/mandates/block.js +17 -0
  58. package/lib/mandates/block.js.map +1 -0
  59. package/lib/mandates/create.d.ts +4 -0
  60. package/lib/mandates/create.js +30 -0
  61. package/lib/mandates/create.js.map +1 -0
  62. package/lib/mandates/createWithMandateReference.d.ts +4 -0
  63. package/lib/mandates/createWithMandateReference.js +30 -0
  64. package/lib/mandates/createWithMandateReference.js.map +1 -0
  65. package/lib/mandates/get.d.ts +3 -0
  66. package/lib/mandates/get.js +17 -0
  67. package/lib/mandates/get.js.map +1 -0
  68. package/lib/mandates/index.d.ts +3 -0
  69. package/lib/mandates/index.js +21 -0
  70. package/lib/mandates/index.js.map +1 -0
  71. package/lib/mandates/revoke.d.ts +3 -0
  72. package/lib/mandates/revoke.js +17 -0
  73. package/lib/mandates/revoke.js.map +1 -0
  74. package/lib/mandates/unblock.d.ts +3 -0
  75. package/lib/mandates/unblock.js +17 -0
  76. package/lib/mandates/unblock.js.map +1 -0
  77. package/lib/model/captures/index.d.ts +18 -0
  78. package/lib/model/captures/index.js +3 -0
  79. package/lib/model/captures/index.js.map +1 -0
  80. package/lib/model/disputes/index.d.ts +34 -0
  81. package/lib/model/disputes/index.js +3 -0
  82. package/lib/model/disputes/index.js.map +1 -0
  83. package/lib/model/domain/capture/definitions/index.d.ts +25 -0
  84. package/lib/model/domain/capture/definitions/index.js +3 -0
  85. package/lib/model/domain/capture/definitions/index.js.map +1 -0
  86. package/lib/model/domain/capture/index.d.ts +6 -0
  87. package/lib/model/domain/capture/index.js +3 -0
  88. package/lib/model/domain/capture/index.js.map +1 -0
  89. package/lib/model/domain/definitions/index.d.ts +311 -0
  90. package/lib/model/domain/definitions/index.js +3 -0
  91. package/lib/model/domain/definitions/index.js.map +1 -0
  92. package/lib/model/domain/dispute/definitions/index.d.ts +38 -0
  93. package/lib/model/domain/dispute/definitions/index.js +3 -0
  94. package/lib/model/domain/dispute/definitions/index.js.map +1 -0
  95. package/lib/model/domain/dispute/index.d.ts +18 -0
  96. package/lib/model/domain/dispute/index.js +3 -0
  97. package/lib/model/domain/dispute/index.js.map +1 -0
  98. package/lib/model/domain/errors/definitions/index.d.ts +9 -0
  99. package/{captures → lib/model/domain/errors/definitions}/index.js +2 -6
  100. package/lib/model/domain/errors/definitions/index.js.map +1 -0
  101. package/lib/model/domain/errors/index.d.ts +5 -0
  102. package/lib/model/domain/errors/index.js +3 -0
  103. package/lib/model/domain/errors/index.js.map +1 -0
  104. package/lib/model/domain/file/definitions/index.d.ts +6 -0
  105. package/{sessions → lib/model/domain/file/definitions}/index.js +2 -6
  106. package/lib/model/domain/file/definitions/index.js.map +1 -0
  107. package/lib/model/domain/hostedcheckout/definitions/index.d.ts +50 -0
  108. package/lib/model/domain/hostedcheckout/definitions/index.js +3 -0
  109. package/lib/model/domain/hostedcheckout/definitions/index.js.map +1 -0
  110. package/lib/model/domain/hostedcheckout/index.d.ts +27 -0
  111. package/lib/model/domain/hostedcheckout/index.js +3 -0
  112. package/lib/model/domain/hostedcheckout/index.js.map +1 -0
  113. package/lib/model/domain/hostedmandatemanagement/definitions/index.d.ts +15 -0
  114. package/lib/model/domain/hostedmandatemanagement/definitions/index.js +3 -0
  115. package/lib/model/domain/hostedmandatemanagement/definitions/index.js.map +1 -0
  116. package/lib/model/domain/hostedmandatemanagement/index.d.ts +15 -0
  117. package/lib/model/domain/hostedmandatemanagement/index.js +3 -0
  118. package/lib/model/domain/hostedmandatemanagement/index.js.map +1 -0
  119. package/lib/model/domain/mandates/definitions/index.d.ts +52 -0
  120. package/lib/model/domain/mandates/definitions/index.js +3 -0
  121. package/lib/model/domain/mandates/definitions/index.js.map +1 -0
  122. package/lib/model/domain/mandates/index.d.ts +10 -0
  123. package/lib/model/domain/mandates/index.js +3 -0
  124. package/lib/model/domain/mandates/index.js.map +1 -0
  125. package/lib/model/domain/metadata/index.d.ts +6 -0
  126. package/lib/model/domain/metadata/index.js +3 -0
  127. package/lib/model/domain/metadata/index.js.map +1 -0
  128. package/lib/model/domain/payment/definitions/index.d.ts +846 -0
  129. package/lib/model/domain/payment/definitions/index.js +3 -0
  130. package/lib/model/domain/payment/definitions/index.js.map +1 -0
  131. package/lib/model/domain/payment/index.d.ts +77 -0
  132. package/lib/model/domain/payment/index.js +3 -0
  133. package/lib/model/domain/payment/index.js.map +1 -0
  134. package/lib/model/domain/payout/definitions/index.d.ts +48 -0
  135. package/lib/model/domain/payout/definitions/index.js +3 -0
  136. package/lib/model/domain/payout/definitions/index.js.map +1 -0
  137. package/lib/model/domain/payout/index.d.ts +56 -0
  138. package/lib/model/domain/payout/index.js +3 -0
  139. package/lib/model/domain/payout/index.js.map +1 -0
  140. package/lib/model/domain/product/definitions/index.d.ts +164 -0
  141. package/lib/model/domain/product/definitions/index.js +3 -0
  142. package/lib/model/domain/product/definitions/index.js.map +1 -0
  143. package/lib/model/domain/product/index.d.ts +47 -0
  144. package/lib/model/domain/product/index.js +3 -0
  145. package/lib/model/domain/product/index.js.map +1 -0
  146. package/lib/model/domain/refund/definitions/index.d.ts +26 -0
  147. package/lib/model/domain/refund/definitions/index.js +3 -0
  148. package/lib/model/domain/refund/definitions/index.js.map +1 -0
  149. package/lib/model/domain/refund/index.d.ts +29 -0
  150. package/lib/model/domain/refund/index.js +3 -0
  151. package/lib/model/domain/refund/index.js.map +1 -0
  152. package/lib/model/domain/riskassessments/definitions/index.d.ts +52 -0
  153. package/lib/model/domain/riskassessments/definitions/index.js +3 -0
  154. package/lib/model/domain/riskassessments/definitions/index.js.map +1 -0
  155. package/lib/model/domain/riskassessments/index.d.ts +12 -0
  156. package/lib/model/domain/riskassessments/index.js +3 -0
  157. package/lib/model/domain/riskassessments/index.js.map +1 -0
  158. package/lib/model/domain/services/definitions/index.d.ts +33 -0
  159. package/lib/model/domain/services/definitions/index.js +3 -0
  160. package/lib/model/domain/services/definitions/index.js.map +1 -0
  161. package/lib/model/domain/services/index.d.ts +29 -0
  162. package/lib/model/domain/services/index.js +3 -0
  163. package/lib/model/domain/services/index.js.map +1 -0
  164. package/lib/model/domain/sessions/definitions/index.d.ts +5 -0
  165. package/lib/model/domain/sessions/definitions/index.js +3 -0
  166. package/lib/model/domain/sessions/definitions/index.js.map +1 -0
  167. package/lib/model/domain/sessions/index.d.ts +13 -0
  168. package/lib/model/domain/sessions/index.js +3 -0
  169. package/lib/model/domain/sessions/index.js.map +1 -0
  170. package/lib/model/domain/token/definitions/index.d.ts +102 -0
  171. package/lib/model/domain/token/definitions/index.js +3 -0
  172. package/lib/model/domain/token/definitions/index.js.map +1 -0
  173. package/lib/model/domain/token/index.d.ts +32 -0
  174. package/lib/model/domain/token/index.js +3 -0
  175. package/lib/model/domain/token/index.js.map +1 -0
  176. package/lib/model/domain/webhooks/index.d.ts +17 -0
  177. package/lib/model/domain/webhooks/index.js +3 -0
  178. package/lib/model/domain/webhooks/index.js.map +1 -0
  179. package/lib/model/files/index.d.ts +10 -0
  180. package/lib/model/files/index.js +3 -0
  181. package/lib/model/files/index.js.map +1 -0
  182. package/lib/model/hostedcheckouts/index.d.ts +25 -0
  183. package/lib/model/hostedcheckouts/index.js +3 -0
  184. package/lib/model/hostedcheckouts/index.js.map +1 -0
  185. package/lib/model/hostedmandatemanagements/index.d.ts +18 -0
  186. package/lib/model/hostedmandatemanagements/index.js +3 -0
  187. package/lib/model/hostedmandatemanagements/index.js.map +1 -0
  188. package/lib/model/index.d.ts +38 -0
  189. package/lib/model/index.js +14 -0
  190. package/lib/model/index.js.map +1 -0
  191. package/lib/model/mandates/index.d.ts +46 -0
  192. package/lib/model/mandates/index.js +3 -0
  193. package/lib/model/mandates/index.js.map +1 -0
  194. package/lib/model/payments/index.d.ts +132 -0
  195. package/lib/model/payments/index.js +3 -0
  196. package/lib/model/payments/index.js.map +1 -0
  197. package/lib/model/payouts/index.d.ts +52 -0
  198. package/lib/model/payouts/index.js +3 -0
  199. package/lib/model/payouts/index.js.map +1 -0
  200. package/lib/model/productgroups/index.d.ts +41 -0
  201. package/lib/model/productgroups/index.js +3 -0
  202. package/lib/model/productgroups/index.js.map +1 -0
  203. package/lib/model/products/index.d.ts +80 -0
  204. package/lib/model/products/index.js +3 -0
  205. package/lib/model/products/index.js.map +1 -0
  206. package/lib/model/refunds/index.d.ts +46 -0
  207. package/lib/model/refunds/index.js +3 -0
  208. package/lib/model/refunds/index.js.map +1 -0
  209. package/lib/model/riskassessments/index.d.ts +18 -0
  210. package/lib/model/riskassessments/index.js +3 -0
  211. package/lib/model/riskassessments/index.js.map +1 -0
  212. package/lib/model/services/index.d.ts +48 -0
  213. package/lib/model/services/index.js +3 -0
  214. package/lib/model/services/index.js.map +1 -0
  215. package/lib/model/sessions/index.d.ts +11 -0
  216. package/lib/model/sessions/index.js +3 -0
  217. package/lib/model/sessions/index.js.map +1 -0
  218. package/lib/model/tokens/index.d.ts +42 -0
  219. package/lib/model/tokens/index.js +3 -0
  220. package/lib/model/tokens/index.js.map +1 -0
  221. package/lib/model/types.d.ts +98 -0
  222. package/lib/model/types.js +3 -0
  223. package/lib/model/types.js.map +1 -0
  224. package/lib/model/webhooks/index.d.ts +36 -0
  225. package/lib/model/webhooks/index.js +25 -0
  226. package/lib/model/webhooks/index.js.map +1 -0
  227. package/lib/payments/approve.d.ts +4 -0
  228. package/lib/payments/approve.js +30 -0
  229. package/lib/payments/approve.js.map +1 -0
  230. package/lib/payments/cancel.d.ts +3 -0
  231. package/lib/payments/cancel.js +17 -0
  232. package/lib/payments/cancel.js.map +1 -0
  233. package/lib/payments/cancelapproval.d.ts +3 -0
  234. package/lib/payments/cancelapproval.js +17 -0
  235. package/lib/payments/cancelapproval.js.map +1 -0
  236. package/lib/payments/capture.d.ts +4 -0
  237. package/lib/payments/capture.js +30 -0
  238. package/lib/payments/capture.js.map +1 -0
  239. package/lib/payments/captures.d.ts +3 -0
  240. package/lib/payments/captures.js +17 -0
  241. package/lib/payments/captures.js.map +1 -0
  242. package/lib/payments/complete.d.ts +4 -0
  243. package/lib/payments/complete.js +30 -0
  244. package/lib/payments/complete.js.map +1 -0
  245. package/lib/payments/create.d.ts +4 -0
  246. package/lib/payments/create.js +30 -0
  247. package/lib/payments/create.js.map +1 -0
  248. package/lib/payments/devicefingerprint.d.ts +3 -0
  249. package/lib/payments/devicefingerprint.js +17 -0
  250. package/lib/payments/devicefingerprint.js.map +1 -0
  251. package/lib/payments/dispute.d.ts +4 -0
  252. package/lib/payments/dispute.js +30 -0
  253. package/lib/payments/dispute.js.map +1 -0
  254. package/lib/payments/disputes.d.ts +3 -0
  255. package/lib/payments/disputes.js +17 -0
  256. package/lib/payments/disputes.js.map +1 -0
  257. package/lib/payments/find.d.ts +4 -0
  258. package/lib/payments/find.js +17 -0
  259. package/lib/payments/find.js.map +1 -0
  260. package/lib/payments/get.d.ts +3 -0
  261. package/lib/payments/get.js +17 -0
  262. package/lib/payments/get.js.map +1 -0
  263. package/lib/payments/index.d.ts +3 -0
  264. package/lib/payments/index.js +43 -0
  265. package/lib/payments/index.js.map +1 -0
  266. package/lib/payments/processchallenged.d.ts +3 -0
  267. package/lib/payments/processchallenged.js +17 -0
  268. package/lib/payments/processchallenged.js.map +1 -0
  269. package/lib/payments/refund.d.ts +4 -0
  270. package/lib/payments/refund.js +30 -0
  271. package/lib/payments/refund.js.map +1 -0
  272. package/lib/payments/refunds.d.ts +3 -0
  273. package/lib/payments/refunds.js +17 -0
  274. package/lib/payments/refunds.js.map +1 -0
  275. package/lib/payments/thirdPartyStatus.d.ts +3 -0
  276. package/lib/payments/thirdPartyStatus.js +17 -0
  277. package/lib/payments/thirdPartyStatus.js.map +1 -0
  278. package/lib/payments/tokenize.d.ts +4 -0
  279. package/lib/payments/tokenize.js +30 -0
  280. package/lib/payments/tokenize.js.map +1 -0
  281. package/lib/payouts/approve.d.ts +4 -0
  282. package/lib/payouts/approve.js +30 -0
  283. package/lib/payouts/approve.js.map +1 -0
  284. package/lib/payouts/cancel.d.ts +3 -0
  285. package/lib/payouts/cancel.js +17 -0
  286. package/lib/payouts/cancel.js.map +1 -0
  287. package/lib/payouts/cancelapproval.d.ts +3 -0
  288. package/lib/payouts/cancelapproval.js +17 -0
  289. package/lib/payouts/cancelapproval.js.map +1 -0
  290. package/lib/payouts/create.d.ts +4 -0
  291. package/lib/payouts/create.js +30 -0
  292. package/lib/payouts/create.js.map +1 -0
  293. package/lib/payouts/find.d.ts +4 -0
  294. package/lib/payouts/find.js +17 -0
  295. package/lib/payouts/find.js.map +1 -0
  296. package/lib/payouts/get.d.ts +3 -0
  297. package/lib/payouts/get.js +17 -0
  298. package/lib/payouts/get.js.map +1 -0
  299. package/lib/payouts/index.d.ts +3 -0
  300. package/lib/payouts/index.js +21 -0
  301. package/lib/payouts/index.js.map +1 -0
  302. package/lib/productgroups/deviceFingerprint.d.ts +4 -0
  303. package/lib/productgroups/deviceFingerprint.js +30 -0
  304. package/lib/productgroups/deviceFingerprint.js.map +1 -0
  305. package/lib/productgroups/find.d.ts +4 -0
  306. package/lib/productgroups/find.js +17 -0
  307. package/lib/productgroups/find.js.map +1 -0
  308. package/lib/productgroups/get.d.ts +4 -0
  309. package/lib/productgroups/get.js +17 -0
  310. package/lib/productgroups/get.js.map +1 -0
  311. package/lib/productgroups/index.d.ts +3 -0
  312. package/lib/productgroups/index.js +15 -0
  313. package/lib/productgroups/index.js.map +1 -0
  314. package/lib/products/customerDetails.d.ts +4 -0
  315. package/lib/products/customerDetails.js +30 -0
  316. package/lib/products/customerDetails.js.map +1 -0
  317. package/lib/products/deviceFingerprint.d.ts +4 -0
  318. package/lib/products/deviceFingerprint.js +30 -0
  319. package/lib/products/deviceFingerprint.js.map +1 -0
  320. package/lib/products/directory.d.ts +4 -0
  321. package/lib/products/directory.js +17 -0
  322. package/lib/products/directory.js.map +1 -0
  323. package/lib/products/find.d.ts +4 -0
  324. package/lib/products/find.js +17 -0
  325. package/lib/products/find.js.map +1 -0
  326. package/lib/products/get.d.ts +4 -0
  327. package/lib/products/get.js +17 -0
  328. package/lib/products/get.js.map +1 -0
  329. package/lib/products/index.d.ts +3 -0
  330. package/lib/products/index.js +23 -0
  331. package/lib/products/index.js.map +1 -0
  332. package/lib/products/networks.d.ts +4 -0
  333. package/lib/products/networks.js +17 -0
  334. package/lib/products/networks.js.map +1 -0
  335. package/lib/products/sessions.d.ts +4 -0
  336. package/lib/products/sessions.js +30 -0
  337. package/lib/products/sessions.js.map +1 -0
  338. package/lib/refunds/approve.d.ts +4 -0
  339. package/lib/refunds/approve.js +30 -0
  340. package/lib/refunds/approve.js.map +1 -0
  341. package/lib/refunds/cancel.d.ts +3 -0
  342. package/lib/refunds/cancel.js +17 -0
  343. package/lib/refunds/cancel.js.map +1 -0
  344. package/lib/refunds/cancelapproval.d.ts +3 -0
  345. package/lib/refunds/cancelapproval.js +17 -0
  346. package/lib/refunds/cancelapproval.js.map +1 -0
  347. package/lib/refunds/find.d.ts +4 -0
  348. package/lib/refunds/find.js +17 -0
  349. package/lib/refunds/find.js.map +1 -0
  350. package/lib/refunds/get.d.ts +3 -0
  351. package/lib/refunds/get.js +17 -0
  352. package/lib/refunds/get.js.map +1 -0
  353. package/lib/refunds/index.d.ts +3 -0
  354. package/lib/refunds/index.js +19 -0
  355. package/lib/refunds/index.js.map +1 -0
  356. package/lib/riskassessments/bankaccounts.d.ts +4 -0
  357. package/lib/riskassessments/bankaccounts.js +30 -0
  358. package/lib/riskassessments/bankaccounts.js.map +1 -0
  359. package/lib/riskassessments/cards.d.ts +4 -0
  360. package/lib/riskassessments/cards.js +30 -0
  361. package/lib/riskassessments/cards.js.map +1 -0
  362. package/lib/riskassessments/index.d.ts +3 -0
  363. package/lib/riskassessments/index.js +13 -0
  364. package/lib/riskassessments/index.js.map +1 -0
  365. package/lib/services/bankaccount.d.ts +4 -0
  366. package/lib/services/bankaccount.js +30 -0
  367. package/lib/services/bankaccount.js.map +1 -0
  368. package/lib/services/convertAmount.d.ts +4 -0
  369. package/lib/services/convertAmount.js +17 -0
  370. package/lib/services/convertAmount.js.map +1 -0
  371. package/lib/services/getIINdetails.d.ts +4 -0
  372. package/lib/services/getIINdetails.js +30 -0
  373. package/lib/services/getIINdetails.js.map +1 -0
  374. package/lib/services/index.d.ts +3 -0
  375. package/lib/services/index.js +19 -0
  376. package/lib/services/index.js.map +1 -0
  377. package/lib/services/privacypolicy.d.ts +4 -0
  378. package/lib/services/privacypolicy.js +17 -0
  379. package/lib/services/privacypolicy.js.map +1 -0
  380. package/lib/services/testconnection.d.ts +3 -0
  381. package/lib/services/testconnection.js +17 -0
  382. package/lib/services/testconnection.js.map +1 -0
  383. package/lib/sessions/create.d.ts +4 -0
  384. package/lib/sessions/create.js +30 -0
  385. package/lib/sessions/create.js.map +1 -0
  386. package/lib/sessions/index.d.ts +3 -0
  387. package/lib/sessions/index.js +11 -0
  388. package/lib/sessions/index.js.map +1 -0
  389. package/lib/tokens/approvesepadirectdebit.d.ts +4 -0
  390. package/lib/tokens/approvesepadirectdebit.js +30 -0
  391. package/lib/tokens/approvesepadirectdebit.js.map +1 -0
  392. package/lib/tokens/create.d.ts +4 -0
  393. package/lib/tokens/create.js +30 -0
  394. package/lib/tokens/create.js.map +1 -0
  395. package/lib/tokens/get.d.ts +3 -0
  396. package/lib/tokens/get.js +17 -0
  397. package/lib/tokens/get.js.map +1 -0
  398. package/lib/tokens/index.d.ts +3 -0
  399. package/lib/tokens/index.js +19 -0
  400. package/lib/tokens/index.js.map +1 -0
  401. package/lib/tokens/remove.d.ts +4 -0
  402. package/lib/tokens/remove.js +17 -0
  403. package/lib/tokens/remove.js.map +1 -0
  404. package/lib/tokens/update.d.ts +4 -0
  405. package/lib/tokens/update.js +30 -0
  406. package/lib/tokens/update.js.map +1 -0
  407. package/lib/utils/communicator.d.ts +3 -0
  408. package/lib/utils/communicator.js +127 -0
  409. package/lib/utils/communicator.js.map +1 -0
  410. package/lib/utils/connection.d.ts +5 -0
  411. package/lib/utils/connection.js +114 -0
  412. package/lib/utils/connection.js.map +1 -0
  413. package/lib/utils/context.d.ts +3 -0
  414. package/lib/utils/context.js +113 -0
  415. package/lib/utils/context.js.map +1 -0
  416. package/lib/utils/headers.d.ts +9 -0
  417. package/lib/utils/headers.js +66 -0
  418. package/lib/utils/headers.js.map +1 -0
  419. package/lib/utils/obfuscate.d.ts +2 -0
  420. package/lib/utils/obfuscate.js +102 -0
  421. package/lib/utils/obfuscate.js.map +1 -0
  422. package/lib/utils/versions.d.ts +1 -0
  423. package/lib/utils/versions.js +9 -0
  424. package/lib/utils/versions.js.map +1 -0
  425. package/lib/webhooks/index.d.ts +3 -0
  426. package/lib/webhooks/index.js +129 -0
  427. package/lib/webhooks/index.js.map +1 -0
  428. package/package.json +91 -12
  429. package/schemas/hostedcheckout/CreateHostedCheckoutRequest.json +9 -0
  430. package/schemas/payment/CompletePaymentRequest.json +6 -0
  431. package/schemas/payment/CreatePaymentRequest.json +12 -0
  432. package/schemas/payout/CreatePayoutRequest.json +3 -0
  433. package/schemas/riskassessments/RiskAssessmentCard.json +3 -0
  434. package/captures/get.js +0 -18
  435. package/disputes/cancel.js +0 -18
  436. package/disputes/get.js +0 -18
  437. package/disputes/index.js +0 -17
  438. package/disputes/submit.js +0 -18
  439. package/disputes/uploadFile.js +0 -18
  440. package/files/getFile.js +0 -18
  441. package/files/index.js +0 -11
  442. package/hostedcheckouts/create.js +0 -30
  443. package/hostedcheckouts/get.js +0 -18
  444. package/hostedcheckouts/index.js +0 -13
  445. package/hostedmandatemanagements/create.js +0 -30
  446. package/hostedmandatemanagements/get.js +0 -18
  447. package/hostedmandatemanagements/index.js +0 -13
  448. package/index.js +0 -107
  449. package/mandates/block.js +0 -18
  450. package/mandates/create.js +0 -30
  451. package/mandates/createWithMandateReference.js +0 -30
  452. package/mandates/get.js +0 -18
  453. package/mandates/index.js +0 -21
  454. package/mandates/revoke.js +0 -18
  455. package/mandates/unblock.js +0 -18
  456. package/payments/approve.js +0 -30
  457. package/payments/cancel.js +0 -18
  458. package/payments/cancelapproval.js +0 -18
  459. package/payments/capture.js +0 -30
  460. package/payments/captures.js +0 -18
  461. package/payments/complete.js +0 -30
  462. package/payments/create.js +0 -30
  463. package/payments/devicefingerprint.js +0 -18
  464. package/payments/dispute.js +0 -30
  465. package/payments/disputes.js +0 -18
  466. package/payments/find.js +0 -18
  467. package/payments/get.js +0 -18
  468. package/payments/index.js +0 -43
  469. package/payments/processchallenged.js +0 -18
  470. package/payments/refund.js +0 -30
  471. package/payments/refunds.js +0 -18
  472. package/payments/thirdPartyStatus.js +0 -18
  473. package/payments/tokenize.js +0 -30
  474. package/payouts/approve.js +0 -30
  475. package/payouts/cancel.js +0 -18
  476. package/payouts/cancelapproval.js +0 -18
  477. package/payouts/create.js +0 -30
  478. package/payouts/find.js +0 -18
  479. package/payouts/get.js +0 -18
  480. package/payouts/index.js +0 -21
  481. package/productgroups/deviceFingerprint.js +0 -30
  482. package/productgroups/find.js +0 -18
  483. package/productgroups/get.js +0 -18
  484. package/productgroups/index.js +0 -15
  485. package/products/customerDetails.js +0 -30
  486. package/products/deviceFingerprint.js +0 -30
  487. package/products/directory.js +0 -18
  488. package/products/find.js +0 -18
  489. package/products/get.js +0 -18
  490. package/products/index.js +0 -23
  491. package/products/networks.js +0 -18
  492. package/products/sessions.js +0 -30
  493. package/refunds/approve.js +0 -30
  494. package/refunds/cancel.js +0 -18
  495. package/refunds/cancelapproval.js +0 -18
  496. package/refunds/find.js +0 -18
  497. package/refunds/get.js +0 -18
  498. package/refunds/index.js +0 -19
  499. package/riskassessments/bankaccounts.js +0 -30
  500. package/riskassessments/cards.js +0 -30
  501. package/riskassessments/index.js +0 -13
  502. package/services/bankaccount.js +0 -30
  503. package/services/convertAmount.js +0 -18
  504. package/services/getIINdetails.js +0 -30
  505. package/services/index.js +0 -19
  506. package/services/privacypolicy.js +0 -18
  507. package/services/testconnection.js +0 -18
  508. package/sessions/create.js +0 -30
  509. package/tokens/approvesepadirectdebit.js +0 -30
  510. package/tokens/create.js +0 -30
  511. package/tokens/get.js +0 -18
  512. package/tokens/index.js +0 -19
  513. package/tokens/remove.js +0 -18
  514. package/tokens/update.js +0 -30
  515. package/utils/communicator.js +0 -129
  516. package/utils/connection.js +0 -117
  517. package/utils/context.js +0 -102
  518. package/utils/headers.js +0 -77
  519. package/utils/obfuscate.js +0 -101
  520. package/webhooks/index.js +0 -133
@@ -0,0 +1,846 @@
1
+ import { AbstractOrderStatus, AbstractPaymentMethodSpecificInput, AdditionalOrderInputAirlineData, Address, AirlineData, AmountOfMoney, BankAccountBban, BankAccountIban, Card, CardEssentials, CardFraudResults, CardWithoutCvv, ContactDetailsBase, CustomerBase, FraudResults, KeyValuePair, LodgingData, OrderStatusOutput, PersonalNameBase, RedirectDataBase } from "../../definitions";
2
+ import { CreateMandateBase, CreateMandateWithReturnUrl } from "../../mandates/definitions";
3
+ import { PaymentProductField } from "../../product/definitions";
4
+ export interface AbstractBankTransferPaymentMethodSpecificInput extends AbstractPaymentMethodSpecificInput {
5
+ additionalReference?: string | null;
6
+ }
7
+ export interface AbstractCardPaymentMethodSpecificInput extends AbstractPaymentMethodSpecificInput {
8
+ authorizationMode?: string | null;
9
+ customerReference?: string | null;
10
+ initialSchemeTransactionId?: string | null;
11
+ recurring?: CardRecurrenceDetails | null;
12
+ /**
13
+ * @deprecated Use recurring.recurringPaymentSequenceIndicator instead
14
+ */
15
+ recurringPaymentSequenceIndicator?: string | null;
16
+ requiresApproval?: boolean | null;
17
+ /**
18
+ * @deprecated Use threeDSecure.skipAuthentication instead
19
+ */
20
+ skipAuthentication?: boolean | null;
21
+ skipFraudService?: boolean | null;
22
+ token?: string | null;
23
+ tokenize?: boolean | null;
24
+ transactionChannel?: string | null;
25
+ /**
26
+ * @deprecated Use unscheduledCardOnFileSequenceIndicator instead
27
+ */
28
+ unscheduledCardOnFileIndicator?: string | null;
29
+ unscheduledCardOnFileRequestor?: string | null;
30
+ unscheduledCardOnFileSequenceIndicator?: string | null;
31
+ }
32
+ export interface AbstractCashPaymentMethodSpecificInput extends AbstractPaymentMethodSpecificInput {
33
+ }
34
+ export interface AbstractEInvoicePaymentMethodSpecificInput extends AbstractPaymentMethodSpecificInput {
35
+ requiresApproval?: boolean | null;
36
+ }
37
+ export interface AbstractPaymentMethodSpecificOutput {
38
+ paymentProductId?: number | null;
39
+ }
40
+ export interface AbstractRedirectPaymentMethodSpecificInput extends AbstractPaymentMethodSpecificInput {
41
+ expirationPeriod?: number | null;
42
+ recurringPaymentSequenceIndicator?: string | null;
43
+ requiresApproval?: boolean | null;
44
+ token?: string | null;
45
+ tokenize?: boolean | null;
46
+ }
47
+ export interface AbstractRedirectPaymentProduct840SpecificInput {
48
+ addressSelectionAtPayPal?: boolean | null;
49
+ }
50
+ export interface AbstractSepaDirectDebitPaymentMethodSpecificInput extends AbstractPaymentMethodSpecificInput {
51
+ }
52
+ export interface AbstractSepaDirectDebitPaymentProduct771SpecificInput {
53
+ /**
54
+ * @deprecated Use existingUniqueMandateReference or mandate.uniqueMandateReference instead
55
+ */
56
+ mandateReference?: string | null;
57
+ }
58
+ export interface AbstractThreeDSecure {
59
+ authenticationAmount?: AmountOfMoney | null;
60
+ authenticationFlow?: string | null;
61
+ challengeCanvasSize?: string | null;
62
+ challengeIndicator?: string | null;
63
+ exemptionRequest?: string | null;
64
+ priorThreeDSecureData?: ThreeDSecureData | null;
65
+ sdkData?: SdkDataInput | null;
66
+ skipAuthentication?: boolean | null;
67
+ transactionRiskLevel?: string | null;
68
+ }
69
+ export interface AdditionalOrderInput {
70
+ airlineData?: AirlineData | null;
71
+ installments?: Installments | null;
72
+ /**
73
+ * @deprecated Use Order.shoppingCart.amountBreakdown instead
74
+ */
75
+ level3SummaryData?: Level3SummaryData | null;
76
+ loanRecipient?: LoanRecipient | null;
77
+ lodgingData?: LodgingData | null;
78
+ /**
79
+ * @deprecated Use installments.numberOfInstallments instead
80
+ */
81
+ numberOfInstallments?: number | null;
82
+ orderDate?: string | null;
83
+ typeInformation?: OrderTypeInformation | null;
84
+ }
85
+ export interface AddressPersonal extends Address {
86
+ name?: PersonalName | null;
87
+ }
88
+ export interface AmountBreakdown {
89
+ amount?: number | null;
90
+ type?: string | null;
91
+ }
92
+ export interface ApprovePaymentCardPaymentMethodSpecificOutput {
93
+ voidResponseId?: string | null;
94
+ }
95
+ export interface ApprovePaymentDirectDebitPaymentMethodSpecificInput extends ApprovePaymentPaymentMethodSpecificInput {
96
+ }
97
+ export interface ApprovePaymentMobilePaymentMethodSpecificOutput {
98
+ voidResponseId?: string | null;
99
+ }
100
+ export interface ApprovePaymentNonSepaDirectDebitPaymentMethodSpecificInput extends ApprovePaymentDirectDebitPaymentMethodSpecificInput {
101
+ }
102
+ export interface ApprovePaymentPaymentMethodSpecificInput {
103
+ dateCollect?: string | null;
104
+ token?: string | null;
105
+ }
106
+ export interface ApprovePaymentSepaDirectDebitPaymentMethodSpecificInput extends ApprovePaymentDirectDebitPaymentMethodSpecificInput {
107
+ }
108
+ export interface BankTransferPaymentMethodSpecificInput extends AbstractBankTransferPaymentMethodSpecificInput {
109
+ }
110
+ export interface BankTransferPaymentMethodSpecificInputBase extends AbstractBankTransferPaymentMethodSpecificInput {
111
+ }
112
+ export interface BankTransferPaymentMethodSpecificOutput extends AbstractPaymentMethodSpecificOutput {
113
+ fraudResults?: FraudResults | null;
114
+ }
115
+ export interface BrowserData {
116
+ colorDepth?: number | null;
117
+ innerHeight?: string | null;
118
+ innerWidth?: string | null;
119
+ javaEnabled?: boolean | null;
120
+ javaScriptEnabled?: boolean | null;
121
+ screenHeight?: string | null;
122
+ screenWidth?: string | null;
123
+ }
124
+ export interface CancelPaymentCardPaymentMethodSpecificOutput {
125
+ voidResponseId?: string | null;
126
+ }
127
+ export interface CancelPaymentMobilePaymentMethodSpecificOutput {
128
+ voidResponseId?: string | null;
129
+ }
130
+ export interface CardPaymentMethodSpecificInput extends AbstractCardPaymentMethodSpecificInput {
131
+ card?: Card | null;
132
+ /**
133
+ * @deprecated Use threeDSecure.externalCardholderAuthenticationData instead
134
+ */
135
+ externalCardholderAuthenticationData?: ExternalCardholderAuthenticationData | null;
136
+ isRecurring?: boolean | null;
137
+ merchantInitiatedReasonIndicator?: string | null;
138
+ /**
139
+ * @deprecated Use threeDSecure.redirectionData.returnUrl instead
140
+ */
141
+ returnUrl?: string | null;
142
+ threeDSecure?: ThreeDSecure | null;
143
+ }
144
+ export interface CardPaymentMethodSpecificInputBase extends AbstractCardPaymentMethodSpecificInput {
145
+ threeDSecure?: ThreeDSecureBase | null;
146
+ }
147
+ export interface CardPaymentMethodSpecificOutput extends AbstractPaymentMethodSpecificOutput {
148
+ authorisationCode?: string | null;
149
+ card?: CardEssentials | null;
150
+ fraudResults?: CardFraudResults | null;
151
+ initialSchemeTransactionId?: string | null;
152
+ schemeTransactionId?: string | null;
153
+ threeDSecureResults?: ThreeDSecureResults | null;
154
+ token?: string | null;
155
+ }
156
+ export interface CardRecurrenceDetails {
157
+ endDate?: string | null;
158
+ minFrequency?: number | null;
159
+ recurringPaymentSequenceIndicator?: string | null;
160
+ }
161
+ export interface CashPaymentMethodSpecificInput extends AbstractCashPaymentMethodSpecificInput {
162
+ /**
163
+ * @deprecated No replacement
164
+ */
165
+ paymentProduct1503SpecificInput?: CashPaymentProduct1503SpecificInput | null;
166
+ paymentProduct1504SpecificInput?: CashPaymentProduct1504SpecificInput | null;
167
+ paymentProduct1521SpecificInput?: CashPaymentProduct1521SpecificInput | null;
168
+ paymentProduct1522SpecificInput?: CashPaymentProduct1522SpecificInput | null;
169
+ paymentProduct1523SpecificInput?: CashPaymentProduct1523SpecificInput | null;
170
+ paymentProduct1524SpecificInput?: CashPaymentProduct1524SpecificInput | null;
171
+ paymentProduct1526SpecificInput?: CashPaymentProduct1526SpecificInput | null;
172
+ }
173
+ export interface CashPaymentMethodSpecificInputBase extends AbstractCashPaymentMethodSpecificInput {
174
+ }
175
+ export interface CashPaymentMethodSpecificOutput extends AbstractPaymentMethodSpecificOutput {
176
+ fraudResults?: FraudResults | null;
177
+ }
178
+ /**
179
+ * @deprecated No replacement
180
+ */
181
+ export interface CashPaymentProduct1503SpecificInput {
182
+ /**
183
+ * @deprecated No replacement, since Boleto Bancario no longer needs a return URL
184
+ */
185
+ returnUrl?: string | null;
186
+ }
187
+ export interface CashPaymentProduct1504SpecificInput {
188
+ returnUrl?: string | null;
189
+ }
190
+ export interface CashPaymentProduct1521SpecificInput {
191
+ returnUrl?: string | null;
192
+ }
193
+ export interface CashPaymentProduct1522SpecificInput {
194
+ returnUrl?: string | null;
195
+ }
196
+ export interface CashPaymentProduct1523SpecificInput {
197
+ returnUrl?: string | null;
198
+ }
199
+ export interface CashPaymentProduct1524SpecificInput {
200
+ returnUrl?: string | null;
201
+ }
202
+ export interface CashPaymentProduct1526SpecificInput {
203
+ returnUrl?: string | null;
204
+ }
205
+ export interface CompletePaymentCardPaymentMethodSpecificInput {
206
+ card?: CardWithoutCvv | null;
207
+ }
208
+ export interface ContactDetails extends ContactDetailsBase {
209
+ faxNumber?: string | null;
210
+ mobilePhoneNumber?: string | null;
211
+ phoneNumber?: string | null;
212
+ workPhoneNumber?: string | null;
213
+ }
214
+ export interface CreatePaymentResult {
215
+ creationOutput?: PaymentCreationOutput | null;
216
+ merchantAction?: MerchantAction | null;
217
+ payment?: Payment | null;
218
+ }
219
+ export interface Customer extends CustomerBase {
220
+ account?: CustomerAccount | null;
221
+ accountType?: string | null;
222
+ billingAddress?: Address | null;
223
+ contactDetails?: ContactDetails | null;
224
+ device?: CustomerDevice | null;
225
+ fiscalNumber?: string | null;
226
+ isPreviousCustomer?: boolean | null;
227
+ locale?: string | null;
228
+ personalInformation?: PersonalInformation | null;
229
+ /**
230
+ * @deprecated Use Order.shipping.address instead
231
+ */
232
+ shippingAddress?: AddressPersonal | null;
233
+ }
234
+ export interface CustomerAccount {
235
+ authentication?: CustomerAccountAuthentication | null;
236
+ changeDate?: string | null;
237
+ changedDuringCheckout?: boolean | null;
238
+ createDate?: string | null;
239
+ hadSuspiciousActivity?: boolean | null;
240
+ hasForgottenPassword?: boolean | null;
241
+ hasPassword?: boolean | null;
242
+ passwordChangeDate?: string | null;
243
+ passwordChangedDuringCheckout?: boolean | null;
244
+ paymentAccountOnFile?: PaymentAccountOnFile | null;
245
+ paymentAccountOnFileType?: string | null;
246
+ paymentActivity?: CustomerPaymentActivity | null;
247
+ }
248
+ export interface CustomerAccountAuthentication {
249
+ data?: string | null;
250
+ method?: string | null;
251
+ utcTimestamp?: string | null;
252
+ }
253
+ export interface CustomerApprovePayment {
254
+ accountType?: string | null;
255
+ }
256
+ export interface CustomerDevice {
257
+ acceptHeader?: string | null;
258
+ browserData?: BrowserData | null;
259
+ defaultFormFill?: string | null;
260
+ deviceFingerprintTransactionId?: string | null;
261
+ ipAddress?: string | null;
262
+ locale?: string | null;
263
+ timezoneOffsetUtcMinutes?: string | null;
264
+ userAgent?: string | null;
265
+ }
266
+ export interface CustomerPaymentActivity {
267
+ numberOfPaymentAttemptsLast24Hours?: number | null;
268
+ numberOfPaymentAttemptsLastYear?: number | null;
269
+ numberOfPurchasesLast6Months?: number | null;
270
+ }
271
+ export interface DecryptedPaymentData {
272
+ /**
273
+ * @deprecated Use decryptedPaymentData.paymentMethod instead
274
+ */
275
+ authMethod?: string | null;
276
+ cardholderName?: string | null;
277
+ cryptogram?: string | null;
278
+ dpan?: string | null;
279
+ eci?: number | null;
280
+ expiryDate?: string | null;
281
+ pan?: string | null;
282
+ paymentMethod?: string | null;
283
+ }
284
+ export interface DeviceRenderOptions {
285
+ sdkInterface?: string | null;
286
+ /**
287
+ * @deprecated Use deviceRenderOptions.sdkUiTypes instead
288
+ */
289
+ sdkUiType?: string | null;
290
+ sdkUiTypes?: string[] | null;
291
+ }
292
+ export interface EInvoicePaymentMethodSpecificInput extends AbstractEInvoicePaymentMethodSpecificInput {
293
+ acceptedTermsAndConditions?: boolean | null;
294
+ paymentProduct9000SpecificInput?: EInvoicePaymentProduct9000SpecificInput | null;
295
+ }
296
+ export interface EInvoicePaymentMethodSpecificInputBase extends AbstractEInvoicePaymentMethodSpecificInput {
297
+ }
298
+ export interface EInvoicePaymentMethodSpecificOutput extends AbstractPaymentMethodSpecificOutput {
299
+ paymentProduct9000SpecificOutput?: EInvoicePaymentProduct9000SpecificOutput | null;
300
+ }
301
+ export interface EInvoicePaymentProduct9000SpecificInput {
302
+ bankAccountIban?: BankAccountIban | null;
303
+ installmentId?: string | null;
304
+ }
305
+ export interface EInvoicePaymentProduct9000SpecificOutput {
306
+ installmentId?: string | null;
307
+ }
308
+ export interface ExemptionOutput {
309
+ exemptionRaised?: string | null;
310
+ exemptionRejectionReason?: string | null;
311
+ exemptionRequest?: string | null;
312
+ }
313
+ export interface ExternalCardholderAuthenticationData {
314
+ acsTransactionId?: string | null;
315
+ appliedExemption?: string | null;
316
+ cavv?: string | null;
317
+ cavvAlgorithm?: string | null;
318
+ directoryServerTransactionId?: string | null;
319
+ eci?: number | null;
320
+ schemeRiskScore?: number | null;
321
+ threeDSecureVersion?: string | null;
322
+ /**
323
+ * @deprecated No replacement
324
+ */
325
+ threeDServerTransactionId?: string | null;
326
+ validationResult?: string | null;
327
+ xid?: string | null;
328
+ }
329
+ export interface GPayThreeDSecure {
330
+ challengeCanvasSize?: string | null;
331
+ challengeIndicator?: string | null;
332
+ exemptionRequest?: string | null;
333
+ redirectionData?: RedirectionData | null;
334
+ skipAuthentication?: boolean | null;
335
+ }
336
+ export interface GiftCardPurchase {
337
+ amountOfMoney?: AmountOfMoney | null;
338
+ numberOfGiftCards?: number | null;
339
+ }
340
+ export interface HostedCheckoutSpecificOutput {
341
+ hostedCheckoutId?: string | null;
342
+ variant?: string | null;
343
+ }
344
+ export interface Installments {
345
+ amountOfMoneyPerInstallment?: AmountOfMoney | null;
346
+ frequencyOfInstallments?: string | null;
347
+ interestRate?: string | null;
348
+ numberOfInstallments?: number | null;
349
+ }
350
+ export interface InvoicePaymentMethodSpecificInput extends AbstractPaymentMethodSpecificInput {
351
+ additionalReference?: string | null;
352
+ }
353
+ export interface InvoicePaymentMethodSpecificOutput extends AbstractPaymentMethodSpecificOutput {
354
+ fraudResults?: FraudResults | null;
355
+ }
356
+ /**
357
+ * @deprecated Use ShoppingCart.amountBreakdown instead
358
+ */
359
+ export interface Level3SummaryData {
360
+ /**
361
+ * @deprecated Use ShoppingCart.amountBreakdown with type DISCOUNT instead
362
+ */
363
+ discountAmount?: number | null;
364
+ /**
365
+ * @deprecated Use ShoppingCart.amountBreakdown with type DUTY instead
366
+ */
367
+ dutyAmount?: number | null;
368
+ /**
369
+ * @deprecated Use ShoppingCart.amountBreakdown with type SHIPPING instead
370
+ */
371
+ shippingAmount?: number | null;
372
+ }
373
+ export interface LineItem {
374
+ amountOfMoney?: AmountOfMoney | null;
375
+ invoiceData?: LineItemInvoiceData | null;
376
+ /**
377
+ * @deprecated Use orderLineDetails instead
378
+ */
379
+ level3InterchangeInformation?: LineItemLevel3InterchangeInformation | null;
380
+ orderLineDetails?: OrderLineDetails | null;
381
+ }
382
+ export interface LineItemInvoiceData {
383
+ description?: string | null;
384
+ merchantLinenumber?: string | null;
385
+ merchantPagenumber?: string | null;
386
+ nrOfItems?: string | null;
387
+ pricePerItem?: number | null;
388
+ }
389
+ export interface LineItemLevel3InterchangeInformation {
390
+ discountAmount?: number | null;
391
+ lineAmountTotal?: number | null;
392
+ productCode?: string | null;
393
+ productPrice?: number | null;
394
+ productType?: string | null;
395
+ quantity?: number | null;
396
+ taxAmount?: number | null;
397
+ unit?: string | null;
398
+ }
399
+ export interface LoanRecipient {
400
+ accountNumber?: string | null;
401
+ dateOfBirth?: string | null;
402
+ partialPan?: string | null;
403
+ surname?: string | null;
404
+ zip?: string | null;
405
+ }
406
+ export interface Merchant {
407
+ contactWebsiteUrl?: string | null;
408
+ seller?: Seller | null;
409
+ websiteUrl?: string | null;
410
+ }
411
+ export interface MerchantAction {
412
+ actionType?: string | null;
413
+ formFields?: PaymentProductField[] | null;
414
+ mobileThreeDSecureChallengeParameters?: MobileThreeDSecureChallengeParameters | null;
415
+ redirectData?: RedirectData | null;
416
+ renderingData?: string | null;
417
+ showData?: KeyValuePair[] | null;
418
+ thirdPartyData?: ThirdPartyData | null;
419
+ }
420
+ export interface MobilePaymentData {
421
+ dpan?: string | null;
422
+ expiryDate?: string | null;
423
+ }
424
+ export interface MobilePaymentMethodSpecificInput extends AbstractPaymentMethodSpecificInput {
425
+ authorizationMode?: string | null;
426
+ customerReference?: string | null;
427
+ decryptedPaymentData?: DecryptedPaymentData | null;
428
+ encryptedPaymentData?: string | null;
429
+ paymentProduct320SpecificInput?: MobilePaymentProduct320SpecificInput | null;
430
+ requiresApproval?: boolean | null;
431
+ skipFraudService?: boolean | null;
432
+ }
433
+ export interface MobilePaymentMethodSpecificOutput extends AbstractPaymentMethodSpecificOutput {
434
+ authorisationCode?: string | null;
435
+ fraudResults?: CardFraudResults | null;
436
+ network?: string | null;
437
+ paymentData?: MobilePaymentData | null;
438
+ threeDSecureResults?: ThreeDSecureResults | null;
439
+ }
440
+ export interface MobilePaymentProduct320SpecificInput {
441
+ threeDSecure?: GPayThreeDSecure | null;
442
+ }
443
+ export interface MobileThreeDSecureChallengeParameters {
444
+ acsReferenceNumber?: string | null;
445
+ acsSignedContent?: string | null;
446
+ acsTransactionId?: string | null;
447
+ threeDServerTransactionId?: string | null;
448
+ }
449
+ export interface NonSepaDirectDebitPaymentMethodSpecificInput extends AbstractPaymentMethodSpecificInput {
450
+ dateCollect?: string | null;
451
+ directDebitText?: string | null;
452
+ isRecurring?: boolean | null;
453
+ paymentProduct705SpecificInput?: NonSepaDirectDebitPaymentProduct705SpecificInput | null;
454
+ paymentProduct730SpecificInput?: NonSepaDirectDebitPaymentProduct730SpecificInput | null;
455
+ recurringPaymentSequenceIndicator?: string | null;
456
+ requiresApproval?: boolean | null;
457
+ token?: string | null;
458
+ tokenize?: boolean | null;
459
+ }
460
+ export interface NonSepaDirectDebitPaymentMethodSpecificOutput extends AbstractPaymentMethodSpecificOutput {
461
+ fraudResults?: FraudResults | null;
462
+ }
463
+ export interface NonSepaDirectDebitPaymentProduct705SpecificInput {
464
+ authorisationId?: string | null;
465
+ bankAccountBban?: BankAccountBban | null;
466
+ transactionType?: string | null;
467
+ }
468
+ export interface NonSepaDirectDebitPaymentProduct730SpecificInput {
469
+ bankAccountBban?: BankAccountBban | null;
470
+ }
471
+ export interface Order {
472
+ additionalInput?: AdditionalOrderInput | null;
473
+ amountOfMoney?: AmountOfMoney | null;
474
+ customer?: Customer | null;
475
+ /**
476
+ * @deprecated Use shoppingCart.items instead
477
+ */
478
+ items?: LineItem[] | null;
479
+ references?: OrderReferences | null;
480
+ /**
481
+ * @deprecated Use Merchant.seller instead
482
+ */
483
+ seller?: Seller | null;
484
+ shipping?: Shipping | null;
485
+ shoppingCart?: ShoppingCart | null;
486
+ }
487
+ export interface OrderApprovePayment {
488
+ additionalInput?: AdditionalOrderInputAirlineData | null;
489
+ customer?: CustomerApprovePayment | null;
490
+ references?: OrderReferencesApprovePayment | null;
491
+ }
492
+ export interface OrderInvoiceData {
493
+ additionalData?: string | null;
494
+ invoiceDate?: string | null;
495
+ invoiceNumber?: string | null;
496
+ textQualifiers?: string[] | null;
497
+ }
498
+ export interface OrderLineDetails {
499
+ discountAmount?: number | null;
500
+ googleProductCategoryId?: number | null;
501
+ lineAmountTotal?: number | null;
502
+ productCategory?: string | null;
503
+ productCode?: string | null;
504
+ productName?: string | null;
505
+ productPrice?: number | null;
506
+ productSku?: string | null;
507
+ productType?: string | null;
508
+ quantity?: number | null;
509
+ taxAmount?: number | null;
510
+ unit?: string | null;
511
+ }
512
+ export interface OrderOutput {
513
+ amountOfMoney?: AmountOfMoney | null;
514
+ references?: PaymentReferences | null;
515
+ }
516
+ export interface OrderReferences {
517
+ descriptor?: string | null;
518
+ invoiceData?: OrderInvoiceData | null;
519
+ merchantOrderId?: number | null;
520
+ merchantReference?: string | null;
521
+ }
522
+ export interface OrderReferencesApprovePayment {
523
+ merchantReference?: string | null;
524
+ }
525
+ export interface OrderTypeInformation {
526
+ purchaseType?: string | null;
527
+ transactionType?: string | null;
528
+ usageType?: string | null;
529
+ }
530
+ export interface Payment extends AbstractOrderStatus {
531
+ hostedCheckoutSpecificOutput?: HostedCheckoutSpecificOutput | null;
532
+ paymentOutput?: PaymentOutput | null;
533
+ status?: string | null;
534
+ statusOutput?: PaymentStatusOutput | null;
535
+ }
536
+ export interface PaymentAccountOnFile {
537
+ createDate?: string | null;
538
+ numberOfCardOnFileCreationAttemptsLast24Hours?: number | null;
539
+ }
540
+ export interface PaymentCreationOutput extends PaymentCreationReferences {
541
+ isNewToken?: boolean | null;
542
+ token?: string | null;
543
+ tokenizationSucceeded?: boolean | null;
544
+ }
545
+ export interface PaymentCreationReferences {
546
+ additionalReference?: string | null;
547
+ externalReference?: string | null;
548
+ }
549
+ export interface PaymentOutput extends OrderOutput {
550
+ amountPaid?: number | null;
551
+ amountReversed?: number | null;
552
+ bankTransferPaymentMethodSpecificOutput?: BankTransferPaymentMethodSpecificOutput | null;
553
+ cardPaymentMethodSpecificOutput?: CardPaymentMethodSpecificOutput | null;
554
+ cashPaymentMethodSpecificOutput?: CashPaymentMethodSpecificOutput | null;
555
+ directDebitPaymentMethodSpecificOutput?: NonSepaDirectDebitPaymentMethodSpecificOutput | null;
556
+ eInvoicePaymentMethodSpecificOutput?: EInvoicePaymentMethodSpecificOutput | null;
557
+ invoicePaymentMethodSpecificOutput?: InvoicePaymentMethodSpecificOutput | null;
558
+ mobilePaymentMethodSpecificOutput?: MobilePaymentMethodSpecificOutput | null;
559
+ paymentMethod?: string | null;
560
+ redirectPaymentMethodSpecificOutput?: RedirectPaymentMethodSpecificOutput | null;
561
+ reversalReason?: string | null;
562
+ sepaDirectDebitPaymentMethodSpecificOutput?: SepaDirectDebitPaymentMethodSpecificOutput | null;
563
+ }
564
+ export interface PaymentProduct3201SpecificOutput {
565
+ card?: CardEssentials | null;
566
+ }
567
+ export interface PaymentProduct771SpecificOutput {
568
+ mandateReference?: string | null;
569
+ }
570
+ export interface PaymentProduct806SpecificOutput {
571
+ billingAddress?: Address | null;
572
+ customerAccount?: TrustlyBankAccount | null;
573
+ }
574
+ export interface PaymentProduct836SpecificOutput {
575
+ securityIndicator?: string | null;
576
+ }
577
+ export interface PaymentProduct840CustomerAccount {
578
+ accountId?: string | null;
579
+ billingAgreementId?: string | null;
580
+ companyName?: string | null;
581
+ contactPhone?: string | null;
582
+ countryCode?: string | null;
583
+ customerAccountStatus?: string | null;
584
+ customerAddressStatus?: string | null;
585
+ firstName?: string | null;
586
+ payerId?: string | null;
587
+ surname?: string | null;
588
+ }
589
+ export interface PaymentProduct840SpecificOutput {
590
+ billingAddress?: Address | null;
591
+ customerAccount?: PaymentProduct840CustomerAccount | null;
592
+ customerAddress?: Address | null;
593
+ protectionEligibility?: ProtectionEligibility | null;
594
+ }
595
+ export interface PaymentProduct863ThirdPartyData {
596
+ appId?: string | null;
597
+ nonceStr?: string | null;
598
+ packageSign?: string | null;
599
+ paySign?: string | null;
600
+ prepayId?: string | null;
601
+ signType?: string | null;
602
+ timeStamp?: string | null;
603
+ }
604
+ export interface PaymentReferences {
605
+ merchantOrderId?: number | null;
606
+ merchantReference?: string | null;
607
+ paymentReference?: string | null;
608
+ providerId?: string | null;
609
+ providerReference?: string | null;
610
+ referenceOrigPayment?: string | null;
611
+ }
612
+ export interface PaymentStatusOutput extends OrderStatusOutput {
613
+ isAuthorized?: boolean | null;
614
+ isRefundable?: boolean | null;
615
+ threeDSecureStatus?: string | null;
616
+ }
617
+ export interface PersonalInformation {
618
+ dateOfBirth?: string | null;
619
+ gender?: string | null;
620
+ name?: PersonalName | null;
621
+ }
622
+ export interface PersonalName extends PersonalNameBase {
623
+ title?: string | null;
624
+ }
625
+ export interface ProtectionEligibility {
626
+ eligibility?: string | null;
627
+ type?: string | null;
628
+ }
629
+ export interface RedirectData extends RedirectDataBase {
630
+ }
631
+ export interface RedirectPaymentMethodSpecificInput extends AbstractRedirectPaymentMethodSpecificInput {
632
+ isRecurring?: boolean | null;
633
+ paymentProduct4101SpecificInput?: RedirectPaymentProduct4101SpecificInput | null;
634
+ paymentProduct809SpecificInput?: RedirectPaymentProduct809SpecificInput | null;
635
+ paymentProduct816SpecificInput?: RedirectPaymentProduct816SpecificInput | null;
636
+ paymentProduct840SpecificInput?: RedirectPaymentProduct840SpecificInput | null;
637
+ paymentProduct861SpecificInput?: RedirectPaymentProduct861SpecificInput | null;
638
+ paymentProduct863SpecificInput?: RedirectPaymentProduct863SpecificInput | null;
639
+ paymentProduct869SpecificInput?: RedirectPaymentProduct869SpecificInput | null;
640
+ paymentProduct882SpecificInput?: RedirectPaymentProduct882SpecificInput | null;
641
+ redirectionData?: RedirectionData | null;
642
+ /**
643
+ * @deprecated Use redirectionData.returnUrl instead
644
+ */
645
+ returnUrl?: string | null;
646
+ }
647
+ export interface RedirectPaymentMethodSpecificInputBase extends AbstractRedirectPaymentMethodSpecificInput {
648
+ paymentProduct840SpecificInput?: RedirectPaymentProduct840SpecificInputBase | null;
649
+ }
650
+ export interface RedirectPaymentMethodSpecificOutput extends AbstractPaymentMethodSpecificOutput {
651
+ bankAccountBban?: BankAccountBban | null;
652
+ bankAccountIban?: BankAccountIban | null;
653
+ bic?: string | null;
654
+ fraudResults?: FraudResults | null;
655
+ paymentProduct3201SpecificOutput?: PaymentProduct3201SpecificOutput | null;
656
+ paymentProduct806SpecificOutput?: PaymentProduct806SpecificOutput | null;
657
+ paymentProduct836SpecificOutput?: PaymentProduct836SpecificOutput | null;
658
+ paymentProduct840SpecificOutput?: PaymentProduct840SpecificOutput | null;
659
+ token?: string | null;
660
+ }
661
+ export interface RedirectPaymentProduct4101SpecificInput {
662
+ displayName?: string | null;
663
+ integrationType?: string | null;
664
+ virtualPaymentAddress?: string | null;
665
+ }
666
+ export interface RedirectPaymentProduct809SpecificInput {
667
+ /**
668
+ * @deprecated Use RedirectPaymentMethodSpecificInput.expirationPeriod instead
669
+ */
670
+ expirationPeriod?: string | null;
671
+ issuerId?: string | null;
672
+ }
673
+ export interface RedirectPaymentProduct816SpecificInput {
674
+ bankAccountIban?: BankAccountIban | null;
675
+ }
676
+ export interface RedirectPaymentProduct840SpecificInput extends AbstractRedirectPaymentProduct840SpecificInput {
677
+ /**
678
+ * @deprecated Use Order.references.descriptor instead
679
+ */
680
+ custom?: string | null;
681
+ isShortcut?: boolean | null;
682
+ }
683
+ export interface RedirectPaymentProduct840SpecificInputBase extends AbstractRedirectPaymentProduct840SpecificInput {
684
+ }
685
+ export interface RedirectPaymentProduct861SpecificInput {
686
+ mobileDevice?: boolean | null;
687
+ }
688
+ export interface RedirectPaymentProduct863SpecificInput {
689
+ integrationType?: string | null;
690
+ openId?: string | null;
691
+ }
692
+ export interface RedirectPaymentProduct869SpecificInput {
693
+ issuerId?: string | null;
694
+ residentIdName?: string | null;
695
+ residentIdNumber?: string | null;
696
+ }
697
+ export interface RedirectPaymentProduct882SpecificInput {
698
+ issuerId?: string | null;
699
+ }
700
+ export interface RedirectionData {
701
+ returnUrl?: string | null;
702
+ variant?: string | null;
703
+ }
704
+ export interface RefundBankMethodSpecificOutput extends RefundMethodSpecificOutput {
705
+ }
706
+ export interface RefundCardMethodSpecificOutput extends RefundMethodSpecificOutput {
707
+ }
708
+ export interface RefundCashMethodSpecificOutput extends RefundMethodSpecificOutput {
709
+ }
710
+ export interface RefundEInvoiceMethodSpecificOutput extends RefundMethodSpecificOutput {
711
+ }
712
+ export interface RefundEWalletMethodSpecificOutput extends RefundMethodSpecificOutput {
713
+ paymentProduct840SpecificOutput?: RefundPaymentProduct840SpecificOutput | null;
714
+ }
715
+ export interface RefundMethodSpecificOutput {
716
+ refundProductId?: number | null;
717
+ totalAmountPaid?: number | null;
718
+ totalAmountRefunded?: number | null;
719
+ }
720
+ export interface RefundMobileMethodSpecificOutput extends RefundMethodSpecificOutput {
721
+ network?: string | null;
722
+ }
723
+ export interface RefundOutput extends OrderOutput {
724
+ amountPaid?: number | null;
725
+ bankRefundMethodSpecificOutput?: RefundBankMethodSpecificOutput | null;
726
+ cardRefundMethodSpecificOutput?: RefundCardMethodSpecificOutput | null;
727
+ cashRefundMethodSpecificOutput?: RefundCashMethodSpecificOutput | null;
728
+ eInvoiceRefundMethodSpecificOutput?: RefundEInvoiceMethodSpecificOutput | null;
729
+ eWalletRefundMethodSpecificOutput?: RefundEWalletMethodSpecificOutput | null;
730
+ mobileRefundMethodSpecificOutput?: RefundMobileMethodSpecificOutput | null;
731
+ paymentMethod?: string | null;
732
+ }
733
+ export interface RefundPaymentProduct840CustomerAccount {
734
+ customerAccountStatus?: string | null;
735
+ customerAddressStatus?: string | null;
736
+ payerId?: string | null;
737
+ }
738
+ export interface RefundPaymentProduct840SpecificOutput {
739
+ customerAccount?: RefundPaymentProduct840CustomerAccount | null;
740
+ }
741
+ export interface SdkDataInput {
742
+ /**
743
+ * @deprecated No replacement
744
+ */
745
+ deviceInfo?: string | null;
746
+ deviceRenderOptions?: DeviceRenderOptions | null;
747
+ sdkAppId?: string | null;
748
+ sdkEncryptedData?: string | null;
749
+ sdkEphemeralPublicKey?: string | null;
750
+ sdkMaxTimeout?: string | null;
751
+ sdkReferenceNumber?: string | null;
752
+ sdkTransactionId?: string | null;
753
+ }
754
+ export interface SdkDataOutput {
755
+ sdkTransactionId?: string | null;
756
+ }
757
+ export interface Seller {
758
+ address?: Address | null;
759
+ channelCode?: string | null;
760
+ description?: string | null;
761
+ geocode?: string | null;
762
+ id?: string | null;
763
+ invoiceNumber?: string | null;
764
+ mcc?: string | null;
765
+ name?: string | null;
766
+ type?: string | null;
767
+ }
768
+ export interface SepaDirectDebitPaymentMethodSpecificInput extends AbstractSepaDirectDebitPaymentMethodSpecificInput {
769
+ dateCollect?: string | null;
770
+ directDebitText?: string | null;
771
+ isRecurring?: boolean | null;
772
+ paymentProduct771SpecificInput?: SepaDirectDebitPaymentProduct771SpecificInput | null;
773
+ recurringPaymentSequenceIndicator?: string | null;
774
+ requiresApproval?: boolean | null;
775
+ token?: string | null;
776
+ tokenize?: boolean | null;
777
+ }
778
+ export interface SepaDirectDebitPaymentMethodSpecificInputBase extends AbstractSepaDirectDebitPaymentMethodSpecificInput {
779
+ paymentProduct771SpecificInput?: SepaDirectDebitPaymentProduct771SpecificInputBase | null;
780
+ }
781
+ export interface SepaDirectDebitPaymentMethodSpecificOutput extends AbstractPaymentMethodSpecificOutput {
782
+ fraudResults?: FraudResults | null;
783
+ paymentProduct771SpecificOutput?: PaymentProduct771SpecificOutput | null;
784
+ token?: string | null;
785
+ }
786
+ export interface SepaDirectDebitPaymentProduct771SpecificInput extends AbstractSepaDirectDebitPaymentProduct771SpecificInput {
787
+ existingUniqueMandateReference?: string | null;
788
+ mandate?: CreateMandateWithReturnUrl | null;
789
+ }
790
+ export interface SepaDirectDebitPaymentProduct771SpecificInputBase extends AbstractSepaDirectDebitPaymentProduct771SpecificInput {
791
+ existingUniqueMandateReference?: string | null;
792
+ mandate?: CreateMandateBase | null;
793
+ }
794
+ export interface Shipping {
795
+ address?: AddressPersonal | null;
796
+ addressIndicator?: string | null;
797
+ comments?: string | null;
798
+ emailAddress?: string | null;
799
+ firstUsageDate?: string | null;
800
+ isFirstUsage?: boolean | null;
801
+ trackingNumber?: string | null;
802
+ type?: string | null;
803
+ }
804
+ export interface ShoppingCart {
805
+ amountBreakdown?: AmountBreakdown[] | null;
806
+ giftCardPurchase?: GiftCardPurchase | null;
807
+ isPreOrder?: boolean | null;
808
+ items?: LineItem[] | null;
809
+ preOrderItemAvailabilityDate?: string | null;
810
+ reOrderIndicator?: boolean | null;
811
+ }
812
+ export interface ThirdPartyData {
813
+ paymentProduct863?: PaymentProduct863ThirdPartyData | null;
814
+ }
815
+ export interface ThreeDSecure extends AbstractThreeDSecure {
816
+ externalCardholderAuthenticationData?: ExternalCardholderAuthenticationData | null;
817
+ redirectionData?: RedirectionData | null;
818
+ }
819
+ export interface ThreeDSecureBase extends AbstractThreeDSecure {
820
+ }
821
+ export interface ThreeDSecureData {
822
+ acsTransactionId?: string | null;
823
+ method?: string | null;
824
+ utcTimestamp?: string | null;
825
+ }
826
+ export interface ThreeDSecureResults {
827
+ acsTransactionId?: string | null;
828
+ appliedExemption?: string | null;
829
+ authenticationAmount?: AmountOfMoney | null;
830
+ cavv?: string | null;
831
+ directoryServerTransactionId?: string | null;
832
+ eci?: string | null;
833
+ exemptionOutput?: ExemptionOutput | null;
834
+ schemeRiskScore?: number | null;
835
+ sdkData?: SdkDataOutput | null;
836
+ threeDSecureData?: ThreeDSecureData | null;
837
+ threeDSecureVersion?: string | null;
838
+ threeDServerTransactionId?: string | null;
839
+ xid?: string | null;
840
+ }
841
+ export interface TrustlyBankAccount {
842
+ accountLastDigits?: string | null;
843
+ bankName?: string | null;
844
+ clearinghouse?: string | null;
845
+ personIdentificationNumber?: string | null;
846
+ }