@paydock/client-sdk 1.103.11-beta → 1.104.1-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 (486) hide show
  1. package/README.md +123 -349
  2. package/bundles/index.cjs +10674 -0
  3. package/bundles/index.cjs.d.ts +3163 -0
  4. package/bundles/index.cjs.map +1 -0
  5. package/bundles/index.mjs +10642 -0
  6. package/bundles/index.mjs.d.ts +3163 -0
  7. package/bundles/index.mjs.map +1 -0
  8. package/{lib → bundles/types}/api/api-base.d.ts +2 -1
  9. package/bundles/types/api/api-base.d.ts.map +1 -0
  10. package/{lib → bundles/types}/api/api-charge-internal.d.ts +1 -0
  11. package/bundles/types/api/api-charge-internal.d.ts.map +1 -0
  12. package/{lib → bundles/types}/api/api-charge.d.ts +1 -0
  13. package/bundles/types/api/api-charge.d.ts.map +1 -0
  14. package/{lib → bundles/types}/api/api-internal.d.ts +1 -0
  15. package/bundles/types/api/api-internal.d.ts.map +1 -0
  16. package/{lib → bundles/types}/api/api-service-internal.d.ts +1 -0
  17. package/bundles/types/api/api-service-internal.d.ts.map +1 -0
  18. package/{lib → bundles/types}/api/api.d.ts +1 -0
  19. package/bundles/types/api/api.d.ts.map +1 -0
  20. package/bundles/types/api/index.d.ts +2 -0
  21. package/bundles/types/api/index.d.ts.map +1 -0
  22. package/{lib → bundles/types}/canvas-3ds/canvas-3ds.d.ts +1 -0
  23. package/bundles/types/canvas-3ds/canvas-3ds.d.ts.map +1 -0
  24. package/{lib → bundles/types}/canvas-3ds/index.d.ts +1 -0
  25. package/bundles/types/canvas-3ds/index.d.ts.map +1 -0
  26. package/{lib → bundles/types}/canvas-3ds/services/gpayments-service.d.ts +1 -0
  27. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -0
  28. package/{lib → bundles/types}/canvas-3ds/services/index.d.ts +1 -0
  29. package/bundles/types/canvas-3ds/services/index.d.ts.map +1 -0
  30. package/{lib → bundles/types}/canvas-3ds/services/standalone3ds-service.d.ts +1 -0
  31. package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts.map +1 -0
  32. package/{lib → bundles/types}/checkout-button/afterpay/afterpay-checkout-button.d.ts +1 -0
  33. package/bundles/types/checkout-button/afterpay/afterpay-checkout-button.d.ts.map +1 -0
  34. package/{lib → bundles/types}/checkout-button/afterpay/afterpay.runner.d.ts +1 -0
  35. package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts.map +1 -0
  36. package/{lib → bundles/types}/checkout-button/checkout-button.d.ts +1 -0
  37. package/bundles/types/checkout-button/checkout-button.d.ts.map +1 -0
  38. package/{lib → bundles/types}/checkout-button/checkout-button.interface.d.ts +1 -0
  39. package/bundles/types/checkout-button/checkout-button.interface.d.ts.map +1 -0
  40. package/{lib → bundles/types}/checkout-button/checkout-contextual-handler.d.ts +1 -0
  41. package/bundles/types/checkout-button/checkout-contextual-handler.d.ts.map +1 -0
  42. package/{lib → bundles/types}/checkout-button/index.d.ts +2 -1
  43. package/bundles/types/checkout-button/index.d.ts.map +1 -0
  44. package/{lib → bundles/types}/checkout-button/paypal/paypal-checkout-button.d.ts +1 -0
  45. package/bundles/types/checkout-button/paypal/paypal-checkout-button.d.ts.map +1 -0
  46. package/{lib → bundles/types}/checkout-button/paypal/paypal.runner.d.ts +1 -0
  47. package/bundles/types/checkout-button/paypal/paypal.runner.d.ts.map +1 -0
  48. package/{lib → bundles/types}/checkout-button/runner/base.runner.d.ts +4 -3
  49. package/bundles/types/checkout-button/runner/base.runner.d.ts.map +1 -0
  50. package/{lib → bundles/types}/checkout-button/runner/contextual.runner.d.ts +2 -1
  51. package/bundles/types/checkout-button/runner/contextual.runner.d.ts.map +1 -0
  52. package/{lib → bundles/types}/checkout-button/runner/index.d.ts +1 -0
  53. package/bundles/types/checkout-button/runner/index.d.ts.map +1 -0
  54. package/{lib → bundles/types}/checkout-button/runner/popup.runner.d.ts +2 -1
  55. package/bundles/types/checkout-button/runner/popup.runner.d.ts.map +1 -0
  56. package/{lib → bundles/types}/checkout-button/runner/redirect.runner.d.ts +2 -1
  57. package/bundles/types/checkout-button/runner/redirect.runner.d.ts.map +1 -0
  58. package/bundles/types/checkout-button/zipmoney/index.d.ts +4 -0
  59. package/bundles/types/checkout-button/zipmoney/index.d.ts.map +1 -0
  60. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-checkout-button.d.ts +1 -0
  61. package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts.map +1 -0
  62. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts +2 -1
  63. package/bundles/types/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts.map +1 -0
  64. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts +2 -1
  65. package/bundles/types/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts.map +1 -0
  66. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.config.d.ts +1 -0
  67. package/bundles/types/checkout-button/zipmoney/zipmoney.config.d.ts.map +1 -0
  68. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.runner.d.ts +2 -1
  69. package/bundles/types/checkout-button/zipmoney/zipmoney.runner.d.ts.map +1 -0
  70. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.types.d.ts +1 -0
  71. package/bundles/types/checkout-button/zipmoney/zipmoney.types.d.ts.map +1 -0
  72. package/{lib → bundles/types}/components/ability-guard.d.ts +1 -0
  73. package/bundles/types/components/ability-guard.d.ts.map +1 -0
  74. package/{lib → bundles/types}/components/background.d.ts +1 -0
  75. package/bundles/types/components/background.d.ts.map +1 -0
  76. package/{lib → bundles/types}/components/container.d.ts +1 -1
  77. package/bundles/types/components/container.d.ts.map +1 -0
  78. package/{lib → bundles/types}/components/dispatcher.d.ts +2 -1
  79. package/bundles/types/components/dispatcher.d.ts.map +1 -0
  80. package/{lib → bundles/types}/components/element-style.d.ts +2 -1
  81. package/bundles/types/components/element-style.d.ts.map +1 -0
  82. package/{lib → bundles/types}/components/flypay-iframe-event.d.ts +1 -0
  83. package/bundles/types/components/flypay-iframe-event.d.ts.map +1 -0
  84. package/{lib → bundles/types}/components/form-Interceptor.d.ts +1 -0
  85. package/bundles/types/components/form-Interceptor.d.ts.map +1 -0
  86. package/{lib → bundles/types}/components/http-core.d.ts +1 -0
  87. package/bundles/types/components/http-core.d.ts.map +1 -0
  88. package/{lib → bundles/types}/components/iframe-event.d.ts +2 -0
  89. package/bundles/types/components/iframe-event.d.ts.map +1 -0
  90. package/{lib → bundles/types}/components/iframe.d.ts +1 -0
  91. package/bundles/types/components/iframe.d.ts.map +1 -0
  92. package/{lib → bundles/types}/components/link.d.ts +2 -1
  93. package/bundles/types/components/link.d.ts.map +1 -0
  94. package/{lib → bundles/types}/components/loader.d.ts +1 -0
  95. package/bundles/types/components/loader.d.ts.map +1 -0
  96. package/{lib → bundles/types}/components/param.d.ts +6 -5
  97. package/bundles/types/components/param.d.ts.map +1 -0
  98. package/{lib → bundles/types}/components/popup.d.ts +1 -0
  99. package/bundles/types/components/popup.d.ts.map +1 -0
  100. package/{lib → bundles/types}/components/storage-dispatcher.d.ts +1 -0
  101. package/bundles/types/components/storage-dispatcher.d.ts.map +1 -0
  102. package/{lib → bundles/types}/components/trigger.d.ts +1 -0
  103. package/bundles/types/components/trigger.d.ts.map +1 -0
  104. package/{lib → bundles/types}/components/vault-display-iframe-event.d.ts +1 -0
  105. package/bundles/types/components/vault-display-iframe-event.d.ts.map +1 -0
  106. package/{lib → bundles/types}/components/wallet-background.d.ts +2 -2
  107. package/bundles/types/components/wallet-background.d.ts.map +1 -0
  108. package/{lib → bundles/types}/components/wallet-trigger.d.ts +1 -0
  109. package/bundles/types/components/wallet-trigger.d.ts.map +1 -0
  110. package/bundles/types/configs/env/environment.cba.d.ts +29 -0
  111. package/bundles/types/configs/env/environment.cba.d.ts.map +1 -0
  112. package/bundles/types/configs/env/environment.interface.d.ts +12 -0
  113. package/bundles/types/configs/env/environment.interface.d.ts.map +1 -0
  114. package/{lib/configs/env/env.d.ts → bundles/types/configs/env/environment.paydock.d.ts} +5 -8
  115. package/bundles/types/configs/env/environment.paydock.d.ts.map +1 -0
  116. package/bundles/types/configs/env/index.d.ts +3 -0
  117. package/bundles/types/configs/env/index.d.ts.map +1 -0
  118. package/{lib → bundles/types}/configs/sdk.d.ts +3 -2
  119. package/bundles/types/configs/sdk.d.ts.map +1 -0
  120. package/{lib → bundles/types}/external-checkout/builder.d.ts +1 -0
  121. package/bundles/types/external-checkout/builder.d.ts.map +1 -0
  122. package/{lib → bundles/types}/external-checkout/checker.d.ts +1 -0
  123. package/bundles/types/external-checkout/checker.d.ts.map +1 -0
  124. package/bundles/types/external-checkout/index.d.ts +3 -0
  125. package/bundles/types/external-checkout/index.d.ts.map +1 -0
  126. package/{lib → bundles/types}/helper/access-token.d.ts +1 -0
  127. package/bundles/types/helper/access-token.d.ts.map +1 -0
  128. package/{lib → bundles/types}/helper/browser.d.ts +1 -0
  129. package/bundles/types/helper/browser.d.ts.map +1 -0
  130. package/{lib → bundles/types}/helper/event-emitter.d.ts +1 -0
  131. package/bundles/types/helper/event-emitter.d.ts.map +1 -0
  132. package/{lib → bundles/types}/helper/event.d.ts +1 -0
  133. package/bundles/types/helper/event.d.ts.map +1 -0
  134. package/{lib → bundles/types}/helper/ms.d.ts +1 -0
  135. package/bundles/types/helper/ms.d.ts.map +1 -0
  136. package/{lib → bundles/types}/helper/object.d.ts +1 -0
  137. package/bundles/types/helper/object.d.ts.map +1 -0
  138. package/{lib → bundles/types}/helper/url.d.ts +1 -0
  139. package/bundles/types/helper/url.d.ts.map +1 -0
  140. package/{lib → bundles/types}/helper/uuid.d.ts +1 -0
  141. package/bundles/types/helper/uuid.d.ts.map +1 -0
  142. package/bundles/types/index-cba.d.ts +13 -0
  143. package/bundles/types/index-cba.d.ts.map +1 -0
  144. package/bundles/types/index.d.ts +14 -0
  145. package/bundles/types/index.d.ts.map +1 -0
  146. package/{lib → bundles/types}/payment-source/builder.d.ts +1 -0
  147. package/bundles/types/payment-source/builder.d.ts.map +1 -0
  148. package/{lib → bundles/types}/payment-source/index.d.ts +1 -0
  149. package/bundles/types/payment-source/index.d.ts.map +1 -0
  150. package/{lib → bundles/types}/payment-source-widget/html-payment-source-widget.d.ts +1 -0
  151. package/bundles/types/payment-source-widget/html-payment-source-widget.d.ts.map +1 -0
  152. package/{lib → bundles/types}/payment-source-widget/index.d.ts +1 -0
  153. package/bundles/types/payment-source-widget/index.d.ts.map +1 -0
  154. package/{lib → bundles/types}/payment-source-widget/interfaces.d.ts +1 -0
  155. package/bundles/types/payment-source-widget/interfaces.d.ts.map +1 -0
  156. package/{lib → bundles/types}/payment-source-widget/payment-source-widget.d.ts +1 -0
  157. package/bundles/types/payment-source-widget/payment-source-widget.d.ts.map +1 -0
  158. package/{lib → bundles/types}/secure-remote-commerce/index.d.ts +1 -0
  159. package/bundles/types/secure-remote-commerce/index.d.ts.map +1 -0
  160. package/{lib → bundles/types}/secure-remote-commerce/interfaces.d.ts +6 -5
  161. package/bundles/types/secure-remote-commerce/interfaces.d.ts.map +1 -0
  162. package/{lib → bundles/types}/secure-remote-commerce/providers/src-provider.d.ts +1 -0
  163. package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts.map +1 -0
  164. package/{lib → bundles/types}/secure-remote-commerce/providers/visa-src/helper.d.ts +1 -0
  165. package/bundles/types/secure-remote-commerce/providers/visa-src/helper.d.ts.map +1 -0
  166. package/{lib → bundles/types}/secure-remote-commerce/providers/visa-src/index.d.ts +1 -0
  167. package/bundles/types/secure-remote-commerce/providers/visa-src/index.d.ts.map +1 -0
  168. package/{lib → bundles/types}/secure-remote-commerce/providers/visa-src/visa-src.d.ts +1 -0
  169. package/bundles/types/secure-remote-commerce/providers/visa-src/visa-src.d.ts.map +1 -0
  170. package/{lib → bundles/types}/secure-remote-commerce/providers/visa-src/visa-src.styles.d.ts +1 -0
  171. package/bundles/types/secure-remote-commerce/providers/visa-src/visa-src.styles.d.ts.map +1 -0
  172. package/{lib → bundles/types}/secure-remote-commerce/secure-remote-commerce.d.ts +1 -0
  173. package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts.map +1 -0
  174. package/{lib → bundles/types}/vault-display-widget/index.d.ts +1 -0
  175. package/bundles/types/vault-display-widget/index.d.ts.map +1 -0
  176. package/{lib → bundles/types}/vault-display-widget/vault-display-widget.d.ts +1 -0
  177. package/bundles/types/vault-display-widget/vault-display-widget.d.ts.map +1 -0
  178. package/{lib → bundles/types}/wallet-buttons/afterpay.wallet-service.d.ts +1 -0
  179. package/bundles/types/wallet-buttons/afterpay.wallet-service.d.ts.map +1 -0
  180. package/{lib → bundles/types}/wallet-buttons/apple.wallet-service.d.ts +1 -2
  181. package/bundles/types/wallet-buttons/apple.wallet-service.d.ts.map +1 -0
  182. package/{lib → bundles/types}/wallet-buttons/flypay-v2.wallet-service.d.ts +2 -9
  183. package/bundles/types/wallet-buttons/flypay-v2.wallet-service.d.ts.map +1 -0
  184. package/{lib → bundles/types}/wallet-buttons/flypay.wallet-service.d.ts +1 -0
  185. package/bundles/types/wallet-buttons/flypay.wallet-service.d.ts.map +1 -0
  186. package/{lib → bundles/types}/wallet-buttons/google.wallet-service.d.ts +1 -3
  187. package/bundles/types/wallet-buttons/google.wallet-service.d.ts.map +1 -0
  188. package/bundles/types/wallet-buttons/index-cba.d.ts +2 -0
  189. package/bundles/types/wallet-buttons/index-cba.d.ts.map +1 -0
  190. package/bundles/types/wallet-buttons/index.d.ts +2 -0
  191. package/bundles/types/wallet-buttons/index.d.ts.map +1 -0
  192. package/{lib → bundles/types}/wallet-buttons/interfaces.d.ts +1 -3
  193. package/bundles/types/wallet-buttons/interfaces.d.ts.map +1 -0
  194. package/{lib → bundles/types}/wallet-buttons/mastercard.wallet-service.d.ts +1 -0
  195. package/bundles/types/wallet-buttons/mastercard.wallet-service.d.ts.map +1 -0
  196. package/{lib → bundles/types}/wallet-buttons/paypal.wallet-service.d.ts +1 -0
  197. package/bundles/types/wallet-buttons/paypal.wallet-service.d.ts.map +1 -0
  198. package/{lib → bundles/types}/wallet-buttons/stripe.wallet-service.d.ts +1 -0
  199. package/bundles/types/wallet-buttons/stripe.wallet-service.d.ts.map +1 -0
  200. package/bundles/types/wallet-buttons/wallet-buttons.d.ts +366 -0
  201. package/bundles/types/wallet-buttons/wallet-buttons.d.ts.map +1 -0
  202. package/{lib/wallet-buttons/wallet-buttons.d.ts → bundles/types/wallet-buttons/wallet-cba-buttons.d.ts} +114 -91
  203. package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts.map +1 -0
  204. package/{lib → bundles/types}/wallet-buttons/wallet-service.d.ts +1 -7
  205. package/bundles/types/wallet-buttons/wallet-service.d.ts.map +1 -0
  206. package/{lib → bundles/types}/widget/configuration.d.ts +2 -1
  207. package/bundles/types/widget/configuration.d.ts.map +1 -0
  208. package/{lib → bundles/types}/widget/html-multi-widget.d.ts +1 -0
  209. package/bundles/types/widget/html-multi-widget.d.ts.map +1 -0
  210. package/{lib → bundles/types}/widget/html-widget.d.ts +1 -0
  211. package/bundles/types/widget/html-widget.d.ts.map +1 -0
  212. package/{lib → bundles/types}/widget/index.d.ts +2 -1
  213. package/bundles/types/widget/index.d.ts.map +1 -0
  214. package/{lib → bundles/types}/widget/meta.d.ts +1 -0
  215. package/bundles/types/widget/meta.d.ts.map +1 -0
  216. package/{lib → bundles/types}/widget/multi-widget.d.ts +2 -1
  217. package/bundles/types/widget/multi-widget.d.ts.map +1 -0
  218. package/{lib → bundles/types}/widget/style.d.ts +1 -0
  219. package/bundles/types/widget/style.d.ts.map +1 -0
  220. package/bundles/widget.umd.js +6977 -7400
  221. package/bundles/widget.umd.js.d.ts +3163 -0
  222. package/bundles/widget.umd.js.map +1 -0
  223. package/bundles/widget.umd.js.min.d.ts +3163 -0
  224. package/bundles/widget.umd.min.js +2 -1
  225. package/bundles/widget.umd.min.js.map +1 -0
  226. package/docs/api-canvas3ds.md +158 -0
  227. package/docs/api-checkout-button.md +912 -0
  228. package/docs/api-examples.md +65 -0
  229. package/docs/api-ps-widget.md +585 -0
  230. package/docs/api-vault-display.md +94 -0
  231. package/docs/api-widget.md +2444 -0
  232. package/docs/api-wrapper.md +78 -0
  233. package/docs/canvas3ds-examples.md +242 -0
  234. package/docs/cba-header.md +13 -0
  235. package/docs/cba-license.md +2 -0
  236. package/docs/checkout-examples.md +248 -0
  237. package/docs/header.md +15 -0
  238. package/docs/html/layout.html +78 -0
  239. package/docs/html/marked.js +23 -0
  240. package/docs/html/style.css +365 -0
  241. package/docs/install/npm.content.md +16 -0
  242. package/docs/install/npm.example.md +24 -0
  243. package/docs/install/umd.content.md +21 -0
  244. package/docs/install/umd.example.md +6 -0
  245. package/docs/install.md +53 -0
  246. package/docs/install.readme.t.md +17 -0
  247. package/docs/install.slate.t.md +17 -0
  248. package/docs/license.md +2 -0
  249. package/docs/partials/header.hbs +3 -0
  250. package/docs/ps-examples.md +129 -0
  251. package/docs/secure-remote-commerce-examples.md +258 -0
  252. package/docs/secure-remote-commerce.md +265 -0
  253. package/docs/vault-display-example.md +132 -0
  254. package/docs/wallet-buttons-examples.md +580 -0
  255. package/docs/wallet-buttons.md +424 -0
  256. package/docs/wallet-cba-buttons-examples.md +388 -0
  257. package/docs/widget-examples.md +134 -0
  258. package/package.json +164 -42
  259. package/slate.md +108 -136
  260. package/.nvmrc +0 -1
  261. package/api.d.ts +0 -1
  262. package/api.js +0 -1
  263. package/canvas3ds.d.ts +0 -1
  264. package/canvas3ds.js +0 -1
  265. package/checkout-button.d.ts +0 -1
  266. package/checkout-button.js +0 -1
  267. package/inicialization-guide.md +0 -7
  268. package/lib/api/api-base.js +0 -101
  269. package/lib/api/api-base.js.map +0 -1
  270. package/lib/api/api-charge-internal.js +0 -30
  271. package/lib/api/api-charge-internal.js.map +0 -1
  272. package/lib/api/api-charge.js +0 -49
  273. package/lib/api/api-charge.js.map +0 -1
  274. package/lib/api/api-internal.js +0 -13
  275. package/lib/api/api-internal.js.map +0 -1
  276. package/lib/api/api-service-internal.js +0 -18
  277. package/lib/api/api-service-internal.js.map +0 -1
  278. package/lib/api/api.js +0 -61
  279. package/lib/api/api.js.map +0 -1
  280. package/lib/api/index.d.ts +0 -1
  281. package/lib/api/index.js +0 -2
  282. package/lib/api/index.js.map +0 -1
  283. package/lib/canvas-3ds/canvas-3ds.js +0 -156
  284. package/lib/canvas-3ds/canvas-3ds.js.map +0 -1
  285. package/lib/canvas-3ds/index.js +0 -2
  286. package/lib/canvas-3ds/index.js.map +0 -1
  287. package/lib/canvas-3ds/services/gpayments-service.js +0 -181
  288. package/lib/canvas-3ds/services/gpayments-service.js.map +0 -1
  289. package/lib/canvas-3ds/services/index.js +0 -2
  290. package/lib/canvas-3ds/services/index.js.map +0 -1
  291. package/lib/canvas-3ds/services/standalone3ds-service.js +0 -32
  292. package/lib/canvas-3ds/services/standalone3ds-service.js.map +0 -1
  293. package/lib/checkout-button/afterpay/afterpay-checkout-button.js +0 -49
  294. package/lib/checkout-button/afterpay/afterpay-checkout-button.js.map +0 -1
  295. package/lib/checkout-button/afterpay/afterpay.runner.js +0 -41
  296. package/lib/checkout-button/afterpay/afterpay.runner.js.map +0 -1
  297. package/lib/checkout-button/checkout-button.interface.js +0 -45
  298. package/lib/checkout-button/checkout-button.interface.js.map +0 -1
  299. package/lib/checkout-button/checkout-button.js +0 -265
  300. package/lib/checkout-button/checkout-button.js.map +0 -1
  301. package/lib/checkout-button/checkout-contextual-handler.js +0 -75
  302. package/lib/checkout-button/checkout-contextual-handler.js.map +0 -1
  303. package/lib/checkout-button/index.js +0 -85
  304. package/lib/checkout-button/index.js.map +0 -1
  305. package/lib/checkout-button/paypal/paypal-checkout-button.js +0 -24
  306. package/lib/checkout-button/paypal/paypal-checkout-button.js.map +0 -1
  307. package/lib/checkout-button/paypal/paypal.runner.js +0 -14
  308. package/lib/checkout-button/paypal/paypal.runner.js.map +0 -1
  309. package/lib/checkout-button/runner/base.runner.js +0 -13
  310. package/lib/checkout-button/runner/base.runner.js.map +0 -1
  311. package/lib/checkout-button/runner/contextual.runner.js +0 -40
  312. package/lib/checkout-button/runner/contextual.runner.js.map +0 -1
  313. package/lib/checkout-button/runner/index.js +0 -11
  314. package/lib/checkout-button/runner/index.js.map +0 -1
  315. package/lib/checkout-button/runner/popup.runner.js +0 -68
  316. package/lib/checkout-button/runner/popup.runner.js.map +0 -1
  317. package/lib/checkout-button/runner/redirect.runner.js +0 -15
  318. package/lib/checkout-button/runner/redirect.runner.js.map +0 -1
  319. package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js +0 -63
  320. package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js.map +0 -1
  321. package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js +0 -78
  322. package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js.map +0 -1
  323. package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js +0 -49
  324. package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js.map +0 -1
  325. package/lib/checkout-button/zipmoney/zipmoney.config.js +0 -4
  326. package/lib/checkout-button/zipmoney/zipmoney.config.js.map +0 -1
  327. package/lib/checkout-button/zipmoney/zipmoney.runner.js +0 -23
  328. package/lib/checkout-button/zipmoney/zipmoney.runner.js.map +0 -1
  329. package/lib/checkout-button/zipmoney/zipmoney.types.js +0 -1
  330. package/lib/checkout-button/zipmoney/zipmoney.types.js.map +0 -1
  331. package/lib/components/ability-guard.js +0 -44
  332. package/lib/components/ability-guard.js.map +0 -1
  333. package/lib/components/background.js +0 -193
  334. package/lib/components/background.js.map +0 -1
  335. package/lib/components/container.js +0 -63
  336. package/lib/components/container.js.map +0 -1
  337. package/lib/components/dispatcher.js +0 -39
  338. package/lib/components/dispatcher.js.map +0 -1
  339. package/lib/components/element-style.js +0 -52
  340. package/lib/components/element-style.js.map +0 -1
  341. package/lib/components/flypay-iframe-event.js +0 -28
  342. package/lib/components/flypay-iframe-event.js.map +0 -1
  343. package/lib/components/form-Interceptor.js +0 -38
  344. package/lib/components/form-Interceptor.js.map +0 -1
  345. package/lib/components/http-core.js +0 -57
  346. package/lib/components/http-core.js.map +0 -1
  347. package/lib/components/iframe-event.js +0 -84
  348. package/lib/components/iframe-event.js.map +0 -1
  349. package/lib/components/iframe.js +0 -62
  350. package/lib/components/iframe.js.map +0 -1
  351. package/lib/components/link.js +0 -59
  352. package/lib/components/link.js.map +0 -1
  353. package/lib/components/loader.js +0 -234
  354. package/lib/components/loader.js.map +0 -1
  355. package/lib/components/param.js +0 -147
  356. package/lib/components/param.js.map +0 -1
  357. package/lib/components/popup.js +0 -104
  358. package/lib/components/popup.js.map +0 -1
  359. package/lib/components/storage-dispatcher.js +0 -75
  360. package/lib/components/storage-dispatcher.js.map +0 -1
  361. package/lib/components/trigger.js +0 -49
  362. package/lib/components/trigger.js.map +0 -1
  363. package/lib/components/vault-display-iframe-event.js +0 -27
  364. package/lib/components/vault-display-iframe-event.js.map +0 -1
  365. package/lib/components/wallet-background.js +0 -63
  366. package/lib/components/wallet-background.js.map +0 -1
  367. package/lib/components/wallet-trigger.js +0 -27
  368. package/lib/components/wallet-trigger.js.map +0 -1
  369. package/lib/configs/env/env.js +0 -117
  370. package/lib/configs/env/env.js.map +0 -1
  371. package/lib/configs/sdk.js +0 -16
  372. package/lib/configs/sdk.js.map +0 -1
  373. package/lib/external-checkout/builder.js +0 -45
  374. package/lib/external-checkout/builder.js.map +0 -1
  375. package/lib/external-checkout/checker.js +0 -22
  376. package/lib/external-checkout/checker.js.map +0 -1
  377. package/lib/external-checkout/index.d.ts +0 -2
  378. package/lib/external-checkout/index.js +0 -3
  379. package/lib/external-checkout/index.js.map +0 -1
  380. package/lib/helper/access-token.js +0 -44
  381. package/lib/helper/access-token.js.map +0 -1
  382. package/lib/helper/browser.js +0 -79
  383. package/lib/helper/browser.js.map +0 -1
  384. package/lib/helper/event-emitter.js +0 -23
  385. package/lib/helper/event-emitter.js.map +0 -1
  386. package/lib/helper/event.js +0 -23
  387. package/lib/helper/event.js.map +0 -1
  388. package/lib/helper/ms.js +0 -32
  389. package/lib/helper/ms.js.map +0 -1
  390. package/lib/helper/object.js +0 -6
  391. package/lib/helper/object.js.map +0 -1
  392. package/lib/helper/url.js +0 -11
  393. package/lib/helper/url.js.map +0 -1
  394. package/lib/helper/uuid.js +0 -26
  395. package/lib/helper/uuid.js.map +0 -1
  396. package/lib/index.d.ts +0 -15
  397. package/lib/index.js +0 -15
  398. package/lib/index.js.map +0 -1
  399. package/lib/payment-source/builder.js +0 -49
  400. package/lib/payment-source/builder.js.map +0 -1
  401. package/lib/payment-source/index.js +0 -2
  402. package/lib/payment-source/index.js.map +0 -1
  403. package/lib/payment-source-widget/html-payment-source-widget.js +0 -167
  404. package/lib/payment-source-widget/html-payment-source-widget.js.map +0 -1
  405. package/lib/payment-source-widget/index.js +0 -35
  406. package/lib/payment-source-widget/index.js.map +0 -1
  407. package/lib/payment-source-widget/interfaces.js +0 -2
  408. package/lib/payment-source-widget/interfaces.js.map +0 -1
  409. package/lib/payment-source-widget/payment-source-widget.js +0 -141
  410. package/lib/payment-source-widget/payment-source-widget.js.map +0 -1
  411. package/lib/secure-remote-commerce/index.js +0 -2
  412. package/lib/secure-remote-commerce/index.js.map +0 -1
  413. package/lib/secure-remote-commerce/interfaces.js +0 -28
  414. package/lib/secure-remote-commerce/interfaces.js.map +0 -1
  415. package/lib/secure-remote-commerce/providers/src-provider.js +0 -1
  416. package/lib/secure-remote-commerce/providers/src-provider.js.map +0 -1
  417. package/lib/secure-remote-commerce/providers/visa-src/helper.js +0 -36
  418. package/lib/secure-remote-commerce/providers/visa-src/helper.js.map +0 -1
  419. package/lib/secure-remote-commerce/providers/visa-src/index.js +0 -2
  420. package/lib/secure-remote-commerce/providers/visa-src/index.js.map +0 -1
  421. package/lib/secure-remote-commerce/providers/visa-src/visa-src.js +0 -113
  422. package/lib/secure-remote-commerce/providers/visa-src/visa-src.js.map +0 -1
  423. package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js +0 -10
  424. package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js.map +0 -1
  425. package/lib/secure-remote-commerce/secure-remote-commerce.js +0 -238
  426. package/lib/secure-remote-commerce/secure-remote-commerce.js.map +0 -1
  427. package/lib/vault-display-widget/index.js +0 -14
  428. package/lib/vault-display-widget/index.js.map +0 -1
  429. package/lib/vault-display-widget/vault-display-widget.js +0 -98
  430. package/lib/vault-display-widget/vault-display-widget.js.map +0 -1
  431. package/lib/wallet-buttons/afterpay.wallet-service.js +0 -152
  432. package/lib/wallet-buttons/afterpay.wallet-service.js.map +0 -1
  433. package/lib/wallet-buttons/apple.wallet-service.js +0 -324
  434. package/lib/wallet-buttons/apple.wallet-service.js.map +0 -1
  435. package/lib/wallet-buttons/flypay-v2.wallet-service.js +0 -165
  436. package/lib/wallet-buttons/flypay-v2.wallet-service.js.map +0 -1
  437. package/lib/wallet-buttons/flypay.wallet-service.js +0 -117
  438. package/lib/wallet-buttons/flypay.wallet-service.js.map +0 -1
  439. package/lib/wallet-buttons/google.wallet-service.js +0 -301
  440. package/lib/wallet-buttons/google.wallet-service.js.map +0 -1
  441. package/lib/wallet-buttons/helpers/flypay-v2.helper.d.ts +0 -3
  442. package/lib/wallet-buttons/helpers/flypay-v2.helper.js +0 -151
  443. package/lib/wallet-buttons/helpers/flypay-v2.helper.js.map +0 -1
  444. package/lib/wallet-buttons/index.d.ts +0 -127
  445. package/lib/wallet-buttons/index.js +0 -128
  446. package/lib/wallet-buttons/index.js.map +0 -1
  447. package/lib/wallet-buttons/interfaces.js +0 -1
  448. package/lib/wallet-buttons/interfaces.js.map +0 -1
  449. package/lib/wallet-buttons/mastercard.wallet-service.js +0 -27
  450. package/lib/wallet-buttons/mastercard.wallet-service.js.map +0 -1
  451. package/lib/wallet-buttons/paypal.wallet-service.js +0 -144
  452. package/lib/wallet-buttons/paypal.wallet-service.js.map +0 -1
  453. package/lib/wallet-buttons/stripe.wallet-service.js +0 -100
  454. package/lib/wallet-buttons/stripe.wallet-service.js.map +0 -1
  455. package/lib/wallet-buttons/wallet-buttons.js +0 -478
  456. package/lib/wallet-buttons/wallet-buttons.js.map +0 -1
  457. package/lib/wallet-buttons/wallet-service.js +0 -60
  458. package/lib/wallet-buttons/wallet-service.js.map +0 -1
  459. package/lib/widget/configuration.js +0 -259
  460. package/lib/widget/configuration.js.map +0 -1
  461. package/lib/widget/html-multi-widget.js +0 -380
  462. package/lib/widget/html-multi-widget.js.map +0 -1
  463. package/lib/widget/html-widget.js +0 -126
  464. package/lib/widget/html-widget.js.map +0 -1
  465. package/lib/widget/index.js +0 -132
  466. package/lib/widget/index.js.map +0 -1
  467. package/lib/widget/meta.js +0 -8
  468. package/lib/widget/meta.js.map +0 -1
  469. package/lib/widget/multi-widget.js +0 -436
  470. package/lib/widget/multi-widget.js.map +0 -1
  471. package/lib/widget/style.js +0 -204
  472. package/lib/widget/style.js.map +0 -1
  473. package/payment-source-widget.d.ts +0 -1
  474. package/payment-source-widget.js +0 -1
  475. package/tslint.json +0 -130
  476. package/typings/globals/@auspayplus/open-payments-checkout/index.d.ts +0 -43
  477. package/typings/globals/jasmine/index.d.ts +0 -576
  478. package/typings/globals/jasmine-ajax/index.d.ts +0 -83
  479. package/typings/globals/jquery/index.d.ts +0 -3759
  480. package/typings/index.d.ts +0 -4
  481. package/vault-display-widget.d.ts +0 -1
  482. package/vault-display-widget.js +0 -1
  483. package/vendors/zipmoney.d.ts +0 -18
  484. package/vendors/zipmoney.js +0 -2
  485. package/widget.d.ts +0 -1
  486. package/widget.js +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"afterpay.wallet-service.d.ts","sourceRoot":"","sources":["../../src/wallet-buttons/afterpay.wallet-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,aAAa,EAAgB,MAAM,kBAAkB,CAAC;AAKnG,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,QAAQ,EAAE,GAAG,CAAC;KACjB;CACJ;AAED,qBAAa,qBAAsB,SAAQ,aAAc,YAAW,cAAc;IAC9E,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,iBAAiB,CAAoB;gBAEjC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB;IAO5C,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,GAAG;IAI/B,MAAM,CAAC,GAAG,EAAE,MAAM;IAMzB,OAAO,CAAC,KAAK;IAcb,OAAO,CAAC,uBAAuB;IAyC/B,OAAO,CAAC,kBAAkB;IAiB1B,OAAO,CAAC,SAAS;IA4BjB,OAAO,CAAC,cAAc;IA+BtB,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,SAAS;CAOpB"}
