@paydock/client-sdk 0.1.0 → 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 (537) 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/.idea/client-sdk-3.iml +0 -12
  483. package/.idea/jsLibraryMappings.xml +0 -7
  484. package/.idea/misc.xml +0 -16
  485. package/.idea/modules.xml +0 -8
  486. package/.idea/vcs.xml +0 -6
  487. package/.idea/workspace.xml +0 -639
  488. package/.npmignore +0 -14
  489. package/lib/index.d.ts +0 -2
  490. package/lib/index.js +0 -3
  491. package/lib/index.js.map +0 -1
  492. package/lib/widget/components/container.d.ts +0 -9
  493. package/lib/widget/components/container.js +0 -18
  494. package/lib/widget/components/container.js.map +0 -1
  495. package/lib/widget/components/env.d.ts +0 -19
  496. package/lib/widget/components/env.js +0 -33
  497. package/lib/widget/components/env.js.map +0 -1
  498. package/lib/widget/components/event.d.ts +0 -26
  499. package/lib/widget/components/event.js +0 -49
  500. package/lib/widget/components/event.js.map +0 -1
  501. package/lib/widget/components/form-Interceptor.js +0 -38
  502. package/lib/widget/components/form-Interceptor.js.map +0 -1
  503. package/lib/widget/components/iframe.d.ts +0 -11
  504. package/lib/widget/components/iframe.js +0 -31
  505. package/lib/widget/components/iframe.js.map +0 -1
  506. package/lib/widget/components/link.d.ts +0 -13
  507. package/lib/widget/components/link.js +0 -37
  508. package/lib/widget/components/link.js.map +0 -1
  509. package/lib/widget/components/param.d.ts +0 -39
  510. package/lib/widget/components/param.js +0 -21
  511. package/lib/widget/components/param.js.map +0 -1
  512. package/lib/widget/components/trigger.d.ts +0 -19
  513. package/lib/widget/components/trigger.js +0 -22
  514. package/lib/widget/components/trigger.js.map +0 -1
  515. package/lib/widget/configuration.d.ts +0 -59
  516. package/lib/widget/configuration.js +0 -134
  517. package/lib/widget/configuration.js.map +0 -1
  518. package/lib/widget/helper/event.d.ts +0 -8
  519. package/lib/widget/helper/event.js +0 -15
  520. package/lib/widget/helper/event.js.map +0 -1
  521. package/lib/widget/helper/object.js +0 -6
  522. package/lib/widget/helper/object.js.map +0 -1
  523. package/lib/widget/helper/url.d.ts +0 -3
  524. package/lib/widget/helper/url.js +0 -8
  525. package/lib/widget/helper/url.js.map +0 -1
  526. package/lib/widget/html-multi-widget.d.ts +0 -56
  527. package/lib/widget/html-multi-widget.js +0 -89
  528. package/lib/widget/html-multi-widget.js.map +0 -1
  529. package/lib/widget/html-widget.d.ts +0 -37
  530. package/lib/widget/html-widget.js +0 -50
  531. package/lib/widget/html-widget.js.map +0 -1
  532. package/lib/widget/index.d.ts +0 -5
  533. package/lib/widget/index.js +0 -6
  534. package/lib/widget/index.js.map +0 -1
  535. package/lib/widget/multi-widget.d.ts +0 -22
  536. package/lib/widget/multi-widget.js +0 -83
  537. package/lib/widget/multi-widget.js.map +0 -1
