@paydock/client-sdk 0.0.3 → 0.1.2-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 (531) hide show
  1. package/README.md +9050 -52
  2. package/bundles/index.cjs +38558 -0
  3. package/bundles/index.cjs.d.ts +4777 -0
  4. package/bundles/index.mjs +38519 -0
  5. package/bundles/index.mjs.d.ts +4777 -0
  6. package/bundles/types/api/api-base.d.ts +54 -0
  7. package/bundles/types/api/api-base.d.ts.map +1 -0
  8. package/bundles/types/api/api-charge-internal.d.ts +99 -0
  9. package/bundles/types/api/api-charge-internal.d.ts.map +1 -0
  10. package/bundles/types/api/api-charge.d.ts +36 -0
  11. package/bundles/types/api/api-charge.d.ts.map +1 -0
  12. package/bundles/types/api/api-checkout-internal.d.ts +58 -0
  13. package/bundles/types/api/api-checkout-internal.d.ts.map +1 -0
  14. package/bundles/types/api/api-gateway-internal.d.ts +12 -0
  15. package/bundles/types/api/api-gateway-internal.d.ts.map +1 -0
  16. package/bundles/types/api/api-internal.d.ts +13 -0
  17. package/bundles/types/api/api-internal.d.ts.map +1 -0
  18. package/bundles/types/api/api-service-internal.d.ts +19 -0
  19. package/bundles/types/api/api-service-internal.d.ts.map +1 -0
  20. package/bundles/types/api/api.d.ts +55 -0
  21. package/bundles/types/api/api.d.ts.map +1 -0
  22. package/bundles/types/api/index.d.ts +2 -0
  23. package/bundles/types/api/index.d.ts.map +1 -0
  24. package/bundles/types/canvas-3ds/canvas-3ds.d.ts +109 -0
  25. package/bundles/types/canvas-3ds/canvas-3ds.d.ts.map +1 -0
  26. package/bundles/types/canvas-3ds/index.d.ts +2 -0
  27. package/bundles/types/canvas-3ds/index.d.ts.map +1 -0
  28. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts +43 -0
  29. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -0
  30. package/bundles/types/canvas-3ds/services/index.d.ts +2 -0
  31. package/bundles/types/canvas-3ds/services/index.d.ts.map +1 -0
  32. package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts +22 -0
  33. package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts.map +1 -0
  34. package/bundles/types/checkout/checkout.d.ts +107 -0
  35. package/bundles/types/checkout/checkout.d.ts.map +1 -0
  36. package/bundles/types/checkout/helpers/instruction-handler.d.ts +25 -0
  37. package/bundles/types/checkout/helpers/instruction-handler.d.ts.map +1 -0
  38. package/bundles/types/checkout/helpers/instruction-module.d.ts +6 -0
  39. package/bundles/types/checkout/helpers/instruction-module.d.ts.map +1 -0
  40. package/bundles/types/checkout/helpers/instruction-module.decorator.d.ts +6 -0
  41. package/bundles/types/checkout/helpers/instruction-module.decorator.d.ts.map +1 -0
  42. package/bundles/types/checkout/helpers/instruction.decorator.d.ts +5 -0
  43. package/bundles/types/checkout/helpers/instruction.decorator.d.ts.map +1 -0
  44. package/bundles/types/checkout/helpers/resource-helper.d.ts +6 -0
  45. package/bundles/types/checkout/helpers/resource-helper.d.ts.map +1 -0
  46. package/bundles/types/checkout/helpers/session-helper.d.ts +8 -0
  47. package/bundles/types/checkout/helpers/session-helper.d.ts.map +1 -0
  48. package/bundles/types/checkout/index.d.ts +2 -0
  49. package/bundles/types/checkout/index.d.ts.map +1 -0
  50. package/bundles/types/checkout/instructions/index.d.ts +3 -0
  51. package/bundles/types/checkout/instructions/index.d.ts.map +1 -0
  52. package/bundles/types/checkout/instructions/v1/index.d.ts +4 -0
  53. package/bundles/types/checkout/instructions/v1/index.d.ts.map +1 -0
  54. package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts +20 -0
  55. package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts.map +1 -0
  56. package/bundles/types/checkout/instructions/v1/instruction.afterpay_wallet_form.show.d.ts +14 -0
  57. package/bundles/types/checkout/instructions/v1/instruction.afterpay_wallet_form.show.d.ts.map +1 -0
  58. package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts +18 -0
  59. package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts.map +1 -0
  60. package/bundles/types/checkout/instructions/v1/instruction.bank_account_form.show.d.ts +15 -0
  61. package/bundles/types/checkout/instructions/v1/instruction.bank_account_form.show.d.ts.map +1 -0
  62. package/bundles/types/checkout/instructions/v1/instruction.canvas_3ds.show.d.ts +11 -0
  63. package/bundles/types/checkout/instructions/v1/instruction.canvas_3ds.show.d.ts.map +1 -0
  64. package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts +19 -0
  65. package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts.map +1 -0
  66. package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts +20 -0
  67. package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts.map +1 -0
  68. package/bundles/types/checkout/instructions/v1/instruction.fraud_service.show.d.ts +21 -0
  69. package/bundles/types/checkout/instructions/v1/instruction.fraud_service.show.d.ts.map +1 -0
  70. package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts +26 -0
  71. package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts.map +1 -0
  72. package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts +18 -0
  73. package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts.map +1 -0
  74. package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts +18 -0
  75. package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts.map +1 -0
  76. package/bundles/types/checkout/instructions/v1/instruction.payment_methods.show.d.ts +18 -0
  77. package/bundles/types/checkout/instructions/v1/instruction.payment_methods.show.d.ts.map +1 -0
  78. package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts +21 -0
  79. package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts.map +1 -0
  80. package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts +19 -0
  81. package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts.map +1 -0
  82. package/bundles/types/checkout/layout-widgets/additionals.d.ts +3 -0
  83. package/bundles/types/checkout/layout-widgets/additionals.d.ts.map +1 -0
  84. package/bundles/types/checkout/layout-widgets/default-variables.enum.d.ts +9 -0
  85. package/bundles/types/checkout/layout-widgets/default-variables.enum.d.ts.map +1 -0
  86. package/bundles/types/checkout/layout-widgets/message.d.ts +34 -0
  87. package/bundles/types/checkout/layout-widgets/message.d.ts.map +1 -0
  88. package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts +13 -0
  89. package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts.map +1 -0
  90. package/bundles/types/checkout/layout-widgets/payment-methods.d.ts +55 -0
  91. package/bundles/types/checkout/layout-widgets/payment-methods.d.ts.map +1 -0
  92. package/bundles/types/checkout/layout-widgets/payment-template.d.ts +3 -0
  93. package/bundles/types/checkout/layout-widgets/payment-template.d.ts.map +1 -0
  94. package/bundles/types/checkout-button/afterpay/afterpay-checkout-button.d.ts +36 -0
  95. package/bundles/types/checkout-button/afterpay/afterpay-checkout-button.d.ts.map +1 -0
  96. package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts +13 -0
  97. package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts.map +1 -0
  98. package/bundles/types/checkout-button/checkout-button.d.ts +139 -0
  99. package/bundles/types/checkout-button/checkout-button.d.ts.map +1 -0
  100. package/bundles/types/checkout-button/checkout-button.interface.d.ts +49 -0
  101. package/bundles/types/checkout-button/checkout-button.interface.d.ts.map +1 -0
  102. package/bundles/types/checkout-button/checkout-contextual-handler.d.ts +27 -0
  103. package/bundles/types/checkout-button/checkout-contextual-handler.d.ts.map +1 -0
  104. package/bundles/types/checkout-button/index.d.ts +85 -0
  105. package/bundles/types/checkout-button/index.d.ts.map +1 -0
  106. package/bundles/types/checkout-button/paypal/paypal-checkout-button.d.ts +21 -0
  107. package/bundles/types/checkout-button/paypal/paypal-checkout-button.d.ts.map +1 -0
  108. package/bundles/types/checkout-button/paypal/paypal.runner.d.ts +6 -0
  109. package/bundles/types/checkout-button/paypal/paypal.runner.d.ts.map +1 -0
  110. package/bundles/types/checkout-button/runner/base.runner.d.ts +18 -0
  111. package/bundles/types/checkout-button/runner/base.runner.d.ts.map +1 -0
  112. package/bundles/types/checkout-button/runner/contextual.runner.d.ts +39 -0
  113. package/bundles/types/checkout-button/runner/contextual.runner.d.ts.map +1 -0
  114. package/bundles/types/checkout-button/runner/index.d.ts +9 -0
  115. package/bundles/types/checkout-button/runner/index.d.ts.map +1 -0
  116. package/bundles/types/checkout-button/runner/popup.runner.d.ts +35 -0
  117. package/bundles/types/checkout-button/runner/popup.runner.d.ts.map +1 -0
  118. package/bundles/types/checkout-button/runner/redirect.runner.d.ts +17 -0
  119. package/bundles/types/checkout-button/runner/redirect.runner.d.ts.map +1 -0
  120. package/bundles/types/checkout-button/zipmoney/index.d.ts +4 -0
  121. package/bundles/types/checkout-button/zipmoney/index.d.ts.map +1 -0
  122. package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts +49 -0
  123. package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts.map +1 -0
  124. package/bundles/types/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts +39 -0
  125. package/bundles/types/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts.map +1 -0
  126. package/bundles/types/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts +26 -0
  127. package/bundles/types/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts.map +1 -0
  128. package/bundles/types/checkout-button/zipmoney/zipmoney.config.d.ts +4 -0
  129. package/bundles/types/checkout-button/zipmoney/zipmoney.config.d.ts.map +1 -0
  130. package/bundles/types/checkout-button/zipmoney/zipmoney.runner.d.ts +10 -0
  131. package/bundles/types/checkout-button/zipmoney/zipmoney.runner.d.ts.map +1 -0
  132. package/bundles/types/checkout-button/zipmoney/zipmoney.types.d.ts +12 -0
  133. package/bundles/types/checkout-button/zipmoney/zipmoney.types.d.ts.map +1 -0
  134. package/bundles/types/components/ability-guard.d.ts +12 -0
  135. package/bundles/types/components/ability-guard.d.ts.map +1 -0
  136. package/bundles/types/components/background.d.ts +43 -0
  137. package/bundles/types/components/background.d.ts.map +1 -0
  138. package/bundles/types/components/container.d.ts +12 -0
  139. package/bundles/types/components/container.d.ts.map +1 -0
  140. package/bundles/types/components/dispatcher.d.ts +14 -0
  141. package/bundles/types/components/dispatcher.d.ts.map +1 -0
  142. package/bundles/types/components/element-style.d.ts +17 -0
  143. package/bundles/types/components/element-style.d.ts.map +1 -0
  144. package/bundles/types/components/flypay-iframe-event.d.ts +15 -0
  145. package/bundles/types/components/flypay-iframe-event.d.ts.map +1 -0
  146. package/{lib/widget/components/form-Interceptor.d.ts → bundles/types/components/form-interceptor.d.ts} +2 -1
  147. package/bundles/types/components/form-interceptor.d.ts.map +1 -0
  148. package/bundles/types/components/http-core.d.ts +14 -0
  149. package/bundles/types/components/http-core.d.ts.map +1 -0
  150. package/bundles/types/components/iframe-event.d.ts +72 -0
  151. package/bundles/types/components/iframe-event.d.ts.map +1 -0
  152. package/bundles/types/components/iframe.d.ts +20 -0
  153. package/bundles/types/components/iframe.d.ts.map +1 -0
  154. package/bundles/types/components/link.d.ts +27 -0
  155. package/bundles/types/components/link.d.ts.map +1 -0
  156. package/bundles/types/components/loader.d.ts +5 -0
  157. package/bundles/types/components/loader.d.ts.map +1 -0
  158. package/bundles/types/components/param.d.ts +430 -0
  159. package/bundles/types/components/param.d.ts.map +1 -0
  160. package/bundles/types/components/popup.d.ts +30 -0
  161. package/bundles/types/components/popup.d.ts.map +1 -0
  162. package/bundles/types/components/storage-dispatcher.d.ts +31 -0
  163. package/bundles/types/components/storage-dispatcher.d.ts.map +1 -0
  164. package/bundles/types/components/trigger.d.ts +48 -0
  165. package/bundles/types/components/trigger.d.ts.map +1 -0
  166. package/bundles/types/components/vault-display-iframe-event.d.ts +5 -0
  167. package/bundles/types/components/vault-display-iframe-event.d.ts.map +1 -0
  168. package/bundles/types/components/wallet-background.d.ts +13 -0
  169. package/bundles/types/components/wallet-background.d.ts.map +1 -0
  170. package/bundles/types/components/wallet-trigger.d.ts +19 -0
  171. package/bundles/types/components/wallet-trigger.d.ts.map +1 -0
  172. package/bundles/types/configs/env/environment.cba.d.ts +30 -0
  173. package/bundles/types/configs/env/environment.cba.d.ts.map +1 -0
  174. package/bundles/types/configs/env/environment.interface.d.ts +12 -0
  175. package/bundles/types/configs/env/environment.interface.d.ts.map +1 -0
  176. package/bundles/types/configs/env/environment.paydock.d.ts +49 -0
  177. package/bundles/types/configs/env/environment.paydock.d.ts.map +1 -0
  178. package/bundles/types/configs/env/index.d.ts +3 -0
  179. package/bundles/types/configs/env/index.d.ts.map +1 -0
  180. package/bundles/types/configs/sdk.d.ts +10 -0
  181. package/bundles/types/configs/sdk.d.ts.map +1 -0
  182. package/bundles/types/constants/validators.d.ts +45 -0
  183. package/bundles/types/constants/validators.d.ts.map +1 -0
  184. package/bundles/types/external-checkout/builder.d.ts +29 -0
  185. package/bundles/types/external-checkout/builder.d.ts.map +1 -0
  186. package/bundles/types/external-checkout/checker.d.ts +14 -0
  187. package/bundles/types/external-checkout/checker.d.ts.map +1 -0
  188. package/bundles/types/external-checkout/index.d.ts +3 -0
  189. package/bundles/types/external-checkout/index.d.ts.map +1 -0
  190. package/bundles/types/fraud-prevention/fraud-prevention.constants.d.ts +9 -0
  191. package/bundles/types/fraud-prevention/fraud-prevention.constants.d.ts.map +1 -0
  192. package/bundles/types/fraud-prevention/fraud-prevention.events.d.ts +42 -0
  193. package/bundles/types/fraud-prevention/fraud-prevention.events.d.ts.map +1 -0
  194. package/bundles/types/fraud-prevention/fraud-prevention.service.d.ts +163 -0
  195. package/bundles/types/fraud-prevention/fraud-prevention.service.d.ts.map +1 -0
  196. package/bundles/types/fraud-prevention/index.d.ts +3 -0
  197. package/bundles/types/fraud-prevention/index.d.ts.map +1 -0
  198. package/bundles/types/fraud-prevention/providers/forter/forter-device-agent.service.d.ts +79 -0
  199. package/bundles/types/fraud-prevention/providers/forter/forter-device-agent.service.d.ts.map +1 -0
  200. package/bundles/types/fraud-prevention/providers/forter/templates/forter-snippet-2025-02-06t14:19:34z.template.d.ts +2 -0
  201. package/bundles/types/fraud-prevention/providers/forter/templates/forter-snippet-2025-02-06t14:19:34z.template.d.ts.map +1 -0
  202. package/bundles/types/fraud-prevention/resources/find-service-config.repository.d.ts +20 -0
  203. package/bundles/types/fraud-prevention/resources/find-service-config.repository.d.ts.map +1 -0
  204. package/bundles/types/helper/access-token.d.ts +26 -0
  205. package/bundles/types/helper/access-token.d.ts.map +1 -0
  206. package/bundles/types/helper/browser.d.ts +17 -0
  207. package/bundles/types/helper/browser.d.ts.map +1 -0
  208. package/bundles/types/helper/deep-clone.d.ts +13 -0
  209. package/bundles/types/helper/deep-clone.d.ts.map +1 -0
  210. package/bundles/types/helper/element-id.d.ts +5 -0
  211. package/bundles/types/helper/element-id.d.ts.map +1 -0
  212. package/bundles/types/helper/event-emitter.d.ts +7 -0
  213. package/bundles/types/helper/event-emitter.d.ts.map +1 -0
  214. package/bundles/types/helper/event-error.d.ts +55 -0
  215. package/bundles/types/helper/event-error.d.ts.map +1 -0
  216. package/bundles/types/helper/event.d.ts +10 -0
  217. package/bundles/types/helper/event.d.ts.map +1 -0
  218. package/bundles/types/helper/ms.d.ts +6 -0
  219. package/bundles/types/helper/ms.d.ts.map +1 -0
  220. package/{lib/widget → bundles/types}/helper/object.d.ts +1 -0
  221. package/bundles/types/helper/object.d.ts.map +1 -0
  222. package/bundles/types/helper/process-event-error.d.ts +9 -0
  223. package/bundles/types/helper/process-event-error.d.ts.map +1 -0
  224. package/bundles/types/helper/spiner.util.d.ts +6 -0
  225. package/bundles/types/helper/spiner.util.d.ts.map +1 -0
  226. package/bundles/types/helper/url.d.ts +5 -0
  227. package/bundles/types/helper/url.d.ts.map +1 -0
  228. package/bundles/types/helper/uuid.d.ts +6 -0
  229. package/bundles/types/helper/uuid.d.ts.map +1 -0
  230. package/bundles/types/index-cba.d.ts +52 -0
  231. package/bundles/types/index-cba.d.ts.map +1 -0
  232. package/bundles/types/index.d.ts +52 -0
  233. package/bundles/types/index.d.ts.map +1 -0
  234. package/bundles/types/payment-source/builder.d.ts +23 -0
  235. package/bundles/types/payment-source/builder.d.ts.map +1 -0
  236. package/bundles/types/payment-source/index.d.ts +2 -0
  237. package/bundles/types/payment-source/index.d.ts.map +1 -0
  238. package/bundles/types/payment-source-widget/html-payment-source-widget.d.ts +181 -0
  239. package/bundles/types/payment-source-widget/html-payment-source-widget.d.ts.map +1 -0
  240. package/bundles/types/payment-source-widget/index.d.ts +35 -0
  241. package/bundles/types/payment-source-widget/index.d.ts.map +1 -0
  242. package/bundles/types/payment-source-widget/interfaces.d.ts +12 -0
  243. package/bundles/types/payment-source-widget/interfaces.d.ts.map +1 -0
  244. package/bundles/types/payment-source-widget/payment-source-widget.d.ts +93 -0
  245. package/bundles/types/payment-source-widget/payment-source-widget.d.ts.map +1 -0
  246. package/bundles/types/paypal-data-collector/index.d.ts +23 -0
  247. package/bundles/types/paypal-data-collector/index.d.ts.map +1 -0
  248. package/bundles/types/paypal-data-collector/paypal-data-collector.d.ts +58 -0
  249. package/bundles/types/paypal-data-collector/paypal-data-collector.d.ts.map +1 -0
  250. package/bundles/types/paypal-data-collector/paypal-data-collector.interfaces.d.ts +21 -0
  251. package/bundles/types/paypal-data-collector/paypal-data-collector.interfaces.d.ts.map +1 -0
  252. package/bundles/types/paypal-data-collector/paypal-data-collector.service.d.ts +17 -0
  253. package/bundles/types/paypal-data-collector/paypal-data-collector.service.d.ts.map +1 -0
  254. package/bundles/types/paypal-save-payment-source/index.d.ts +61 -0
  255. package/bundles/types/paypal-save-payment-source/index.d.ts.map +1 -0
  256. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.d.ts +85 -0
  257. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.d.ts.map +1 -0
  258. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.interfaces.d.ts +83 -0
  259. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.interfaces.d.ts.map +1 -0
  260. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.service.d.ts +35 -0
  261. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.service.d.ts.map +1 -0
  262. package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts +31 -0
  263. package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts.map +1 -0
  264. package/bundles/types/secure-remote-commerce/index.d.ts +105 -0
  265. package/bundles/types/secure-remote-commerce/index.d.ts.map +1 -0
  266. package/bundles/types/secure-remote-commerce/interfaces.d.ts +156 -0
  267. package/bundles/types/secure-remote-commerce/interfaces.d.ts.map +1 -0
  268. package/bundles/types/secure-remote-commerce/providers/mastercard-src/index.d.ts +2 -0
  269. package/bundles/types/secure-remote-commerce/providers/mastercard-src/index.d.ts.map +1 -0
  270. package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts +25 -0
  271. package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts.map +1 -0
  272. package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts +11 -0
  273. package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts.map +1 -0
  274. package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts +86 -0
  275. package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts.map +1 -0
  276. package/bundles/types/shared/device/device-info.service.d.ts +13 -0
  277. package/bundles/types/shared/device/device-info.service.d.ts.map +1 -0
  278. package/bundles/types/shared/http/authorization-strategy.d.ts +41 -0
  279. package/bundles/types/shared/http/authorization-strategy.d.ts.map +1 -0
  280. package/bundles/types/shared/http/http-fetcher.d.ts +29 -0
  281. package/bundles/types/shared/http/http-fetcher.d.ts.map +1 -0
  282. package/bundles/types/shared/http/http-fetcher.factory.d.ts +17 -0
  283. package/bundles/types/shared/http/http-fetcher.factory.d.ts.map +1 -0
  284. package/bundles/types/shared/http/http-request.d.ts +14 -0
  285. package/bundles/types/shared/http/http-request.d.ts.map +1 -0
  286. package/bundles/types/shared/http/http-response.dto.d.ts +19 -0
  287. package/bundles/types/shared/http/http-response.dto.d.ts.map +1 -0
  288. package/bundles/types/shared/services/configuration-validation/configuration-validation.d.ts +12 -0
  289. package/bundles/types/shared/services/configuration-validation/configuration-validation.d.ts.map +1 -0
  290. package/bundles/types/shared/services/configuration-validation/types.d.ts +73 -0
  291. package/bundles/types/shared/services/configuration-validation/types.d.ts.map +1 -0
  292. package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts +15 -0
  293. package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts.map +1 -0
  294. package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts +66 -0
  295. package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts.map +1 -0
  296. package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts +14 -0
  297. package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts.map +1 -0
  298. package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts +15 -0
  299. package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts.map +1 -0
  300. package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts +23 -0
  301. package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts.map +1 -0
  302. package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts +15 -0
  303. package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts.map +1 -0
  304. package/bundles/types/shared/services/instrumentation/repositories/index.d.ts +4 -0
  305. package/bundles/types/shared/services/instrumentation/repositories/index.d.ts.map +1 -0
  306. package/bundles/types/shared/shared.constants.d.ts +6 -0
  307. package/bundles/types/shared/shared.constants.d.ts.map +1 -0
  308. package/bundles/types/vault-display-widget/index.d.ts +14 -0
  309. package/bundles/types/vault-display-widget/index.d.ts.map +1 -0
  310. package/bundles/types/vault-display-widget/vault-display-widget.d.ts +69 -0
  311. package/bundles/types/vault-display-widget/vault-display-widget.d.ts.map +1 -0
  312. package/bundles/types/wallet-buttons/enums.d.ts +12 -0
  313. package/bundles/types/wallet-buttons/enums.d.ts.map +1 -0
  314. package/bundles/types/wallet-buttons/helpers/flypay-v2.helper.d.ts +6 -0
  315. package/bundles/types/wallet-buttons/helpers/flypay-v2.helper.d.ts.map +1 -0
  316. package/bundles/types/wallet-buttons/index-cba.d.ts +2 -0
  317. package/bundles/types/wallet-buttons/index-cba.d.ts.map +1 -0
  318. package/bundles/types/wallet-buttons/index.d.ts +138 -0
  319. package/bundles/types/wallet-buttons/index.d.ts.map +1 -0
  320. package/bundles/types/wallet-buttons/interfaces.d.ts +128 -0
  321. package/bundles/types/wallet-buttons/interfaces.d.ts.map +1 -0
  322. package/bundles/types/wallet-buttons/wallet-buttons.d.ts +321 -0
  323. package/bundles/types/wallet-buttons/wallet-buttons.d.ts.map +1 -0
  324. package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts +330 -0
  325. package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts.map +1 -0
  326. package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts +24 -0
  327. package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts.map +1 -0
  328. package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts +49 -0
  329. package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts.map +1 -0
  330. package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts +28 -0
  331. package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts.map +1 -0
  332. package/bundles/types/wallet-buttons/wallet-services/flypay.wallet-service.d.ts +26 -0
  333. package/bundles/types/wallet-buttons/wallet-services/flypay.wallet-service.d.ts.map +1 -0
  334. package/bundles/types/wallet-buttons/wallet-services/google.wallet-service.d.ts +35 -0
  335. package/bundles/types/wallet-buttons/wallet-services/google.wallet-service.d.ts.map +1 -0
  336. package/bundles/types/wallet-buttons/wallet-services/mastercard.wallet-service.d.ts +8 -0
  337. package/bundles/types/wallet-buttons/wallet-services/mastercard.wallet-service.d.ts.map +1 -0
  338. package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts +26 -0
  339. package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts.map +1 -0
  340. package/bundles/types/wallet-buttons/wallet-services/stripe.wallet-service.d.ts +19 -0
  341. package/bundles/types/wallet-buttons/wallet-services/stripe.wallet-service.d.ts.map +1 -0
  342. package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts +131 -0
  343. package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts.map +1 -0
  344. package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts +252 -0
  345. package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts.map +1 -0
  346. package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts +12 -0
  347. package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts.map +1 -0
  348. package/bundles/types/wallet-buttons-express/index.d.ts +245 -0
  349. package/bundles/types/wallet-buttons-express/index.d.ts.map +1 -0
  350. package/bundles/types/wallet-buttons-express/interfaces/base-event-data.interface.d.ts +6 -0
  351. package/bundles/types/wallet-buttons-express/interfaces/base-event-data.interface.d.ts.map +1 -0
  352. package/bundles/types/wallet-buttons-express/interfaces/base-gateway-config.interface.d.ts +6 -0
  353. package/bundles/types/wallet-buttons-express/interfaces/base-gateway-config.interface.d.ts.map +1 -0
  354. package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts +5 -0
  355. package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts.map +1 -0
  356. package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts +44 -0
  357. package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts.map +1 -0
  358. package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts +6 -0
  359. package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts.map +1 -0
  360. package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts +6 -0
  361. package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts.map +1 -0
  362. package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts +6 -0
  363. package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts.map +1 -0
  364. package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts +9 -0
  365. package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts.map +1 -0
  366. package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts +6 -0
  367. package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts.map +1 -0
  368. package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts +11 -0
  369. package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts.map +1 -0
  370. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-data.interface.d.ts +21 -0
  371. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-data.interface.d.ts.map +1 -0
  372. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-response.interface.d.ts +9 -0
  373. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-response.interface.d.ts.map +1 -0
  374. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-data.interface.d.ts +13 -0
  375. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-data.interface.d.ts.map +1 -0
  376. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-response.interface.d.ts +9 -0
  377. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-response.interface.d.ts.map +1 -0
  378. package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts +6 -0
  379. package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts.map +1 -0
  380. package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts +22 -0
  381. package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts.map +1 -0
  382. package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts +58 -0
  383. package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts.map +1 -0
  384. package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.d.ts +2 -0
  385. package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.d.ts.map +1 -0
  386. package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-events.constant.d.ts +5 -0
  387. package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-events.constant.d.ts.map +1 -0
  388. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-gateway-config.interface.d.ts +6 -0
  389. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-gateway-config.interface.d.ts.map +1 -0
  390. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts +22 -0
  391. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts.map +1 -0
  392. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-style.type.d.ts +2 -0
  393. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-style.type.d.ts.map +1 -0
  394. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-type.type.d.ts +2 -0
  395. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-type.type.d.ts.map +1 -0
  396. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-contact-editing-mode.type.d.ts +5 -0
  397. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-contact-editing-mode.type.d.ts.map +1 -0
  398. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-data.d.ts +21 -0
  399. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-data.d.ts.map +1 -0
  400. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-method.type.d.ts +21 -0
  401. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-method.type.d.ts.map +1 -0
  402. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-gateway-config.interface.d.ts +4 -0
  403. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-gateway-config.interface.d.ts.map +1 -0
  404. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-sdk.interface.d.ts +164 -0
  405. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-sdk.interface.d.ts.map +1 -0
  406. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts +32 -0
  407. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts.map +1 -0
  408. package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts +53 -0
  409. package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts.map +1 -0
  410. package/bundles/types/wallet-buttons-express/types/shipping-event-to-response.type.d.ts +6 -0
  411. package/bundles/types/wallet-buttons-express/types/shipping-event-to-response.type.d.ts.map +1 -0
  412. package/bundles/types/widget/configuration.d.ts +165 -0
  413. package/bundles/types/widget/configuration.d.ts.map +1 -0
  414. package/bundles/types/widget/html-multi-widget.d.ts +337 -0
  415. package/bundles/types/widget/html-multi-widget.d.ts.map +1 -0
  416. package/bundles/types/widget/html-widget.d.ts +107 -0
  417. package/bundles/types/widget/html-widget.d.ts.map +1 -0
  418. package/bundles/types/widget/index.d.ts +132 -0
  419. package/bundles/types/widget/index.d.ts.map +1 -0
  420. package/bundles/types/widget/meta.d.ts +8 -0
  421. package/bundles/types/widget/meta.d.ts.map +1 -0
  422. package/bundles/types/widget/multi-widget.d.ts +241 -0
  423. package/bundles/types/widget/multi-widget.d.ts.map +1 -0
  424. package/bundles/types/widget/style.d.ts +177 -0
  425. package/bundles/types/widget/style.d.ts.map +1 -0
  426. package/bundles/widget.umd.js +38429 -767
  427. package/bundles/widget.umd.js.d.ts +4777 -0
  428. package/bundles/widget.umd.js.min.d.ts +4777 -0
  429. package/bundles/widget.umd.min.js +1 -0
  430. package/docs/api-canvas3ds.md +158 -0
  431. package/docs/api-checkout-button.md +912 -0
  432. package/docs/api-examples.md +65 -0
  433. package/docs/api-ps-widget.md +585 -0
  434. package/docs/api-vault-display.md +94 -0
  435. package/docs/api-widget.md +2542 -0
  436. package/docs/api-wrapper.md +45 -0
  437. package/docs/canvas3ds-examples.md +242 -0
  438. package/docs/cba-header.md +13 -0
  439. package/docs/cba-license.md +2 -0
  440. package/docs/checkout-examples.md +248 -0
  441. package/docs/click-to-pay-examples.md +231 -0
  442. package/docs/click-to-pay.md +337 -0
  443. package/docs/fraud-prevention-examples.md +154 -0
  444. package/docs/fraud-prevention.md +0 -0
  445. package/docs/header.md +15 -0
  446. package/docs/html/layout.html +79 -0
  447. package/docs/html/marked.js +23 -0
  448. package/docs/html/style.css +365 -0
  449. package/docs/install/npm.content.md +16 -0
  450. package/docs/install/npm.example.md +24 -0
  451. package/docs/install/umd.content.md +20 -0
  452. package/docs/install/umd.example.md +6 -0
  453. package/docs/install.md +43 -0
  454. package/docs/install.readme.t.md +17 -0
  455. package/docs/install.slate.t.md +17 -0
  456. package/docs/license.md +2 -0
  457. package/docs/partials/header.hbs +3 -0
  458. package/docs/paypal-data-collector-examples.md +59 -0
  459. package/docs/paypal-data-collector.md +149 -0
  460. package/docs/paypal-save-payment-source-examples.md +63 -0
  461. package/docs/paypal-save-payment-source.md +256 -0
  462. package/docs/ps-examples.md +129 -0
  463. package/docs/vault-display-example.md +132 -0
  464. package/docs/wallet-buttons-examples.md +638 -0
  465. package/docs/wallet-buttons-express-examples.md +201 -0
  466. package/docs/wallet-buttons-express.md +1076 -0
  467. package/docs/wallet-buttons.md +625 -0
  468. package/docs/wallet-cba-buttons-examples.md +388 -0
  469. package/docs/widget-examples.md +271 -0
  470. package/examples/html-widget/actions.html +47 -0
  471. package/examples/html-widget/events.html +2 -2
  472. package/examples/html-widget/form.html +2 -3
  473. package/examples/html-widget/html-styles.html +29 -0
  474. package/examples/html-widget/insert-input.html +2 -2
  475. package/examples/html-widget/optional-settings.html +30 -0
  476. package/examples/html-widget/simple.html +3 -3
  477. package/examples/html-widget/styles.html +3 -3
  478. package/examples/multi-html-widget/extend.html +7 -2
  479. package/examples/multi-html-widget/simple.html +6 -8
  480. package/package.json +225 -55
  481. package/slate.md +2218 -0
  482. package/.npmignore +0 -15
  483. package/lib/index.d.ts +0 -2
  484. package/lib/index.js +0 -3
  485. package/lib/index.js.map +0 -1
  486. package/lib/widget/components/container.d.ts +0 -9
  487. package/lib/widget/components/container.js +0 -18
  488. package/lib/widget/components/container.js.map +0 -1
  489. package/lib/widget/components/env.d.ts +0 -19
  490. package/lib/widget/components/env.js +0 -33
  491. package/lib/widget/components/env.js.map +0 -1
  492. package/lib/widget/components/event.d.ts +0 -26
  493. package/lib/widget/components/event.js +0 -49
  494. package/lib/widget/components/event.js.map +0 -1
  495. package/lib/widget/components/form-Interceptor.js +0 -38
  496. package/lib/widget/components/form-Interceptor.js.map +0 -1
  497. package/lib/widget/components/iframe.d.ts +0 -11
  498. package/lib/widget/components/iframe.js +0 -31
  499. package/lib/widget/components/iframe.js.map +0 -1
  500. package/lib/widget/components/link.d.ts +0 -13
  501. package/lib/widget/components/link.js +0 -37
  502. package/lib/widget/components/link.js.map +0 -1
  503. package/lib/widget/components/param.d.ts +0 -39
  504. package/lib/widget/components/param.js +0 -21
  505. package/lib/widget/components/param.js.map +0 -1
  506. package/lib/widget/components/trigger.d.ts +0 -19
  507. package/lib/widget/components/trigger.js +0 -22
  508. package/lib/widget/components/trigger.js.map +0 -1
  509. package/lib/widget/configuration.d.ts +0 -59
  510. package/lib/widget/configuration.js +0 -134
  511. package/lib/widget/configuration.js.map +0 -1
  512. package/lib/widget/helper/event.d.ts +0 -8
  513. package/lib/widget/helper/event.js +0 -15
  514. package/lib/widget/helper/event.js.map +0 -1
  515. package/lib/widget/helper/object.js +0 -6
  516. package/lib/widget/helper/object.js.map +0 -1
  517. package/lib/widget/helper/url.d.ts +0 -3
  518. package/lib/widget/helper/url.js +0 -8
  519. package/lib/widget/helper/url.js.map +0 -1
  520. package/lib/widget/html-multi-widget.d.ts +0 -56
  521. package/lib/widget/html-multi-widget.js +0 -89
  522. package/lib/widget/html-multi-widget.js.map +0 -1
  523. package/lib/widget/html-widget.d.ts +0 -37
  524. package/lib/widget/html-widget.js +0 -50
  525. package/lib/widget/html-widget.js.map +0 -1
  526. package/lib/widget/index.d.ts +0 -5
  527. package/lib/widget/index.js +0 -6
  528. package/lib/widget/index.js.map +0 -1
  529. package/lib/widget/multi-widget.d.ts +0 -22
  530. package/lib/widget/multi-widget.js +0 -83
  531. package/lib/widget/multi-widget.js.map +0 -1