@@ -32,11 +32,9 @@ export declare class AppleWalletService extends WalletService implements IWallet
32
32
  private checkAvailability;
33
33
  private mount;
34
34
  private onApplePayButtonClicked;
35
- private onCancelPayment;
36
35
  private createRequest;
37
36
  private getMerchantSession;
38
37
  private onValidateMerchant;
39
- private handleMerchantOnButtonClickEvent;
40
38
  private onPaymentAuthorized;
41
39
  private onShippingContactSelected;
42
40
  private onShippingMethodSelected;
@@ -45,3 +43,4 @@ export declare class AppleWalletService extends WalletService implements IWallet
45
43
  private createButtonStyle;
46
44
  }
47
45
  export {};
46
+ //# sourceMappingURL=apple.wallet-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apple.wallet-service.d.ts","sourceRoot":"","sources":["../../src/wallet-buttons/apple.wallet-service.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,6BAA6B,EAAE,cAAc,EAAE,uBAAuB,EAA0D,MAAM,qBAAqB,CAAC;AACrK,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAEH,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,aAAa,EAEhB,MAAM,kB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,mBAAmB,CA6C1B;IAED,OAAO,CAAC,yBAAyB,CAShC;IAED,OAAO,CAAC,wBAAwB,CAW/B;IAGD,OAAO,CAAC,eAAe,CAmBrB;IAEF,OAAO,CAAC,qBAAqB,CAMtB;IAEP,OAAO,CAAC,iBAAiB;CAsD5B"}
@@ -2,27 +2,20 @@ import { Checkout } from '@auspayplus/open-payments-checkout';
2
2
  import { Container } from '../components/container';
