@paydock/client-sdk 1.127.1-beta → 1.131.0-beta

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 (288) hide show
  1. package/README.md +1466 -3901
  2. package/bundles/index.cjs +2845 -539
  3. package/bundles/index.cjs.d.ts +408 -196
  4. package/bundles/index.mjs +2844 -539
  5. package/bundles/index.mjs.d.ts +408 -196
  6. package/bundles/types/api/api-internal.d.ts +3 -1
  7. package/bundles/types/api/api-internal.d.ts.map +1 -1
  8. package/bundles/types/api/api-payment-source-internal.d.ts +8 -0
  9. package/bundles/types/api/api-payment-source-internal.d.ts.map +1 -0
  10. package/bundles/types/checkout/checkout.d.ts +8 -14
  11. package/bundles/types/checkout/checkout.d.ts.map +1 -1
  12. package/bundles/types/checkout/helpers/instruction-debugger.d.ts +4 -0
  13. package/bundles/types/checkout/helpers/instruction-debugger.d.ts.map +1 -0
  14. package/bundles/types/checkout/helpers/instruction-handler.d.ts +4 -4
  15. package/bundles/types/checkout/helpers/instruction-handler.d.ts.map +1 -1
  16. package/bundles/types/checkout/images/card-icons.d.ts +10 -0
  17. package/bundles/types/checkout/images/card-icons.d.ts.map +1 -0
  18. package/bundles/types/checkout/index.d.ts +2 -1
  19. package/bundles/types/checkout/index.d.ts.map +1 -1
  20. package/bundles/types/checkout/models/checkout.models.d.ts +14 -0
  21. package/bundles/types/checkout/models/checkout.models.d.ts.map +1 -0
  22. package/bundles/types/checkout/utils/checkout-styles.util.d.ts +2 -0
  23. package/bundles/types/checkout/utils/checkout-styles.util.d.ts.map +1 -0
  24. package/bundles/types/checkout/utils/checkout-version-handler.util.d.ts +3 -0
  25. package/bundles/types/checkout/utils/checkout-version-handler.util.d.ts.map +1 -0
  26. package/bundles/types/checkout/v1/helpers/widget-structure-handler.d.ts +10 -0
  27. package/bundles/types/checkout/v1/helpers/widget-structure-handler.d.ts.map +1 -0
  28. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/index.d.ts.map +1 -1
  29. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.afterpay_checkout_form.show.d.ts +2 -2
  30. package/bundles/types/checkout/v1/instructions/instruction.afterpay_checkout_form.show.d.ts.map +1 -0
  31. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.afterpay_wallet_form.show.d.ts +3 -2
  32. package/bundles/types/checkout/v1/instructions/instruction.afterpay_wallet_form.show.d.ts.map +1 -0
  33. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.apple_pay_form.show.d.ts +3 -2
  34. package/bundles/types/checkout/v1/instructions/instruction.apple_pay_form.show.d.ts.map +1 -0
  35. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.bank_account_form.show.d.ts +2 -2
  36. package/bundles/types/checkout/v1/instructions/instruction.bank_account_form.show.d.ts.map +1 -0
  37. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.canvas_3ds.show.d.ts.map +1 -1
  38. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.card_form.show.d.ts +1 -1
  39. package/bundles/types/checkout/v1/instructions/instruction.card_form.show.d.ts.map +1 -0
  40. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.disable_payment_method_event.emit.d.ts +2 -2
  41. package/bundles/types/checkout/v1/instructions/instruction.disable_payment_method_event.emit.d.ts.map +1 -0
  42. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.fraud_service.show.d.ts.map +1 -1
  43. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.generic.show_message.d.ts +1 -1
  44. package/bundles/types/checkout/v1/instructions/instruction.generic.show_message.d.ts.map +1 -0
  45. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.google_pay_form.show.d.ts +3 -2
  46. package/bundles/types/checkout/v1/instructions/instruction.google_pay_form.show.d.ts.map +1 -0
  47. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.merchant_event.emit.d.ts +2 -2
  48. package/bundles/types/checkout/v1/instructions/instruction.merchant_event.emit.d.ts.map +1 -0
  49. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.payment_methods.show.d.ts.map +1 -1
  50. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.paypal_form.show.d.ts +2 -2
  51. package/bundles/types/checkout/v1/instructions/instruction.paypal_form.show.d.ts.map +1 -0
  52. package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.zip_checkout_form.show.d.ts +3 -2
  53. package/bundles/types/checkout/v1/instructions/instruction.zip_checkout_form.show.d.ts.map +1 -0
  54. package/bundles/types/checkout/v1/layout-widgets/additionals.d.ts +3 -0
  55. package/bundles/types/checkout/v1/layout-widgets/additionals.d.ts.map +1 -0
  56. package/bundles/types/checkout/v1/layout-widgets/default-variables.enum.d.ts.map +1 -0
  57. package/bundles/types/checkout/{layout-widgets → v1/layout-widgets}/message.d.ts +6 -6
  58. package/bundles/types/checkout/v1/layout-widgets/message.d.ts.map +1 -0
  59. package/bundles/types/checkout/v1/layout-widgets/payment-methods-template.d.ts.map +1 -0
  60. package/bundles/types/checkout/{layout-widgets → v1/layout-widgets}/payment-methods.d.ts +5 -5
  61. package/bundles/types/checkout/v1/layout-widgets/payment-methods.d.ts.map +1 -0
  62. package/bundles/types/checkout/v1/layout-widgets/payment-template.d.ts.map +1 -0
  63. package/bundles/types/checkout/v1/models/checkout.models.d.ts +5 -0
  64. package/bundles/types/checkout/v1/models/checkout.models.d.ts.map +1 -0
  65. package/bundles/types/checkout/v3/components/go-back-to-payments-button/go-back-to-payments.d.ts +4 -0
  66. package/bundles/types/checkout/v3/components/go-back-to-payments-button/go-back-to-payments.d.ts.map +1 -0
  67. package/bundles/types/checkout/v3/components/list-items-wrapper/list-items-wrapper.d.ts +8 -0
  68. package/bundles/types/checkout/v3/components/list-items-wrapper/list-items-wrapper.d.ts.map +1 -0
  69. package/bundles/types/checkout/v3/components/payment-methods-list/payment-methods-list.d.ts +3 -0
  70. package/bundles/types/checkout/v3/components/payment-methods-list/payment-methods-list.d.ts.map +1 -0
  71. package/bundles/types/checkout/v3/components/payments-wrapper/payments-wrapper.d.ts +9 -0
  72. package/bundles/types/checkout/v3/components/payments-wrapper/payments-wrapper.d.ts.map +1 -0
  73. package/bundles/types/checkout/v3/helpers/widget-structure-handler.d.ts +10 -0
  74. package/bundles/types/checkout/v3/helpers/widget-structure-handler.d.ts.map +1 -0
  75. package/bundles/types/checkout/v3/instructions/index.d.ts +4 -0
  76. package/bundles/types/checkout/v3/instructions/index.d.ts.map +1 -0
  77. package/bundles/types/checkout/v3/instructions/instruction.afterpay_checkout_form.show.d.ts +20 -0
  78. package/bundles/types/checkout/v3/instructions/instruction.afterpay_checkout_form.show.d.ts.map +1 -0
  79. package/bundles/types/checkout/v3/instructions/instruction.afterpay_wallet_form.show.d.ts +17 -0
  80. package/bundles/types/checkout/v3/instructions/instruction.afterpay_wallet_form.show.d.ts.map +1 -0
  81. package/bundles/types/checkout/v3/instructions/instruction.apple_pay_form.show.d.ts +17 -0
  82. package/bundles/types/checkout/v3/instructions/instruction.apple_pay_form.show.d.ts.map +1 -0
  83. package/bundles/types/checkout/v3/instructions/instruction.bank_account_form.show.d.ts +14 -0
  84. package/bundles/types/checkout/v3/instructions/instruction.bank_account_form.show.d.ts.map +1 -0
  85. package/bundles/types/checkout/v3/instructions/instruction.canvas_3ds.show.d.ts +12 -0
  86. package/bundles/types/checkout/v3/instructions/instruction.canvas_3ds.show.d.ts.map +1 -0
  87. package/bundles/types/checkout/v3/instructions/instruction.card_form.show.d.ts +24 -0
  88. package/bundles/types/checkout/v3/instructions/instruction.card_form.show.d.ts.map +1 -0
  89. package/bundles/types/checkout/v3/instructions/instruction.disable_payment_method_event.emit.d.ts +21 -0
  90. package/bundles/types/checkout/v3/instructions/instruction.disable_payment_method_event.emit.d.ts.map +1 -0
  91. package/bundles/types/checkout/v3/instructions/instruction.fraud_service.show.d.ts +21 -0
  92. package/bundles/types/checkout/v3/instructions/instruction.fraud_service.show.d.ts.map +1 -0
  93. package/bundles/types/checkout/v3/instructions/instruction.generic.show_message.d.ts +27 -0
  94. package/bundles/types/checkout/v3/instructions/instruction.generic.show_message.d.ts.map +1 -0
  95. package/bundles/types/checkout/v3/instructions/instruction.google_pay_form.show.d.ts +17 -0
  96. package/bundles/types/checkout/v3/instructions/instruction.google_pay_form.show.d.ts.map +1 -0
  97. package/bundles/types/checkout/v3/instructions/instruction.merchant_event.emit.d.ts +18 -0
  98. package/bundles/types/checkout/v3/instructions/instruction.merchant_event.emit.d.ts.map +1 -0
  99. package/bundles/types/checkout/v3/instructions/instruction.payment_methods.show.d.ts +23 -0
  100. package/bundles/types/checkout/v3/instructions/instruction.payment_methods.show.d.ts.map +1 -0
  101. package/bundles/types/checkout/v3/instructions/instruction.paypal_form.show.d.ts +19 -0
  102. package/bundles/types/checkout/v3/instructions/instruction.paypal_form.show.d.ts.map +1 -0
  103. package/bundles/types/checkout/v3/instructions/instruction.saved_card_form.show.d.ts +22 -0
  104. package/bundles/types/checkout/v3/instructions/instruction.saved_card_form.show.d.ts.map +1 -0
  105. package/bundles/types/checkout/v3/instructions/instruction.zip_checkout_form.show.d.ts +19 -0
  106. package/bundles/types/checkout/v3/instructions/instruction.zip_checkout_form.show.d.ts.map +1 -0
  107. package/bundles/types/checkout/v3/models/card.model.d.ts +20 -0
  108. package/bundles/types/checkout/v3/models/card.model.d.ts.map +1 -0
  109. package/bundles/types/checkout/v3/models/checkout-styles.model.d.ts +9 -0
  110. package/bundles/types/checkout/v3/models/checkout-styles.model.d.ts.map +1 -0
  111. package/bundles/types/checkout/v3/models/checkout.models.d.ts +4 -0
  112. package/bundles/types/checkout/v3/models/checkout.models.d.ts.map +1 -0
  113. package/bundles/types/checkout/v3/models/payment-methods.model.d.ts +13 -0
  114. package/bundles/types/checkout/v3/models/payment-methods.model.d.ts.map +1 -0
  115. package/bundles/types/checkout/v3/styles/additionals.d.ts +3 -0
  116. package/bundles/types/checkout/v3/styles/additionals.d.ts.map +1 -0
  117. package/bundles/types/checkout/v3/utils/checkout-customisation-styles.util.d.ts +3 -0
  118. package/bundles/types/checkout/v3/utils/checkout-customisation-styles.util.d.ts.map +1 -0
  119. package/bundles/types/components/param.d.ts +7 -0
  120. package/bundles/types/components/param.d.ts.map +1 -1
  121. package/bundles/types/configs/env/environment.uba.d.ts +28 -0
  122. package/bundles/types/configs/env/environment.uba.d.ts.map +1 -0
  123. package/bundles/types/constants/validators.d.ts +2 -2
  124. package/bundles/types/constants/validators.d.ts.map +1 -1
  125. package/bundles/types/fraud-prevention/providers/forter/templates/{forter-snippet-2025-02-06t14:19:34z.template.d.ts → forter-snippet-20250206141934.template.d.ts} +1 -1
  126. package/bundles/types/fraud-prevention/providers/forter/templates/forter-snippet-20250206141934.template.d.ts.map +1 -0
  127. package/bundles/types/helper/card-scheme.d.ts +76 -0
  128. package/bundles/types/helper/card-scheme.d.ts.map +1 -0
  129. package/bundles/types/index-cba.d.ts +11 -11
  130. package/bundles/types/index-cba.d.ts.map +1 -1
  131. package/bundles/types/index.d.ts +12 -11
  132. package/bundles/types/index.d.ts.map +1 -1
  133. package/bundles/types/open-wallets/base/base-open-wallet.d.ts +33 -0
  134. package/bundles/types/open-wallets/base/base-open-wallet.d.ts.map +1 -0
  135. package/bundles/types/open-wallets/enum/event.enum.d.ts +8 -0
  136. package/bundles/types/open-wallets/enum/event.enum.d.ts.map +1 -0
  137. package/bundles/types/open-wallets/index.d.ts +6 -0
  138. package/bundles/types/open-wallets/index.d.ts.map +1 -0
  139. package/bundles/types/open-wallets/interfaces/base-service-config.interface.d.ts +30 -0
  140. package/bundles/types/open-wallets/interfaces/base-service-config.interface.d.ts.map +1 -0
  141. package/bundles/types/open-wallets/interfaces/base-wallet-meta.interface.d.ts +5 -0
  142. package/bundles/types/open-wallets/interfaces/base-wallet-meta.interface.d.ts.map +1 -0
  143. package/bundles/types/open-wallets/interfaces/events.interface.d.ts +34 -0
  144. package/bundles/types/open-wallets/interfaces/events.interface.d.ts.map +1 -0
  145. package/bundles/types/open-wallets/interfaces/index.d.ts +8 -0
  146. package/bundles/types/open-wallets/interfaces/index.d.ts.map +1 -0
  147. package/bundles/types/open-wallets/interfaces/payment-source.interface.d.ts +5 -0
  148. package/bundles/types/open-wallets/interfaces/payment-source.interface.d.ts.map +1 -0
  149. package/bundles/types/open-wallets/services/index.d.ts +9 -0
  150. package/bundles/types/open-wallets/services/index.d.ts.map +1 -0
  151. package/bundles/types/open-wallets/types/index.d.ts +5 -0
  152. package/bundles/types/open-wallets/types/index.d.ts.map +1 -0
  153. package/bundles/types/open-wallets/types/ott-backend.type.d.ts +26 -0
  154. package/bundles/types/open-wallets/types/ott-backend.type.d.ts.map +1 -0
  155. package/bundles/types/open-wallets/types/ott-response.type.d.ts +8 -0
  156. package/bundles/types/open-wallets/types/ott-response.type.d.ts.map +1 -0
  157. package/bundles/types/open-wallets/types/wallet-type.type.d.ts +6 -0
  158. package/bundles/types/open-wallets/types/wallet-type.type.d.ts.map +1 -0
  159. package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts +2 -1
  160. package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts.map +1 -1
  161. package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts +6 -4
  162. package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts.map +1 -1
  163. package/bundles/types/shared/services/configuration-validation/configuration-validation.d.ts.map +1 -1
  164. package/bundles/types/shared-ui/components/button.d.ts +23 -0
  165. package/bundles/types/shared-ui/components/button.d.ts.map +1 -0
  166. package/bundles/types/shared-ui/components/item-info-blocks.d.ts +20 -0
  167. package/bundles/types/shared-ui/components/item-info-blocks.d.ts.map +1 -0
  168. package/bundles/types/shared-ui/components/list-item.d.ts +13 -0
  169. package/bundles/types/shared-ui/components/list-item.d.ts.map +1 -0
  170. package/bundles/types/shared-ui/components/loading-spinner.d.ts +12 -0
  171. package/bundles/types/shared-ui/components/loading-spinner.d.ts.map +1 -0
  172. package/bundles/types/shared-ui/components/message-card.d.ts +19 -0
  173. package/bundles/types/shared-ui/components/message-card.d.ts.map +1 -0
  174. package/bundles/types/shared-ui/components/svg-container.d.ts +2 -0
  175. package/bundles/types/shared-ui/components/svg-container.d.ts.map +1 -0
  176. package/bundles/types/shared-ui/components/widget-wrapper.d.ts +2 -0
  177. package/bundles/types/shared-ui/components/widget-wrapper.d.ts.map +1 -0
  178. package/bundles/types/shared-ui/models/widget-root.model.d.ts +12 -0
  179. package/bundles/types/shared-ui/models/widget-root.model.d.ts.map +1 -0
  180. package/bundles/types/shared-ui/styles/widget-root-styles.d.ts +3 -0
  181. package/bundles/types/shared-ui/styles/widget-root-styles.d.ts.map +1 -0
  182. package/bundles/types/shared-ui/utils/loading-spinner.util.d.ts +8 -0
  183. package/bundles/types/shared-ui/utils/loading-spinner.util.d.ts.map +1 -0
  184. package/bundles/types/wallet-buttons/enums.d.ts +2 -1
  185. package/bundles/types/wallet-buttons/enums.d.ts.map +1 -1
  186. package/bundles/types/wallet-buttons/index.d.ts +6 -6
  187. package/bundles/types/wallet-buttons/wallet-buttons.d.ts +14 -8
  188. package/bundles/types/wallet-buttons/wallet-buttons.d.ts.map +1 -1
  189. package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts +2 -2
  190. package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts.map +1 -1
  191. package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts +3 -3
  192. package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts.map +1 -1
  193. package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts +2 -2
  194. package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts.map +1 -1
  195. package/bundles/types/wallet-buttons/wallet-services/flypay.wallet-service.d.ts +7 -7
  196. package/bundles/types/wallet-buttons/wallet-services/flypay.wallet-service.d.ts.map +1 -1
  197. package/bundles/types/wallet-buttons/wallet-services/google.wallet-service.d.ts.map +1 -1
  198. package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts +2 -2
  199. package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts.map +1 -1
  200. package/bundles/types/wallet-buttons/wallet-services/stripe.wallet-service.d.ts +3 -3
  201. package/bundles/types/wallet-buttons/wallet-services/stripe.wallet-service.d.ts.map +1 -1
  202. package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts +6 -6
  203. package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts.map +1 -1
  204. package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts.map +1 -1
  205. package/bundles/types/wallet-buttons-express/index.d.ts +3 -3
  206. package/bundles/types/wallet-buttons-express/index.d.ts.map +1 -1
  207. package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts +1 -0
  208. package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts.map +1 -1
  209. package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts +2 -2
  210. package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts.map +1 -1
  211. package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts +2 -2
  212. package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts.map +1 -1
  213. package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts +2 -2
  214. package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts.map +1 -1
  215. package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts +2 -2
  216. package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts.map +1 -1
  217. package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts +2 -2
  218. package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts.map +1 -1
  219. package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts +2 -2
  220. package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts.map +1 -1
  221. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-data.interface.d.ts.map +1 -1
  222. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-response.interface.d.ts.map +1 -1
  223. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-data.interface.d.ts.map +1 -1
  224. package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts +2 -2
  225. package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts.map +1 -1
  226. package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts +20 -0
  227. package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts.map +1 -1
  228. package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts.map +1 -1
  229. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts +5 -5
  230. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts.map +1 -1
  231. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-data.d.ts +3 -0
  232. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-data.d.ts.map +1 -1
  233. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-method.type.d.ts.map +1 -1
  234. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts +1 -1
  235. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts.map +1 -1
  236. package/bundles/types/wallet-buttons-express/types/shipping-event-to-response.type.d.ts +4 -4
  237. package/bundles/types/wallet-buttons-express/types/shipping-event-to-response.type.d.ts.map +1 -1
  238. package/bundles/types/widget/configuration.d.ts +2 -0
  239. package/bundles/types/widget/configuration.d.ts.map +1 -1
  240. package/bundles/types/widget/html-multi-widget.d.ts +7 -5
  241. package/bundles/types/widget/html-multi-widget.d.ts.map +1 -1
  242. package/bundles/types/widget/html-widget.d.ts +1 -0
  243. package/bundles/types/widget/html-widget.d.ts.map +1 -1
  244. package/bundles/types/widget/multi-widget.d.ts +16 -0
  245. package/bundles/types/widget/multi-widget.d.ts.map +1 -1
  246. package/bundles/widget.umd.js +2845 -539
  247. package/bundles/widget.umd.js.d.ts +408 -196
  248. package/bundles/widget.umd.js.min.d.ts +408 -196
  249. package/bundles/widget.umd.min.js +1 -1
  250. package/docs/api-checkout-button.md +0 -370
  251. package/docs/api-widget.md +0 -2110
  252. package/docs/checkout-examples.md +2 -127
  253. package/docs/license.md +1 -1
  254. package/docs/wallet-buttons-examples.md +3 -134
  255. package/docs/wallet-buttons-express-examples.md +528 -0
  256. package/docs/wallet-buttons.md +11 -10
  257. package/docs/wallet-cba-buttons-examples.md +1 -1
  258. package/package.json +3 -2
  259. package/slate.md +5 -524
  260. package/bundles/types/checkout/instructions/index.d.ts +0 -3
  261. package/bundles/types/checkout/instructions/index.d.ts.map +0 -1
  262. package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts.map +0 -1
  263. package/bundles/types/checkout/instructions/v1/instruction.afterpay_wallet_form.show.d.ts.map +0 -1
  264. package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts.map +0 -1
  265. package/bundles/types/checkout/instructions/v1/instruction.bank_account_form.show.d.ts.map +0 -1
  266. package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts.map +0 -1
  267. package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts.map +0 -1
  268. package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts.map +0 -1
  269. package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts.map +0 -1
  270. package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts.map +0 -1
  271. package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts.map +0 -1
  272. package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts.map +0 -1
  273. package/bundles/types/checkout/layout-widgets/additionals.d.ts +0 -3
  274. package/bundles/types/checkout/layout-widgets/additionals.d.ts.map +0 -1
  275. package/bundles/types/checkout/layout-widgets/default-variables.enum.d.ts.map +0 -1
  276. package/bundles/types/checkout/layout-widgets/message.d.ts.map +0 -1
  277. package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts.map +0 -1
  278. package/bundles/types/checkout/layout-widgets/payment-methods.d.ts.map +0 -1
  279. package/bundles/types/checkout/layout-widgets/payment-template.d.ts.map +0 -1
  280. package/bundles/types/fraud-prevention/providers/forter/templates/forter-snippet-2025-02-06t14:19:34z.template.d.ts.map +0 -1
  281. package/docs/api-vault-display.md +0 -94
  282. /package/bundles/types/checkout/{instructions/v1 → v1/instructions}/index.d.ts +0 -0
  283. /package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.canvas_3ds.show.d.ts +0 -0
  284. /package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.fraud_service.show.d.ts +0 -0
  285. /package/bundles/types/checkout/{instructions/v1 → v1/instructions}/instruction.payment_methods.show.d.ts +0 -0
  286. /package/bundles/types/checkout/{layout-widgets → v1/layout-widgets}/default-variables.enum.d.ts +0 -0
  287. /package/bundles/types/checkout/{layout-widgets → v1/layout-widgets}/payment-methods-template.d.ts +0 -0
  288. /package/bundles/types/checkout/{layout-widgets → v1/layout-widgets}/payment-template.d.ts +0 -0
