@xsolla/payment-client-core 0.1.3 → 0.1.5-1

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 (228) hide show
  1. package/esm2020/lib/core/credit-card/credit-card-settings.interface.mjs +2 -0
  2. package/esm2020/lib/core/credit-card/credit-card-types.enum.mjs +20 -0
  3. package/esm2020/lib/core/credit-card/credit-card.interface.mjs +2 -0
  4. package/esm2020/lib/core/credit-card/credit-card.service.mjs +41 -0
  5. package/esm2020/lib/core/credit-card/credit-cards-map.const.mjs +36 -0
  6. package/esm2020/lib/core/credit-card/default-mask.const.mjs +2 -0
  7. package/esm2020/lib/core/credit-card/four-block-mask.const.mjs +2 -0
  8. package/esm2020/lib/core/credit-card/ordered-cards-settings.const.mjs +45 -0
  9. package/esm2020/lib/core/credit-card/types/american-express.mjs +13 -0
  10. package/esm2020/lib/core/credit-card/types/aura.mjs +15 -0
  11. package/esm2020/lib/core/credit-card/types/china-union-pay.mjs +12 -0
  12. package/esm2020/lib/core/credit-card/types/dankort.mjs +15 -0
  13. package/esm2020/lib/core/credit-card/types/default-card.mjs +13 -0
  14. package/esm2020/lib/core/credit-card/types/diners-clubs.mjs +13 -0
  15. package/esm2020/lib/core/credit-card/types/discover.mjs +13 -0
  16. package/esm2020/lib/core/credit-card/types/elo.mjs +13 -0
  17. package/esm2020/lib/core/credit-card/types/hipercard.mjs +13 -0
  18. package/esm2020/lib/core/credit-card/types/jcb.mjs +13 -0
  19. package/esm2020/lib/core/credit-card/types/maestro.mjs +14 -0
  20. package/esm2020/lib/core/credit-card/types/mastercard.mjs +16 -0
  21. package/esm2020/lib/core/credit-card/types/mir.mjs +15 -0
  22. package/esm2020/lib/core/credit-card/types/naranja.mjs +15 -0
  23. package/esm2020/lib/core/credit-card/types/postepay.mjs +13 -0
  24. package/esm2020/lib/core/credit-card/types/visa.mjs +13 -0
  25. package/esm2020/lib/core/device-finger-print/device-finger-print.service.mjs +26 -126
  26. package/esm2020/lib/core/device-finger-print/hash.type.mjs +1 -1
  27. package/esm2020/lib/core/encrypt-credit-card/encrypt-credit-card.service.mjs +72 -0
  28. package/esm2020/lib/core/encrypt-credit-card/encrypted-card.interface.mjs +2 -0
  29. package/esm2020/lib/core/encrypt-credit-card/open-card.interface.mjs +2 -0
  30. package/esm2020/lib/core/exceptions-handling/errors/encrypt-card-error.mjs +9 -0
  31. package/esm2020/lib/core/payment/actions/check-status/check-status.action.class.mjs +2 -3
  32. package/esm2020/lib/core/payment/actions/next-action.interface.mjs +1 -1
  33. package/esm2020/lib/core/payment/actions/next-actions.mjs +3 -1
  34. package/esm2020/lib/core/payment/actions/three-ds/three-ds.action.class.mjs +7 -0
  35. package/esm2020/lib/core/payment/actions/three-ds/three-ds.action.token.mjs +11 -0
  36. package/esm2020/lib/core/payment/actions/three-ds/three-ds.action.type.mjs +2 -0
  37. package/esm2020/lib/core/payment/credit-card-payment-methods-id.variable.mjs +15 -0
  38. package/esm2020/lib/core/payment/credit-card-state/credit-card-state.interface.mjs +2 -0
  39. package/esm2020/lib/core/payment/credit-card-state/credit-card-state.service.mjs +14 -0
  40. package/esm2020/lib/core/payment/form/controls/card-number-control.config.mjs +10 -0
  41. package/esm2020/lib/core/payment/form/controls/phone-control.config.mjs +8 -0
  42. package/esm2020/lib/core/payment/form/converters/birth-date.converter.mjs +38 -0
  43. package/esm2020/lib/core/payment/form/converters/card-expiration.converter.mjs +36 -0
  44. package/esm2020/lib/core/payment/form/converters/card-number.converter.mjs +45 -0
  45. package/esm2020/lib/core/payment/form/converters/cardholder-name.converter.mjs +25 -0
  46. package/esm2020/lib/core/payment/form/converters/converters-map.mjs +23 -1
  47. package/esm2020/lib/core/payment/form/converters/cpf-name-regex.variable.mjs +2 -0
  48. package/esm2020/lib/core/payment/form/converters/cpf-name.converter.mjs +34 -0
  49. package/esm2020/lib/core/payment/form/converters/cpf-number.converter.mjs +31 -0
  50. package/esm2020/lib/core/payment/form/converters/cvv.converter.mjs +50 -0
  51. package/esm2020/lib/core/payment/form/converters/phone.converter.mjs +37 -0
  52. package/esm2020/lib/core/payment/form/converters/street-number/street-number-from-state.interface.mjs +2 -0
  53. package/esm2020/lib/core/payment/form/converters/street-number/street-number.converter.mjs +28 -0
  54. package/esm2020/lib/core/payment/form/converters/text.converter.mjs +19 -0
  55. package/esm2020/lib/core/payment/form/form.module.mjs +32 -4
  56. package/esm2020/lib/core/payment/form/validators/birth-date.validator.mjs +37 -0
  57. package/esm2020/lib/core/payment/form/validators/credit-card-min-length.validator.mjs +32 -0
  58. package/esm2020/lib/core/payment/form/validators/is-empty-input-value.function.mjs +4 -0
  59. package/esm2020/lib/core/payment/form/validators/luhn-formula-validator/luhn-formula.validator.mjs +40 -0
  60. package/esm2020/lib/core/payment/form/validators/max-length-validator.mjs +6 -0
  61. package/esm2020/lib/core/payment/form/validators/min-length-validator.mjs +6 -0
  62. package/esm2020/lib/core/payment/form/validators/phone-validator.mjs +6 -0
  63. package/esm2020/lib/core/payment/form/validators/validators.module.mjs +18 -0
  64. package/esm2020/lib/core/payment/initialize/initialize-request-params.interface.mjs +1 -1
  65. package/esm2020/lib/core/payment/initialize/initialize.service.mjs +28 -19
  66. package/esm2020/lib/core/payment/initialize/response/initialize-response.class.mjs +43 -0
  67. package/esm2020/lib/core/payment/initialize/response/initialize-response.token.mjs +8 -0
  68. package/esm2020/lib/core/payment/payment.interface.mjs +1 -1
  69. package/esm2020/lib/core/payment/payment.service.mjs +38 -8
  70. package/esm2020/lib/core/payment/status/check-status/check-status.service.mjs +8 -13
  71. package/esm2020/lib/core/payment/status/check-status/response/check-status-response.class.mjs +1 -1
  72. package/esm2020/lib/core/payment/submit/submit.service.mjs +13 -16
  73. package/esm2020/lib/core/payment/sync/field-async-validation.interface.mjs +2 -0
  74. package/esm2020/lib/core/payment/sync/field-sync-state.interface.mjs +1 -1
  75. package/esm2020/lib/core/payment/sync/request/sync-request.class.mjs +31 -0
  76. package/esm2020/lib/core/payment/sync/request/sync-request.token.mjs +8 -0
  77. package/esm2020/lib/core/payment/sync/response/sync-response.class.mjs +17 -0
  78. package/esm2020/lib/core/payment/sync/response/sync-response.token.mjs +8 -0
  79. package/esm2020/lib/core/payment/sync/sync.service.mjs +24 -15
  80. package/esm2020/lib/core/payment/three-ds/api/notify-dfp-status/notify-dfp-status.service.mjs +49 -0
  81. package/esm2020/lib/core/payment/three-ds/api/notify-dfp-status/request/notify-dfp-status-request.class.mjs +8 -0
  82. package/esm2020/lib/core/payment/three-ds/api/notify-dfp-status/request/notify-dfp-status-request.token.mjs +8 -0
  83. package/esm2020/lib/core/payment/three-ds/api/status-three-ds/request/status-three-ds-request.class.mjs +7 -0
  84. package/esm2020/lib/core/payment/three-ds/api/status-three-ds/request/status-three-ds-request.token.mjs +8 -0
  85. package/esm2020/lib/core/payment/three-ds/api/status-three-ds/response/status-three-ds-response.class.mjs +7 -0
  86. package/esm2020/lib/core/payment/three-ds/api/status-three-ds/response/status-three-ds-response.token.mjs +8 -0
  87. package/esm2020/lib/core/payment/three-ds/api/status-three-ds/status-three-ds-response.interface.mjs +2 -0
  88. package/esm2020/lib/core/payment/three-ds/api/status-three-ds/status-three-ds.service.mjs +60 -0
  89. package/esm2020/lib/core/payment/three-ds/api/status-three-ds/status-types.enum.mjs +7 -0
  90. package/esm2020/lib/core/payment/three-ds/api/status-three-ds/three-ds-checkout-form.interface.mjs +2 -0
  91. package/esm2020/lib/core/payment/three-ds/dfp-collect/dfp-collect.service.mjs +105 -0
  92. package/esm2020/lib/core/payment/three-ds/reinsurance-check/reinsurance-check.service.mjs +41 -0
  93. package/esm2020/lib/core/payment/three-ds/reinsurance-check/timer.interface.mjs +2 -0
  94. package/esm2020/lib/core/payment/three-ds/three-ds-20/status-update.interface.mjs +2 -0
  95. package/esm2020/lib/core/payment/three-ds/three-ds-20/three-ds20.service.mjs +109 -0
  96. package/esm2020/lib/core/payment/three-ds/three-ds-form.interface.mjs +2 -0
  97. package/esm2020/lib/core/payment/three-ds/three-ds-status-websocket-types.enum.mjs +5 -0
  98. package/esm2020/lib/core/payment/three-ds/three-ds.service.mjs +40 -0
  99. package/esm2020/lib/core/payment/xps-api/xps-api.service.mjs +79 -0
  100. package/esm2020/lib/core/payment/xps-request-params.interface.mjs +2 -0
  101. package/esm2020/lib/core/payment/xps-request.interface.mjs +2 -0
  102. package/esm2020/lib/core/payment/xps-response.error.mjs +7 -0
  103. package/esm2020/lib/core/payment/xps-response.interface.mjs +1 -1
  104. package/esm2020/lib/core/type-guards/is-string.function.mjs +4 -0
  105. package/esm2020/lib/core-library.module.mjs +13 -4
  106. package/esm2020/lib/core-library.service.mjs +19 -5
  107. package/fesm2015/xsolla-payment-client-core.mjs +1585 -261
  108. package/fesm2015/xsolla-payment-client-core.mjs.map +1 -1
  109. package/fesm2020/xsolla-payment-client-core.mjs +1574 -258
  110. package/fesm2020/xsolla-payment-client-core.mjs.map +1 -1
  111. package/lib/core/credit-card/credit-card-settings.interface.d.ts +10 -0
  112. package/lib/core/credit-card/credit-card-types.enum.d.ts +18 -0
  113. package/lib/core/credit-card/credit-card.interface.d.ts +9 -0
  114. package/lib/core/credit-card/credit-card.service.d.ts +11 -0
  115. package/lib/core/credit-card/credit-cards-map.const.d.ts +5 -0
  116. package/lib/core/credit-card/default-mask.const.d.ts +1 -0
  117. package/lib/core/credit-card/four-block-mask.const.d.ts +1 -0
  118. package/lib/core/credit-card/ordered-cards-settings.const.d.ts +12 -0
  119. package/lib/core/credit-card/types/american-express.d.ts +2 -0
  120. package/lib/core/credit-card/types/aura.d.ts +2 -0
  121. package/lib/core/credit-card/types/china-union-pay.d.ts +2 -0
  122. package/lib/core/credit-card/types/dankort.d.ts +2 -0
  123. package/lib/core/credit-card/types/default-card.d.ts +2 -0
  124. package/lib/core/credit-card/types/diners-clubs.d.ts +2 -0
  125. package/lib/core/credit-card/types/discover.d.ts +2 -0
  126. package/lib/core/credit-card/types/elo.d.ts +2 -0
  127. package/lib/core/credit-card/types/hipercard.d.ts +2 -0
  128. package/lib/core/credit-card/types/jcb.d.ts +2 -0
  129. package/lib/core/credit-card/types/maestro.d.ts +2 -0
  130. package/lib/core/credit-card/types/mastercard.d.ts +2 -0
  131. package/lib/core/credit-card/types/mir.d.ts +2 -0
  132. package/lib/core/credit-card/types/naranja.d.ts +2 -0
  133. package/lib/core/credit-card/types/postepay.d.ts +2 -0
  134. package/lib/core/credit-card/types/visa.d.ts +2 -0
  135. package/lib/core/device-finger-print/device-finger-print.service.d.ts +3 -31
  136. package/lib/core/device-finger-print/hash.type.d.ts +1 -1
  137. package/lib/core/encrypt-credit-card/encrypt-credit-card.service.d.ts +16 -0
  138. package/lib/core/encrypt-credit-card/encrypted-card.interface.d.ts +6 -0
  139. package/lib/core/encrypt-credit-card/open-card.interface.d.ts +6 -0
  140. package/lib/core/exceptions-handling/errors/encrypt-card-error.d.ts +5 -0
  141. package/lib/core/payment/actions/next-action.interface.d.ts +2 -1
  142. package/lib/core/payment/actions/three-ds/three-ds.action.class.d.ts +8 -0
  143. package/lib/core/payment/actions/three-ds/three-ds.action.token.d.ts +4 -0
  144. package/lib/core/payment/actions/three-ds/three-ds.action.type.d.ts +5 -0
  145. package/lib/core/payment/credit-card-payment-methods-id.variable.d.ts +6 -0
  146. package/lib/core/payment/credit-card-state/credit-card-state.interface.d.ts +3 -0
  147. package/lib/core/payment/credit-card-state/credit-card-state.service.d.ts +7 -0
  148. package/lib/core/payment/form/controls/card-number-control.config.d.ts +11 -0
  149. package/lib/core/payment/form/controls/phone-control.config.d.ts +6 -0
  150. package/lib/core/payment/form/converters/birth-date.converter.d.ts +13 -0
  151. package/lib/core/payment/form/converters/card-expiration.converter.d.ts +16 -0
  152. package/lib/core/payment/form/converters/card-number.converter.d.ts +19 -0
  153. package/lib/core/payment/form/converters/cardholder-name.converter.d.ts +13 -0
  154. package/lib/core/payment/form/converters/cpf-name-regex.variable.d.ts +1 -0
  155. package/lib/core/payment/form/converters/cpf-name.converter.d.ts +13 -0
  156. package/lib/core/payment/form/converters/cpf-number.converter.d.ts +11 -0
  157. package/lib/core/payment/form/converters/cvv.converter.d.ts +18 -0
  158. package/lib/core/payment/form/converters/phone.converter.d.ts +13 -0
  159. package/lib/core/payment/form/converters/street-number/street-number-from-state.interface.d.ts +3 -0
  160. package/lib/core/payment/form/converters/street-number/street-number.converter.d.ts +14 -0
  161. package/lib/core/payment/form/converters/text.converter.d.ts +11 -0
  162. package/lib/core/payment/form/form.module.d.ts +2 -1
  163. package/lib/core/payment/form/validators/birth-date.validator.d.ts +2 -0
  164. package/lib/core/payment/form/validators/credit-card-min-length.validator.d.ts +12 -0
  165. package/lib/core/payment/form/validators/is-empty-input-value.function.d.ts +1 -0
  166. package/lib/core/payment/form/validators/luhn-formula-validator/luhn-formula.validator.d.ts +6 -0
  167. package/lib/core/payment/form/validators/max-length-validator.d.ts +2 -0
  168. package/lib/core/payment/form/validators/min-length-validator.d.ts +2 -0
  169. package/lib/core/payment/form/validators/phone-validator.d.ts +2 -0
  170. package/lib/core/payment/form/validators/validators.module.d.ts +7 -0
  171. package/lib/core/payment/initialize/initialize-request-params.interface.d.ts +1 -0
  172. package/lib/core/payment/initialize/initialize.service.d.ts +8 -6
  173. package/lib/core/payment/initialize/{initialize-response.class.d.ts → response/initialize-response.class.d.ts} +2 -2
  174. package/lib/core/payment/payment.interface.d.ts +2 -2
  175. package/lib/core/payment/payment.service.d.ts +7 -2
  176. package/lib/core/payment/status/check-status/check-status.service.d.ts +3 -4
  177. package/lib/core/payment/submit/submit.service.d.ts +5 -4
  178. package/lib/core/payment/sync/field-async-validation.interface.d.ts +7 -0
  179. package/lib/core/payment/sync/field-sync-state.interface.d.ts +1 -1
  180. package/lib/core/payment/sync/{sync-request.class.d.ts → request/sync-request.class.d.ts} +3 -3
  181. package/lib/core/payment/sync/{sync-response.class.d.ts → response/sync-response.class.d.ts} +2 -2
  182. package/lib/core/payment/sync/sync.service.d.ts +12 -7
  183. package/lib/core/payment/three-ds/api/notify-dfp-status/notify-dfp-status.service.d.ts +14 -0
  184. package/lib/core/payment/three-ds/api/notify-dfp-status/request/notify-dfp-status-request.class.d.ts +10 -0
  185. package/lib/core/payment/three-ds/api/notify-dfp-status/request/notify-dfp-status-request.token.d.ts +6 -0
  186. package/lib/core/payment/three-ds/api/status-three-ds/request/status-three-ds-request.class.d.ts +5 -0
  187. package/lib/core/payment/three-ds/api/status-three-ds/request/status-three-ds-request.token.d.ts +6 -0
  188. package/lib/core/payment/three-ds/api/status-three-ds/response/status-three-ds-response.class.d.ts +7 -0
  189. package/lib/core/payment/three-ds/api/status-three-ds/response/status-three-ds-response.token.d.ts +6 -0
  190. package/lib/core/payment/three-ds/api/status-three-ds/status-three-ds-response.interface.d.ts +7 -0
  191. package/lib/core/payment/three-ds/api/status-three-ds/status-three-ds.service.d.ts +21 -0
  192. package/lib/core/payment/three-ds/api/status-three-ds/status-types.enum.d.ts +5 -0
  193. package/lib/core/payment/three-ds/api/status-three-ds/three-ds-checkout-form.interface.d.ts +7 -0
  194. package/lib/core/payment/three-ds/dfp-collect/dfp-collect.service.d.ts +20 -0
  195. package/lib/core/payment/three-ds/reinsurance-check/reinsurance-check.service.d.ts +12 -0
  196. package/lib/core/payment/three-ds/reinsurance-check/timer.interface.d.ts +9 -0
  197. package/lib/core/payment/three-ds/three-ds-20/status-update.interface.d.ts +12 -0
  198. package/lib/core/payment/three-ds/three-ds-20/three-ds20.service.d.ts +32 -0
  199. package/lib/core/payment/three-ds/three-ds-form.interface.d.ts +11 -0
  200. package/lib/core/payment/three-ds/three-ds-status-websocket-types.enum.d.ts +3 -0
  201. package/lib/core/payment/three-ds/three-ds.service.d.ts +14 -0
  202. package/lib/core/payment/xps-api/xps-api.service.d.ts +20 -0
  203. package/lib/core/payment/xps-request-params.interface.d.ts +3 -0
  204. package/lib/core/payment/xps-request.interface.d.ts +10 -0
  205. package/lib/core/payment/xps-response.error.d.ts +4 -0
  206. package/lib/core/payment/xps-response.interface.d.ts +3 -10
  207. package/lib/core/type-guards/is-string.function.d.ts +1 -0
  208. package/lib/core-library.service.d.ts +10 -1
  209. package/package.json +2 -3
  210. package/xsolla-payment-client-core-0.1.5-1.tgz +0 -0
  211. package/esm2020/lib/core/device-finger-print/device-finger-print-components.interface.mjs +0 -2
  212. package/esm2020/lib/core/device-finger-print/fingerprint-js.interface.mjs +0 -2
  213. package/esm2020/lib/core/exceptions-handling/errors/default-terminal-error.class.mjs +0 -8
  214. package/esm2020/lib/core/payment/initialize/initialize-response.class.mjs +0 -43
  215. package/esm2020/lib/core/payment/initialize/initialize-response.token.mjs +0 -8
  216. package/esm2020/lib/core/payment/sync/sync-request.class.mjs +0 -31
  217. package/esm2020/lib/core/payment/sync/sync-request.token.mjs +0 -8
  218. package/esm2020/lib/core/payment/sync/sync-response.class.mjs +0 -17
  219. package/esm2020/lib/core/payment/sync/sync-response.token.mjs +0 -8
  220. package/esm2020/lib/core/payment/xps-request.abstract.mjs +0 -8
  221. package/lib/core/device-finger-print/device-finger-print-components.interface.d.ts +0 -4
  222. package/lib/core/device-finger-print/fingerprint-js.interface.d.ts +0 -6
  223. package/lib/core/exceptions-handling/errors/default-terminal-error.class.d.ts +0 -4
  224. package/lib/core/payment/xps-request.abstract.d.ts +0 -6
  225. package/xsolla-payment-client-core-0.1.3.tgz +0 -0
  226. /package/lib/core/payment/initialize/{initialize-response.token.d.ts → response/initialize-response.token.d.ts} +0 -0
  227. /package/lib/core/payment/sync/{sync-request.token.d.ts → request/sync-request.token.d.ts} +0 -0
  228. /package/lib/core/payment/sync/{sync-response.token.d.ts → response/sync-response.token.d.ts} +0 -0