3
3
  import { IWalletService, IWalletServiceMeta, WalletService } from './wallet-service';
4
4
  import { Link } from '../components/link';
5
- import { WalletBackground } from '../components/wallet-background';
6
5
  export declare class FlypayV2WalletService extends WalletService implements IWalletService {
7
- protected background: WalletBackground;
8
6
  protected checkout: Checkout;
9
7
  protected link: Link;
10
8
  protected accessToken?: string;
11
9
  protected refreshToken?: string;
12
10
  protected orderId?: string;
13
- protected containerId?: string;
14
- protected flypayV2Button: HTMLButtonElement;
15
- protected processingButtonClick: boolean;
16
11
  constructor(publicKey: string, meta: IWalletServiceMeta);
17
12
  load(container: Container): any;
18
13
  setEnv(env: string): this;
19
- enable(): void;
20
- disable(): void;
21
14
  private mount;
22
15
  private getButton;
23
16
  private onFlypayV2ButtonClick;
24
- private handleMerchantOnButtonClickEvent;
17
+ private createButtonStyle;
25
18
  private getOrderId;
26
19
  private flypayV2Checkout;
27
- private initBackground;
28
20
  }
21
+ //# sourceMappingURL=flypay-v2.wallet-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flypay-v2.wallet-service.d.ts","sourceRoot":"","sources":["../../src/wallet-buttons/flypay-v2.wallet-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAgB,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACnG,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C,qBAAa,qBAAsB,SAAQ,aAAc,YAAW,cAAc;IAC9E,SAAS,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC7B,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC;IACrB,SAAS,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC/B,SAAS,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAChC,SAAS,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;gBAEf,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB;IAQhD,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,GAAG;IAI/B,MAAM,CAAC,GAAG,EAAE,MAAM;IAKzB,OAAO,CAAC,KAAK;IAOb,OAAO,CAAC,SAAS;IAoBjB,OAAO,CAAC,qBAAqB,CAsB3B;IAEF,OAAO,CAAC,iBAAiB;IA0FzB,OAAO,CAAC,UAAU;IAYlB,OAAO,CAAC,gBAAgB;CA6B3B"}
@@ -23,3 +23,4 @@ export declare class FlypayWalletService extends WalletService implements IWalle
23
23
  private parsePaymentSuccessfulData;