@@ -239,7 +239,7 @@ declare const CARD_VALIDATORS: {
239
239
  readonly NUMBER: "cardNumberValidator";
240
240
  readonly PIN: "cardPinValidator";
241
241
  };
242
- type CardValidatorValue = typeof CARD_VALIDATORS[keyof typeof CARD_VALIDATORS];
242
+ type CardValidatorValue = (typeof CARD_VALIDATORS)[keyof typeof CARD_VALIDATORS];
243
243
  /**
244
244
  * List of available generic form field validators and their definition
245
245
  *
@@ -253,7 +253,7 @@ type CardValidatorValue = typeof CARD_VALIDATORS[keyof typeof CARD_VALIDATORS];
253
253
  declare const GENERIC_VALIDATORS: {
254
254
  readonly REQUIRED: "required";
255
255
  };
256
- type GenericValidatorValue = typeof GENERIC_VALIDATORS[keyof typeof GENERIC_VALIDATORS];
256
+ type GenericValidatorValue = (typeof GENERIC_VALIDATORS)[keyof typeof GENERIC_VALIDATORS];
257
257
 
258
258
  declare const FORM_FIELD: {
259
259
  CARD_NAME: string;
@@ -281,6 +281,9 @@ declare const FORM_FIELD: {
281
281
  ADDRESS_CITY: string;
282
282
  ADDRESS_POSTCODE: string;
283
283
  ADDRESS_COMPANY: string;
284
+ SAVE_CARD_CONSENT_ACCEPTED: string;
285
+ ENABLE_CVV_TOKENIZATION_MODE: string;
286
+ CARD_NUMBER_LAST4: string;
284
287
  };
285
288
  declare const STYLE: {
286
289
  BACKGROUND_COLOR: string;
@@ -363,6 +366,7 @@ interface IFormPropertyOption {
363
366
  address_city?: string;
364
367
  address_postcode?: string;
365
368
  address_company?: string;
369
+ card_number_last4?: string;
366
370
  }
367
371
  interface IFormValues extends IFormPropertyOption {
368
372
  }
@@ -455,6 +459,9 @@ interface IParams extends IStyles$1, ITexts, ICommonParams {
455
459
  vault_display_token?: string;
456
460
  sdk_origin?: boolean;
457
461
  hide_ui_errors?: boolean;
462
+ save_card_consent_accepted?: string;
463
+ enable_cvv_tokenization_mode?: string;
464
+ card_number_last4?: string;
458
465
  }
459
466
  interface ICountryPhoneMask {
460
467
  preferred_countries?: string[];
@@ -562,7 +569,7 @@ interface VaultDisplayStyle {
562
569
  font_size?: string;
563
570
  font_family?: string;
564
571
  }
565
- interface IApplePayShippingOption {
572
+ interface IApplePayShippingOption$1 {
566
573
  id: string;
567
574
  label: string;
568
575
  detail: string;
@@ -582,7 +589,7 @@ interface IPayPalShippingOption {
582
589
  currency: string;
583
590
  type: 'SHIPPING' | 'PICKUP';
584
591
  }
585
- type IShippingOption = IApplePayShippingOption | IGooglePayShippingOption | IPayPalShippingOption;
592
+ type IShippingOption = IApplePayShippingOption$1 | IGooglePayShippingOption | IPayPalShippingOption;
586
593
  declare enum WALLET_TYPE {
587
594
  GOOGLE = "google",
588
595
  APPLE = "apple",
@@ -721,6 +728,7 @@ interface IGeneral {
721
728
  meta?: IPayPalMeta;
722
729
  label?: string;
723
730
  dynamic_fields_position?: boolean;
731
+ disable_result_message?: boolean;
724
732
  }
725
733
  interface IPredefinedFields {
726
734
  gateway_id: string;
@@ -844,6 +852,7 @@ declare class Configuration {
844
852
  private getUrl;
845
853
  private getDefaultGatewayUrl;
846
854
  setGiftCardSchemeData(giftCardScheme: any, processingNetwork: any): void;
855
+ disableResultMessage(): void;
847
856
  }
848
857
 
849
858
  /**
@@ -1215,6 +1224,22 @@ declare class MultiWidget {
1215
1224
  setLanguage(code: any): void;
1216
1225
  getLink(): Link;
1217
1226
  protected handleErrorEvent(event: EventTypes, error: IEventError, purpose: PURPOSE): void;
1227
+ /**
1228
+ * The Current method can set a consent checkbox to save card
1229
+ *
1230
+ * @example
1231
+ * widget.enableSaveCardConsentCheckbox();
1232
+ *
1233
+ */
1234
+ enableSaveCardConsentCheckbox(): void;
1235
+ /**
1236
+ * The Current method enable the cvv mode for card form
1237
+ *
1238
+ * @example
1239
+ * widget.enableCvvTokenizationMode();
1240
+ *
1241
+ */
1242
+ enableCvvTokenizationMode(): void;
1218
1243
  }