@@ -0,0 +1,164 @@
1
+ export interface PayPalSDK {
2
+ Buttons?: (options?: PayPalButtonsComponentOptions) => PayPalButtonsComponent;
3
+ Messages?: (options?: PayPalMessagesComponentOptions) => PayPalMessagesComponent;
4
+ FUNDING?: Record<string, FUNDING_SOURCE>;
5
+ }
6
+ export interface PayPalButtonsComponentOptions {
7
+ /**
8
+ * Called on button click to set up a one-time payment. [createOrder docs](https://developer.paypal.com/docs/business/javascript-sdk/javascript-sdk-reference/#createorder).
9
+ */
10
+ createOrder?: PayPalButtonCreateOrder;
11
+ /**
12
+ * Used for defining a standalone button.
13
+ * Learn more about [configuring the funding source for standalone buttons](https://developer.paypal.com/docs/business/checkout/configure-payments/standalone-buttons/#4-funding-sources).
14
+ */
15
+ fundingSource?: PayPalButtonFundingSource;
16
+ /**
17
+ * Called when finalizing the transaction. Often used to inform the buyer that the transaction is complete. [onApprove docs](https://developer.paypal.com/docs/business/javascript-sdk/javascript-sdk-reference/#onapprove).
18
+ */
19
+ onApprove?: PayPalButtonOnApprove;
20
+ /**
21
+ * Called when the buyer cancels the transaction.
22
+ * Often used to show the buyer a [cancellation page](https://developer.paypal.com/docs/business/checkout/add-capabilities/buyer-experience/#3-show-cancellation-page).
23
+ */
24
+ onCancel?: PayPalButtonOnCancel;
25
+ /**
26
+ * Called when the button is clicked. Often used for [validation](https://developer.paypal.com/docs/checkout/integration-features/validation/).
27
+ */
28
+ onClick?: PayPalButtonOnClick;
29
+ /**
30
+ * Catch all for errors preventing buyer checkout.
31
+ * Often used to show the buyer an [error page](https://developer.paypal.com/docs/checkout/integration-features/handle-errors/).
32
+ */
33
+ onError?: PayPalButtonOnError;
34
+ /**
35
+ * Called when the buyer selects a new shipping option on PayPal.
36
+ */
37
+ onShippingOptionsChange?: PayPalButtonOnShippingOptionsChange;
38
+ /**
39
+ * Called when the buyer updates their shipping address on PayPal.
40
+ */
41
+ onShippingAddressChange?: PayPalButtonOnShippingAddressChange;
42
+ /**
43
+ * [Styling options](https://developer.paypal.com/docs/business/checkout/reference/style-guide/#customize-the-payment-buttons) for customizing the button appearance.
44
+ */
45
+ style?: PayPalButtonStyle;
46
+ }
47
+ interface PayPalButtonsComponent {
48
+ close: () => Promise<void>;
49
+ isEligible: () => boolean;
50
+ render: (container: HTMLElement | string) => Promise<void>;
51
+ updateProps: (props: PayPalButtonsComponentOptions) => Promise<void>;
52
+ }
53
+ type PayPalButtonCreateOrder = (data: CreateOrderData) => Promise<string>;
54
+ interface CreateOrderData {
55
+ paymentSource: FUNDING_SOURCE;
56
+ }
57
+ type PayPalButtonFundingSource = FUNDING_SOURCE;
58
+ type FUNDING_SOURCE = 'paypal' | 'venmo' | 'applepay' | 'itau' | 'credit' | 'paylater' | 'card' | 'ideal' | 'sepa' | 'bancontact' | 'giropay' | 'sofort' | 'eps' | 'mybank' | 'p24' | 'verkkopankki' | 'payu' | 'blik' | 'trustly' | 'zimpler' | 'maxima' | 'oxxo' | 'boletobancario' | 'wechatpay' | 'mercadopago' | 'multibanco';
59
+ type PayPalButtonOnApprove = (data: OnApproveData) => Promise<void>;
60
+ interface OnApproveData {
61
+ billingToken?: string | null;
62
+ facilitatorAccessToken?: string;
63
+ orderID: string;
64
+ payerID?: string | null;
65
+ paymentID?: string | null;
66
+ subscriptionID?: string | null;
67
+ authCode?: string | null;
68
+ }
69
+ type PayPalButtonOnCancel = (data: Record<string, unknown>) => void;
70
+ type PayPalButtonOnClick = (data: Record<string, unknown>, actions: OnClickActions) => Promise<void> | void;
71
+ interface OnClickActions {
72
+ reject: () => Promise<void>;
73
+ resolve: () => Promise<void>;
74
+ }
75
+ type PayPalButtonOnError = (err: Record<string, unknown>) => void;
76
+ type PayPalButtonOnShippingOptionsChange = (data: OnShippingOptionsChangeData, actions: OnShippingOptionsChangeActions) => Promise<void>;
77
+ export interface OnShippingOptionsChangeData {
78
+ orderID?: string;
79
+ paymentID?: string;
80
+ paymentToken?: string;
81
+ errors: {
82
+ METHOD_UNAVAILABLE: string;
83
+ STORE_UNAVAILABLE: string;
84
+ };
85
+ selectedShippingOption?: CheckoutShippingOption;
86
+ }
87
+ interface CheckoutShippingOption {
88
+ amount: CurrencyCodeAndValue;
89
+ id?: string;
90
+ label: string;
91
+ selected: boolean;
92
+ type: 'SHIPPING' | 'PICKUP';
93
+ }
94
+ interface CurrencyCodeAndValue {
95
+ currencyCode: string;
96
+ value: string;
97
+ }
98
+ export interface OnShippingOptionsChangeActions {
99
+ reject: (reason?: string) => Promise<void>;
100
+ }
101
+ type PayPalButtonOnShippingAddressChange = (data: OnShippingAddressChangeData, actions: OnShippingAddressChangeActions) => Promise<void>;
102
+ export interface OnShippingAddressChangeData {
103
+ amount: CurrencyCodeAndValue;
104
+ orderID?: string;
105
+ paymentID?: string;
106
+ paymentToken?: string;
107
+ errors: {
108
+ ADDRESS_ERROR: string;
109
+ COUNTRY_ERROR: string;
110
+ STATE_ERROR: string;
111
+ ZIP_ERROR: string;
112
+ };
113
+ shippingAddress: {
114
+ city: string;
115
+ state: string;
116
+ /** The [two-character ISO 3166-1 code](/docs/integration/direct/rest/country-codes/) that identifies the country or region. */
117
+ countryCode: string;
118
+ /**
119
+ * The postal code, which is the zip code or equivalent.
120
+ * Typically required for countries with a postal code or an equivalent.
121
+ */
122
+ postalCode: string;
123
+ };
124
+ }
125
+ export interface OnShippingAddressChangeActions {
126
+ reject: (reason?: string) => Promise<void>;
127
+ }
128
+ interface PayPalButtonStyle {
129
+ borderRadius?: number;
130
+ color?: 'gold' | 'blue' | 'silver' | 'white' | 'black';
131
+ disableMaxWidth?: boolean;
132
+ height?: number;
133
+ label?: 'paypal' | 'checkout' | 'buynow' | 'pay' | 'installment' | 'subscribe' | 'donate';
134
+ layout?: 'vertical' | 'horizontal';
135
+ shape?: 'rect' | 'pill' | 'sharp';
136
+ tagline?: boolean;
137
+ }
138
+ export interface PayPalMessagesComponentOptions {
139
+ amount?: number | string;
140
+ currency?: 'USD' | 'GBP' | 'EUR';
141
+ style?: {
142
+ layout?: 'text' | 'flex' | 'custom';
143
+ color?: string;
144
+ logo?: {
145
+ type?: 'primary' | 'alternative' | 'inline' | 'none';
146
+ position?: 'left' | 'right' | 'top';
147
+ };
148
+ text?: {
149
+ color?: 'black' | 'white' | 'monochrome' | 'grayscale';
150
+ size?: 10 | 11 | 12 | 13 | 14 | 15 | 16;
151
+ align?: 'left' | 'center' | 'right';
152
+ };
153
+ ratio?: '1x1' | '1x4' | '8x1' | '20x1';
154
+ };
155
+ placement?: 'home' | 'category' | 'product' | 'cart' | 'payment';
156
+ onApply?: (data: Record<string, unknown>) => void;
157
+ onClick?: (data: Record<string, unknown>) => void;
158
+ onRender?: (data: Record<string, unknown>) => void;
159
+ }
160
+ interface PayPalMessagesComponent {
161
+ render: (container: HTMLElement | string) => Promise<void>;
162
+ }
163
+ export {};
164
+ //# sourceMappingURL=paypal-sdk.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paypal-sdk.interface.d.ts","sourceRoot":"","sources":["../../../../../src/wallet-buttons-express/services/paypal/interfaces/paypal-sdk.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,6BAA6B,KAAK,sBAAsB,CAAC;IAC9E,QAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,8BAA8B,KAAK,uBAAuB,CAAC;IACjF,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;CAC1C;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,WAAW,CAAC,EAAE,uBAAuB,CAAC;IACtC;;;OAGG;IACH,aAAa,CAAC,EAAE,yBAAyB,CAAC;IAC1C;;OAEG;IACH,SAAS,CAAC,EAAE,qBAAqB,CAAC;IAClC;;;OAGG;IACH,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAChC;;OAEG;IACH,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B;;;OAGG;IACH,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B;;OAEG;IACH,uBAAuB,CAAC,EAAE,mCAAmC,CAAC;IAC9D;;OAEG;IACH,uBAAuB,CAAC,EAAE,mCAAmC,CAAC;IAC9D;;OAEG;IACH,KAAK,CAAC,EAAE,iBAAiB,CAAC;CAC3B;AAED,UAAU,sBAAsB;IAC9B,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,UAAU,EAAE,MAAM,OAAO,CAAC;IAC1B,MAAM,EAAE,CAAC,SAAS,EAAE,WAAW,GAAG,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3D,WAAW,EAAE,CAAC,KAAK,EAAE,6BAA6B,KAAK,OAAO,CAAC,IAAI,CAAC,CA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AAE;YACL,IAAI,CAAC,EAAE,SAAS,GAAG,aAAa,GAAG,QAAQ,GAAG,MAAM,CAAC;YACrD,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;SACrC,CAAC;QACF,IAAI,CAAC,EAAE;YACL,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,YAAY,GAAG,WAAW,CAAC;YACvD,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;YACxC,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;SACrC,CAAC;QACF,KAAK,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;KACxC,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;IACjE,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IAClD,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IAClD,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;CACpD;AAED,UAAU,uBAAuB;IAC/B,MAAM,EAAE,CAAC,SAAS,EAAE,WAAW,GAAG,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5D"}
@@ -0,0 +1,32 @@
1
+ import type { BaseWalletMeta } from "../../../interfaces/base-wallet-meta.interface";
2
+ export interface PaypalWalletMeta extends BaseWalletMeta {
3
+ pay_later?: boolean;
4
+ hide_message?: boolean;
5
+ standalone?: boolean;
6
+ capture?: boolean;
7
+ style?: {
8
+ layout?: 'vertical' | 'horizontal';
9
+ color?: 'gold' | 'blue' | 'silver' | 'black' | 'white';
10
+ shape?: 'rect' | 'pill' | 'sharp';
11
+ borderRadius?: number;
12
+ height?: number;
13
+ disableMaxWidth?: boolean;
14
+ label?: 'paypal' | 'checkout' | 'buynow' | 'pay' | 'installment';
15
+ tagline?: boolean;
16
+ messages?: {
17
+ layout?: 'text' | 'flex';
18
+ logo?: {
19
+ type?: 'primary' | 'alternative' | 'inline' | 'none';
20
+ position?: 'left' | 'right' | 'top';
21
+ };
22
+ text?: {
23
+ color?: 'black' | 'white' | 'monochrome' | 'grayscale';
24
+ size?: 10 | 11 | 12 | 13 | 14 | 15 | 16;
25
+ align?: 'left' | 'center' | 'right';
26
+ };
27
+ color?: 'blue' | 'black' | 'white' | 'white-no-border' | 'gray' | 'monochrome' | 'grayscale';
28
+ ratio?: '1x1' | '1x4' | '8x1' | '20x1';
29
+ };
30
+ };
31
+ }
32
+ //# sourceMappingURL=paypal-wallet-meta.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paypal-wallet-meta.interface.d.ts","sourceRoot":"","sources":["../../../../../src/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AAErF,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACpD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE;QACJ,MAAM,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;QACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;QACvD,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;QAClC,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,KAAK,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,QAAQ,GAAG,KAAK,GAAG,aAAa,CAAC;QACjE,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,QAAQ,CAAC,EAAE;YACP,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;YACzB,IAAI,CAAC,EAAE;gBACH,IAAI,CAAC,EAAE,SAAS,GAAG,aAAa,GAAG,QAAQ,GAAG,MAAM,CAAC;gBACrD,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;aACvC,CAAC;YACF,IAAI,CAAC,EAAE;gBACH,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,YAAY,GAAG,WAAW,CAAC;gBACvD,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;gBACxC,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;aACvC,CAAC;YACF,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,iBAAiB,GAAG,MAAM,GAAG,YAAY,GAAG,WAAW,CAAC;YAC7F,KAAK,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;SAC1C,CAAC;KACL,CAAA;CACJ"}
@@ -0,0 +1,53 @@
1
+ import { BaseWalletButton } from '../../base.wallet-button-express';
2
+ import type { PaypalWalletMeta } from './interfaces/paypal-wallet-meta.interface';
3
+ import type { PayPalSDK } from './interfaces/paypal-sdk.interface';
4
+ /**
5
+ * Class PaypalWalletButtonExpress to work with Paypal Wallet.
6
+ *
7
+ * @extends BaseWalletButton
8
+ *
9
+ * @constructor
10
+ *
11
+ * @example
12
+ * var button = new PaypalWalletButtonExpress('#wallet-buttons', 'publicKeyOrAccessToken', 'gatewayId', meta);
13
+ *
14
+ * @param {string} selector - Selector of html element. Container for the PaypalWalletButtonExpress.
15
+ * @param {string} publicKeyOrAccessToken - Public key or Access token for the PaypalWalletButtonExpress.
16
+ * @param {string} gatewayId - Gateway ID for the PaypalWalletButtonExpress.
17
+ * @param {PaypalWalletMeta} meta - data that configures the Paypal Wallet.
18
+ */
19
+ declare class PaypalWalletButtonExpress extends BaseWalletButton<PaypalWalletMeta> {
20
+ private config;
21
+ protected paypal: PayPalSDK;
22
+ protected pendingApprovalPromise?: Promise<{
23
+ status: string;
24
+ }>;
25
+ private shippingRequested;
26
+ /** @constructs */ constructor(selector: string, publicKeyOrAccessToken: string, gatewayId: string, meta: PaypalWalletMeta);
27
+ /**
28
+ * Initializes the availability checks and inserts the button if possible.
29
+ * Otherwise function onUnavailable(handler: VoidFunction) will be called.
30
+ * **Important**: Is required to invoke this method to render the wallet button.
31
+ *
32
+ * @example
33
+ * button.load();
34
+ */
35
+ load(): void;
36
+ /**
37
+ * Call this method if updating the originally-provided meta object after order information changed.
38
+ * For example, if the order amount has changed from the time where the button was originally rendered.
39
+ *
40
+ * @example
41
+ * button.setMeta(meta);
42
+ * @param {PaypalWalletMeta} meta - // data that configures the Paypal Wallet.
43
+ */
44
+ setMeta(meta: PaypalWalletMeta): void;
45
+ private renderPaypalButton;
46
+ private renderPaypalCommonComponent;
47
+ private renderPaypalStandaloneComponent;
48
+ private paypalSharedProps;
49
+ private handleShippingAddressUpdate;
50
+ private handleShippingOptionsUpdate;
51
+ }
52
+ export { PaypalWalletButtonExpress };
53
+ //# sourceMappingURL=paypal.wallet-button-express.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paypal.wallet-button-express.d.ts","sourceRoot":"","sources":["../../../../src/wallet-buttons-express/services/paypal/paypal.wallet-button-express.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAElF,OAAO,KAAK,EAA2L,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAI5P;;;;;;;;;;;;;;GAcG;AACH,cAAM,yBAA0B,SAAQ,gBAAgB,CAAC,gBAAgB,CAAC;IACtE,OAAO,CAAC,MAAM,CAAyC;IACvD,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC;IAC5B,SAAS,CAAC,sBAAsB,CAAC,EAAE,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;KAAE,CAAC,CAAC;IAChE,OAAO,CAAC,iBAAiB,CAAS;IAElC,kBAAkB,aACN,QAAQ,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB;IAIvG;;;;;;;OAOG;IACI,IAAI;IAiBX;;;;;;;OAOG;IACI,OAAO,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI;IAK5C,OAAO,CAAC,kBAAkB;IAQ1B,OAAO,CAAC,2BAA2B;IAkBnC,OAAO,CAAC,+BAA+B;IAqCvC,OAAO,CAAC,iBAAiB;YA0DX,2BAA2B;YAgC3B,2BAA2B;CA0B5C;AAED,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { OnShippingAddressChangeEventData } from "../interfaces/on-shipping-address-change-event-data.interface";
2
+ import type { OnShippingAddressChangeEventResponse } from "../interfaces/on-shipping-address-change-event-response.interface";
3
+ import type { OnShippingOptionChangeEventData } from "../interfaces/on-shipping-option-change-event-data.interface";
4
+ import type { OnShippingOptionChangeEventResponse } from "../interfaces/on-shipping-option-change-event-response.interface";
5
+ export type ShippingEventToResponse<T> = T extends OnShippingAddressChangeEventData ? OnShippingAddressChangeEventResponse : T extends OnShippingOptionChangeEventData ? OnShippingOptionChangeEventResponse : never;
6
+ //# sourceMappingURL=shipping-event-to-response.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shipping-event-to-response.type.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/types/shipping-event-to-response.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,+DAA+D,CAAC;AACtH,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,mEAAmE,CAAC;AAC9H,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,8DAA8D,CAAC;AACpH,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,kEAAkE,CAAC;AAE5H,MAAM,MAAM,uBAAuB,CAAC,CAAC,IACnC,CAAC,SAAS,gCAAgC,GAAG,oCAAoC,GACjF,CAAC,SAAS,+BAA+B,GAAG,mCAAmC,GAC/E,KAAK,CAAC"}
@@ -0,0 +1,165 @@
1
+ import { type IAfterpayMeta, type IBamboraMeta, type IPayPalMeta, type IZipmoneyMeta } from "../components/param";
2
+ import { type HttpRequestMethod, type HttpRequestUrl } from '../shared/http/http-request';
3
+ /**
4
+ * List of available payment source types
5
+ *
6
+ * @type {object}
7
+ * @param {string} CARD=card
8
+ * @param {string} BANK_ACCOUNT=bank_account
9
+ * @param {string} CHECKOUT=checkout
10
+ */
11
+ export declare const PAYMENT_TYPE: {
12
+ CARD: string;
13
+ GIFT_CARD: string;
14
+ BANK_ACCOUNT: string;
15
+ CHECKOUT: string;
16
+ BSB: string;
17
+ };
18
+ /**
19
+ * Purposes
20
+ * @type {object}
21
+ * @param {string} PAYMENT_SOURCE=payment_source
22
+ * @param {string} CARD_PAYMENT_SOURCE_WITH_CVV=card_payment_source_with_cvv
23
+ * @param {string} CARD_PAYMENT_SOURCE_WITHOUT_CVV=card_payment_source_without_cvv
24
+ * */
25
+ export declare enum PURPOSE {
26
+ PAYMENT_SOURCE = "payment_source",
27
+ CARD_PAYMENT_SOURCE_WITH_CVV = "card_payment_source_with_cvv",
28
+ CARD_PAYMENT_SOURCE_WITHOUT_CVV = "card_payment_source_without_cvv"
29
+ }
30
+ export interface IGeneral {
31
+ purpose: PURPOSE;
32
+ predefined_fields: IPredefinedFields;
33
+ defined_form_fields?: string[];
34
+ webhook_destination?: string;
35
+ success_redirect_url?: string;
36
+ error_redirect_url?: string;
37
+ meta?: IPayPalMeta;
38
+ label?: string;
39
+ dynamic_fields_position?: boolean;
40
+ }
41
+ export interface IPredefinedFields {
42
+ gateway_id: string;
43
+ type?: string;
44
+ card_scheme?: string;
45
+ card_processing_network?: string;
46
+ }
47
+ /**
48
+ * Class Configuration include methods for creating configuration token
49
+ * @constructor
50
+ *
51
+ * @example
52
+ * var config = new Configuration('gatewayId'); // short
53
+ *
54
+ * var config = new Configuration('gatewayId', 'bank_account', 'paymentSource'); // extend
55
+ *
56
+ * var config = new Configuration('not_configured'); // without gateway
57
+ *
58
+ * @param {string} [gatewayID=default] - gateway ID. By default or if put 'default', it will use the selected default gateway. If put 'not_configured', it won’t use gateway to create downstream token.
59
+ * @param {string} paymentType - Type of payment source which shows in widget form. Available parameters [PAYMENT_TYPE]{@link PAYMENT_TYPE}
60
+ * @param {string} purpose - Param which describes payment purpose. By default uses Available parameters [PURPOSE]{@link PURPOSE}
61
+ */
62
+ declare class Configuration {
63
+ private configs;
64
+ private env;
65
+ static createEachToken(accessToken: string, configs: Configuration[]): Promise<string[]>;
66
+ private static addTokenInBase64;
67
+ /** @constructs */ constructor(gatewayID?: string, paymentType?: string, purpose?: PURPOSE);
68
+ /**
69
+ * Destination, where customer will receive all successful responses.
70
+ * Response will contain “data” object with “payment_source” or other parameters, in depending on 'purpose'
71
+ *
72
+ * @example
73
+ * config.setWebHookDestination('http://google.com');
74
+ *
75
+ * @param {string} url - Your endpoint for post request.
76
+ */
77
+ setWebHookDestination(url: string): void;
78
+ /**
79
+ * URL to which the Customer will be redirected to after the success finish
80
+ *
81
+ * @example
82
+ * config.setSuccessRedirectUrl('google.com/search?q=success');
83
+ *
84
+ * @param {string} url
85
+ */
86
+ setSuccessRedirectUrl(url: string): void;
87
+ /**
88
+ * URL to which the Customer will be redirected to if an error is triggered in the process of operation
89
+ *
90
+ * @example
91
+ * config.setErrorRedirectUrl('google.com/search?q=error');
92
+ *
93
+ * @param {string} url
94
+ */
95
+ setErrorRedirectUrl(url: string): void;
96
+ /**
97
+ * Set list with widget form field, which will be shown in form. Also you can set the required validation for these fields
98
+ *
99
+ * @example
100
+ * config.setFormFields(['phone', 'email', 'first_name*']);
101
+ *
102
+ * @param {string[]} fields - name of fields which can be shown in a widget.
103
+ * If after a name of a field, you put “*”, this field will be required on client-side.
104
+ * (For validation, you can specify any fields, even those that are shown by default: card_number, expiration, etc... ) [FORM_FIELD]{@link FORM_FIELD}
105
+ */
106
+ setFormFields(fields: string[]): void;
107
+ /**
108
+ * Method for setting meta information for checkout page
109
+ *
110
+ * @example
111
+ * config.setMeta({
112
+ brand_name: 'paydock',
113
+ reference: '15',
114
+ email: 'wault@paydock.com'
115
+ });
116
+ *
117
+ * @param {IPayPalMeta | IZipmoneyMeta | IAfterpayMeta | IBamboraMeta} object -
118
+ * data which can be shown on checkout page [IPayPalMeta]{@link IPayPalMeta} [IZipmoneyMeta]{@link IZipmoneyMeta} [IAfterpayMeta]{@link IAfterpayMeta} [IBamboraMeta]{@link IBamboraMeta}
119
+ */
120
+ setMeta(meta: IPayPalMeta | IZipmoneyMeta | IAfterpayMeta | IBamboraMeta): void;
121
+ /**
122
+ * Current method can change environment. By default environment = sandbox.
123
+ * Also we can change domain alias for this environment. By default domain_alias = paydock.com
124
+ *
125
+ * @example
126
+ * config.setEnv('production');
127
+ * @param {string} env - sandbox, production
128
+ * @param {string} [alias] - Own domain alias
129
+ */
130
+ setEnv(env: string, alias?: string): void;
131
+ /**
132
+ * Title for tab which can be set instead of default
133
+ *
134
+ * @example
135
+ * config.setLabel('custom label');
136
+ *
137
+ * @param {string} label - Text label for tab
138
+ */
139
+ setLabel(label: string): void;
140
+ getEnv(): string;
141
+ /**
142
+ * createToken - method which exactly create payment one time token
143
+ *
144
+ * @example
145
+ * config.createToken('582035346f65cdd57ee81192d6e5w65w4e5',
146
+ * function (data) {
147
+ * console.log(data);
148
+ * }, function (error) {
149
+ * console.log(error);
150
+ * });
151
+ *
152
+ * @param {string} accessToken - Customer access token or public key which provided for each client
153
+ * @param {createToken~requestCallback} cb - The callback that handles the success response.
154
+ * @param {createToken~requestCallback} errorCb - The callback that handles the failed response.
155
+ */
156
+ createToken(accessToken: string, cb: (token: string) => void, errorCb?: (error: any) => void): void;
157
+ getDefaultGateway<T>(accessToken: string, method: HttpRequestMethod, url: HttpRequestUrl): Promise<T>;
158
+ private send;
159
+ getConfigs(): IGeneral;
160
+ private getUrl;
161
+ private getDefaultGatewayUrl;
162
+ setGiftCardSchemeData(giftCardScheme: any, processingNetwork: any): void;
163
+ }
164
+ export { Configuration };
165
+ //# sourceMappingURL=configuration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../src/widget/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,aAAa,EAErB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAe,KAAK,iBAAiB,EAAE,KAAK,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAMvG;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY;;;;;;CAMxB,CAAA;AAED;;;;;;KAMK;AACL,oBAAY,OAAO;IACf,cAAc,mBAAmB;IACjC,4BAA4B,iCAAiC;IAC7D,+BAA+B,oCAAoC;CACtE;AAKD,MAAM,WAAW,QAAQ;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,EAAE,iBAAiB,CAAA;IACpC,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,IAAI,CAAC,EAAE,WAAW,C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