24
24
  private parseUpdateData;
25
25
  }
26
+ //# sourceMappingURL=flypay.wallet-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flypay.wallet-service.d.ts","sourceRoot":"","sources":["../../src/wallet-buttons/flypay.wallet-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAiC,MAAM,oBAAoB,CAAC;AACzE,OAAO,EACH,iBAAiB,EAEpB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAW,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EACH,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,aAAa,EAEhB,MAAM,kBAAkB,CAAC;AAI1B,qBAAa,mBAAoB,SAAQ,aAAc,YAAW,cAAc;IAC5E,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC;IACrB,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;IAC/B,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,KAAK,EAAE,iBAAiB,CAAC;IACnC,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,UAAU,EAAE,gBAAgB,CAAC;IACvC,SAAS,CAAC,cAAc,EAAE,aAAa,CAAC;gBAE5B,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB;IAyB5C,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAczC,KAAK,IAAI,IAAI;IAKb,MAAM,CAAC,IAAI,EAAE,oBAAoB;IAIjC,MAAM,CAAC,GAAG,EAAE,MAAM;IAKzB,OAAO,CAAC,cAAc;IAYtB,OAAO,CAAC,iBAAiB;IA8BzB,OAAO,CAAC,0BAA0B;IASlC,OAAO,CAAC,eAAe;CAmC1B"}
@@ -9,7 +9,6 @@ export declare class GoogleWalletService extends WalletService implements IWalle
9
9
  protected latestShippingChangePromiseResolve: (value: unknown) => void;
