@paydock/client-sdk 1.143.0-beta → 1.144.0-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/README.md +158 -0
  2. package/bundles/index.cjs +523 -312
  3. package/bundles/index.cjs.d.ts +751 -116
  4. package/bundles/index.mjs +518 -313
  5. package/bundles/index.mjs.d.ts +751 -116
  6. package/bundles/types/api/api-charge-internal.d.ts +3 -49
  7. package/bundles/types/api/api-charge-internal.d.ts.map +1 -1
  8. package/bundles/types/api/api-checkout-internal.d.ts +1 -47
  9. package/bundles/types/api/api-checkout-internal.d.ts.map +1 -1
  10. package/bundles/types/api/api-shared-types.d.ts +53 -0
  11. package/bundles/types/api/api-shared-types.d.ts.map +1 -0
  12. package/bundles/types/canvas-3ds/canvas-3ds-event-map.d.ts +95 -0
  13. package/bundles/types/canvas-3ds/canvas-3ds-event-map.d.ts.map +1 -0
  14. package/bundles/types/canvas-3ds/canvas-3ds.d.ts +10 -7
  15. package/bundles/types/canvas-3ds/canvas-3ds.d.ts.map +1 -1
  16. package/bundles/types/canvas-3ds/index.d.ts +4 -0
  17. package/bundles/types/canvas-3ds/index.d.ts.map +1 -1
  18. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts +41 -12
  19. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -1
  20. package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts +20 -2
  21. package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts.map +1 -1
  22. package/bundles/types/checkout/checkout-event-map.d.ts +43 -0
  23. package/bundles/types/checkout/checkout-event-map.d.ts.map +1 -0
  24. package/bundles/types/checkout/checkout.d.ts +25 -9
  25. package/bundles/types/checkout/checkout.d.ts.map +1 -1
  26. package/bundles/types/checkout/v1/instructions/instruction.canvas_3ds.show.d.ts.map +1 -1
  27. package/bundles/types/checkout/v3/instructions/instruction.canvas_3ds.show.d.ts.map +1 -1
  28. package/bundles/types/components/param.d.ts +29 -0
  29. package/bundles/types/components/param.d.ts.map +1 -1
  30. package/bundles/types/helper/event-error.d.ts +49 -1
  31. package/bundles/types/helper/event-error.d.ts.map +1 -1
  32. package/bundles/types/index-cba.d.ts +3 -1
  33. package/bundles/types/index-cba.d.ts.map +1 -1
  34. package/bundles/types/index.d.ts +12 -1
  35. package/bundles/types/index.d.ts.map +1 -1
  36. package/bundles/types/open-wallets/base/open-wallet-buttons.d.ts +37 -0
  37. package/bundles/types/open-wallets/base/open-wallet-buttons.d.ts.map +1 -1
  38. package/bundles/types/open-wallets/base/open-wallet.service.d.ts +12 -0
  39. package/bundles/types/open-wallets/base/open-wallet.service.d.ts.map +1 -1
  40. package/bundles/types/open-wallets/google-pay-open-wallet-button.d.ts.map +1 -1
  41. package/bundles/types/open-wallets/index.d.ts +25 -0
  42. package/bundles/types/open-wallets/index.d.ts.map +1 -1
  43. package/bundles/types/open-wallets/interfaces/apple-pay/apple-pay-payment-request.interface.d.ts +2 -2
  44. package/bundles/types/open-wallets/interfaces/apple-pay/apple-pay-payment-request.interface.d.ts.map +1 -1
  45. package/bundles/types/open-wallets/interfaces/apple-pay/index.d.ts +1 -1
  46. package/bundles/types/open-wallets/interfaces/apple-pay/index.d.ts.map +1 -1
  47. package/bundles/types/open-wallets/interfaces/events.interface.d.ts +1 -1
  48. package/bundles/types/open-wallets/interfaces/events.interface.d.ts.map +1 -1
  49. package/bundles/types/open-wallets/interfaces/google-pay/google-pay-meta.interface.d.ts +46 -0
  50. package/bundles/types/open-wallets/interfaces/google-pay/google-pay-meta.interface.d.ts.map +1 -1
  51. package/bundles/types/open-wallets/services/apple-pay/apple-pay.open-wallet.service.d.ts +48 -2
  52. package/bundles/types/open-wallets/services/apple-pay/apple-pay.open-wallet.service.d.ts.map +1 -1
  53. package/bundles/types/open-wallets/services/google-pay/google-pay.open-wallet.service.d.ts.map +1 -1
  54. package/bundles/types/open-wallets/types/index.d.ts +1 -1
  55. package/bundles/types/open-wallets/types/index.d.ts.map +1 -1
  56. package/bundles/types/open-wallets/types/payment-source.type.d.ts +104 -0
  57. package/bundles/types/open-wallets/types/payment-source.type.d.ts.map +1 -1
  58. package/bundles/types/wallet-buttons/interfaces.d.ts +55 -1
  59. package/bundles/types/wallet-buttons/interfaces.d.ts.map +1 -1
  60. package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts +7 -0
  61. package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts.map +1 -1
  62. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts +23 -0
  63. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts.map +1 -1
  64. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts +31 -0
  65. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts.map +1 -1
  66. package/bundles/widget.umd.js +523 -312
  67. package/bundles/widget.umd.js.d.ts +751 -116
  68. package/bundles/widget.umd.js.min.d.ts +751 -116
  69. package/bundles/widget.umd.min.js +1 -1
  70. package/docs/api-canvas3ds.md +19 -12
  71. package/docs/open-wallet-buttons.md +158 -0
  72. package/package.json +1 -1