@@ -0,0 +1,10 @@
1
+ import { CreditCardTypes } from './credit-card-types.enum';
2
+ export interface CreditCardSettings {
3
+ id: CreditCardTypes;
4
+ minLength: number;
5
+ maxLength: number;
6
+ iconName: string | null;
7
+ mask: string;
8
+ checkNumber(number: string): boolean;
9
+ maxCvvLength?: number;
10
+ }
@@ -0,0 +1,18 @@
1
+ export declare enum CreditCardTypes {
2
+ DEFAULT = "0",
3
+ VISA = "1",
4
+ MASTERCARD = "2",
5
+ MAESTRO = "3",
6
+ AMERICAN_EXPRESS = "4",
7
+ DINERS_CLUBS = "5",
8
+ DISCOVER = "6",
9
+ JCB = "9",
10
+ DANKORT = "11",
11
+ HIPERCARD = "12",
12
+ ELO = "13",
13
+ AURA = "14",
14
+ NARANJA = "15",
15
+ MIR = "16",
16
+ CHINA_UNION_PAY = "17",
17
+ POSTEPAY = "18"
18
+ }
@@ -0,0 +1,9 @@
1
+ import { CreditCardTypes } from './credit-card-types.enum';
2
+ import { CreditCardSettings } from './credit-card-settings.interface';
3
+ import { CreditCardState } from '../payment/credit-card-state/credit-card-state.interface';
4
+ import { Observable } from 'rxjs';
5
+ export interface CreditCard {
6
+ getTypeByNumber(cardNumber: string): CreditCardTypes;
7
+ getCreditCardSettings(cardType: CreditCardTypes): CreditCardSettings;
8
+ cardTypeUpdates$: Observable<CreditCardState>;
9
+ }
@@ -0,0 +1,11 @@
1
+ import { CreditCardTypes } from './credit-card-types.enum';
2
+ import { CreditCardSettings } from './credit-card-settings.interface';
3
+ import * as i0 from "@angular/core";
4
+ export declare class CreditCardService {
5
+ getBinNumber(cardNumber: string): string;
6
+ getAccountSuffix(cardNumber: string): string;
7
+ getTypeByNumber(cardNumber: string): CreditCardTypes;
8
+ getCreditCardSettings(cardType: CreditCardTypes): CreditCardSettings;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<CreditCardService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<CreditCardService>;
11
+ }
@@ -0,0 +1,5 @@
1
+ import { CreditCardTypes } from './credit-card-types.enum';
2
+ import { CreditCardSettings } from './credit-card-settings.interface';
3
+ export declare const creditCardsMap: {
4
+ [key in CreditCardTypes]: CreditCardSettings;
5
+ };
@@ -0,0 +1 @@
1
+ export declare const defaultMask = "9999 9999 9999 9999 999";
@@ -0,0 +1 @@
1
+ export declare const fourBlockMask = "9999 9999 9999 9999";
@@ -0,0 +1,12 @@
1
+ import { CreditCardSettings } from './credit-card-settings.interface';
2
+ /**
3
+ * order does matter
4
+ * settings with more specific pattern should be placed above
5
+ * Example:
6
+ * - 12*
7
+ * - 12
8
+ * - 1
9
+ * "12*" pattern should be checked first, otherwise pattern "1" will be taken
10
+ * before "12*" checked
11
+ */
12
+ export declare const orderedCardSettings: CreditCardSettings[];
@@ -0,0 +1,2 @@
1
+ import { CreditCardSettings } from '../credit-card-settings.interface';
2
+ export declare const americanExpress: CreditCardSettings;
@@ -0,0 +1,2 @@
1
+ import { CreditCardSettings } from '../credit-card-settings.interface';
2
+ export declare const aura: CreditCardSettings;
@@ -0,0 +1,2 @@
1
+ import { CreditCardSettings } from '../credit-card-settings.interface';
2
+ export declare const chinaUnionPay: CreditCardSettings;
@@ -0,0 +1,2 @@
1
+ import { CreditCardSettings } from '../credit-card-settings.interface';
2
+ export declare const dankort: CreditCardSettings;
@@ -0,0 +1,2 @@
1
+ import { CreditCardSettings } from '../credit-card-settings.interface';
2
+ export declare const defaultCard: CreditCardSettings;
@@ -0,0 +1,2 @@
1
+ import { CreditCardSettings } from '../credit-card-settings.interface';
2
+ export declare const dinersClubs: CreditCardSettings;
@@ -0,0 +1,2 @@
1
+ import { CreditCardSettings } from '../credit-card-settings.interface';
2
+ export declare const discover: CreditCardSettings;
@@ -0,0 +1,2 @@
1
+ import { CreditCardSettings } from '../credit-card-settings.interface';
2
+ export declare const elo: CreditCardSettings;
@@ -0,0 +1,2 @@
1
+ import { CreditCardSettings } from '../credit-card-settings.interface';
2
+ export declare const hipercard: CreditCardSettings;
@@ -0,0 +1,2 @@
1
+ import { CreditCardSettings } from '../credit-card-settings.interface';
2
+ export declare const jcb: CreditCardSettings;
@@ -0,0 +1,2 @@
1
+ import { CreditCardSettings } from '../credit-card-settings.interface';
2
+ export declare const maestro: CreditCardSettings;
@@ -0,0 +1,2 @@
1
+ import { CreditCardSettings } from '../credit-card-settings.interface';
2
+ export declare const mastercard: CreditCardSettings;
@@ -0,0 +1,2 @@
1
+ import { CreditCardSettings } from '../credit-card-settings.interface';
2
+ export declare const mir: CreditCardSettings;
@@ -0,0 +1,2 @@
1
+ import { CreditCardSettings } from '../credit-card-settings.interface';
2
+ export declare const naranja: CreditCardSettings;
@@ -0,0 +1,2 @@
1
+ import { CreditCardSettings } from '../credit-card-settings.interface';
2
+ export declare const postePay: CreditCardSettings;
@@ -0,0 +1,2 @@
1
+ import { CreditCardSettings } from '../credit-card-settings.interface';
2
+ export declare const visa: CreditCardSettings;
@@ -1,44 +1,16 @@
1
- import { SecureApiClient } from '../http/secure-api/secure-api.service';
2
1
  import { SettingsService } from '../settings/settings.service';