1219
1244
 
1220
1245
  interface ITriggerData {
@@ -1274,6 +1299,8 @@ interface IEventMetaData extends IEventData$1 {
1274
1299
  interface IEventFinishData extends IEventData$1 {
1275
1300
  payment_source: string;
1276
1301
  payment_source_token?: string;
1302
+ card_scheme?: string;
1303
+ save_card_consent_accepted?: boolean;
1277
1304
  }
1278
1305
  /**
1279
1306
  * Interface of data from validation event.
@@ -1690,6 +1717,7 @@ declare class HtmlWidget extends HtmlMultiWidget {
1690
1717
  */
1691
1718
  setMeta(meta: IPayPalMeta | IBamboraMeta): void;
1692
1719
  setGiftCardScheme(giftCardScheme: any, processingNetwork: any): void;
1720
+ disableResultMessage(): void;
1693
1721
  }
1694
1722
 
1695
1723
  /**
@@ -1714,7 +1742,7 @@ interface IEventData$1 {
1714
1742
  ref_id?: string;
1715
1743
  error?: IEventError;
1716
1744
  }
1717
- declare const EVENT$1: {
1745
+ declare const EVENT$2: {
1718
1746
  readonly AFTER_LOAD: "afterLoad";
1719
1747
  readonly SUBMIT: "submit";
1720
1748
  readonly FINISH: "finish";
@@ -1746,7 +1774,7 @@ declare const EVENT$1: {
1746
1774
  readonly DISPATCH_SUCCESS: "dispatchSuccess";
1747
1775
  readonly DISPATCH_ERROR: "dispatchError";
1748
1776
  };
1749
- type EventTypes = typeof EVENT$1[keyof typeof EVENT$1];
1777
+ type EventTypes = typeof EVENT$2[keyof typeof EVENT$2];
1750
1778
  interface Listener {
1751
1779
  event: string;
1752
1780
  listener: (event: any) => void;
@@ -2845,110 +2873,6 @@ declare class HtmlPaymentSourceWidget extends PaymentSourceWidget {
2845
2873
  onSelectInsert(selector: string, dataType: string): void;
2846
2874
  }
2847
2875
 
2848
- declare const TYPE: {
2849
- EXTERNAL_CHECKOUT_TOKEN: string;
2850
- CHECKOUT_TOKEN: string;
2851
- BANK_ACCOUNT: string;
2852
- CARD: string;
2853
- };
2854
- interface IBody {
2855
- gateway_id: string;
2856
- type: string;
2857
- checkout_token?: string;
2858
- }
2859
- declare class Builder extends HttpCore {
2860
- private body;
2861
- constructor(gatewayID: string, checkoutToken: string, type: string);
2862
- constructor(gatewayID: string, externalCheckoutToken: string, type: string);
2863
- constructor(gatewayID: string, card: any, type: string);
2864
- constructor(gatewayID: string, bankAccount: any, type: string);
2865
- protected getLink(): string;
2866
- send(accessToken: string, cb: (token: string) => void, errorCb?: (error: any) => void): void;
2867
- getConfigs(): IBody;
2868
- }
2869
-
2870
- interface IBaseSRCMeta {
2871
- customizations?: IStyles;
2872
- dpa_data?: {
2873
- dpa_presentation_name?: string;
2874
- dpa_uri?: string;
2875
- };
2876
- dpa_transaction_options?: {
2877
- dpa_locale?: string;
2878
- dpa_accepted_billing_countries?: string[];
2879
- consumer_name_requested?: boolean;
2880
- consumer_email_address_requested?: boolean;
2881
- consumer_phone_number_requested?: boolean;
2882
- transaction_amount?: {
2883
- transaction_amount?: number;
2884
- transaction_currency_code?: string;
2885
- };
2886
- merchant_order_id?: string;
2887
- merchant_category_code?: string;
2888
- merchant_country_code?: string;
2889
- };
2890
- }
2891
- interface PhoneNumber {
2892
- country_code: string;
2893
- phone_number: string;
2894
- }
2895
- interface Customer {
2896
- email?: string;
2897
- phone?: {
2898
- country_code?: string;
2899
- phone?: string;
2900
- };
2901
- first_name?: string;
2902
- last_name?: string;
2903
- }
2904
- interface DpaConfig {
2905
- dpa_id: string;
2906
- dpa_name: string;
2907
- dpa_supported_card_schemes: ('MASTERCARD' | 'VISA' | 'AMEX' | 'DISCOVER')[];
2908
- mode: 'sandbox' | 'live';
2909
- }
2910
- interface IClickToPayMeta extends IBaseSRCMeta {
2911
- dpa_data?: IBaseSRCMeta['dpa_data'] & {
2912
- dpa_address?: string;
2913
- dpa_email_address?: string;
2914
- dpa_phone_number?: PhoneNumber;
2915
- dpa_logo_uri?: string;
2916
- dpa_supported_email_address?: string;
2917
- dpa_supported_phone_number?: PhoneNumber;
2918
- dpa_uri?: string;
2919
- dpa_support_uri?: string;
2920
- application_type?: 'WEB_BROWSER' | 'MOBILE_APP';
2921
- };
2922
- disable_summary_screen?: boolean;
2923
- co_brand_names?: string[];
2924
- checkout_experience?: 'WITHIN_CHECKOUT' | 'PAYMENT_SETTINGS';
2925
- services?: 'INLINE_CHECKOUT' | 'INLINE_INSTALLMENTS';
2926
- dpa_transaction_options?: IBaseSRCMeta['dpa_transaction_options'] & {
2927
- dpa_billing_preference?: MASTERCARD_DPA_SHIPPING_BILLING_PREFERENCE;
2928
- payment_options?: Array<{
2929
- dynamic_data_type?: string;
2930
- }>;
2931
- order_type?: MASTERCARD_ORDER_TYPE;
2932
- three_ds_preference?: string;
2933
- confirm_payment?: boolean;
2934
- };
2935
- customer?: Customer;
2936
- unaccepted_card_type?: 'CREDIT' | 'DEBIT';
2937
- recognition_token?: string;
2938
- dpa_config?: DpaConfig;
2939
- hold_for_customer_data?: boolean;
2940
- }
2941
- type MASTERCARD_DPA_SHIPPING_BILLING_PREFERENCE = 'FULL' | 'POSTAL_COUNTRY' | 'NONE';
2942
- type MASTERCARD_ORDER_TYPE = 'SPLIT_SHIPMENT' | 'PREFERRED_CARD';
2943
- interface IStyles {
2944
- primary_button_color?: string;
2945
- secondary_button_color?: string;
2946
- primary_button_text_color?: string;
2947
- secondary_button_text_color?: string;
2948
- font_family?: string;
2949
- enable_src_popup?: boolean;
2950
- }
2951
-
2952
2876
  declare class ApiChargeInternal {
2953
2877
  protected api: ApiInternal;
2954
2878
  constructor(api: ApiInternal);
@@ -3046,6 +2970,15 @@ interface ProcessAuthenticationResponse {
3046
2970
  };
3047
2971
  }
3048
2972
 
2973
+ declare class ApiCheckoutInternal {
2974
+ protected api: ApiInternal;
2975
+ constructor(api: ApiInternal);
2976
+ instructions(): Observable<object>;
2977
+ private getInstructionLink;
2978
+ callback(payload: Object): Promise<Object>;
2979
+ status(id: string): Promise<Object>;
2980
+ }
2981
+
3049
2982
  declare class ApiGatewayInternal {
3050
2983
  protected api: ApiInternal;
3051
2984
  constructor(api: ApiInternal);
@@ -3057,6 +2990,36 @@ interface GetWalletConfigResponse {
3057
2990
  credentials?: object;
3058
2991
  }
3059
2992
 
2993
+ interface CreateOTTResponse {
2994
+ status: number;
2995
+ error: string | null;
2996
+ resource: {
2997
+ type: string;
2998
+ data: {
2999
+ token: string;
3000
+ '3ds_required': boolean;
3001
+ };
3002
+ };
3003
+ }
3004
+ interface CreateOTTRequest {
3005
+ checkoutData: CheckoutResponse;
3006
+ }
3007
+ type CheckoutResponse = ApplePayJS.ApplePayPaymentAuthorizedEvent | google.payments.api.PaymentAuthorizationResult;
3008
+ declare enum CheckoutActionCode {
3009
+ COMPLETE = "COMPLETE",
3010
+ CANCEL = "CANCEL",
3011
+ ERROR = "ERROR",
3012
+ CHANGE_CARD = "CHANGE_CARD",
3013
+ ADD_CARD = "ADD_CARD",
3014
+ SWITCH_CONSUMER = "SWITCH_CONSUMER"
3015
+ }
3016
+
3017
+ declare class ApiPaymentSourceInternal {
3018
+ protected api: ApiInternal;
3019
+ constructor(api: ApiInternal);
3020
+ createOTT(payload: CreateOTTRequest): Promise<CreateOTTResponse>;
3021
+ }
3022
+
3060
3023
  declare class ApiServiceInternal {
3061
3024
  protected api: ApiInternal;
3062
3025
  constructor(api: ApiInternal);
@@ -3071,20 +3034,242 @@ interface GetConfigResponse {
3071
3034
  certificate_passphrase: string;
3072
3035
  }
3073
3036
 
3074
- declare class ApiCheckoutInternal {
3075
- protected api: ApiInternal;
3076
- constructor(api: ApiInternal);
3077
- instructions(): Observable<object>;
3078
- private getInstructionLink;
3079
- callback(payload: Object): Promise<Object>;
3080
- status(id: string): Promise<Object>;
3081
- }
3082
-
3083
3037
  declare class ApiInternal extends ApiBase {
3084
3038
  charge(): ApiChargeInternal;
3085
3039
  service(): ApiServiceInternal;
3086
3040
  checkout(): ApiCheckoutInternal;
3087
3041
  gateway(): ApiGatewayInternal;
3042
+ paymentSource(): ApiPaymentSourceInternal;
3043
+ }
3044
+
3045
+ type WalletType = WALLET_TYPES;
3046
+ declare enum WALLET_TYPES {
3047
+ APPLE_PAY = "ApplePay",
3048
+ GOOGLE_PAY = "GooglePay"
3049
+ }
3050
+
3051
+ interface OTTResponse {
3052
+ token: string;
3053
+ token_type: string;
3054
+ three_ds_required?: boolean;
3055
+ wallet_type: WalletType;
3056
+ }
3057
+
3058
+ interface BaseServiceConfig<T = Record<string, unknown>> {
3059
+ type: string;
3060
+ credentials?: T;
3061
+ meta?: Record<string, unknown>;
3062
+ }
3063
+ interface ApplePayServiceConfig {
3064
+ apple: {
3065
+ merchant: {
3066
+ merchant_id: string;
3067
+ domain_name: string;
3068
+ display_name: string;
3069
+ };
3070
+ certificate: {
3071
+ certificate_id: string;
3072
+ private_key: string;
3073
+ };
3074
+ };
3075
+ }
3076
+ interface GooglePayServiceConfig {
3077
+ google_pay: {
3078
+ merchant: {
3079
+ merchant_id: string;
3080
+ merchant_name: string;
3081
+ };
3082
+ gateway_merchant_id: string;
3083
+ allowed_auth_methods: string[];
3084
+ allowed_card_networks: string[];
3085
+ };
3086
+ }
3087
+
3088
+ interface BaseWalletMeta$1 {
3089
+ amount: number;
3090
+ currency: string;
3091
+ }
3092
+
3093
+ interface BaseEventData<T> {
3094
+ event: string;
3095
+ chargeId?: string;
3096
+ data?: T | undefined;
3097
+ }
3098
+
3099
+ declare enum EVENT$1 {
3100
+ ON_CLICK = "onClick",
3101
+ SUCCESS = "success",
3102
+ UNAVAILABLE = "unavailable",
3103
+ ERROR = "error"
3104
+ }
3105
+ type OpenWalletEventType = EVENT$1;
3106
+
3107
+ interface OnClickEventData$1 {
3108
+ request_type: string;
3109
+ wallet_type?: string;
3110
+ meta?: Record<string, unknown>;
3111
+ }
3112
+ interface OnCrateOTTSuccessfulEventData {
3113
+ token: string;
3114
+ token_type: string;
3115
+ checkoutData?: CheckoutResponse | unknown;
3116
+ three_ds_required?: boolean;
3117
+ wallet_type: string;
3118
+ }
3119
+ interface OnCreateOTTErrorEventData extends BaseEventData<{
3120
+ message?: string;
3121
+ code?: string;
3122
+ }> {
3123
+ event: EVENT$1.ERROR;
3124
+ }
3125
+ interface OnUnavailableEventData$1 {
3126
+ wallet_type: string;
3127
+ reason: string;
3128
+ details?: Record<string, unknown>;
3129
+ }
3130
+ interface OnErrorEventData$1 {
3131
+ error: Error;
3132
+ context?: {
3133
+ operation?: string;
3134
+ wallet_type?: string;
3135
+ };
3136
+ }
3137
+
3138
+ interface WalletPaymentSource {
3139
+ load(): void;
3140
+ setMeta(meta: object): void;
3141
+ }
3142
+
3143
+ declare abstract class BaseOpenWallet<T extends BaseWalletMeta$1> implements WalletPaymentSource {
3144
+ protected container: Container;
3145
+ protected api: ApiInternal;
3146
+ protected env: string;
3147
+ protected serviceId: string;
3148
+ protected meta: T;
3149
+ protected eventEmitter: EventEmitter;
3150
+ abstract readonly walletType: WalletType;
3151
+ constructor(selector: string, publicKeyOrAccessToken: string, serviceId: string, meta: T, requiredMetaFields: string[]);
3152
+ private getApiAuthType;
3153
+ setEnv(env: string, alias?: string): void;
3154
+ private validateRequiredMetaFields;
3155
+ abstract load(): void;
3156
+ abstract setMeta(meta: object): void;
3157
+ onClick(handler: (data: OnClickEventData$1) => Promise<string>): () => void;
3158
+ onSuccess(handler?: (data: OnCrateOTTSuccessfulEventData) => void): Promise<unknown> | (() => void);
3159
+ onUnavailable(handler?: (data: OnUnavailableEventData$1) => void): Promise<unknown> | (() => void);
3160
+ onError(handler?: (data: OnErrorEventData$1) => void): Promise<unknown> | (() => void);
3161
+ protected getServiceWalletConfig<K>(): Promise<BaseServiceConfig<K>>;
3162
+ protected executeOpenWalletCallback<K, U extends {
3163
+ request_type: string;
3164
+ }>(data: U): Promise<K>;
3165
+ protected createOTT(data: CreateOTTRequest): Promise<CreateOTTResponse>;
3166
+ protected handleOnError(error: Error): void;
3167
+ protected handleOnUnavailable(reason?: string): void;
3168
+ destroy(): void;
3169
+ }
3170
+
3171
+ declare const TYPE: {
3172
+ EXTERNAL_CHECKOUT_TOKEN: string;
3173
+ CHECKOUT_TOKEN: string;
3174
+ BANK_ACCOUNT: string;
3175
+ CARD: string;
3176
+ };
3177
+ interface IBody {
3178
+ gateway_id: string;
3179
+ type: string;
3180
+ checkout_token?: string;
3181
+ }
3182
+ declare class Builder extends HttpCore {
3183
+ private body;
3184
+ constructor(gatewayID: string, checkoutToken: string, type: string);
3185
+ constructor(gatewayID: string, externalCheckoutToken: string, type: string);
3186
+ constructor(gatewayID: string, card: any, type: string);
3187
+ constructor(gatewayID: string, bankAccount: any, type: string);
3188
+ protected getLink(): string;
3189
+ send(accessToken: string, cb: (token: string) => void, errorCb?: (error: any) => void): void;
3190
+ getConfigs(): IBody;
3191
+ }
3192
+
3193
+ interface IBaseSRCMeta {
3194
+ customizations?: IStyles;
3195
+ dpa_data?: {
3196
+ dpa_presentation_name?: string;
3197
+ dpa_uri?: string;
3198
+ };
3199
+ dpa_transaction_options?: {
3200
+ dpa_locale?: string;
3201
+ dpa_accepted_billing_countries?: string[];
3202
+ consumer_name_requested?: boolean;
3203
+ consumer_email_address_requested?: boolean;
3204
+ consumer_phone_number_requested?: boolean;
3205
+ transaction_amount?: {
3206
+ transaction_amount?: number;
3207
+ transaction_currency_code?: string;
3208
+ };
3209
+ merchant_order_id?: string;
3210
+ merchant_category_code?: string;
3211
+ merchant_country_code?: string;
3212
+ };
3213
+ }
3214
+ interface PhoneNumber {
3215
+ country_code: string;
3216
+ phone_number: string;
3217
+ }
3218
+ interface Customer {
3219
+ email?: string;
3220
+ phone?: {
3221
+ country_code?: string;
3222
+ phone?: string;
3223
+ };
3224
+ first_name?: string;
3225
+ last_name?: string;
3226
+ }
3227
+ interface DpaConfig {
3228
+ dpa_id: string;
3229
+ dpa_name: string;
3230
+ dpa_supported_card_schemes: ('MASTERCARD' | 'VISA' | 'AMEX' | 'DISCOVER')[];
3231
+ mode: 'sandbox' | 'live';
3232
+ }
3233
+ interface IClickToPayMeta extends IBaseSRCMeta {
3234
+ dpa_data?: IBaseSRCMeta['dpa_data'] & {
3235
+ dpa_address?: string;
3236
+ dpa_email_address?: string;
3237
+ dpa_phone_number?: PhoneNumber;
3238
+ dpa_logo_uri?: string;
3239
+ dpa_supported_email_address?: string;
3240
+ dpa_supported_phone_number?: PhoneNumber;
3241
+ dpa_uri?: string;
3242
+ dpa_support_uri?: string;
3243
+ application_type?: 'WEB_BROWSER' | 'MOBILE_APP';
3244
+ };
3245
+ disable_summary_screen?: boolean;
3246
+ co_brand_names?: string[];
3247
+ checkout_experience?: 'WITHIN_CHECKOUT' | 'PAYMENT_SETTINGS';
3248
+ services?: 'INLINE_CHECKOUT' | 'INLINE_INSTALLMENTS';
3249
+ dpa_transaction_options?: IBaseSRCMeta['dpa_transaction_options'] & {
3250
+ dpa_billing_preference?: MASTERCARD_DPA_SHIPPING_BILLING_PREFERENCE;
3251
+ payment_options?: Array<{
3252
+ dynamic_data_type?: string;
3253
+ }>;
3254
+ order_type?: MASTERCARD_ORDER_TYPE;
3255
+ three_ds_preference?: string;
3256
+ confirm_payment?: boolean;
3257
+ };
3258
+ customer?: Customer;
3259
+ unaccepted_card_type?: 'CREDIT' | 'DEBIT';
3260
+ recognition_token?: string;
3261
+ dpa_config?: DpaConfig;
3262
+ hold_for_customer_data?: boolean;
3263
+ }
3264
+ type MASTERCARD_DPA_SHIPPING_BILLING_PREFERENCE = 'FULL' | 'POSTAL_COUNTRY' | 'NONE';
3265
+ type MASTERCARD_ORDER_TYPE = 'SPLIT_SHIPMENT' | 'PREFERRED_CARD';
3266
+ interface IStyles {
3267
+ primary_button_color?: string;
3268
+ secondary_button_color?: string;
3269
+ primary_button_text_color?: string;
3270
+ secondary_button_text_color?: string;
3271
+ font_family?: string;
3272
+ enable_src_popup?: boolean;
3088
3273
  }
3089
3274
 
3090
3275
  type CustomerData = Customer;
@@ -3203,6 +3388,7 @@ declare class ClickToPay extends SRC {
3203
3388
  protected public_key_or_access_token: string;
3204
3389
  protected meta: IClickToPayMeta;
3205
3390
  protected holdingForCustomerData: boolean;
3391
+ private pendingCustomerData;
3206
3392
  /** @constructs */ constructor(iframe_selector: string, service_id: string, public_key_or_access_token: string, meta: IClickToPayMeta);
3207
3393
  /**
3208
3394
  * The final method after configuring the SRC to start the load process of Click To Pay checkout
@@ -3296,6 +3482,64 @@ declare class VaultDisplayWidget {
3296
3482
  load(): void;
3297
3483
  }
3298
3484
 
3485
+ declare enum EventEnum {
3486
+ UNAVAILABLE = "unavailable",
3487
+ UPDATE = "update",
3488
+ PAYMENT_SUCCESSFUL = "paymentSuccessful",
3489
+ PAYMENT_ERROR = "paymentError",
3490
+ PAYMENT_IN_REVIEW = "paymentInReview",
3491
+ AUTH_TOKENS_CHANGED = "authTokensChanged",
3492
+ ON_CLICK = "onClick",
3493
+ ON_CHECKOUT_OPEN = "onCheckoutOpen",
3494
+ ON_CHECKOUT_CLOSE = "onCheckoutClose",
3495
+ ON_WALLET_LOADED = "onWalletLoaded"
3496
+ }
3497
+
3498
+ interface IWalletPaymentSuccessful {
3499
+ id: string;
3500
+ amount: number;
3501
+ currency: string;
3502
+ status: string;
3503
+ payer_name?: string;
3504
+ payer_email?: string;
3505
+ payer_phone?: string;
3506
+ }
3507
+ interface IWalletUnavailable {
3508
+ wallet?: WALLET_TYPE;
3509
+ }
3510
+ interface IWalletOnClick {
3511
+ attachResult: (result: Promise<void> | boolean) => void;
3512
+ }
3513
+ interface IWalletUpdate {
3514
+ wallet_response_code?: string;
3515
+ wallet_order_id?: string;
3516
+ wallet_session_id?: string;
3517
+ payment_source?: {
3518
+ wallet_payment_method_id?: string;
3519
+ card_number_last4?: string;
3520
+ card_scheme?: string;
3521
+ };
3522
+ wallet_loyalty_account?: {
3523
+ id?: string;
3524
+ barcode?: string;
3525
+ };
3526
+ shipping?: {
3527
+ address_line1?: string;
3528
+ address_line2?: string;
3529
+ address_postcode?: string;
3530
+ address_city?: string;
3531
+ address_state?: string;
3532
+ address_country?: string;
3533
+ address_company?: string;
3534
+ post_office_box_number?: string;
3535
+ wallet_address_id?: string;
3536
+ wallet_address_name?: string;
3537
+ wallet_address_created_timestamp?: string;
3538
+ wallet_address_updated_timestamp?: string;
3539
+ };
3540
+ selected_shipping_option?: IShippingOption;
3541
+ }
3542
+
3299
3543
  interface IWalletServiceUpdateData {
3300
3544
  amount: number;
3301
3545
  shipping_options?: IShippingOption[];
@@ -3348,8 +3592,7 @@ interface IPaymentMethod {
3348
3592
  };
3349
3593
  };
3350
3594
  }
3351
- interface IUnavailableWalletEventBody {
3352
- }
3595
+ type IUnavailableWalletEventBody = Record<string, never>;
3353
3596
  interface IPaymentMethodSelectedWalletEventBody {
3354
3597
  data: IPaymentMethod;
3355
3598
  onSuccess: () => void;
@@ -3362,64 +3605,7 @@ interface IWalletService {
3362
3605
  enable(): void;
3363
3606
  disable(): void;
3364
3607
  setEnv(env: string): any;
3365
- on(eventName: string, cb?: (data: IUnavailableWalletEventBody | IPaymentMethodSelectedWalletEventBody | any) => void): any;
3366
- }
3367
-
3368
- interface IWalletPaymentSuccessful {
3369
- id: string;
3370
- amount: number;
3371
- currency: string;
3372
- status: string;
3373
- payer_name?: string;
3374
- payer_email?: string;
3375
- payer_phone?: string;
3376
- }
3377
- interface IWalletUnavailable {
3378
- wallet?: WALLET_TYPE;
3379
- }
3380
- interface IWalletOnClick {
3381
- attachResult: (result: Promise<void> | boolean) => void;
3382
- }
3383
- interface IWalletUpdate {
3384
- wallet_response_code?: string;
3385
- wallet_order_id?: string;
3386
- wallet_session_id?: string;
3387
- payment_source?: {
3388
- wallet_payment_method_id?: string;
3389
- card_number_last4?: string;
3390
- card_scheme?: string;
3391
- };
3392
- wallet_loyalty_account?: {
3393
- id?: string;
3394
- barcode?: string;
3395
- };
3396
- shipping?: {
3397
- address_line1?: string;
3398
- address_line2?: string;
3399
- address_postcode?: string;
3400
- address_city?: string;
3401
- address_state?: string;
3402
- address_country?: string;
3403
- address_company?: string;
3404
- post_office_box_number?: string;
3405
- wallet_address_id?: string;
3406
- wallet_address_name?: string;
3407
- wallet_address_created_timestamp?: string;
3408
- wallet_address_updated_timestamp?: string;
3409
- };
3410
- selected_shipping_option?: IShippingOption;
3411
- }
3412
-
3413
- declare enum EventEnum {
3414
- UNAVAILABLE = "unavailable",
3415
- UPDATE = "update",
3416
- PAYMENT_SUCCESSFUL = "paymentSuccessful",
3417
- PAYMENT_ERROR = "paymentError",
3418
- PAYMENT_IN_REVIEW = "paymentInReview",
3419
- AUTH_TOKENS_CHANGED = "authTokensChanged",
3420
- ON_CLICK = "onClick",
3421
- ON_CHECKOUT_OPEN = "onCheckoutOpen",
3422
- ON_CHECKOUT_CLOSE = "onCheckoutClose"
3608
+ on(eventName: string, cb?: (data: IUnavailableWalletEventBody | IPaymentMethodSelectedWalletEventBody | unknown) => void): any;
3423
3609
  }
3424
3610
 
3425
3611
  interface IEventData<T = any> {
@@ -3442,7 +3628,7 @@ interface IWalletUpdateData {
3442
3628
  success: boolean;
3443
3629
  }
3444
3630
  /**
3445
- * Class WalletButtons to work with different E-Wallets within html (currently supports Apple Pay, Google Pay, Google Pay™ and Apple Pay via Stripe, Flypay, Flypay V2, Paypal, Afterpay)
3631
+ * Class WalletButtons to work with different E-Wallets within html (currently supports Apple Pay, Google Pay, Google Pay™ and Apple Pay via Stripe, Flypay V2, Paypal, Afterpay)
3446
3632
  * @constructor
3447
3633
  *
3448
3634
  * @example
@@ -3477,7 +3663,7 @@ declare class WalletButtons {
3477
3663
  load(): void;
3478
3664
  /**
3479
3665
  * Triggers the update process of the wallet, if available.
3480
- * Currently supported by Flypay, Paypal and ApplePay/GooglePay via MPGS Wallets.
3666
+ * Currently supported by Paypal and ApplePay/GooglePay via MPGS Wallets.
3481
3667
  *
3482
3668
  * @example
3483
3669
  * var button = new WalletButtons(
@@ -3700,6 +3886,7 @@ declare class WalletButtons {
3700
3886
  */
3701
3887
  onCheckoutClose(handler?: (err: IEventData) => void): Promise<unknown> | (() => void);
3702
3888
  private setupServiceCallbacks;
3889
+ private setupOnWalletLoadedCallback;
3703
3890
  private setupUnavailableCallback;
3704
3891
  private setupUpdateCallback;
3705
3892
  private setupOnClickCallback;
@@ -3713,7 +3900,7 @@ declare class WalletButtons {
3713
3900
  private setupAuthTokensChangedCallback;
3714
3901
  }
3715
3902
 
3716
- type Instruction = new (selector: string, formSelector: string, api: ApiInternal, checkoutWidget: Checkout) => InstructionHandler & InstructionDestroyable & InstructionDecorated;
3903
+ type Instruction = new (selector: string, api: ApiInternal, checkoutWidget: Checkout, formSelector?: string) => InstructionHandler & InstructionDestroyable & InstructionDecorated;
3717
3904
  interface InstructionHandleable {
3718
3905
  handle(payload: object, eventEmitter: EventEmitter): void;
3719
3906
  }
@@ -3725,13 +3912,13 @@ interface InstructionDestroyable {
3725
3912
  }
3726
3913
  declare abstract class InstructionHandler implements InstructionHandleable, InstructionDestroyable, InstructionDecorated {
3727
3914
  selector: string;
3728
- formSelector: string;
3729
3915
  api: ApiInternal;
3730
3916
  protected checkoutWidget?: Checkout;
3731
- constructor(selector: string, formSelector: string, api: ApiInternal, checkoutWidget?: Checkout);
3917
+ formSelector?: string;
3918
+ constructor(selector: string, api: ApiInternal, checkoutWidget?: Checkout, formSelector?: string);
3732
3919
  instruction: string;
3733
3920
  abstract handle(context: object, eventEmitter?: any): void;
3734
- abstract destroy(): void;
3921
+ destroy(): void;
3735
3922
  getEnv(instruction_token: string): string;
3736
3923
  }
3737
3924
 
@@ -3758,7 +3945,7 @@ interface IntentTokenPayload {
3758
3945
  * var widget = new Checkout('#widget', 'intent_token');
3759
3946
  **/
3760
3947
  declare class Checkout {
3761
- protected formSelector: string;
3948
+ protected selector: string;
3762
3949
  protected intentToken: string;
3763
3950
  protected debug: boolean;
3764
3951
  protected window: Window;
@@ -3769,11 +3956,12 @@ declare class Checkout {
3769
3956
  protected checkoutApi: ApiCheckoutInternal;
3770
3957
  protected instructions: InstructionModule;
3771
3958
  protected currentInstruction: InstructionDestroyable & InstructionHandleable;
3959
+ private checkoutVersionHandler;
3772
3960
  private timeoutTimer;
3773
3961
  private requestInFlight;
3774
3962
  private inTimeoutRange;
3775
3963
  private checkoutFinished;
3776
- constructor(formSelector: string, intentToken: string, debug?: boolean);
3964
+ constructor(selector: string, intentToken: string, debug?: boolean);
3777
3965
  fetchInstruction(): void;
3778
3966
  finaliseCheckout(): void;
3779
3967
  private setupTimeoutTimer;
@@ -3818,10 +4006,11 @@ declare class Checkout {
3818
4006
  */
3819
4007
  onPaymentExpired(handler: (data: IEventData$1) => void): () => void;
3820
4008
  createWidgetStructure(): void;
3821
- private setStyles;
4009
+ private changeLoadingSpinnerVisibility;
3822
4010
  }
4011
+
3823
4012
  declare class InstructionDebugger {
3824
- constructor(selector: string, formSelector: string, version: number, instructionName: string, context: object, token?: string);
4013
+ constructor(selector: string, version: number, instructionName: string, context: object, token?: string);
3825
4014
  }
3826
4015
 
3827
4016
  declare enum EVENT {
@@ -3836,12 +4025,6 @@ declare enum EVENT {
3836
4025
  ON_SHIPPING_OPTIONS_CHANGE = "onShippingOptionsChange"
3837
4026
  }
3838
4027
 
3839
- interface BaseEventData<T> {
3840
- event: string;
3841
- chargeId?: string;
3842
- data?: T | undefined;
3843
- }
3844
-
3845
4028
  interface OnClickEventData extends BaseEventData<undefined> {
3846
4029
  event: EVENT.ON_CLICK;
3847
4030
  }
@@ -3870,6 +4053,13 @@ interface OnPaymentErrorEventData extends BaseEventData<{
3870
4053
  event: EVENT.PAYMENT_ERROR;
3871
4054
  }
3872
4055
 
4056
+ interface Contact {
4057
+ first_name?: string;
4058
+ last_name?: string;
4059
+ email?: string;
4060
+ phone?: string;
4061
+ phone2?: string;
4062
+ }
3873
4063
  interface WalletCaptureRequest {
3874
4064
  payment_method_id?: string;
3875
4065
  customer: {
@@ -3890,6 +4080,18 @@ interface WalletCaptureRequest {
3890
4080
  wallet_express?: boolean;
3891
4081
  };
3892
4082
  };
4083
+ shipping?: {
4084
+ address_line1?: string;
4085
+ address_line2?: string;
4086
+ address_line3?: string;
4087
+ address_country?: string;
4088
+ address_city?: string;
4089
+ address_postcode?: string;
4090
+ address_state?: string;
4091
+ options?: IShippingOption[];
4092
+ method?: string;
4093
+ contact?: Contact;
4094
+ };
3893
4095
  }
3894
4096
 
3895
4097
  interface OnUnavailableEventData extends BaseEventData<undefined> {
@@ -3919,6 +4121,7 @@ interface ChargeWalletTokenMeta {
3919
4121
  address_postcode?: string;
3920
4122
  address_state?: string;
3921
4123
  address_country?: string;
4124
+ address_country_code?: string;
3922
4125
  address_company?: string;
3923
4126
  address_origin_postcode?: string;
3924
4127
  method?: string;
@@ -4253,10 +4456,19 @@ interface AppleShippingType {
4253
4456
  };
4254
4457
  address_line1: string;
4255
4458
  address_line2: string;
4459
+ address_line3?: string;
4256
4460
  address_city: string;
4257
4461
  address_postcode: string;
4258
4462
  address_state: string;
4259
4463
  address_country: string;
4464
+ address_country_code?: string;
4465
+ options?: IApplePayShippingOption[];
4466
+ }
4467
+ interface IApplePayShippingOption {
4468
+ id?: string;
4469
+ label?: string;
4470
+ detail?: string;
4471
+ amount?: string;
4260
4472
  }
4261
4473
 
4262
4474
  interface ApplePayWalletMeta extends BaseWalletMeta {
@@ -4809,4 +5021,4 @@ declare global {
4809
5021
  }
4810
5022
  }
4811
5023
 
4812
- export { AfterpayCheckoutButton, Api, ApplePayWalletButtonExpress, CHECKOUT_BUTTON_EVENT, Canvas3ds, Checkout, ClickToPay, Configuration, ELEMENT, EVENT$1 as EVENT, Builder$1 as ExternalCheckoutBuilder, Checker as ExternalCheckoutChecker, FORM_FIELD, FRAUD_PREVENTION_EVENTS, type FraudPreventionEvent, type FraudPreventionEventType, type FraudPreventionProvider, FraudPreventionService, HtmlMultiWidget, HtmlPaymentSourceWidget, HtmlWidget, type ICheckout, type IClickToPayMeta, type IDetails, type IElementStyleInput, type IEventCheckoutFinishData, type IEventData, type IPayPalMeta, type IStyles$1 as IStyles, type ITexts, type IWalletMeta, type IWalletOnClickEvent, type IWalletPaymentSuccessfulEvent, type IWalletUnavailableEvent, type IWalletUpdateData, type IWalletUpdateEvent, InstructionDebugger, MultiWidget, PAYMENT_TYPE, PURPOSE, PayPalDataCollector, PayPalSavePaymentSourceWidget, Builder as PaymentSourceBuilder, PaymentSourceWidget, PaypalCheckoutButton, PaypalWalletButtonExpress, STYLABLE_ELEMENT, STYLABLE_ELEMENT_STATE, STYLE, SUPPORTED_CARD_TYPES, TEXT, TRIGGER, TYPE, VAULT_DISPLAY_STYLE, type VaultDisplayStyle, VaultDisplayWidget, WalletButtons, ZipmoneyCheckoutButton };
5024
+ export { AfterpayCheckoutButton, Api, type ApplePayServiceConfig, ApplePayWalletButtonExpress, BaseOpenWallet, type BaseServiceConfig, type BaseWalletMeta$1 as BaseWalletMeta, CHECKOUT_BUTTON_EVENT, Canvas3ds, Checkout, CheckoutActionCode, type CheckoutResponse, ClickToPay, Configuration, type CreateOTTRequest, type CreateOTTResponse, ELEMENT, EVENT$2 as EVENT, Builder$1 as ExternalCheckoutBuilder, Checker as ExternalCheckoutChecker, FORM_FIELD, FRAUD_PREVENTION_EVENTS, type FraudPreventionEvent, type FraudPreventionEventType, type FraudPreventionProvider, FraudPreventionService, type GooglePayServiceConfig, HtmlMultiWidget, HtmlPaymentSourceWidget, HtmlWidget, type ICheckout, type IClickToPayMeta, type IDetails, type IElementStyleInput, type IEventCheckoutFinishData, type IEventData, type IPayPalMeta, type IStyles$1 as IStyles, type ITexts, type IWalletMeta, type IWalletOnClickEvent, type IWalletPaymentSuccessfulEvent, type IWalletUnavailableEvent, type IWalletUpdateData, type IWalletUpdateEvent, InstructionDebugger, MultiWidget, type OTTResponse, type OnClickEventData$1 as OnClickEventData, type OnCrateOTTSuccessfulEventData, type OnCreateOTTErrorEventData, type OnErrorEventData$1 as OnErrorEventData, type OnUnavailableEventData$1 as OnUnavailableEventData, type OpenWalletEventType, PAYMENT_TYPE, PURPOSE, PayPalDataCollector, PayPalSavePaymentSourceWidget, Builder as PaymentSourceBuilder, PaymentSourceWidget, PaypalCheckoutButton, PaypalWalletButtonExpress, STYLABLE_ELEMENT, STYLABLE_ELEMENT_STATE, STYLE, SUPPORTED_CARD_TYPES, TEXT, TRIGGER, TYPE, VAULT_DISPLAY_STYLE, type VaultDisplayStyle, VaultDisplayWidget, WALLET_TYPES, WalletButtons, type WalletPaymentSource, type WalletType, ZipmoneyCheckoutButton };