@@ -1,30 +1,61 @@
1
1
  import type { BaseWalletMeta } from '../../../interfaces/base-wallet-meta.interface';
2
+ /**
3
+ * Metadata required to configure a `PaypalWalletButtonExpress` button.
4
+ * Extends {@link BaseWalletMeta} (`amount`, `currency`) with PayPal-specific options.
5
+ *
6
+ * Most PayPal style options mirror the
7
+ * [PayPal Buttons Style Guide](https://developer.paypal.com/docs/multiparty/checkout/standard/customize/buttons-style-guide/).
8
+ */
2
9
  export interface PaypalWalletMeta extends BaseWalletMeta {
10
+ /** Enable PayPal's Pay Later (Pay in 4) option. Defaults to `false`. */
3
11
  pay_later?: boolean;
12
+ /** Hide the Pay Later messaging copy under the button. Defaults to `false`. */
4
13
  hide_message?: boolean;
14
+ /** Render the standalone PayPal button instead of the smart button group. Defaults to `false`. */
5
15
  standalone?: boolean;
16
+ /** Capture the transaction immediately (`true`) or authorize for later capture (`false`). Defaults to `false`. */
6
17
  capture?: boolean;
18
+ /** Visual styling for the PayPal button. Mirrors PayPal's smart button style schema. */
7
19
  style?: {
20
+ /** Button layout orientation. */
8
21
  layout?: 'vertical' | 'horizontal';
22
+ /** Button color theme. */
9
23
  color?: 'gold' | 'blue' | 'silver' | 'black' | 'white';
24
+ /** Button shape. */
10
25
  shape?: 'rect' | 'pill' | 'sharp';
26
+ /** Custom border radius in pixels. Overrides `shape` corner roundness. */
11
27
  borderRadius?: number;
28
+ /** Button height in pixels. */
12
29
  height?: number;
30
+ /** When `true`, removes PayPal's default max-width constraint on the button. */
13
31
  disableMaxWidth?: boolean;
32
+ /** Label text displayed on the button. */
14
33
  label?: 'paypal' | 'checkout' | 'buynow' | 'pay' | 'installment';
34
+ /** Whether to show the tagline beneath the button. */
15
35
  tagline?: boolean;
36
+ /** Pay Later messaging configuration shown alongside the button. */
16
37
  messages?: {
38
+ /** Layout type for the messaging block. */
17
39
  layout?: 'text' | 'flex';
40
+ /** PayPal logo configuration in the messaging block. */
18
41
  logo?: {
42
+ /** Logo variant. `'none'` removes the logo entirely. */
19
43
  type?: 'primary' | 'alternative' | 'inline' | 'none';
44
+ /** Logo position relative to the message text. */
20
45
  position?: 'left' | 'right' | 'top';
21
46
  };
47
+ /** Message text styling. */
22
48
  text?: {
49
+ /** Text color. */
23
50
  color?: 'black' | 'white' | 'monochrome' | 'grayscale';
51
+ /** Font size in pixels (10-16). */
24
52
  size?: 10 | 11 | 12 | 13 | 14 | 15 | 16;
53
+ /** Horizontal alignment. */
25
54
  align?: 'left' | 'center' | 'right';
26
55
  };
56
+ /** Background color of the messaging block (used when `layout` is `'flex'`). */
27
57
  color?: 'blue' | 'black' | 'white' | 'white-no-border' | 'gray' | 'monochrome' | 'grayscale';
58
+ /** Aspect ratio of the messaging block. */
28
59
  ratio?: '1x1' | '1x4' | '8x1' | '20x1';
29
60
  };
30
61
  };
@@ -1 +1 @@
1
- {"version":3,"file":"paypal-wallet-meta.interface.d.ts","sourceRoot":"","sources":["../../../../../src/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AAErF,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACtD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE;QACN,MAAM,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;QACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;QACvD,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;QAClC,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,KAAK,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,QAAQ,GAAG,KAAK,GAAG,aAAa,CAAC;QACjE,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,QAAQ,CAAC,EAAE;YACT,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;YACzB,IAAI,CAAC,EAAE;gBACL,IAAI,CAAC,EAAE,SAAS,GAAG,aAAa,GAAG,QAAQ,GAAG,MAAM,CAAC;gBACrD,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;aACrC,CAAC;YACF,IAAI,CAAC,EAAE;gBACL,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,YAAY,GAAG,WAAW,CAAC;gBACvD,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;gBACxC,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;aACrC,CAAC;YACF,KAAK,CAAC,EACF,MAAM,GACN,OAAO,GACP,OAAO,GACP,iBAAiB,GACjB,MAAM,GACN,YAAY,GACZ,WAAW,CAAC;YAChB,KAAK,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;SACxC,CAAC;KACH,CAAC;CACH"}
1
+ {"version":3,"file":"paypal-wallet-meta.interface.d.ts","sourceRoot":"","sources":["../../../../../src/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AAErF;;;;;;GAMG;AACH,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACtD,wEAAwE;IACxE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,+EAA+E;IAC/E,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,kGAAkG;IAClG,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kHAAkH;IAClH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,wFAAwF;IACxF,KAAK,CAAC,EAAE;QACN,iCAAiC;QACjC,MAAM,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;QACnC,0BAA0B;QAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;QACvD,oBAAoB;QACpB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;QAClC,0EAA0E;QAC1E,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,+BAA+B;QAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,gFAAgF;QAChF,eAAe,CAAC,EAAE,OAAO,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