3
- import { ExtendedWindow } from '../extended-window.interface';
4
2
  import * as i0 from "@angular/core";
5
3
  export declare class DeviceFingerPrintService {
6
- private readonly secureApi;
7
4
  private readonly settingsService;
8
- private readonly window;
9
5
  private hash;
10
- private readonly apiRoute;
11
- private fingerprintJs;
12
6
  private antifraudFingerprintLibrary;
13
- private readonly fingerprintApiUrl;
14
- constructor(secureApi: SecureApiClient, settingsService: SettingsService, window: ExtendedWindow);
15
- init(): Promise<void>;
7
+ constructor(settingsService: SettingsService);
8
+ init(): void;
16
9
  getHash(): Promise<string>;
17
- private loadFingerprintJs;
18
10
  private loadAntifraudFingerprintLibrary;
19
- private makeAntifraudFingerprint;
20
- /**
21
- *Загружаем библиотеку, генерируем данные,
22
- *хешируем с помощью BASE64 и отправляем на бэкенд,
23
- *в ответ получаем dfp_hash.
24
- **/
25
11
  private buildHash;
26
- /**
27
- *Новая версия библиотеки содержит не все компоненты, некоторые приходится имплементировать самостоятельно
28
- **/
29
- private getHasLiedResolution;
30
- /**
31
- *Бэкенд заточен под конкретные поля, которые необходимо смапить.
32
- **/
33
- private getComponents;
34
- /**
35
- * Получаем данные dfp с помощью FingerprintJS, мапим необходимые поля, добавляем хэш
36
- **/
37
12
  private generate;
38
- /**
39
- * Отправка dfp на сервер, в ответ получаем dfp_hash
40
- **/
41
- private send;
13
+ private makeAntifraudFingerprint;
42
14
  static ɵfac: i0.ɵɵFactoryDeclaration<DeviceFingerPrintService, never>;
43
15
  static ɵprov: i0.ɵɵInjectableDeclaration<DeviceFingerPrintService>;
44
16
  }