10
10
  protected latestShippingChangePromiseReject: () => void;
11
11
  protected selectedShippingOption: IGooglePayShippingOption;
12
- protected processingButtonClick: boolean;
13
12
  constructor(publicKey: string, meta: IWalletServiceMeta, gatewayName: string, eventEmitter: EventEmitter);
14
13
  protected getGatewayName(): string;
15
14
  protected getMerchantId(): string;
@@ -21,8 +20,6 @@ export declare class GoogleWalletService extends WalletService implements IWalle
21
20
  update(data: IWalletServiceUpdate): void;
22
21
  private checkAvailability;
23
22
  private mount;
24
- private onGooglePayButtonClicked;
25
- private handleMerchantOnButtonClickEvent;
26
23
  private loadPaymentData;
27
24
  private onPaymentAuthorized;
28
25
  private onPaymentDataChanged;
@@ -32,3 +29,4 @@ export declare class GoogleWalletService extends WalletService implements IWalle
32
29
  private parseUpdateData;
33
30
  private formatShippingOptions;
34
31
  }
32
+ //# sourceMappingURL=google.wallet-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"google.wallet-service.d.ts","sourceRoot":"","sources":["../../src/wallet-buttons/google.wallet-service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAkB,cAAc,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,aAAa,EAAgB,MAAM,kBAAkB,CAAC;AACzI,OAAO,EAAE,8BAA8B,EAAE,eAAe,EAAE,wBAAwB,EAAe,MAAM,qBAAqB,CAAC;AAC7H,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,qBAAa,mBAAoB,SAAQ,aAAc,YAAW,cAAc;IAMnB,SAAS,CAAC,WAAW,EAAE,MAAM;IAAE,SAAS,CAAC,YAAY,EAAE,YAAY;IAL5H,OAAO,CAAC,cAAc,CAAqC;IAC3D,SAAS,CAAC,kCAAkC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACvE,SAAS,CAAC,iCAAiC,EAAE,MAAM,IAAI,CAAC;IACxD,SAAS,CAAC,sBAAsB,EAAE,wBAAwB,CAAC;gBAE/C,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAY,WAAW,EAAE,MAAM,EAAY,YAAY,EAAE,YAAY;IAK5H,SAAS,CAAC,cAAc,IAAI,MAAM;IAIlC,SAAS,CAAC,aAAa,IAAI,MAAM;IAIjC,SAAS,CAAC,aAAa,IAAI,eAAe;IAO1C,SAAS,CAAC,4BAA4B,IAAI,8BAA8B;IAOxE,SAAS,CAAC,kBAAkB,IAAI,OAAO;IAIvC,SAAS,CAAC,kBAAkB,IAAI,OAAO;IAIhC,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAoDzC,MAAM,CAAC,IAAI,EAAE,oBAAoB;IAqCxC,OAAO,CAAC,iBAAiB;IAYzB,OAAO,CAAC,KAAK;IAWb,OAAO,CAAC,eAAe;IAWvB,OAAO,CAAC,mBAAmB;IA6D3B,OAAO,CAAC,oBAAoB;IAe5B,OAAO,CAAC,aAAa;IAWrB,OAAO,CAAC,wBAAwB;IAqDhC,OAAO,CAAC,cAAc;IAmBtB,OAAO,CAAC,eAAe,CAmBrB;IAEF,OAAO,CAAC,qBAAqB,CAK1B;CACN"}
@@ -0,0 +1,2 @@
1
+ export { WalletButtons } from "./wallet-cba-buttons";
2
+ //# sourceMappingURL=index-cba.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-cba.d.ts","sourceRoot":"","sources":["../../src/wallet-buttons/index-cba.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { WalletButtons } from "./wallet-buttons";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/wallet-buttons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
@@ -11,9 +11,6 @@ export interface IWalletPaymentSuccessful {
11
11
  export interface IWalletUnavailable {
12
12
  wallet?: WALLET_TYPE;
13
13
  }
14
- export interface IWalletOnClick {
15
- attachResult: (result: Promise<void> | boolean) => void;
16
- }
17
14
  export interface IWalletUpdate {
18
15
  wallet_response_code?: string;
19
16
  wallet_order_id?: string;
@@ -125,3 +122,4 @@ export interface IPaypalUpdate {
125
122
  };
126
123
  }
127
124
  export {};
125
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/wallet-buttons/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,uBAA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C,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,WAAW,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;CACL;AAED,UAAU,oBAAoB;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE;QACJ,MAAM,EAAE,MAAM,CAAC;KAClB,CAAC;CACL;AAED,MAAM,WAAW,WAAW;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAC,MAAM,CAAA;CACf;AAED,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,oBAAoB,CAAC;CAC9B;AAED,MAAM,WAAW,aAAa;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,YAAY,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,wBAAwB,CAAC,EAAE;QACvB,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,OAAO,CAAC;QAClB,IAAI,EAAE,UAAU,GAAG,QAAQ,CAAC;QAC5B,MAAM,EAAE;YACJ,aAAa,EAAE,MAAM,CAAC;YACtB,KAAK,EAAE,MAAM,CAAC;SACjB,CAAC;KACL,CAAC;CACL"}
@@ -5,3 +5,4 @@ export declare class MastercardWalletService extends WalletService implements IW
5
5
  setEnv(env: string): this;
6
6
  update(data: IWalletServiceUpdate): void;
7
7
  }
