@tap-payments/apple-pay-button 0.0.93-development → 0.0.95-development

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 (41) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +240 -240
  3. package/build/@types/ApplePayButtonProps.d.ts +56 -56
  4. package/build/@types/ApplePayButtonProps.js +1 -1
  5. package/build/@types/checkoutProfile.d.ts +216 -216
  6. package/build/@types/checkoutProfile.js +1 -1
  7. package/build/@types/enums.d.ts +44 -44
  8. package/build/@types/enums.js +51 -51
  9. package/build/@types/index.d.ts +5 -6
  10. package/build/@types/index.js +5 -6
  11. package/build/@types/tapLocalisation.d.ts +193 -193
  12. package/build/@types/tapLocalisation.js +1 -1
  13. package/build/@types/tapTheme.d.ts +842 -842
  14. package/build/@types/tapTheme.js +1 -1
  15. package/build/api.d.ts +7 -31
  16. package/build/api.js +84 -236
  17. package/build/constants/index.d.ts +4 -4
  18. package/build/constants/index.js +4 -4
  19. package/build/features/ApplePayButton/ApplePayButton.d.ts +4 -4
  20. package/build/features/ApplePayButton/ApplePayButton.js +48 -48
  21. package/build/features/ApplePayButton/index.d.ts +3 -3
  22. package/build/features/ApplePayButton/index.js +2 -2
  23. package/build/hooks/index.d.ts +1 -1
  24. package/build/hooks/index.js +1 -1
  25. package/build/hooks/useApplePay.d.ts +84 -81
  26. package/build/hooks/useApplePay.js +402 -425
  27. package/build/hooks/useMerchantApplePay.d.ts +22 -22
  28. package/build/hooks/useMerchantApplePay.js +167 -190
  29. package/build/index.d.ts +5 -5
  30. package/build/index.js +14 -14
  31. package/build/utils/config.d.ts +14 -14
  32. package/build/utils/config.js +59 -59
  33. package/build/utils/defaultValues.d.ts +2 -2
  34. package/build/utils/defaultValues.js +27 -27
  35. package/build/utils/index.d.ts +3 -3
  36. package/build/utils/index.js +3 -3
  37. package/build/utils/theme.d.ts +13 -13
  38. package/build/utils/theme.js +62 -62
  39. package/package.json +109 -109
  40. package/build/@types/charge.d.ts +0 -56
  41. package/build/@types/charge.js +0 -1