@@ -1,3 +1,3 @@
1
1
  export type Hash = {
2
- '200': string;
2
+ '301': string;
3
3
  } | null;
@@ -0,0 +1,16 @@
1
+ import { XpsApiPartRequest } from '../payment/xps-api-part-request.abstract';
2
+ import { CreditCardService } from '../credit-card/credit-card.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class EncryptCreditCardService {
5
+ private readonly creditCardService;
6
+ private readonly jsEncrypt;
7
+ private readonly secureFieldNames;
8
+ constructor(creditCardService: CreditCardService);
9
+ setPublicKey(publicKey: string): void;
10
+ encryptCreditCard<T extends XpsApiPartRequest>(request: XpsApiPartRequest): T;
11
+ private encrypt;
12
+ private createEncryptedCard;
13
+ private createOpenCard;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<EncryptCreditCardService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<EncryptCreditCardService>;
16
+ }
@@ -0,0 +1,6 @@
1
+ export interface EncryptedCard {
2
+ card_number: string;
3
+ card_year: string;
4
+ card_month: string;
5
+ cvv: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ export interface OpenCard {
2
+ card_bin: string;
3
+ card_suffix: string;
4
+ card_year: string;
5
+ card_month: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ import { TaggedError } from './tagged-error.class';
2
+ import { ErrorTags } from './elk-error-types.enum';
3
+ export declare class EncryptCreditCardError extends TaggedError {
4
+ constructor(message: string, tags?: ErrorTags[]);
5
+ }
@@ -3,4 +3,5 @@ import { ShowFieldsAction } from './show-fields/show-fields.action.type';
3
3
  import { StatusUpdatedAction } from './status-updated/status-updated.action.type';
4
4
  import { RedirectAction } from './redirect/redirect.action.type';
5
5
  import { ShowErrorsAction } from './show-errors/show-errors.action.type';
6
- export type NextAction = CheckStatusAction | ShowFieldsAction | StatusUpdatedAction | ShowErrorsAction | RedirectAction;
6
+ import { ThreeDsAction } from './three-ds/three-ds.action.type';
7
+ export type NextAction = CheckStatusAction | ShowFieldsAction | StatusUpdatedAction | ShowErrorsAction | RedirectAction | ThreeDsAction;
@@ -0,0 +1,8 @@
1
+ import { Action } from '../action.interface';
2
+ import { ThreeDsActionData, ThreeDsActionType } from './three-ds.action.type';
3
+ import { StatusChallenge } from '../../three-ds/three-ds-20/status-update.interface';
4
+ export declare class ThreeDsAction implements Action {
5
+ type: ThreeDsActionType;
6
+ data: ThreeDsActionData;
7
+ constructor(statusUpdate: StatusChallenge);
8
+ }
@@ -0,0 +1,4 @@
1
+ import { InjectionToken, ValueProvider } from '@angular/core';
2
+ import { ActionFactoryValue } from '../action-factory-value.interface';
3
+ export declare const threeDsActionFactoryToken: InjectionToken<ActionFactoryValue>;
4
+ export declare const threeDsActionFactoryProvider: ValueProvider;
@@ -0,0 +1,5 @@
1
+ import { Action } from '../action.interface';
2
+ import { StatusChallenge } from '../../three-ds/three-ds-20/status-update.interface';
3
+ export type ThreeDsActionType = '3DS';
4
+ export type ThreeDsActionData = StatusChallenge;
5
+ export type ThreeDsAction = Action<ThreeDsActionType, ThreeDsActionData>;
@@ -0,0 +1,6 @@
1
+ export declare const masterCardAndVisaPaymentMethodId = 26;
2
+ export declare const maestroPaymentMethodId = 490;
3
+ export declare const creditCardPaymentMethodId = 1380;
4
+ export declare const americanExpressMethodId = 714;
5
+ export declare const specialCards: number[];
6
+ export declare const cardsWith3ds: number[];
@@ -0,0 +1,3 @@
1
+ export interface CreditCardState {
2
+ idCardType: string;
3
+ }
@@ -0,0 +1,7 @@
1
+ import { EmitDataService } from '../emit-data.service.abstract';
2
+ import { CreditCardState } from './credit-card-state.interface';
3
+ import * as i0 from "@angular/core";
4
+ export declare class CreditCardStateService extends EmitDataService<CreditCardState> {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<CreditCardStateService, never>;
6
+ static ɵprov: i0.ɵɵInjectableDeclaration<CreditCardStateService>;
7
+ }
@@ -0,0 +1,11 @@
1
+ import { SafeHtml } from '@angular/platform-browser';
2
+ import { ControlConfig } from './control-config';
3
+ import { CreditCardTypes } from '../../../credit-card/credit-card-types.enum';
4
+ export declare class CardNumberConfig extends ControlConfig {
5
+ controlType: string;
6
+ placeholder?: string | SafeHtml | null;
7
+ icon?: string;
8
+ availableCardTypes: CreditCardTypes[];
9
+ activeCardType?: CreditCardTypes;
10
+ customError: string;
11
+ }
@@ -0,0 +1,6 @@
1
+ import { ControlConfig } from './control-config';
2
+ export declare class PhoneControlConfig extends ControlConfig {
3
+ controlType: string;
4
+ placeholder?: string;
5
+ icon?: string;
6
+ }
@@ -0,0 +1,13 @@
1
+ import { ValidatorFn } from '@angular/forms';
2
+ import { Field } from '../../field.interface';
3
+ import { SyncService } from '../../sync/sync.service';
4
+ import { TextControlConfig } from '../controls/text-control.config';
5
+ import { Converter } from './converter.abstract';
6
+ import * as i0 from "@angular/core";
7
+ export declare class BirthDateConverter extends Converter {
8
+ constructor(syncService: SyncService);
9
+ getValidators(field: Field): ValidatorFn[];
10
+ protected createControlConfig(field: Field): TextControlConfig;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<BirthDateConverter, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<BirthDateConverter>;
13
+ }
@@ -0,0 +1,16 @@
1
+ import { Converter } from './converter.abstract';
2
+ import { SyncService } from '../../sync/sync.service';
3
+ import { ValidatorFn } from '@angular/forms';
4
+ import { Field } from '../../field.interface';
5
+ import { FormState } from '../form-state.interface';
6
+ import { TextControlConfig } from '../controls/text-control.config';
7
+ import * as i0 from "@angular/core";
8
+ export declare class CardExpirationConverter extends Converter {
9
+ constructor(syncService: SyncService);
10
+ getValidators(): ValidatorFn[];
11
+ protected createControlConfig(field: Field, formState: FormState): TextControlConfig;
12
+ protected getAutocomplete(): string;
13
+ protected getDataType(): string;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<CardExpirationConverter, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<CardExpirationConverter>;
16
+ }
@@ -0,0 +1,19 @@
1
+ import { Converter } from './converter.abstract';
2
+ import { SyncService } from '../../sync/sync.service';
3
+ import { CreditCardMinLengthValidator } from '../validators/credit-card-min-length.validator';
4
+ import { Field } from '../../field.interface';
5
+ import { ValidatorFn } from '@angular/forms';
6
+ import { FormState } from '../form-state.interface';
7
+ import { CardNumberConfig } from '../controls/card-number-control.config';
8
+ import * as i0 from "@angular/core";
9
+ export declare class CardNumberConverter extends Converter {
10
+ private readonly maxLengthValidator;
11
+ private readonly minLengthValidator;
12
+ constructor(syncService: SyncService, maxLengthValidator: CreditCardMinLengthValidator, minLengthValidator: CreditCardMinLengthValidator);
13
+ getValidators(field: Field): ValidatorFn[];
14
+ protected createControlConfig(field: Field, formState: FormState): CardNumberConfig;
15
+ protected getAutocomplete(): string;
16
+ protected getDataType(): string;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<CardNumberConverter, never>;
18
+ static ɵprov: i0.ɵɵInjectableDeclaration<CardNumberConverter>;
19
+ }
@@ -0,0 +1,13 @@
1
+ import { Field } from '../../field.interface';
2
+ import { SyncService } from '../../sync/sync.service';
3
+ import { TextControlConfig } from '../controls/text-control.config';
4
+ import { Converter } from './converter.abstract';
5
+ import * as i0 from "@angular/core";
6
+ export declare class CardholderNameConverter extends Converter {
7
+ constructor(syncService: SyncService);
8
+ protected createControlConfig(field: Field): TextControlConfig;
9
+ protected getAutocomplete(): string;
10
+ protected getDataType(): string;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<CardholderNameConverter, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<CardholderNameConverter>;
13
+ }
@@ -0,0 +1 @@
1
+ export declare const cpfNameRegex: RegExp;
@@ -0,0 +1,13 @@
1
+ import { ValidatorFn } from '@angular/forms';
2
+ import { Field } from '../../field.interface';
3
+ import { SyncService } from '../../sync/sync.service';
4
+ import { TextControlConfig } from '../controls/text-control.config';
5
+ import { Converter } from './converter.abstract';
6
+ import * as i0 from "@angular/core";
7
+ export declare class CpfNameConverter extends Converter {
8
+ constructor(syncService: SyncService);
9
+ getValidators(field: Field): ValidatorFn[];
10
+ protected createControlConfig(field: Field): TextControlConfig;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<CpfNameConverter, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<CpfNameConverter>;
13
+ }
@@ -0,0 +1,11 @@
1
+ import { Field } from '../../field.interface';
2
+ import { SyncService } from '../../sync/sync.service';
3
+ import { TextControlConfig } from '../controls/text-control.config';
4
+ import { Converter } from './converter.abstract';
5
+ import * as i0 from "@angular/core";
6
+ export declare class CpfNumberConverter extends Converter {
7
+ constructor(syncService: SyncService);
8
+ protected createControlConfig(field: Field): TextControlConfig;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<CpfNumberConverter, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<CpfNumberConverter>;
11
+ }
@@ -0,0 +1,18 @@
1
+ import { Converter } from './converter.abstract';
2
+ import { SyncService } from '../../sync/sync.service';
3
+ import { ValidatorFn } from '@angular/forms';
4
+ import { Field } from '../../field.interface';
5
+ import { FormState } from '../form-state.interface';
6
+ import { TextControlConfig } from '../controls/text-control.config';
7
+ import * as i0 from "@angular/core";
8
+ export declare class CvvConverter extends Converter {
9
+ private readonly maxFieldLength;
10
+ constructor(syncService: SyncService);
11
+ getValidators(): ValidatorFn[];
12
+ protected createControlConfig(field: Field, formState: FormState): TextControlConfig;
13
+ protected getAutocomplete(): string;
14
+ protected getDataType(): string;
15
+ protected shouldHideUserInput(): boolean;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<CvvConverter, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<CvvConverter>;
18
+ }
@@ -0,0 +1,13 @@
1
+ import { ValidatorFn } from '@angular/forms';
2
+ import { Converter } from './converter.abstract';
3
+ import { SyncService } from '../../sync/sync.service';
4
+ import { Field } from '../../field.interface';
5
+ import { PhoneControlConfig } from '../controls/phone-control.config';
6
+ import * as i0 from "@angular/core";
7
+ export declare class PhoneConverter extends Converter {
8
+ constructor(syncService: SyncService);
9
+ getValidators(field: Field): ValidatorFn[];
10
+ protected createControlConfig(field: Field): PhoneControlConfig;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<PhoneConverter, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<PhoneConverter>;
13
+ }
@@ -0,0 +1,3 @@
1
+ export interface StreetNumberFormState {
2
+ country?: string;
3
+ }
@@ -0,0 +1,14 @@
1
+ import { StreetNumberFormState } from './street-number-from-state.interface';
2
+ import { ValidatorFn } from '@angular/forms';
3
+ import { Field } from '../../../field.interface';
4
+ import { SyncService } from '../../../sync/sync.service';
5
+ import { TextControlConfig } from '../../controls/text-control.config';
6
+ import { Converter } from '../converter.abstract';
7
+ import * as i0 from "@angular/core";
8
+ export declare class StreetNumberConverter extends Converter {
9
+ constructor(syncService: SyncService);
10
+ getValidators(field: Field, formState?: StreetNumberFormState): ValidatorFn[];
11
+ protected createControlConfig(field: Field): TextControlConfig;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<StreetNumberConverter, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<StreetNumberConverter>;
14
+ }
@@ -0,0 +1,11 @@
1
+ import { Field } from '../../field.interface';
2
+ import { SyncService } from '../../sync/sync.service';
3
+ import { TextControlConfig } from '../controls/text-control.config';
4
+ import { Converter } from './converter.abstract';
5
+ import * as i0 from "@angular/core";
6
+ export declare class TextConverter extends Converter {
7
+ constructor(syncService: SyncService);
8
+ protected createControlConfig(field: Field): TextControlConfig;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextConverter, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<TextConverter>;
11
+ }
@@ -1,7 +1,8 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "@angular/forms";
3
+ import * as i2 from "./validators/validators.module";
3
4
  export declare class FormModule {
4
5
  static ɵfac: i0.ɵɵFactoryDeclaration<FormModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormModule, never, [typeof i1.ReactiveFormsModule], never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormModule, never, [typeof i1.ReactiveFormsModule, typeof i2.ValidatorsModule], never>;
6
7
  static ɵinj: i0.ɵɵInjectorDeclaration<FormModule>;
7
8
  }
@@ -0,0 +1,2 @@
1
+ import { ValidatorFn } from '@angular/forms';
2
+ export declare const birthdateValidator: ValidatorFn;
@@ -0,0 +1,12 @@
1
+ import { ValidationErrors } from '@angular/forms';
2
+ import { CreditCardService } from '../../../credit-card/credit-card.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class CreditCardMinLengthValidator {
5
+ private readonly creditService;
6
+ constructor(creditService: CreditCardService);
7
+ validate: (field: {
8
+ value: string;
9
+ }) => ValidationErrors | null;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<CreditCardMinLengthValidator, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<CreditCardMinLengthValidator>;
12
+ }
@@ -0,0 +1 @@
1
+ export declare function isEmptyInputValue(value: string | null | undefined): boolean;
@@ -0,0 +1,6 @@
1
+ import { ValidatorFn } from '../validator-fn.type';
2
+ /**
3
+ * Checks number match Luhn algorithm.
4
+ * Based on http://en.wikipedia.org/wiki/Luhn.
5
+ */
6
+ export declare const luhnFormulaValidator: ValidatorFn;
@@ -0,0 +1,2 @@
1
+ import { ValidatorFn } from './validator-fn.type';
2
+ export declare function maxLengthValidator(maxLength: number): ValidatorFn;
@@ -0,0 +1,2 @@
1
+ import { ValidatorFn } from '@angular/forms';
2
+ export declare function minLengthValidator(minLength: number): ValidatorFn;
@@ -0,0 +1,2 @@
1
+ import { ValidatorFn } from './validator-fn.type';
2
+ export declare function phoneValidator(): ValidatorFn;
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/common";
3
+ export declare class ValidatorsModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<ValidatorsModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ValidatorsModule, never, [typeof i1.CommonModule], never>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<ValidatorsModule>;
7
+ }
@@ -1,4 +1,5 @@
1
1
  export interface InitializeRequestParams {
2
+ [fieldName: `xps_${string}`]: unknown;
2
3
  access_token: string;
3
4
  pid: string;
4
5
  refer: string;
@@ -1,21 +1,23 @@
1
1
  import { CountryService } from '../../country/country.service';
2
- import { SecureApiClient } from '../../http/secure-api/secure-api.service';
2
+ import { EncryptCreditCardService } from '../../encrypt-credit-card/encrypt-credit-card.service';
3
3
  import { SettingsService } from '../../settings/settings.service';
4
4
  import { PaymentConfig } from '../payment-config.interface';
5
- import { InitializeResponseFactory } from './initialize-response.token';
6
- import { InitializeResponse } from './initialize-response.class';
7
5
  import { NextActionService } from '../actions/next-action.service';
6
+ import { XpsApiService } from '../xps-api/xps-api.service';
7
+ import { InitializeResponseFactory } from './response/initialize-response.token';
8
+ import { InitializeResponse } from './response/initialize-response.class';
8
9
  import * as i0 from "@angular/core";
9
10
  export declare class InitializeService {
10
11
  protected readonly responseFactory: InitializeResponseFactory;
11
- private readonly secureApi;
12
+ private readonly xpsApiService;
12
13
  private readonly settingsService;
13
14
  private readonly countryService;
14
15
  private readonly nextActionService;
15
- private readonly apiRoute;
16
+ private readonly encryptCreditCardService;
16
17
  private readonly ps4ReferId;
17
- constructor(responseFactory: InitializeResponseFactory, secureApi: SecureApiClient, settingsService: SettingsService, countryService: CountryService, nextActionService: NextActionService);
18
+ constructor(responseFactory: InitializeResponseFactory, xpsApiService: XpsApiService, settingsService: SettingsService, countryService: CountryService, nextActionService: NextActionService, encryptCreditCardService: EncryptCreditCardService);
18
19
  request(config: PaymentConfig): Promise<InitializeResponse>;
20
+ private setCreditCardEncryptKey;
19
21
  static ɵfac: i0.ɵɵFactoryDeclaration<InitializeService, never>;
20
22
  static ɵprov: i0.ɵɵInjectableDeclaration<InitializeService>;
21
23
  }
@@ -1,5 +1,5 @@
1
- import { PaymentForm } from '../payment-form.interface';
2
- import { XpsResponse } from '../xps-response.interface';
1
+ import { PaymentForm } from '../../payment-form.interface';
2
+ import { XpsResponse } from '../../xps-response.interface';
3
3
  export declare class InitializeResponse {
4
4
  readonly paymentForm: PaymentForm | null;
5
5
  constructor(response: XpsResponse);
@@ -1,5 +1,5 @@
1
- import { ValidationErrors } from '@angular/forms';
2
1
  import { Observable } from 'rxjs';
2
+ import { ValidationErrors } from '@angular/forms';
3
3
  import { NextAction } from './actions/next-action.interface';
4
4
  import { Status } from './status/status.interface';
5
5
  import { Field } from './field.interface';
@@ -13,7 +13,7 @@ export interface Payment {
13
13
  getFields(): Field[];
14
14
  validate(field: Field): Promise<ValidationErrors | null>;
15
15
  getFinanceDetails(): FinanceDetails | null;
16
- runThreeDs(): NextAction;
16
+ runThreeDs(): void;
17
17
  getStatus(): Promise<Status>;
18
18
  form: {
19
19
  fieldsStatus$: Observable<FormFieldsStatus>;