8
+ //# sourceMappingURL=mastercard.wallet-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mastercard.wallet-service.d.ts","sourceRoot":"","sources":["../../src/wallet-buttons/mastercard.wallet-service.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEvF,qBAAa,uBAAwB,SAAQ,aAAc,YAAW,cAAc;IAChF,SAAS,CAAC,sBAAsB;IAchC,SAAS,CAAC,cAAc,IAAI,MAAM;IAI3B,MAAM,CAAC,GAAG,EAAE,MAAM;IAKlB,MAAM,CAAC,IAAI,EAAE,oBAAoB;CAG3C"}
@@ -23,3 +23,4 @@ export declare class PaypalWalletService extends WalletService implements IWalle
23
23
  private paypalSharedProps;
24
24
  private parseUpdateData;
25
25
  }
26
+ //# sourceMappingURL=paypal.wallet-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paypal.wallet-service.d.ts","sourceRoot":"","sources":["../../src/wallet-buttons/paypal.wallet-service.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,cAAc,EACd,oBAAoB,EACpB,aAAa,EAEhB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGpD,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,MAAM,EAAE,GAAG,CAAC;KACf;CACJ;AAED,qBAAa,mBAAoB,SAAQ,aAAc,YAAW,cAAc;IAC5E,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC;IACtB,SAAS,CAAC,kCAAkC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACvE,SAAS,CAAC,iCAAiC,EAAE,MAAM,IAAI,CAAC;IACxD,SAAS,CAAC,kBAAkB,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,aAAa,CAAC,EAAE,MAAM,CAAC;QAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAAC,eAAe,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACtI,SAAS,CAAC,sBAAsB,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IAEzC,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAgBzC,MAAM,CAAC,IAAI,EAAE,oBAAoB;IAcxC,OAAO,CAAC,2BAA2B;IAkBnC,OAAO,CAAC,+BAA+B;IAqCvC,OAAO,CAAC,iBAAiB;IA4CzB,OAAO,CAAC,eAAe;CA0B1B"}
@@ -16,3 +16,4 @@ export declare class StripeWalletService extends WalletService implements IWalle
16
16
  private setOnPaymentMethodSelected;
17
17
  private getWalletType;
18
18
  }