@@ -1,81 +1,84 @@
1
- import { ApplePayButtonProps, ApplePayDataToLunchSDKFromMerchantSide, ApplePayRequestData, IntegrationType } from '../@types';
2
- import { Scope } from '@tap-payments/acceptance-sdk';
3
- interface UseApplePayParams {
4
- buttonProps: ApplePayButtonProps;
5
- }
6
- export declare const useApplePay: ({ buttonProps }: UseApplePayParams) => {
7
- onClick: () => void;
8
- loading: boolean;
9
- isIframeIntegration: boolean;
10
- onApplePayButtonClicked: () => Promise<void>;
11
- disabled: boolean;
12
- applePayRequestData: ApplePayRequestData | undefined;
13
- applePayRequestConfiguration: Omit<ApplePayDataToLunchSDKFromMerchantSide, "applePayRequestData"> | undefined;
14
- mappedProps: {
15
- interface: {
16
- locale?: import("@tap-payments/acceptance-sdk").Locale | undefined;
17
- theme?: import("@tap-payments/acceptance-sdk").ThemeMode | undefined;
18
- edges?: import("@tap-payments/acceptance-sdk").Edges | undefined;
19
- colorStyle?: import("@tap-payments/acceptance-sdk").ColorStyle | undefined;
20
- loader?: boolean | undefined;
21
- userExperience?: (string & {}) | "popup" | "page" | undefined;
22
- powered?: boolean | undefined;
23
- direction?: import("@tap-payments/acceptance-sdk").Direction | undefined;
24
- cardDirection?: import("@tap-payments/acceptance-sdk").Direction | undefined;
25
- } | undefined;
26
- merchant: import("@tap-payments/acceptance-sdk/build/@types").Merchant & {
27
- identifier?: string | undefined;
28
- };
29
- onClick?: ((data?: ApplePayDataToLunchSDKFromMerchantSide | undefined) => void) | undefined;
30
- integration?: IntegrationType | undefined;
31
- debug?: boolean | undefined;
32
- scope: Scope;
33
- order: import("@tap-payments/acceptance-sdk/build/@types").Order;
34
- invoice?: import("@tap-payments/acceptance-sdk/build/@types").Invoice | undefined;
35
- operator: import("@tap-payments/acceptance-sdk/build/@types").Operator;
36
- customer: import("@tap-payments/acceptance-sdk").CustomerWithNameOnCard;
37
- features?: import("@tap-payments/acceptance-sdk/build/@types").Features | undefined;
38
- acceptance?: import("@tap-payments/acceptance-sdk/build/@types").Acceptance | undefined;
39
- transaction?: import("@tap-payments/acceptance-sdk/build/@types").Transaction | undefined;
40
- fieldVisibility?: import("@tap-payments/acceptance-sdk/build/@types").FieldVisibility | undefined;
41
- post?: {
42
- [key: string]: any;
43
- url: string;
44
- } | undefined;
45
- redirect?: {
46
- [key: string]: any;
47
- url: string;
48
- } | undefined;
49
- metadata?: ({
50
- headers?: ({
51
- authorization: string;
52
- mdn: string;
53
- application: string;
54
- ip?: string | undefined;
55
- session?: string | undefined;
56
- } & {
57
- [x: string]: any;
58
- }) | undefined;
59
- profileData?: import("@tap-payments/acceptance-sdk").CheckoutProfileResponse | undefined;
60
- } & {
61
- [x: string]: any;
62
- }) | undefined;
63
- platform?: {
64
- id: string;
65
- } | undefined;
66
- onReady?: (() => void) | undefined;
67
- onError?: ((error: any) => void) | undefined;
68
- onCancel?: (() => void) | undefined;
69
- onSuccess?: ((data: any) => void) | undefined;
70
- onBinIdentification?: ((data: any) => void) | undefined;
71
- onChargeCreated?: ((charge: Record<string, any>) => void) | undefined;
72
- onOrderCreated?: ((orderId: string) => void) | undefined;
73
- };
74
- theme: import("@tap-payments/acceptance-sdk").ThemeMode;
75
- isRounded: boolean;
76
- success: boolean;
77
- error: boolean;
78
- applePayPaymentMethodOptions: import("@tap-payments/acceptance-sdk").PaymentMethod | undefined;
79
- profileData: import("@tap-payments/acceptance-sdk").CheckoutProfileResponse | undefined;
80
- };
81
- export {};
1
+ import { ApplePayButtonProps, ApplePayDataToLunchSDKFromMerchantSide, ApplePayRequestData, IntegrationType } from '../@types';
2
+ import { Scope } from '@tap-payments/acceptance-sdk';
3
+ interface UseApplePayParams {
4
+ buttonProps: ApplePayButtonProps;
5
+ }
6
+ export declare const useApplePay: ({ buttonProps }: UseApplePayParams) => {
7
+ onClick: () => void;
8
+ loading: boolean;
9
+ isIframeIntegration: boolean;
10
+ onApplePayButtonClicked: () => Promise<void>;
11
+ disabled: boolean;
12
+ applePayRequestData: ApplePayRequestData | undefined;
13
+ applePayRequestConfiguration: Omit<ApplePayDataToLunchSDKFromMerchantSide, "applePayRequestData"> | undefined;
14
+ mappedProps: {
15
+ interface: {
16
+ locale?: import("@tap-payments/acceptance-sdk").Locale | undefined;
17
+ theme?: import("@tap-payments/acceptance-sdk").ThemeMode | undefined;
18
+ edges?: import("@tap-payments/acceptance-sdk").Edges | undefined;
19
+ colorStyle?: import("@tap-payments/acceptance-sdk").ColorStyle | undefined;
20
+ loader?: boolean | undefined;
21
+ userExperience?: (string & {}) | "popup" | "page" | undefined;
22
+ powered?: boolean | undefined;
23
+ direction?: import("@tap-payments/acceptance-sdk").Direction | undefined;
24
+ cardDirection?: import("@tap-payments/acceptance-sdk").Direction | undefined;
25
+ } | undefined;
26
+ merchant: import("@tap-payments/acceptance-sdk/build/@types").Merchant & {
27
+ identifier?: string | undefined;
28
+ };
29
+ onClick?: ((data?: ApplePayDataToLunchSDKFromMerchantSide | undefined) => void) | undefined;
30
+ integration?: IntegrationType | undefined;
31
+ debug?: boolean | undefined;
32
+ scope: Scope;
33
+ order: import("@tap-payments/acceptance-sdk/build/@types").Order;
34
+ invoice?: import("@tap-payments/acceptance-sdk/build/@types").Invoice | undefined;
35
+ operator: import("@tap-payments/acceptance-sdk/build/@types").Operator;
36
+ customer: import("@tap-payments/acceptance-sdk").CustomerWithNameOnCard;
37
+ features?: import("@tap-payments/acceptance-sdk/build/@types").Features | undefined;
38
+ acceptance?: import("@tap-payments/acceptance-sdk/build/@types").Acceptance | undefined;
39
+ transaction?: import("@tap-payments/acceptance-sdk/build/@types").Transaction | undefined;
40
+ fieldVisibility?: import("@tap-payments/acceptance-sdk/build/@types").FieldVisibility | undefined;
41
+ post?: {
42
+ [key: string]: any;
43
+ url: string;
44
+ } | undefined;
45
+ redirect?: {
46
+ [key: string]: any;
47
+ url: string;
48
+ } | undefined;
49
+ metadata?: ({
50
+ headers?: ({
51
+ authorization: string;
52
+ mdn: string;
53
+ application: string;
54
+ ip?: string | undefined;
55
+ session?: string | undefined;
56
+ } & {
57
+ [x: string]: any;
58
+ }) | undefined;
59
+ profileData?: import("@tap-payments/acceptance-sdk").CheckoutProfileResponse | undefined;
60
+ } & {
61
+ [x: string]: any;
62
+ }) | undefined;
63
+ platform?: {
64
+ id: string;
65
+ } | undefined;
66
+ onReady?: (() => void) | undefined;
67
+ onError?: ((error: any) => void) | undefined;
68
+ onCancel?: (() => void) | undefined;
69
+ onSuccess?: ((data: any) => void) | undefined;
70
+ onBinIdentification?: ((data: any) => void) | undefined;
71
+ onIntentCreated?: ((intent: Partial<import("@tap-payments/acceptance-sdk").IntentAPI.Response> & {
72
+ [x: string]: any;
73
+ }) => Promise<void>) | undefined;
74
+ onChargeCreated?: ((charge: Record<string, any>) => void) | undefined;
75
+ onOrderCreated?: ((orderId: string) => void) | undefined;
76
+ };
77
+ theme: import("@tap-payments/acceptance-sdk").ThemeMode;
78
+ isRounded: boolean;
79
+ success: boolean;
80
+ error: boolean;
81
+ applePayPaymentMethodOptions: import("@tap-payments/acceptance-sdk").PaymentMethod | undefined;
82
+ profileData: import("@tap-payments/acceptance-sdk").CheckoutProfileResponse | undefined;
83
+ };
84
+ export {};