@xsolla/payment-client-core 0.1.2 → 0.1.4

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 (126) 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/payment/actions/next-action.interface.mjs +1 -1
  26. package/esm2020/lib/core/payment/actions/next-actions.mjs +1 -3
  27. package/esm2020/lib/core/payment/actions/show-fields/show-fields.action.token.mjs +3 -2
  28. package/esm2020/lib/core/payment/credit-card-state/credit-card-state.interface.mjs +2 -0
  29. package/esm2020/lib/core/payment/credit-card-state/credit-card-state.service.mjs +14 -0
  30. package/esm2020/lib/core/payment/form/controls/card-number-control.config.mjs +10 -0
  31. package/esm2020/lib/core/payment/form/converters/card-number.converter.mjs +45 -0
  32. package/esm2020/lib/core/payment/form/converters/converter.abstract.mjs +8 -6
  33. package/esm2020/lib/core/payment/form/converters/converters-map.mjs +3 -1
  34. package/esm2020/lib/core/payment/form/converters/email.converter.mjs +3 -3
  35. package/esm2020/lib/core/payment/form/converters/zip.converter.mjs +4 -5
  36. package/esm2020/lib/core/payment/form/field-status.interface.mjs +2 -0
  37. package/esm2020/lib/core/payment/form/form-fields-status.interface.mjs +2 -0
  38. package/esm2020/lib/core/payment/form/form.module.mjs +8 -4
  39. package/esm2020/lib/core/payment/form/input-event.enum.mjs +6 -0
  40. package/esm2020/lib/core/payment/form/validators/async-validator-fn.type.mjs +2 -0
  41. package/esm2020/lib/core/payment/form/validators/convert.function.mjs +6 -14
  42. package/esm2020/lib/core/payment/form/validators/credit-card-min-length.validator.mjs +32 -0
  43. package/esm2020/lib/core/payment/form/validators/email-validator.mjs +3 -4
  44. package/esm2020/lib/core/payment/form/validators/is-empty-input-value.function.mjs +4 -0
  45. package/esm2020/lib/core/payment/form/validators/luhn-formula-validator/luhn-formula.validator.mjs +40 -0
  46. package/esm2020/lib/core/payment/form/validators/required-validator.mjs +3 -4
  47. package/esm2020/lib/core/payment/form/validators/validation-error.interface.mjs +1 -1
  48. package/esm2020/lib/core/payment/form/validators/validators.module.mjs +18 -0
  49. package/esm2020/lib/core/payment/payment.interface.mjs +1 -1
  50. package/esm2020/lib/core/payment/payment.service.mjs +57 -46
  51. package/esm2020/lib/core/payment/sync/field-async-validation.interface.mjs +2 -0
  52. package/esm2020/lib/core/payment/sync/sync-response.class.mjs +7 -4
  53. package/esm2020/lib/core/payment/sync/sync.service.mjs +14 -11
  54. package/esm2020/lib/core/payment/xps-response.interface.mjs +1 -1
  55. package/esm2020/lib/core/type-guards/is-string.function.mjs +4 -0
  56. package/esm2020/lib/core-library.service.mjs +20 -7
  57. package/fesm2015/xsolla-payment-client-core.mjs +559 -120
  58. package/fesm2015/xsolla-payment-client-core.mjs.map +1 -1
  59. package/fesm2020/xsolla-payment-client-core.mjs +558 -119
  60. package/fesm2020/xsolla-payment-client-core.mjs.map +1 -1
  61. package/lib/core/credit-card/credit-card-settings.interface.d.ts +10 -0
  62. package/lib/core/credit-card/credit-card-types.enum.d.ts +18 -0
  63. package/lib/core/credit-card/credit-card.interface.d.ts +9 -0
  64. package/lib/core/credit-card/credit-card.service.d.ts +11 -0
  65. package/lib/core/credit-card/credit-cards-map.const.d.ts +5 -0
  66. package/lib/core/credit-card/default-mask.const.d.ts +1 -0
  67. package/lib/core/credit-card/four-block-mask.const.d.ts +1 -0
  68. package/lib/core/credit-card/ordered-cards-settings.const.d.ts +12 -0
  69. package/lib/core/credit-card/types/american-express.d.ts +2 -0
  70. package/lib/core/credit-card/types/aura.d.ts +2 -0
  71. package/lib/core/credit-card/types/china-union-pay.d.ts +2 -0
  72. package/lib/core/credit-card/types/dankort.d.ts +2 -0
  73. package/lib/core/credit-card/types/default-card.d.ts +2 -0
  74. package/lib/core/credit-card/types/diners-clubs.d.ts +2 -0
  75. package/lib/core/credit-card/types/discover.d.ts +2 -0
  76. package/lib/core/credit-card/types/elo.d.ts +2 -0
  77. package/lib/core/credit-card/types/hipercard.d.ts +2 -0
  78. package/lib/core/credit-card/types/jcb.d.ts +2 -0
  79. package/lib/core/credit-card/types/maestro.d.ts +2 -0
  80. package/lib/core/credit-card/types/mastercard.d.ts +2 -0
  81. package/lib/core/credit-card/types/mir.d.ts +2 -0
  82. package/lib/core/credit-card/types/naranja.d.ts +2 -0
  83. package/lib/core/credit-card/types/postepay.d.ts +2 -0
  84. package/lib/core/credit-card/types/visa.d.ts +2 -0
  85. package/lib/core/payment/actions/next-action.interface.d.ts +1 -2
  86. package/lib/core/payment/credit-card-state/credit-card-state.interface.d.ts +3 -0
  87. package/lib/core/payment/credit-card-state/credit-card-state.service.d.ts +7 -0
  88. package/lib/core/payment/form/controls/card-number-control.config.d.ts +11 -0
  89. package/lib/core/payment/form/converters/card-number.converter.d.ts +19 -0
  90. package/lib/core/payment/form/converters/converter.abstract.d.ts +4 -1
  91. package/lib/core/payment/form/converters/email.converter.d.ts +1 -1
  92. package/lib/core/payment/form/field-status.interface.d.ts +7 -0
  93. package/lib/core/payment/form/form-fields-status.interface.d.ts +4 -0
  94. package/lib/core/payment/form/form.module.d.ts +2 -1
  95. package/lib/core/payment/form/validators/async-validator-fn.type.d.ts +4 -0
  96. package/lib/core/payment/form/validators/convert.function.d.ts +1 -1
  97. package/lib/core/payment/form/validators/credit-card-min-length.validator.d.ts +12 -0
  98. package/lib/core/payment/form/validators/email-validator.d.ts +1 -1
  99. package/lib/core/payment/form/validators/is-empty-input-value.function.d.ts +1 -0
  100. package/lib/core/payment/form/validators/luhn-formula-validator/luhn-formula.validator.d.ts +6 -0
  101. package/lib/core/payment/form/validators/required-validator.d.ts +1 -1
  102. package/lib/core/payment/form/validators/validation-error.interface.d.ts +0 -1
  103. package/lib/core/payment/form/validators/validators.module.d.ts +7 -0
  104. package/lib/core/payment/payment.interface.d.ts +3 -1
  105. package/lib/core/payment/payment.service.d.ts +12 -4
  106. package/lib/core/payment/sync/field-async-validation.interface.d.ts +7 -0
  107. package/lib/core/payment/sync/sync-response.class.d.ts +2 -4
  108. package/lib/core/payment/sync/sync.service.d.ts +4 -0
  109. package/lib/core/payment/xps-response.interface.d.ts +1 -0
  110. package/lib/core/type-guards/is-string.function.d.ts +1 -0
  111. package/lib/core-library.service.d.ts +10 -1
  112. package/package.json +1 -1
  113. package/xsolla-payment-client-core-0.1.4.tgz +0 -0
  114. package/esm2020/lib/core/payment/actions/show-field-state/show-field-state.action.class.mjs +0 -12
  115. package/esm2020/lib/core/payment/actions/show-field-state/show-field-state.action.token.mjs +0 -13
  116. package/esm2020/lib/core/payment/actions/show-field-state/show-field-state.action.type.mjs +0 -2
  117. package/esm2020/lib/core/payment/form/input-events.enum.mjs +0 -6
  118. package/esm2020/lib/core/payment/form/validators/errors-codes.enum.mjs +0 -8
  119. package/esm2020/lib/core/payment/show-field-state.interface.mjs +0 -2
  120. package/lib/core/payment/actions/show-field-state/show-field-state.action.class.d.ts +0 -8
  121. package/lib/core/payment/actions/show-field-state/show-field-state.action.token.d.ts +0 -4
  122. package/lib/core/payment/actions/show-field-state/show-field-state.action.type.d.ts +0 -11
  123. package/lib/core/payment/form/validators/errors-codes.enum.d.ts +0 -6
  124. package/lib/core/payment/show-field-state.interface.d.ts +0 -8
  125. package/xsolla-payment-client-core-0.1.2.tgz +0 -0
  126. /package/lib/core/payment/form/{input-events.enum.d.ts → input-event.enum.d.ts} +0 -0
@@ -1,8 +0,0 @@
1
- import { FormControlStatus } from '@angular/forms';
2
- import { ValidationError as ControlValidationError } from './form/validators/validation-error.interface';
3
- export interface ShowFieldState {
4
- fieldName: string;
5
- fieldState: FormControlStatus;
6
- error: ControlValidationError | null;
7
- isFocused?: boolean;
8
- }