19
+ //# sourceMappingURL=stripe.wallet-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripe.wallet-service.d.ts","sourceRoot":"","sources":["../../src/wallet-buttons/stripe.wallet-service.ts"],"names":[],"mappings":"AACA,OAAO,EACH,MAAM,EACN,cAAc,EAEd,iCAAiC,EACjC,4BAA4B,EAC/B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAGH,cAAc,EACd,aAAa,EAEhB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,eAAO,MAAM,mBAAmB;;;CAG/B,CAAC;AAEF,qBAAa,mBAAoB,SAAQ,aAAc,YAAW,cAAc;IAC5E,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC;IAEzC,SAAS,CAAC,kBAAkB,IAAI,cAAc;IAc9C,SAAS,CAAC,kBAAkB,IAAI,iCAAiC;IAM1D,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAWhD,OAAO,CAAC,iBAAiB;IAqBzB,OAAO,CAAC,KAAK;IAOb,OAAO,CAAC,0BAA0B;IA0ClC,OAAO,CAAC,aAAa;CAMxB"}
@@ -0,0 +1,366 @@
1
+ import { Container } from "../components/container";
2
+ import { IWalletMeta } from "../components/param";
3
+ import { EventEmitter } from "../helper/event-emitter";
4
+ import { IWalletPaymentSuccessful, IWalletUnavailable, IWalletUpdate } from "./interfaces";
5
+ import { ApiInternal } from "../api/api-internal";
6
+ import { IWalletService } from "./wallet-service";
7
+ /**
8
+ * List of available event's name in the wallet button lifecycle
9
+ * @const EVENT
10
+ *
11
+ * @type {object}
12
+ * @param {string} UNAVAILABLE=unavailable
13
+ * @param {string} UPDATE=update
14
+ * @param {string} PAYMENT_SUCCESSFUL=paymentSuccessful
15
+ * @param {string} PAYMENT_ERROR=paymentError
16
+ */
17
+ export declare const EVENT: {
18
+ UNAVAILABLE: string;
19
+ UPDATE: string;
20
+ PAYMENT_SUCCESSFUL: string;
21
+ PAYMENT_ERROR: string;
22
+ PAYMENT_IN_REVIEW: string;
23
+ AUTH_TOKENS_CHANGED: string;
24
+ };
25
+ /**
26
+ * Interface of data from events.
27
+ * @interface IEventData
28
+ *
29
+ * @param {string} event
30
+ * @param {void | IWalletPaymentSuccessful | IWalletUpdate | IWalletUnavailable | any} data
31
+ * */
32
+ export interface IEventData {
33
+ event: string;
34
+ data: void | IWalletPaymentSuccessful | IWalletUpdate | IWalletUnavailable | any;
35
+ }
36
+ /**
37
+ * Interface of data from a successful payment result.
38
+ * @interface IWalletPaymentSuccessful
39
+ *
40
+ * @param {string} id
41
+ * @param {number} amount
42
+ * @param {string} currency
43
+ * @param {string} status
44
+ * @param {string} [payer_name]
45
+ * @param {string} [payer_email]
46
+ * @param {string} [payer_phone]
47
+ * */
48
+ /**
49
+ * Interface of data from an update event.
50
+ * @interface IWalletUpdate
51
+ *
52
+ * @param {string} [wallet_response_code]
53
+ * @param {string} [wallet_session_id]
54
+ * @param {object} [payment_source]
55
+ * @param {string} [payment_source.wallet_payment_method_id]
56
+ * @param {string} [payment_source.card_number_last4]
57
+ * @param {string} [payment_source.card_scheme]
58
+ * @param {object} [wallet_loyalty_account]
59
+ * @param {string} [wallet_loyalty_account.id]
60
+ * @param {string} [wallet_loyalty_account.barcode]
61
+ * @param {object} [shipping]
62
+ * @param {string} [shipping.address_line1]
63
+ * @param {string} [shipping.address_line2]
64
+ * @param {string} [shipping.address_postcode]
65
+ * @param {string} [shipping.address_city]
66
+ * @param {string} [shipping.address_state]
67
+ * @param {string} [shipping.address_country]
68
+ * @param {string} [shipping.address_company]
69
+ * @param {string} [shipping.post_office_box_number]
70
+ * @param {string} [shipping.wallet_address_id]
71
+ * @param {string} [shipping.wallet_address_name]
72
+ * @param {string} [shipping.wallet_address_created_timestamp]
73
+ * @param {string} [shipping.wallet_address_updated_timestamp]
74
+ * */
75
+ /**
76
+ * Interface of data from an unavailable event.
77
+ * @interface IWalletUnavailable
78
+ *
79
+ * @param {string} [wallet] For gateways with more than one wallet button available (e.g: MPGS with ApplePay and GooglePay). Possible values for wallet are 'apple' or 'google'.
80
+ * */
81
+ /**
82
+ * Interface of data for wallet button `update` call.
83
+ * @interface IWalletUpdateData
84
+ *
85
+ * @param {boolean} success
86
+ * */
87
+ export interface IWalletUpdateData {
88
+ success: boolean;
89
+ }
90
+ /**
91
+ * Interface of data used by the wallet checkout and payment proccess.
92
+ * @interface IWalletMeta
93
+ *
94
+ * @type {object}
95
+ * @param {string} [amount_label] Label shown next to the total amount to be paid. Required for [Stripe, ApplePay, GooglePay]. N/A for [FlyPay, Flypay V2, PayPal, Afterpay].
96
+ * @param {string} [country] Country of the user. 2 letter ISO code format. Required for [Stripe, ApplePay, GooglePay, Afterpay]. N/A for [FlyPay, Flypay V2, PayPal].
97
+ * @param {boolean} [pay_later] Used to enable Pay Later feature in PayPal Smart Checkout WalletButton integration when available. Optional for [PayPal]. N/A for other wallets.
98
+ * @param {boolean} [standalone] Used to enable Standalone Buttons feature in PayPal Smart Checkout WalletButton integration. Used together with `pay_later`. Optional for [PayPal]. N/A for other wallets.
99
+ * @param {boolean} [show_billing_address] Used to hide/show the billing address on ApplePay and GooglePay popups. Default value is false. Optional for [ApplePay, GooglePay]. N/A for other wallets.
100
+ * @param {boolean} [request_payer_name] Used mainly for fraud purposes - recommended set to true. Optional for [Stripe]. N/A for other wallets.
101
+ * @param {boolean} [request_payer_email] Used mainly for fraud purposes - recommended set to true. Optional for [Stripe]. N/A for other wallets.
102
+ * @param {boolean} [request_payer_phone] Used mainly for fraud purposes - recommended set to true. Optional for [Stripe]. N/A for other wallets.
103
+ * @param {string} [access_token] Used for Flypay V2 express flow. Optional for [Flypay V2]. N/A for other wallets.
104
+ * @param {string} [refresh_token] Used for Flypay V2 express flow. Optional for [Flypay V2]. N/A for other wallets.
105
+ * @param {boolean} [request_shipping] Used to request or not shipping address in the Wallet checkout, being able to handle amount changes via the `update` event. Optional for [FlyPay, PayPal, ApplePay, GooglePay]. N/A for [Flypay V2, Stripe, Afterpay].
106
+ * @param {IApplePayShippingOption[] | IPayPalShippingOption[]} [shipping_options] Used to provide available shipping options.(To use shipping_options the request_shipping flag should be true). Optional for [ApplePay]. N/A for the other wallets.
107
+ * @param {string} [merchant_name] Merchant Name used for GooglePay integration via MPGS. Required for [GooglePay]. N/A for other wallets.
108
+ * @param {object} [raw_data_initialization] Used to provide values to initialize wallet with raw data. Optional for [ApplePay]. N/A for the other wallets.
109
+ * @param {object} [style] For **Paypal**: used to style the buttons, check possible values in the [style guide](https://developer.paypal.com/docs/business/checkout/reference/style-guide).
110
+ * When `standalone` and `pay_later`, extra options can be provided in `style.messages` with the [messages style options](https://developer.paypal.com/docs/checkout/pay-later/us/integrate/reference/#stylelayout).
111
+ * Also used at **ApplePay**, **GooglePay** and **Afterpay** to select button type.
112
+ * Optional for [PayPal, ApplePay, GooglePay, Afterpay]. N/A for [Stripe, FlyPay, Flypay V2].
113
+ * @param {object} [style.button_type] Used to select ApplePay button type (e.g: 'buy','donate', etc), check possible values at https://developer.apple.com/documentation/apple_pay_on_the_web/displaying_apple_pay_buttons_using_css.
114
+ * Also select button type for GooglePay (check GooglePayStyles) and Afterpay (check AfterpayStyles). Optional for [ApplePay, GooglePay, Afterpay]. N/A for other wallets.
115
+ * @param {object} [style.height] Used to select Afterpay button height. Optional for [Afterpay]. N/A for other wallets.
116
+ * @param {array} [wallets] By default if this is not sent or empty, we will try to show either Apple Pay or Google Pay buttons. This can be limited sending the following array in this field: ['apple','google]. Optional for [Stripe, ApplePay, GooglePay]. N/A for other wallets.
117
+ */
118
+ /**
119
+ * Interface of Shipping Options for ApplePay
120
+ * @interface IApplePayShippingOption
121
+ *
122
+ * @type {object}
123
+ * @param {string} [id] Identifier of the Shipping Option. Required.
124
+ * @param {string} [label] Identifier of the Shipping Option. Required.
125
+ * @param {string} [amount] Amount of the Shipping Option. Required.
126
+ * @param {string} [detail] Details of the Shipping Option. Required.
127
+ * @param {string} [type] Type of the Shipping Option. Values can be 'ELECTRONIC', 'GROUND', 'NOT_SHIPPED', 'OVERNIGHT', 'PICKUP', 'PRIORITY', 'SAME_DAY'. Optional.
128
+ */
129
+ /**
130
+ * Interface of Shipping Options for GooglePay
131
+ * @interface IGooglePayShippingOption
132
+ *
133
+ * @type {object}
134
+ * @param {string} [id] Identifier of the Shipping Option. Required.
135
+ * @param {string} [label] Identifier of the Shipping Option. Required.
136
+ * @param {string} [detail] Details of the Shipping Option. Optional.
137
+ * @param {string} [type] Type of the Shipping Option. Values can be 'ELECTRONIC', 'GROUND', 'NOT_SHIPPED', 'OVERNIGHT', 'PICKUP', 'PRIORITY', 'SAME_DAY'. Optional.
138
+ */
139
+ /**
140
+ * Interface of Shipping Options for PayPal
141
+ * @interface IPayPalShippingOption
142
+ *
143
+ * @type {object}
144
+ * @param {string} [id] Identifier of the Shipping Option. Required.
145
+ * @param {string} [label] Identifier of the Shipping Option. Required.
146
+ * @param {string} [amount] Amount of the Shipping Option. Required.
147
+ * @param {string} [currency] Currency of the Shipping Option. Required.
148
+ * @param {string} [type] Type of the Shipping Option. Values can be 'SHIPPING' or 'PICKUP'. Required.
149
+ */
150
+ /**
151
+ * Class WalletButtons to work with different E-Wallets within html (currently supports Apple Pay, Google Pay, Google Pay™ and Apple Pay via Stripe, Flypay, Flypay V2, Paypal, Afterpay)
152
+ * @constructor
153
+ *
154
+ * @example
155
+ * var button = new WalletButtons('#wallet-buttons', 'charge-token', { amount_label: 'Total', country: 'us' });
156
+ *
157
+ * @param {string} selector - Selector of html element. Container for the WalletButtons.
158
+ * @param {string} chargeToken - token for the wallet transaction, created with a secure call to `POST charges/wallet`.
159
+ * @param {IWalletMeta} meta - data that configures the E-Wallet, which can be shown on checkout page and configures required customer information.
160
+ */
161
+ declare class WalletButtons {
162
+ protected container: Container;
163
+ protected api: ApiInternal;
164
+ protected service: IWalletService;
165
+ protected eventEmitter: EventEmitter;
166
+ protected hasUpdateHandler: boolean;
167
+ constructor(selector: string, chargeToken: string, meta: IWalletMeta);
168
+ /**
169
+ * Initializes the availability checks and inserts the button if possible.
170
+ * Otherwise function onUnavailable(handler: VoidFunction) will be called.
171
+ *
172
+ * @example
173
+ * var button = new WalletButtons(
174
+ * '#buttons',
175
+ * token,
176
+ * {
177
+ * amount_label: 'Total',
178
+ * country: 'DE',
179
+ * }
180
+ * );
181
+ * button.load();
182
+ */
183
+ load(): void;
184
+ /**
185
+ * Triggers the update process of the wallet, if available.
186
+ * Currently supported by Flypay, Paypal and ApplePay/GooglePay via MPGS Wallets.
187
+ *
188
+ * @example
189
+ * var button = new WalletButtons(
190
+ * '#buttons',
191
+ * token,
192
+ * {
193
+ * amount_label: 'Total',
194
+ * country: 'DE',
195
+ * }
196
+ * );
197
+ * button.on('update', (data) => {
198
+ * updateChargeAmountInBackend(data);
199
+ * button.update({ success: true });
200
+ * });
201
+ *
202
+ * @example
203
+ * // ApplePay via MPGS example:
204
+ * var button = new WalletButtons(
205
+ * '#buttons',
206
+ * token,
207
+ * {
208
+ * amount_label: 'Total',
209
+ * country: 'AU',
210
+ * ...
211
+ * }
212
+ * );
213
+ * button.on('update', (data) => {
214
+ * updateChargeAmountInBackend(data);
215
+ * button.update({
216
+ * success: true,
217
+ * body: {
218
+ * amount: 15,
219
+ * shipping_options: [
220
+ * {
221
+ * id: "NEW-FreeShip",
222
+ * label: "NEW - Free Shipping",
223
+ * detail: "Arrives in 3 to 5 days",
224
+ * amount: "0.00"
225
+ * },
226
+ * {
227
+ * id: "NEW - FastShip",
228
+ * label: "NEW - Fast Shipping",
229
+ * detail: "Arrives in less than 1 day",
230
+ * amount: "10.00"
231
+ * }
232
+ * ]
233
+ * }
234
+ * });
235
+ * });
236
+ */
237
+ update(data: IWalletUpdateData): void;
238
+ /**
239
+ * Current method can change environment. By default environment = sandbox.
240
+ * Also we can change domain alias for this environment. By default domain_alias = paydock.com
241
+ * Bear in mind that you must set an environment before calling `button.load()`.
242
+ *
243
+ * @example
244
+ * button.setEnv('production', 'paydock.com');
245
+ * @param {string} env - sandbox, production
246
+ * @param {string} [alias] - Own domain alias
247
+ */
248
+ setEnv(env: string, alias?: string): void;
249
+ /**
250
+ * Closes the checkout forcibly. Currently supported in Flypay wallet.
251
+ *
252
+ * @example
253
+ * button.close();
254
+ */
255
+ close(): void;
256
+ on(eventName: string): Promise<IEventData>;
257
+ on(eventName: string, cb: (data: IEventData) => void): any;
258
+ /**
259
+ * User to subscribe to the no button available event. This method is used after loading when the button is not available.
260
+ * For MPGS, since can have more than one wallet button configured (ApplePay/GooglePay) you will receive a body (({ wallet: WALLET_TYPE.GOOGLE }) or ({ wallet: WALLET_TYPE.APPLE })) indicating which button is unavailable
261
+ * Important: Do not perform thread blocking operations in callback such as window.alert() calls.
262
+ *
263
+ * @example
264
+ * button.onUnavailable(() => {
265
+ * console.log('No wallet buttons available');
266
+ * });
267
+ *
268
+ * @example
269
+ * button.onUnavailable().then(() => console.log('No wallet buttons available'));
270
+ *
271
+ * @example
272
+ * button.onUnavailable(function (data) {console.log('data.wallet :: ', data.wallet)});
273
+ *
274
+ * @param {listener} [handler] - Function to be called when no button is available.
275
+ */
276
+ onUnavailable(handler?: (data: IEventData) => void): Promise<void> | (() => void);
277
+ /**
278
+ * If the wallet performs some update in the checkout process, the function passed as parameter will be called.
279
+ *
280
+ * NOTE: make sure to call the `button.update(result)` method on handler completion.
281
+ *
282
+ * @example
283
+ * button.onUpdate((data) => {
284
+ * button.update({ success: true });
285
+ * });
286
+ *
287
+ * @example
288
+ * button.onUpdate().then((data) => throw new Error());
289
+ *
290
+ * @param {listener} [handler] - Function to be called when the payment was successful.
291
+ */
292
+ onUpdate(handler?: (data: IEventData) => void): Promise<unknown> | (() => void);
293
+ /**
294
+ * If the payment was successful, the function passed as parameter will be called.
295
+ * Important: Do not perform thread blocking operations in callback such as window.alert() calls.
296
+ *
297
+ * @example
298
+ * button.onPaymentSuccessful((data) => {
299
+ * console.log('Payment successful!');
300
+ * });
301
+ *
302
+ * @example
303
+ * button.onPaymentSuccessful().then((data) => console.log('Payment successful!'));
304
+ *
305
+ * @param {listener} [handler] - Function to be called when the payment was successful.
306
+ */
307
+ onPaymentSuccessful(handler?: (data: IEventData) => void): Promise<unknown> | (() => void);
308
+ /**
309
+ * If the payment was left in fraud review, the function passed as parameter will be called.
310
+ * Important: Do not perform thread blocking operations in callback such as window.alert() calls.
311
+ *
312
+ * @example
313
+ * button.onPaymentInReview((data) => {
314
+ * console.log('Payment in fraud review');
315
+ * });
316
+ *
317
+ * @example
318
+ * button.onPaymentInReview().then((data) => console.log('Payment in fraud review'));
319
+ *
320
+ * @param {listener} [handler] - Function to be called when the payment was left in fraud review status.
321
+ */
322
+ onPaymentInReview(handler?: (err: IEventData) => void): Promise<unknown> | (() => void);
323
+ /**
324
+ * If the payment was not successful, the function passed as parameter will be called.
325
+ * Important: Do not perform thread blocking operations in callback such as window.alert() calls.
326
+ *
327
+ * @example
328
+ * button.onPaymentError((err) => {
329
+ * console.log('Payment not successful');
330
+ * });
331
+ *
332
+ * @example
333
+ * button.onPaymentError().then((err) => console.log('Payment not successful'));
334
+ *
335
+ * @param {listener} [handler] - Function to be called when the payment was not successful.
336
+ */
337
+ onPaymentError(handler?: (err: IEventData) => void): Promise<unknown> | (() => void);
338
+ /**
339
+ * Registers a callback function to be invoked when authentication tokens are changed.
340
+ * This function allows you to respond to changes in authentication tokens, such as when a user logs in.
341
+ *
342
+ * @example
343
+ * button.onAuthTokensChanged((eventData) => {
344
+ * console.log('Authentication tokens changed:', eventData);
345
+ * });
346
+ *
347
+ * @example
348
+ * button.onAuthTokensChanged().then((eventData) => {
349
+ * console.log('Authentication tokens changed:', eventData);
350
+ * });
351
+ *
352
+ * @param {listener} [handler] - Function to be called when authentication tokens are changed.
353
+ */
354
+ onAuthTokensChanged(handler?: (err: IEventData) => void): Promise<unknown> | (() => void);
355
+ private setupServiceCallbacks;
356
+ private setupUnavailableCallback;
357
+ private setupUpdateCallback;
358
+ private setupWalletCallback;
359
+ private setupPaymentCallback;
360
+ private setupPaymentSuccessCallback;
361
+ private setupPaymentInReviewCallback;
362
+ private setupPaymentErrorCallback;
363
+ private setupAuthTokensChangedCallback;
364
+ }
365
+ export { WalletButtons };
366
+ //# sourceMappingURL=wallet-buttons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wallet-buttons.d.ts","sourceRoot":"","sources":["../../src/wallet-buttons/wallet-buttons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAoF,MAAM,qBAAqB,CAAC;AAKpI,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC3F,OAAO,EAAE,WAAW,EAAiB,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAmE,cAAc,EAAgB,MAAM,kBAAkB,CAAC;AAIjI;;;;;;;;;GASG;AACH,eAAO,MAAM,KAAK;;;;;;;CAOjB,CAAC;AAEF;;;;;;KAMK;AACL,MAAM,WAAW,UAAU;IACvB,KAAK,EAAE,MA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