@paydock/client-sdk 1.108.1 → 1.108.2

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 (63) hide show
  1. package/README.md +29 -1
  2. package/bundles/index.cjs +28425 -7291
  3. package/bundles/index.cjs.d.ts +71 -5
  4. package/bundles/index.mjs +28425 -7291
  5. package/bundles/index.mjs.d.ts +71 -5
  6. package/bundles/types/api/api-base.d.ts +14 -6
  7. package/bundles/types/api/api-base.d.ts.map +1 -1
  8. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts +3 -3
  9. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -1
  10. package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts +2 -0
  11. package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts.map +1 -1
  12. package/bundles/types/checkout-button/checkout-contextual-handler.d.ts +4 -0
  13. package/bundles/types/checkout-button/checkout-contextual-handler.d.ts.map +1 -1
  14. package/bundles/types/checkout-button/runner/contextual.runner.d.ts +2 -1
  15. package/bundles/types/checkout-button/runner/contextual.runner.d.ts.map +1 -1
  16. package/bundles/types/checkout-button/runner/popup.runner.d.ts +3 -3
  17. package/bundles/types/checkout-button/runner/popup.runner.d.ts.map +1 -1
  18. package/bundles/types/components/http-core.d.ts.map +1 -1
  19. package/bundles/types/components/param.d.ts +1 -0
  20. package/bundles/types/components/param.d.ts.map +1 -1
  21. package/bundles/types/configs/env/environment.cba.d.ts +1 -1
  22. package/bundles/types/configs/env/environment.cba.d.ts.map +1 -1
  23. package/bundles/types/configs/env/environment.paydock.d.ts +1 -1
  24. package/bundles/types/configs/env/environment.paydock.d.ts.map +1 -1
  25. package/bundles/types/shared/http/http-request.d.ts +14 -0
  26. package/bundles/types/shared/http/http-request.d.ts.map +1 -0
  27. package/bundles/types/shared/http/index.d.ts +2 -0
  28. package/bundles/types/shared/http/index.d.ts.map +1 -0
  29. package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts +15 -0
  30. package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts.map +1 -0
  31. package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts +66 -0
  32. package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts.map +1 -0
  33. package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts +14 -0
  34. package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts.map +1 -0
  35. package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts +15 -0
  36. package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts.map +1 -0
  37. package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts +23 -0
  38. package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts.map +1 -0
  39. package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts +15 -0
  40. package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts.map +1 -0
  41. package/bundles/types/shared/services/instrumentation/repositories/index.d.ts +4 -0
  42. package/bundles/types/shared/services/instrumentation/repositories/index.d.ts.map +1 -0
  43. package/bundles/types/wallet-buttons/flypay-v2.wallet-service.d.ts.map +1 -1
  44. package/bundles/types/wallet-buttons/google.wallet-service.d.ts +4 -4
  45. package/bundles/types/wallet-buttons/google.wallet-service.d.ts.map +1 -1
  46. package/bundles/types/wallet-buttons/index.d.ts +1 -0
  47. package/bundles/types/wallet-buttons/index.d.ts.map +1 -1
  48. package/bundles/types/widget/configuration.d.ts.map +1 -1
  49. package/bundles/types/widget/html-multi-widget.d.ts +3 -3
  50. package/bundles/types/widget/html-multi-widget.d.ts.map +1 -1
  51. package/bundles/widget.umd.js +28425 -7291
  52. package/bundles/widget.umd.js.d.ts +71 -5
  53. package/bundles/widget.umd.js.min.d.ts +71 -5
  54. package/bundles/widget.umd.min.js +61 -2
  55. package/docs/wallet-buttons-examples.md +28 -1
  56. package/docs/wallet-buttons.md +1 -0
  57. package/examples/multi-html-widget/simple.html +2 -1
  58. package/package.json +21 -17
  59. package/slate.md +28 -1
  60. package/bundles/index.cjs.map +0 -1
  61. package/bundles/index.mjs.map +0 -1
  62. package/bundles/widget.umd.js.map +0 -1
  63. package/bundles/widget.umd.min.js.map +0 -1
package/README.md CHANGED
@@ -5197,7 +5197,7 @@ var button = new WalletButtons(
5197
5197
  button.load();
5198
5198
  ```
5199
5199
 
5200
- Flypay, Flypay V2 and Paypal wallets do not require any meta sent to the wallet, so the following is enough for initialization:
5200
+ Flypay and Paypal wallets do not require any meta sent to the wallet, so the following is enough for initialization:
5201
5201
  ```javascript
5202
5202
  let button = new paydock.WalletButtons(
5203
5203
  "#widget",
@@ -5245,6 +5245,32 @@ var button = new WalletButtons(
5245
5245
  button.load();
5246
5246
  ```
5247
5247
 
5248
+ For Flypay v2 wallet, the client_id is required:
5249
+ ```javascript
5250
+ let button = new paydock.WalletButtons(
5251
+ "#widget",
5252
+ token,
5253
+ {
5254
+ client_id: "client_id",
5255
+ }
5256
+ );
5257
+ button.load();
5258
+ ```
5259
+
5260
+ ```javascript
5261
+ // ES2015 | TypeScript
5262
+ import { WalletButtons } from '@paydock/client-sdk';
5263
+
5264
+ var button = new WalletButtons(
5265
+ '#widget',
5266
+ token,
5267
+ {
5268
+ client_id: "client_id",
5269
+ }
5270
+ );
5271
+ button.load();
5272
+ ```
5273
+
5248
5274
  ### Setting environment
5249
5275
 
5250
5276
  Current method can change environment. By default environment = sandbox.
@@ -5545,6 +5571,7 @@ _(Required `meta` fields: - . Optional `meta` fields: -)_
5545
5571
  {
5546
5572
  access_token: 'TOKEN',
5547
5573
  refresh_token: 'TOKEN',
5574
+ client_id: 'CLIENT_ID',
5548
5575
  },
5549
5576
  );
5550
5577
  button.setEnv('sandbox');
@@ -5930,6 +5957,7 @@ Interface of data used by the wallet checkout and payment proccess.
5930
5957
  | [style.button_type] | <code>object</code> | 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. Also select button type for GooglePay (check GooglePayStyles) and Afterpay (check AfterpayStyles). Optional for [ApplePay, GooglePay, Afterpay]. N/A for other wallets. |
5931
5958
  | [style.height] | <code>object</code> | Used to select Afterpay button height. Optional for [Afterpay]. N/A for other wallets. |
5932
5959
  | [wallets] | <code>array</code> | 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. |
5960
+ | [client_id] | <code>string</code> | Client ID to be used in the provider system. Required for [Flypay V2]. N/A for [FlyPay, GooglePay, ApplePay, PayPal, Afterpay]. |
5933
5961
 
5934
5962
  <a name="IApplePayShippingOption" id="IApplePayShippingOption" href="#IApplePayShippingOption">&nbsp;</a>
5935
5963