@@ -0,0 +1,93 @@
1
+ import { Link } from '../components/link';
2
+ import { Configuration } from '../widget/configuration';
3
+ import { IStyles } from '../components/param';
4
+ /**
5
+ *
6
+ * Class PaymentSourceWidget include method for for creating iframe url
7
+ * @constructor
8
+ *
9
+ * @param {string} publicKey - PayDock users public key
10
+ * @param {string} customer - PayDock's customer_id or customer_reference (In order to use the customer_reference, you must explicitly specify useReference as true)
11
+ * @param {boolean} [useReference=false]
12
+ *
13
+ * @example
14
+ * var widget = new PaymentSourceWidget('publicKey','customerId');
15
+ * // or
16
+ * var widget = new PaymentSourceWidget('publicKey', customerReference, true);
17
+ */
18
+ declare class PaymentSourceWidget {
19
+ protected link: Link;
20
+ protected configs: Configuration[];
21
+ protected configTokens: string[];
22
+ protected publicKey: string;
23
+ /** @constructs */ constructor(accessToken: string, queryToken: string);
24
+ /**
25
+ * Object contain styles for widget
26
+ *
27
+ * @example
28
+ * widget.setStyles({
29
+ * background_color: 'rgb(0, 0, 0)',
30
+ * border_color: 'yellow',
31
+ * text_color: '#FFFFAA',
32
+ * icon_size: 'small',
33
+ * font_size: '20px'
34
+ * });
35
+ * @param {IStyles} fields - name of styles which can be shown in widget [STYLE]{@link STYLE}
36
+ */
37
+ setStyles(styles: IStyles): void;
38
+ setStyle(param: string, value: string): void;
39
+ /**
40
+ * Current method can set custom ID to identify the data in the future
41
+ *
42
+ * @example
43
+ * widget.setRefId('id');
44
+ *
45
+ * @param {string} refId - custom id
46
+ */
47
+ setRefId(refId: string): void;
48
+ /**
49
+ * Current method can set limit for payment sources count. In case when limit sets less then general count will be shown pagination buttons prev and next.
50
+ *
51
+ * @param {string} count - payment source count
52
+ */
53
+ setLimit(count: number): void;
54
+ /**
55
+ * Current method can change environment. By default environment = sandbox
56
+ * Also we can change domain alias for this environment. By default domain_alias = paydock.com
57
+ *
58
+ * @example
59
+ * widget.setEnv('production');
60
+ * @param {string} env - sandbox, production
61
+ * @param {string} [alias] - Own domain alias
62
+ */
63
+ setEnv(env: string, alias?: string): void;
64
+ getEnv(): void;
65
+ /**
66
+ * Method for getting iframe's url
67
+ */
68
+ getIFrameUrl(): string;
69
+ /**
70
+ * Show payment source inside widget only with requested gateway ids
71
+ *
72
+ *
73
+ * @param {string[]} ids - List of gateway_id
74
+ */
75
+ filterByGatewayIds(ids: string[]): void;
76
+ /**
77
+ *
78
+ * Show payment source inside widget only with requested payment source types
79
+ *
80
+ * @param types - List of payment source types. Available parameters [PAYMENT_TYPE]{@link PAYMENT_TYPE}
81
+ */
82
+ filterByTypes(types: string[]): void;
83
+ /**
84
+ * Method for setting a custom language code
85
+ *
86
+ * @example
87
+ * config.setLanguage('en');
88
+ * @param {string} code - ISO 639-1
89
+ */
90
+ setLanguage(code: any): void;
91
+ }
92
+ export { PaymentSourceWidget };
93
+ //# sourceMappingURL=payment-source-widget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment-source-widget.d.ts","sourceRoot":"","sources":["../../src/payment-source-widget/payment-source-widget.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAuB,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAoB,OAAO,EAA6B,MAAM,qBAAqB,CAAC;AAM3F;;;;;;;;;;;;;GAaG;AACH,cAAM,mBAAmB;IAErB,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC;IACrB,SAAS,CAAC,OAAO,EAAE,aAAa,EAAE,CAAM;IACxC,SAAS,CAAC,YAAY,EAAE,MAAM,EAAE,CAAM;IACtC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC;IAE5B,kBAAkB,aACN,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;IAgBnD;;;;;;;;;;;;OAYG;IACI,SAAS,CAAC,MAAM,EAAE,OAAO;IAOzB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAQ5C;;;;;;;OAOG;IACI,QAAQ,CAAC,KAAK,EAAE,MAAM;IAK7B;;;;OAIG;IACI,QAAQ,CAAC,KAAK,EAAE,MAAM;IAK7B;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;IASlC,MAAM;IAIb;;OAEG;IAEI,YAAY,IAAI,MAAM;IAM7B;;;;;OAKG;IACI,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE;IAKvC;;;;;OAKG;IACI,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE;IAepC;;;;;;OAMG;IACI,WAAW,CAAC,IAAI,KAAA;CAG1B;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -0,0 +1,23 @@
1
+ export { PayPalDataCollector } from './paypal-data-collector';
2
+ /**
3
+ * Interface of data used for PayPal configuration. For further information refer to [the documentation](https://developer.paypal.com/sdk/js/reference/#style).
4
+ * @interface PayPalDataCollectorConfig
5
+ *
6
+ * @type {object}
7
+ * @param {boolean} [mouse_movement] Used for indicating if is enabled mouse movement collection.
8
+ */
9
+ /**
10
+ * Data object with the corresponding `correlation_id`.
11
+ * @interface CollectedDeviceData
12
+ *
13
+ * @type {object}
14
+ * @param {string} [correlation_id] The correlation ID that was used on the subsecuent requests.
15
+ */
16
+ /**
17
+ * Interface for IOnErrorEventData
18
+ * @interface IOnErrorEventData
19
+ *
20
+ * @type {object}
21
+ * @param {string} error_code Error code. One of 'promise_not_enabled' or 'script_error'.
22
+ **/
23
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/paypal-data-collector/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D;;;;;;GAMG;AAEH;;;;;;GAMG;AAEH;;;;;;IAMI"}
@@ -0,0 +1,58 @@
1
+ import { EventEmitter } from "../helper/event-emitter";
2
+ import { type CollectedDeviceData, type IOnErrorEventData, type IPayPalDataCollector, type PayPalDataCollectorConfig } from "./paypal-data-collector.interfaces";
3
+ /**
4
+ * PayPal Data Collector Widget constructor
5
+ *
6
+ * @param {string} [flowId] - This string identifies the source website of the FraudNet request.
7
+ * @param {PayPalDataCollectorConfig} [config] - Extra configuration for the widget.
8
+ *
9
+ * @example
10
+ * var payPalDataCollector = new PayPalDataCollector('FLOW_ID', {});
11
+ */
12
+ declare class PayPalDataCollector {
13
+ protected service: IPayPalDataCollector;
14
+ protected eventEmitter: EventEmitter;
15
+ /** @constructs */ constructor(flowId?: string, config?: PayPalDataCollectorConfig);
16
+ /**
17
+ * After configuring the PayPalDataCollector Widget, starts the process and returns
18
+ * the correlation id used among the requests asynchronously.
19
+ *
20
+ * @returns {Promise<CollectedDeviceData>} Promise when resolved, returns an object
21
+ * that contains the `correlation_id` key.
22
+ *
23
+ * @example
24
+ * const collectedDeviceData = await payPalDataCollectorWidget.collectDeviceData();
25
+ * console.log(collectedDeviceData.correlation_id)
26
+ */
27
+ collectDeviceData(): Promise<CollectedDeviceData>;
28
+ /**
29
+ * Callback for onError method.
30
+ *
31
+ * @callback OnErrorCallback
32
+ * @param {IOnErrorEventData|null} data
33
+ */
34
+ /**
35
+ * If the process fails, the function passed as parameter will be called.
36
+ * Important: Do not perform thread blocking operations in callback such as window.alert() calls.
37
+ *
38
+ * @example
39
+ * PayPalDataCollector.onError((eventData) => console.log('Some error occur'));
40
+ *
41
+ * @param {OnErrorCallback} [callback] - Function to be called when there is an error in the flow.
42
+ */
43
+ onError(callback?: (data?: IOnErrorEventData) => void): () => void;
44
+ /**
45
+ * Current method can change environment. By default environment = test.
46
+ * This method does not affect Paydock's API calls or environments, is only for PayPal Data Collector
47
+ * script, in order to know if the script is injected on a live server or is a testing
48
+ * environment. The available values are `test` and `live`. This should match with the used
49
+ * `gateway.mode` in Paydock to process the transaction.
50
+ *
51
+ * @example
52
+ * PayPalDataCollector.setEnv('live');
53
+ * @param {string} env - test, live
54
+ */
55
+ setEnv(env: string): void;
56
+ }
57
+ export { PayPalDataCollector };
58
+ //# sourceMappingURL=paypal-data-collector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paypal-data-collector.d.ts","sourceRoot":"","sources":["../../src/paypal-data-collector/paypal-data-collector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EAEzB,KAAK,yBAAyB,EAC/B,MAAM,oCAAoC,CAAC;AAI5C;;;;;;;;GAQG;AACH,cAAM,mBAAmB;IACvB,SAAS,CAAC,OAAO,EAAE,oBAAoB,CAAC;IACxC,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IAErC,kBAAkB,aAEhB,MAAM,CAAC,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,yBAAyB;IAUpC;;;;;;;;;;OAUG;IACI,iBAAiB,IAAI,OAAO,CAAC,mBAAmB,CAAC;IASxD;;;;;OAKG;IACH;;;;;;;;OAQG;IACI,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,iBAAiB,KAAK,IAAI;IAI5D;;;;;;;;;;OAUG;IACI,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;CAGjC;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -0,0 +1,21 @@
1
+ export declare enum PAYPAL_DATA_COLLECTOR_EVENTS {
2
+ ON_ERROR = "ON_ERROR"
3
+ }
4
+ export declare enum ErrorCodes {
5
+ PROMISE_NOT_ENABLED = "promise_not_enabled",
6
+ SCRIPT_ERROR = "script_error"
7
+ }
8
+ export interface PayPalDataCollectorConfig {
9
+ mouse_movement?: boolean;
10
+ }
11
+ export interface IPayPalDataCollector {
12
+ collectDeviceData(): Promise<CollectedDeviceData>;
13
+ setEnv(env: string): void;
14
+ }
15
+ export interface CollectedDeviceData {
16
+ correlation_id: string;
17
+ }
18
+ export interface IOnErrorEventData {
19
+ error_code: ErrorCodes;
20
+ }
21
+ //# sourceMappingURL=paypal-data-collector.interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paypal-data-collector.interfaces.d.ts","sourceRoot":"","sources":["../../src/paypal-data-collector/paypal-data-collector.interfaces.ts"],"names":[],"mappings":"AAAA,oBAAY,4BAA4B;IACtC,QAAQ,aAAa;CACtB;AAED,oBAAY,UAAU;IACpB,mBAAmB,wBAAwB;IAC3C,YAAY,iBAAiB;CAC9B;AAED,MAAM,WAAW,yBAAyB;IACxC,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,oBAAoB;IACnC,iBAAiB,IAAI,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAClD,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,mBAAmB;IAClC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,UAAU,CAAC;CACxB"}
@@ -0,0 +1,17 @@
1
+ import type { EventEmitter } from "../helper/event-emitter";
2
+ import { type CollectedDeviceData, type IPayPalDataCollector, type PayPalDataCollectorConfig } from "./paypal-data-collector.interfaces";
3
+ export declare class PayPalDataCollectorService implements IPayPalDataCollector {
4
+ protected eventEmitter: EventEmitter;
5
+ protected flowId?: string;
6
+ protected config?: PayPalDataCollectorConfig;
7
+ protected correlationId: string;
8
+ protected isSandbox: boolean;
9
+ constructor(eventEmitter: EventEmitter, flowId?: string, config?: PayPalDataCollectorConfig);
10
+ static fromConfig(eventEmitter: EventEmitter, flowId?: string, config?: PayPalDataCollectorConfig): PayPalDataCollectorService;
11
+ collectDeviceData(): Promise<CollectedDeviceData>;
12
+ private appendPaypalSavePaymentSourceComponent;
13
+ private setupCallbacks;
14
+ onError(): void;
15
+ setEnv(env: string): void;
16
+ }
17
+ //# sourceMappingURL=paypal-data-collector.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paypal-data-collector.service.d.ts","sourceRoot":"","sources":["../../src/paypal-data-collector/paypal-data-collector.service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EACL,KAAK,mBAAmB,EAExB,KAAK,oBAAoB,EAEzB,KAAK,yBAAyB,EAC/B,MAAM,oCAAoC,CAAC;AAE5C,qBAAa,0BAA2B,YAAW,oBAAoB;IAKnE,SAAS,CAAC,YAAY,EAAE,YAAY;IACpC,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM;IACzB,SAAS,CAAC,MAAM,CAAC,EAAE,yBAAyB;IAN9C,SAAS,CAAC,aAAa,EAAE,MAAM,CAAC;IAChC,SAAS,CAAC,SAAS,EAAE,OAAO,CAAC;gBAGjB,YAAY,EAAE,YAAY,EAC1B,MAAM,CAAC,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,yBAAyB;IAG9C,MAAM,CAAC,UAAU,CACf,YAAY,EAAE,YAAY,EAC1B,MAAM,CAAC,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,yBAAyB;IAK7B,iBAAiB,IAAI,OAAO,CAAC,mBAAmB,CAAC;IAUxD,OAAO,CAAC,sCAAsC;IAgC9C,OAAO,CAAC,cAAc;IAsBf,OAAO;IAMP,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;CAGjC"}
@@ -0,0 +1,61 @@
1
+ export { PayPalSavePaymentSourceWidget } from './paypal-save-payment-source';
2
+ /**
3
+ * Interface of data used for PayPal configuration. For further information refer to [the documentation](https://developer.paypal.com/sdk/js/reference/#style).
4
+ * @interface PayPalSavePaymentSourceWidgetConfig
5
+ *
6
+ * @type {object}
7
+ * @param {'vertical'|'horizontal'} [style.layout] Used for indicating the PayPal Button layout.
8
+ * @param {'blue'|'gold'|'silver'|'black'|'white'} [style.color] Used for indicating the main color of the PayPal Button.
9
+ * @param {'rect'|'sharp'|'pill'} [style.shape] Used for indicating the shape of the PayPal Button.
10
+ * @param {'paypal'|'checkout'|'buynow'|'pay'} [style.label] Used for indicating the label of the PayPal Button.
11
+ * @param {boolean} [style.disableMaxWidth] Used for indicating if the max width will be disabled.
12
+ * @param {boolean} [style.disableMaxHeight] Used for indicating the max height will be disabled.
13
+ * @param {number} [style.height] Used for indicating the height of the PayPal Button, if disableMaxHeight is true.
14
+ * @param {number} [style.borderRadius] Used for indicating the border radius of the PayPal Button.
15
+ * @param {boolean} [style.tagline] Used for indicating the tagline of the PayPal Button.
16
+ * @param {number} [message.amount] Used for indicating an amount before the payment.
17
+ * @param {'center'|'left'|'right'} [message.align] Used for indicating the align of the message.
18
+ * @param {'black'|'white'} [message.color] Used for indicating the color of the message.
19
+ * @param {'top'|'bottom'} [message.position] Used for indicating the position of the message.
20
+ */
21
+ /**
22
+ * Interface of possible error codes inside onError event data.
23
+ * @interface ErrorCodes
24
+ *
25
+ * @type {object}
26
+ * @param {string} [unavailable] Error code when an error occurs loading the widget.
27
+ * @param {string} [onPaypalVaultSetupTokenError] Error code when an error occrus on PayPal side.
28
+ * @param {string} [onGetIdTokenError] Error code when trying to get ID token from PayPal.
29
+ * @param {string} [onGetWalletConfigError] Error code when trying to get wallet config from Paydock.
30
+ * @param {string} [onGetSetupTokenError] Error code when trying to get the setup token from PayPal.
31
+ * @param {string} [onOneTimeTokenError] Error code when trying to get the one time token from Paydock.
32
+ */
33
+ /**
34
+ * Interface for IOnSuccessEventData
35
+ * @interface IOnSuccessEventData
36
+ *
37
+ * @type {object}
38
+ * @param {EVENTS} event - Event Name is 'ON_SUCCESS'
39
+ * @param {object} data Data object
40
+ * @param {string} data.token One Time Token to be exchanged for a Paydock Customer.
41
+ * @param {string} [data.email] Paypal account customer email if retrieved from Paypal servers.
42
+ **/
43
+ /**
44
+ * Interface for IOnErrorEventData
45
+ * @interface IOnErrorEventData
46
+ *
47
+ * @type {object}
48
+ * @param {EVENTS} event - Event Name is 'ON_ERROR'
49
+ * @param {object} data Error data object
50
+ * @param {ErrorCodes} data.error_code Error code. One of ErrorCodes.
51
+ * @param {string} [data.details] Error details.
52
+ * @param {string} [data.message] Error message.
53
+ **/
54
+ /**
55
+ * Interface for IOnCancelEventData
56
+ * @interface IOnCancelEventData
57
+ *
58
+ * @type {object}
59
+ * @param {EVENTS} event - Event Name is 'ON_CANCEL'
60
+ **/
61
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/paypal-save-payment-source/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAE7E;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;;;;;;;;;GAWG;AAEH;;;;;;;;;IASI;AAEJ;;;;;;;;;;IAUI;AAEJ;;;;;;IAMI"}
@@ -0,0 +1,85 @@
1
+ import { Container } from '../components/container';
2
+ import { EventEmitter } from '../helper/event-emitter';
3
+ import { type IOnCancelEventData, type IOnErrorEventData, type IOnSuccessEventData, type IPayPalSavePaymentSourceWidget, type PayPalSavePaymentSourceWidgetConfig } from './paypal-save-payment-source.interfaces';
4
+ /**
5
+ * PayPal Save Payment Source Widget constructor
6
+ *
7
+ * @param {string} selector - Selector of html element. Container for PayPal Save Payment Source Widget.
8
+ * @param {string} publicKey - PayDock users public key.
9
+ * @param {string} gatewayId - PayDock's PayPal gatewayId.
10
+ * @param {PayPalSavePaymentSourceWidgetConfig} config - Extra configuration for the widget, like styles.
11
+ *
12
+ * @example
13
+ * var payPalSavePaymentSourceWidget = new PayPalSavePaymentSourceWidget('#paypalButton', 'public_key', 'gateway_id');
14
+ */
15
+ declare class PayPalSavePaymentSourceWidget {
16
+ protected container: Container;
17
+ protected service: IPayPalSavePaymentSourceWidget;
18
+ protected eventEmitter: EventEmitter;
19
+ /** @constructs */ constructor(selector: string, publicKey: string, gatewayId: string, config?: PayPalSavePaymentSourceWidgetConfig);
20
+ /**
21
+ * The final method after configuring the PayPalSavePaymentSource Widget to
22
+ * start the load process.
23
+ */
24
+ load(): void;
25
+ /**
26
+ * Current method can change environment. By default environment = sandbox.
27
+ * Also we can change domain alias for this environment. By default domain_alias = paydock.com
28
+ *
29
+ * @example
30
+ * payPalSavePaymentSourceWidget.setEnv('production');
31
+ * @param {string} env - sandbox, production
32
+ * @param {string} [alias] - Own domain alias
33
+ */
34
+ setEnv(env: string, alias?: string): void;
35
+ /**
36
+ * Callback for onSuccess method.
37
+ *
38
+ * @callback OnSuccessCallback
39
+ * @param {IOnSuccessEventData} data
40
+ */
41
+ /**
42
+ * If the setup token was successfully approved and a OTT was generated, the function passed as parameter will be called.
43
+ * Important: Do not perform thread blocking operations in callback such as window.alert() calls.
44
+ *
45
+ * @example
46
+ * payPalSavePaymentSourceWidget.onSuccess((eventData) => console.log('One time token and email obtained successfully'));
47
+ *
48
+ * @param {OnSuccessCallback} [callback] - Function to be called when the result is successful.
49
+ */
50
+ onSuccess(callback?: (data: IOnSuccessEventData) => void): () => void;
51
+ /**
52
+ * Callback for onError method.
53
+ *
54
+ * @callback OnErrorCallback
55
+ * @param {IOnErrorEventData} data
56
+ */
57
+ /**
58
+ * If in the process for obtaining the setup token fails, the function passed as parameter will be called.
59
+ * Important: Do not perform thread blocking operations in callback such as window.alert() calls.
60
+ *
61
+ * @example
62
+ * payPalSavePaymentSourceWidget.onError((eventData) => console.log('Some error occurred'));
63
+ *
64
+ * @param {OnErrorCallback} [callback] - Function to be called when there is an error in the flow.
65
+ */
66
+ onError(callback?: (data: IOnErrorEventData) => void): () => void;
67
+ /**
68
+ * Callback for onCancel method.
69
+ *
70
+ * @callback OnCancelCallback
71
+ * @param {IOnCancelEventData} data
72
+ */
73
+ /**
74
+ * If in the process for obtaining the setup token was cancelled, the function passed as parameter will be called.
75
+ * Important: Do not perform thread blocking operations in callback such as window.alert() calls.
76
+ *
77
+ * @example
78
+ * payPalSavePaymentSourceWidget.onCancel(() => console.log('Operation cancelled'));
79
+ *
80
+ * @param {OnCancelCallback} [callback] - Function to be called when the operation is cancelled.
81
+ */
82
+ onCancel(callback?: (data?: IOnCancelEventData) => void): () => void;
83
+ }
84
+ export { PayPalSavePaymentSourceWidget };
85
+ //# sourceMappingURL=paypal-save-payment-source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paypal-save-payment-source.d.ts","sourceRoot":"","sources":["../../src/paypal-save-payment-source/paypal-save-payment-source.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,8BAA8B,EACnC,KAAK,mCAAmC,EACzC,MAAM,yCAAyC,CAAC;AAGjD;;;;;;;;;;GAUG;AACH,cAAM,6BAA6B;IACjC,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;IAC/B,SAAS,CAAC,OAAO,EAAE,8BAA8B,CAAC;IAClD,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IAErC,kBAAkB,aAEhB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,mCAAmC;IAY9C;;;OAGG;IACI,IAAI;IASX;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;IAIzC;;;;;OAKG;IACH;;;;;;;;OAQG;IACI,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI;IAI/D;;;;;OAKG;IACH;;;;;;;;OAQG;IACI,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI;IAI3D;;;;;OAKG;IACH;;;;;;;;OAQG;IACI,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,kBAAkB,KAAK,IAAI;CAG/D;AAED,OAAO,EAAE,6BAA6B,EAAE,CAAC"}
@@ -0,0 +1,83 @@
1
+ import type { Container } from '../components/container';
2
+ export interface PaypalOathTokenResponse {
3
+ id_token: string;
4
+ access_token: string;
5
+ }
6
+ export interface PaypalOAuthTokenBody {
7
+ gateway_id: string;
8
+ }
9
+ export interface PaypalSetupTokenBody {
10
+ gateway_id: string;
11
+ }
12
+ export interface PaypalSetupTokenResponse {
13
+ setup_token: string;
14
+ }
15
+ export interface PaypalOttBody {
16
+ gateway_id: string;
17
+ }
18
+ export interface PaypalOttResponse {
19
+ token: string;
20
+ email: string;
21
+ }
22
+ export interface PayPalStyleConfig {
23
+ layout?: 'vertical' | 'horizontal';
24
+ color?: 'blue' | 'gold' | 'silver' | 'black' | 'white';
25
+ shape?: 'rect' | 'sharp' | 'pill';
26
+ label?: 'paypal' | 'checkout' | 'buynow' | 'pay';
27
+ disableMaxWidth?: boolean;
28
+ disableMaxHeight?: boolean;
29
+ height?: number;
30
+ borderRadius?: number;
31
+ tagline?: boolean;
32
+ }
33
+ export interface PayPalMessageConfig {
34
+ amount?: number;
35
+ align?: 'center' | 'left' | 'right';
36
+ color?: 'black' | 'white';
37
+ position?: 'top' | 'bottom';
38
+ }
39
+ export interface PayPalSavePaymentSourceWidgetConfig {
40
+ style?: PayPalStyleConfig;
41
+ message?: PayPalMessageConfig;
42
+ }
43
+ export declare const PAYPAL_SAVE_PAYMENT_EVENTS: {
44
+ ON_SUCCESS: string;
45
+ ON_ERROR: string;
46
+ ON_CANCEL: string;
47
+ };
48
+ export interface IPayPalSavePaymentSourceWidget {
49
+ load(container: Container): void;
50
+ setEnv(env: string, alias?: string): void;
51
+ }
52
+ export declare enum ErrorCodes {
53
+ UNAVAILABLE = "unavailable",
54
+ ON_PAYPAL_VAULT_SETUP_TOKEN_ERROR = "onPaypalVaultSetupTokenError",
55
+ ON_GET_ID_TOKEN_ERROR = "onGetIdTokenError",
56
+ ON_GET_WALLET_CONFIG_ERROR = "onGetWalletConfigError",
57
+ ON_GET_SETUP_TOKEN_ERROR = "onGetSetupTokenError",
58
+ ON_ONE_TIME_TOKEN_ERROR = "onOneTimeTokenError"
59
+ }
60
+ export declare enum EVENTS {
61
+ ON_SUCCESS = "ON_SUCCESS",
62
+ ON_ERROR = "ON_ERROR",
63
+ ON_CANCEL = "ON_CANCEL"
64
+ }
65
+ export interface IOnSuccessEventData {
66
+ event: EVENTS.ON_SUCCESS;
67
+ data: {
68
+ token: string;
69
+ email: string;
70
+ };
71
+ }
72
+ export interface IOnErrorEventData {
73
+ event: EVENTS.ON_ERROR;
74
+ data: {
75
+ error_code: ErrorCodes;
76
+ details?: string;
77
+ message?: string;
78
+ };
79
+ }
80
+ export interface IOnCancelEventData {
81
+ event: EVENTS.ON_CANCEL;
82
+ }
83
+ //# sourceMappingURL=paypal-save-payment-source.interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paypal-save-payment-source.interfaces.d.ts","sourceRoot":"","sources":["../../src/paypal-save-payment-source/paypal-save-payment-source.interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEzD,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB;AACD,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;IACvD,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAClC,KAAK,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,QAAQ,GAAG,KAAK,CAAC;IACjD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AACD,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IACpC,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;CAC7B;AAED,MAAM,WAAW,mCAAmC;IAClD,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,OAAO,CAAC,EAAE,mBAAmB,CAAC;CAC/B;AAED,eAAO,MAAM,0BAA0B;;;;CAItC,CAAC;AAEF,MAAM,WAAW,8BAA8B;IAC7C,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC;IACjC,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3C;AAED,oBAAY,UAAU;IACpB,WAAW,gBAAgB;IAC3B,iCAAiC,iCAAiC;IAClE,qBAAqB,sBAAsB;IAC3C,0BAA0B,2BAA2B;IACrD,wBAAwB,yBAAyB;IACjD,uBAAuB,wBAAwB;CAChD;AAED,oBAAY,MAAM;IAChB,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,SAAS,cAAc;CACxB;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC,UAAU,CAAC;IACzB,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC;IACvB,IAAI,EAAE;QACJ,UAAU,EAAE,UAAU,CAAC;QACvB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;CACH;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC;CACzB"}
@@ -0,0 +1,35 @@
1
+ import type { GetWalletConfigResponse } from '../api/api-gateway-internal';
2
+ import { ApiInternal } from '../api/api-internal';
3
+ import type { Container } from '../components/container';
4
+ import type { EventEmitter } from '../helper/event-emitter';
5
+ import { type IPayPalSavePaymentSourceWidget, type PayPalSavePaymentSourceWidgetConfig } from './paypal-save-payment-source.interfaces';
6
+ declare global {
7
+ interface Window {
8
+ paypal: any;
9
+ }
10
+ }
11
+ export declare class PayPalSavePaymentSourceService implements IPayPalSavePaymentSourceWidget {
12
+ protected publicKey: string;
13
+ protected gatewayId: string;
14
+ protected eventEmitter: EventEmitter;
15
+ protected config?: PayPalSavePaymentSourceWidgetConfig;
16
+ protected paypal: any;
17
+ protected api: ApiInternal;
18
+ protected walletConfig: GetWalletConfigResponse;
19
+ protected idToken: string;
20
+ constructor(publicKey: string, gatewayId: string, eventEmitter: EventEmitter, config?: PayPalSavePaymentSourceWidgetConfig);
21
+ static fromConfig(publicKey: string, gatewayId: string, eventEmitter: EventEmitter, config?: PayPalSavePaymentSourceWidgetConfig): PayPalSavePaymentSourceService;
22
+ private getApiAuthType;
23
+ setEnv(env: string, alias?: string): void;
24
+ load(container: Container): void;
25
+ private renderPaypalSavePaymentSourceComponent;
26
+ private getClientAuthFromWalletConfig;
27
+ private getSetupToken;
28
+ protected onObtainedVaultSetupToken(vaultSetupToken: string): Promise<void>;
29
+ protected onErrorVaultSetupToken(error: any): void;
30
+ protected onCancelVaultSetupToken(): void;
31
+ private getIdToken;
32
+ private getWalletConfig;
33
+ private extractErrorDetails;
34
+ }
35
+ //# sourceMappingURL=paypal-save-payment-source.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paypal-save-payment-source.service.d.ts","sourceRoot":"","sources":["../../src/paypal-save-payment-source/paypal-save-payment-source.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EAAiB,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAEL,KAAK,8BAA8B,EAEnC,KAAK,mCAAmC,EAOzC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,EAAE,GAAG,CAAC;KACb;CACF;AAWD,qBAAa,8BAA+B,YAAW,8BAA8B;IAOjF,SAAS,CAAC,SAAS,EAAE,MAAM;IAC3B,SAAS,CAAC,SAAS,EAAE,MAAM;IAC3B,SAAS,CAAC,YAAY,EAAE,YAAY;IACpC,SAAS,CAAC,MAAM,CAAC,EAAE,mCAAmC;IATxD,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC;IACtB,SAAS,CAAC,GAAG,EAAE,WAAW,CAAC;IAC3B,SAAS,CAAC,YAAY,EAAE,uBAAuB,CAAC;IAChD,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC;gBAGd,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,YAAY,EAC1B,MAAM,CAAC,EAAE,mCAAmC;IAKxD,MAAM,CAAC,UAAU,CACf,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,YAAY,EAC1B,MAAM,CAAC,EAAE,mCAAmC;IAU9C,OAAO,CAAC,cAAc;IAOf,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;IAIzC,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI;IAcvC,OAAO,CAAC,sCAAsC;IA4C9C,OAAO,CAAC,6BAA6B;IAIrC,OAAO,CAAC,aAAa;IAqBrB,SAAS,CAAC,yBAAyB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAsB3E,SAAS,CAAC,sBAAsB,CAAC,KAAK,KAAA,GAAG,IAAI;IAO7C,SAAS,CAAC,uBAAuB,IAAI,IAAI;IAIzC,OAAO,CAAC,UAAU;IAkBlB,OAAO,CAAC,eAAe;IAgBvB,OAAO,CAAC,mBAAmB;CAQ5B"}
@@ -0,0 +1,31 @@
1
+ import type { IClickToPayMeta } from './interfaces';
2
+ import { SRC } from './secure-remote-commerce';
3
+ /**
4
+ * Class ClickToPay include methods for interacting with the ClickToPay checkout and Manual Card option
5
+ *
6
+ * @extends SRC
7
+ *
8
+ * @constructor
9
+ *
10
+ * @param {string} iframe_selector - Selector of html element. Container for Click To Pay checkout iFrame.
11
+ * @param {string} service_id - Card Scheme Service ID
12
+ * @param {string} public_key_or_access_token - Paydock public key or Access Token
13
+ * @param {IClickToPayMeta} meta - Data that configures the Click To Pay checkout
14
+ * @example
15
+ * var mastercardSRC = new ClickToPay('#checkoutIframe', 'service_id', 'public_key', {});
16
+ *
17
+ */
18
+ declare class ClickToPay extends SRC {
19
+ protected iframe_selector: string;
20
+ protected service_id: string;
21
+ protected public_key_or_access_token: string;
22
+ protected meta: IClickToPayMeta;
23
+ /** @constructs */ constructor(iframe_selector: string, service_id: string, public_key_or_access_token: string, meta: IClickToPayMeta);
24
+ /**
25
+ * The final method after configuring the SRC to start the load process of Click To Pay checkout
26
+ *
27
+ */
28
+ load(): void;
29
+ }
30
+ export { ClickToPay };
31
+ //# sourceMappingURL=click-to-pay-secure-remote-commerce.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"click-to-pay-secure-remote-commerce.d.ts","sourceRoot":"","sources":["../../src/secure-remote-commerce/click-to-pay-secure-remote-commerce.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C;;;;;;;;;;;;;;GAcG;AACH,cAAM,UAAW,SAAQ,GAAG;IAEZ,SAAS,CAAC,eAAe,EAAE,MAAM;IAAE,SAAS,CAAC,UAAU,EAAE,MAAM;IAAE,SAAS,CAAC,0BAA0B,EAAE,MAAM;IAAE,SAAS,CAAC,IAAI,EAAE,eAAe;IAD1J,kBAAkB,aACI,eAAe,EAAE,MAAM,EAAY,UAAU,EAAE,MAAM,EAAY,0BAA0B,EAAE,MAAM,EAAY,IAAI,EAAE,eAAe;IAI1J;;;OAGG;IACI,IAAI,IAAI,IAAI;CAmBtB;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}