@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.
- package/LICENSE +21 -21
- package/README.md +240 -240
- package/build/@types/ApplePayButtonProps.d.ts +56 -56
- package/build/@types/ApplePayButtonProps.js +1 -1
- package/build/@types/checkoutProfile.d.ts +216 -216
- package/build/@types/checkoutProfile.js +1 -1
- package/build/@types/enums.d.ts +44 -44
- package/build/@types/enums.js +51 -51
- package/build/@types/index.d.ts +5 -6
- package/build/@types/index.js +5 -6
- package/build/@types/tapLocalisation.d.ts +193 -193
- package/build/@types/tapLocalisation.js +1 -1
- package/build/@types/tapTheme.d.ts +842 -842
- package/build/@types/tapTheme.js +1 -1
- package/build/api.d.ts +7 -31
- package/build/api.js +84 -236
- package/build/constants/index.d.ts +4 -4
- package/build/constants/index.js +4 -4
- package/build/features/ApplePayButton/ApplePayButton.d.ts +4 -4
- package/build/features/ApplePayButton/ApplePayButton.js +48 -48
- package/build/features/ApplePayButton/index.d.ts +3 -3
- package/build/features/ApplePayButton/index.js +2 -2
- package/build/hooks/index.d.ts +1 -1
- package/build/hooks/index.js +1 -1
- package/build/hooks/useApplePay.d.ts +84 -81
- package/build/hooks/useApplePay.js +402 -425
- package/build/hooks/useMerchantApplePay.d.ts +22 -22
- package/build/hooks/useMerchantApplePay.js +167 -190
- package/build/index.d.ts +5 -5
- package/build/index.js +14 -14
- package/build/utils/config.d.ts +14 -14
- package/build/utils/config.js +59 -59
- package/build/utils/defaultValues.d.ts +2 -2
- package/build/utils/defaultValues.js +27 -27
- package/build/utils/index.d.ts +3 -3
- package/build/utils/index.js +3 -3
- package/build/utils/theme.d.ts +13 -13
- package/build/utils/theme.js +62 -62
- package/package.json +109 -109
- package/build/@types/charge.d.ts +0 -56
- package/build/@types/charge.js +0 -1
|
@@ -1,216 +1,216 @@
|
|
|
1
|
-
import { SupportedNetworks, ThemeMode } from '..';
|
|
2
|
-
export interface CheckoutProfileRequest {
|
|
3
|
-
supported_payment_methods: string[];
|
|
4
|
-
supported_currencies: string[];
|
|
5
|
-
transaction_mode: string;
|
|
6
|
-
currency: string;
|
|
7
|
-
merchant_id: string;
|
|
8
|
-
total_amount: number;
|
|
9
|
-
order: {
|
|
10
|
-
id?: string;
|
|
11
|
-
amount: number;
|
|
12
|
-
currency: string;
|
|
13
|
-
description?: string;
|
|
14
|
-
metadata?: Record<string, string>;
|
|
15
|
-
customer?: {
|
|
16
|
-
id?: string;
|
|
17
|
-
email?: string;
|
|
18
|
-
first_name?: string;
|
|
19
|
-
last_name?: string;
|
|
20
|
-
phone?: {
|
|
21
|
-
country_code: string;
|
|
22
|
-
number: string;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
items: {
|
|
26
|
-
quantity: number;
|
|
27
|
-
amount: number;
|
|
28
|
-
currency: string;
|
|
29
|
-
name: string;
|
|
30
|
-
description: string;
|
|
31
|
-
}[];
|
|
32
|
-
merchant: {
|
|
33
|
-
id: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
export interface CheckoutProfileResponse {
|
|
38
|
-
status: string;
|
|
39
|
-
merchant: MerchantResponse;
|
|
40
|
-
assests: Assests;
|
|
41
|
-
payment_options: Paymentoptions;
|
|
42
|
-
session: string;
|
|
43
|
-
}
|
|
44
|
-
interface Paymentoptions {
|
|
45
|
-
id: string;
|
|
46
|
-
object: string;
|
|
47
|
-
payment_methods: PaymentMethod[];
|
|
48
|
-
currency: string;
|
|
49
|
-
country: string;
|
|
50
|
-
settlement_currency: string;
|
|
51
|
-
supported_currencies: Supportedcurrency[];
|
|
52
|
-
api_version: string;
|
|
53
|
-
order: Order;
|
|
54
|
-
}
|
|
55
|
-
interface Order {
|
|
56
|
-
id: string;
|
|
57
|
-
amount: number;
|
|
58
|
-
currency: string;
|
|
59
|
-
customer: {
|
|
60
|
-
id?: string;
|
|
61
|
-
email: string;
|
|
62
|
-
phone?: {
|
|
63
|
-
country_code: string;
|
|
64
|
-
number: string;
|
|
65
|
-
};
|
|
66
|
-
first_name?: string;
|
|
67
|
-
last_name?: string;
|
|
68
|
-
};
|
|
69
|
-
items: Array<OrderItem>;
|
|
70
|
-
}
|
|
71
|
-
interface OrderItem {
|
|
72
|
-
name: string;
|
|
73
|
-
amount: number;
|
|
74
|
-
currency: string;
|
|
75
|
-
quantity: number;
|
|
76
|
-
requires_shipping: boolean;
|
|
77
|
-
description: string;
|
|
78
|
-
}
|
|
79
|
-
interface Supportedcurrency {
|
|
80
|
-
symbol: string;
|
|
81
|
-
name: string;
|
|
82
|
-
flag: string;
|
|
83
|
-
decimal_digit: number;
|
|
84
|
-
selected: boolean;
|
|
85
|
-
rate: number;
|
|
86
|
-
logos: Logos2;
|
|
87
|
-
order_by: number;
|
|
88
|
-
currency: string;
|
|
89
|
-
amount: number;
|
|
90
|
-
}
|
|
91
|
-
interface Logos2 {
|
|
92
|
-
dark: Disabled;
|
|
93
|
-
light: Disabled;
|
|
94
|
-
light_mono: Disabled;
|
|
95
|
-
dark_colored: Disabled;
|
|
96
|
-
}
|
|
97
|
-
export interface PaymentMethod {
|
|
98
|
-
id: string;
|
|
99
|
-
name: string;
|
|
100
|
-
name_ar: string;
|
|
101
|
-
image: string;
|
|
102
|
-
payment_type: string;
|
|
103
|
-
supported_card_brands: SupportedNetworks[];
|
|
104
|
-
supported_currencies: string[];
|
|
105
|
-
order_by: number;
|
|
106
|
-
cc_markup: number;
|
|
107
|
-
asynchronous: boolean;
|
|
108
|
-
threeDS: string;
|
|
109
|
-
api_version: number;
|
|
110
|
-
api_version_minor: number;
|
|
111
|
-
logos: Logos;
|
|
112
|
-
payment_order_type: string;
|
|
113
|
-
button_style: Buttonstyle;
|
|
114
|
-
display_name: string;
|
|
115
|
-
default_currency: string;
|
|
116
|
-
identifier?: string;
|
|
117
|
-
}
|
|
118
|
-
interface Buttonstyle {
|
|
119
|
-
background: Background2;
|
|
120
|
-
title_asset: 'https://tap-assets.b-cdn.net/action-button/{theme}/{lang}/mastercard';
|
|
121
|
-
}
|
|
122
|
-
interface Background2 {
|
|
123
|
-
light: Light2;
|
|
124
|
-
dark: Light2;
|
|
125
|
-
light_mono: Light2;
|
|
126
|
-
dark_colored: Light2;
|
|
127
|
-
}
|
|
128
|
-
interface Light2 {
|
|
129
|
-
base_color: string;
|
|
130
|
-
background_colors: string[];
|
|
131
|
-
}
|
|
132
|
-
interface Logos {
|
|
133
|
-
dark: Dark2;
|
|
134
|
-
light: Dark2;
|
|
135
|
-
light_mono: Dark2;
|
|
136
|
-
dark_colored: Dark2;
|
|
137
|
-
}
|
|
138
|
-
interface Dark2 {
|
|
139
|
-
svg: string;
|
|
140
|
-
png: string;
|
|
141
|
-
disabled: Disabled;
|
|
142
|
-
currency_widget: Disabled;
|
|
143
|
-
card_icon: Disabled;
|
|
144
|
-
}
|
|
145
|
-
interface Disabled {
|
|
146
|
-
svg: string;
|
|
147
|
-
png: string;
|
|
148
|
-
}
|
|
149
|
-
interface Assests {
|
|
150
|
-
localisation: Localisation;
|
|
151
|
-
theme: Theme;
|
|
152
|
-
web: Theme;
|
|
153
|
-
}
|
|
154
|
-
type Theme = Record<ThemeMode, string> & {
|
|
155
|
-
card: {
|
|
156
|
-
light: string;
|
|
157
|
-
dark: string;
|
|
158
|
-
};
|
|
159
|
-
};
|
|
160
|
-
interface Localisation {
|
|
161
|
-
url: string;
|
|
162
|
-
card: {
|
|
163
|
-
url: string;
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
interface MerchantResponse {
|
|
167
|
-
id: string;
|
|
168
|
-
api_version: string;
|
|
169
|
-
live_mode: boolean;
|
|
170
|
-
object: string;
|
|
171
|
-
name: string;
|
|
172
|
-
country_code: string;
|
|
173
|
-
logo: string;
|
|
174
|
-
background: Background;
|
|
175
|
-
contact: any[];
|
|
176
|
-
powered_by: boolean;
|
|
177
|
-
sdk_settings: Sdksettings;
|
|
178
|
-
session_token: string;
|
|
179
|
-
key_type: string;
|
|
180
|
-
encryption_key: string;
|
|
181
|
-
permissions: string[];
|
|
182
|
-
permission: Permission;
|
|
183
|
-
}
|
|
184
|
-
interface Permission {
|
|
185
|
-
card_wallet: boolean;
|
|
186
|
-
threeDSecure: boolean;
|
|
187
|
-
pci_dss: boolean;
|
|
188
|
-
}
|
|
189
|
-
interface Sdksettings {
|
|
190
|
-
status_display_duration: number;
|
|
191
|
-
otp_resend_interval: number;
|
|
192
|
-
otp_resend_attempts: number;
|
|
193
|
-
}
|
|
194
|
-
interface Background {
|
|
195
|
-
url: string;
|
|
196
|
-
mode: string;
|
|
197
|
-
color: Color;
|
|
198
|
-
}
|
|
199
|
-
interface Color {
|
|
200
|
-
dark: Dark;
|
|
201
|
-
light: Light;
|
|
202
|
-
}
|
|
203
|
-
interface Light {
|
|
204
|
-
color: string;
|
|
205
|
-
rectangle: Rectangle;
|
|
206
|
-
image: string;
|
|
207
|
-
}
|
|
208
|
-
interface Rectangle {
|
|
209
|
-
background: string;
|
|
210
|
-
'backdrop-filter': string;
|
|
211
|
-
}
|
|
212
|
-
interface Dark {
|
|
213
|
-
color: string;
|
|
214
|
-
image: string;
|
|
215
|
-
}
|
|
216
|
-
export {};
|
|
1
|
+
import { SupportedNetworks, ThemeMode } from '..';
|
|
2
|
+
export interface CheckoutProfileRequest {
|
|
3
|
+
supported_payment_methods: string[];
|
|
4
|
+
supported_currencies: string[];
|
|
5
|
+
transaction_mode: string;
|
|
6
|
+
currency: string;
|
|
7
|
+
merchant_id: string;
|
|
8
|
+
total_amount: number;
|
|
9
|
+
order: {
|
|
10
|
+
id?: string;
|
|
11
|
+
amount: number;
|
|
12
|
+
currency: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
metadata?: Record<string, string>;
|
|
15
|
+
customer?: {
|
|
16
|
+
id?: string;
|
|
17
|
+
email?: string;
|
|
18
|
+
first_name?: string;
|
|
19
|
+
last_name?: string;
|
|
20
|
+
phone?: {
|
|
21
|
+
country_code: string;
|
|
22
|
+
number: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
items: {
|
|
26
|
+
quantity: number;
|
|
27
|
+
amount: number;
|
|
28
|
+
currency: string;
|
|
29
|
+
name: string;
|
|
30
|
+
description: string;
|
|
31
|
+
}[];
|
|
32
|
+
merchant: {
|
|
33
|
+
id: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export interface CheckoutProfileResponse {
|
|
38
|
+
status: string;
|
|
39
|
+
merchant: MerchantResponse;
|
|
40
|
+
assests: Assests;
|
|
41
|
+
payment_options: Paymentoptions;
|
|
42
|
+
session: string;
|
|
43
|
+
}
|
|
44
|
+
interface Paymentoptions {
|
|
45
|
+
id: string;
|
|
46
|
+
object: string;
|
|
47
|
+
payment_methods: PaymentMethod[];
|
|
48
|
+
currency: string;
|
|
49
|
+
country: string;
|
|
50
|
+
settlement_currency: string;
|
|
51
|
+
supported_currencies: Supportedcurrency[];
|
|
52
|
+
api_version: string;
|
|
53
|
+
order: Order;
|
|
54
|
+
}
|
|
55
|
+
interface Order {
|
|
56
|
+
id: string;
|
|
57
|
+
amount: number;
|
|
58
|
+
currency: string;
|
|
59
|
+
customer: {
|
|
60
|
+
id?: string;
|
|
61
|
+
email: string;
|
|
62
|
+
phone?: {
|
|
63
|
+
country_code: string;
|
|
64
|
+
number: string;
|
|
65
|
+
};
|
|
66
|
+
first_name?: string;
|
|
67
|
+
last_name?: string;
|
|
68
|
+
};
|
|
69
|
+
items: Array<OrderItem>;
|
|
70
|
+
}
|
|
71
|
+
interface OrderItem {
|
|
72
|
+
name: string;
|
|
73
|
+
amount: number;
|
|
74
|
+
currency: string;
|
|
75
|
+
quantity: number;
|
|
76
|
+
requires_shipping: boolean;
|
|
77
|
+
description: string;
|
|
78
|
+
}
|
|
79
|
+
interface Supportedcurrency {
|
|
80
|
+
symbol: string;
|
|
81
|
+
name: string;
|
|
82
|
+
flag: string;
|
|
83
|
+
decimal_digit: number;
|
|
84
|
+
selected: boolean;
|
|
85
|
+
rate: number;
|
|
86
|
+
logos: Logos2;
|
|
87
|
+
order_by: number;
|
|
88
|
+
currency: string;
|
|
89
|
+
amount: number;
|
|
90
|
+
}
|
|
91
|
+
interface Logos2 {
|
|
92
|
+
dark: Disabled;
|
|
93
|
+
light: Disabled;
|
|
94
|
+
light_mono: Disabled;
|
|
95
|
+
dark_colored: Disabled;
|
|
96
|
+
}
|
|
97
|
+
export interface PaymentMethod {
|
|
98
|
+
id: string;
|
|
99
|
+
name: string;
|
|
100
|
+
name_ar: string;
|
|
101
|
+
image: string;
|
|
102
|
+
payment_type: string;
|
|
103
|
+
supported_card_brands: SupportedNetworks[];
|
|
104
|
+
supported_currencies: string[];
|
|
105
|
+
order_by: number;
|
|
106
|
+
cc_markup: number;
|
|
107
|
+
asynchronous: boolean;
|
|
108
|
+
threeDS: string;
|
|
109
|
+
api_version: number;
|
|
110
|
+
api_version_minor: number;
|
|
111
|
+
logos: Logos;
|
|
112
|
+
payment_order_type: string;
|
|
113
|
+
button_style: Buttonstyle;
|
|
114
|
+
display_name: string;
|
|
115
|
+
default_currency: string;
|
|
116
|
+
identifier?: string;
|
|
117
|
+
}
|
|
118
|
+
interface Buttonstyle {
|
|
119
|
+
background: Background2;
|
|
120
|
+
title_asset: 'https://tap-assets.b-cdn.net/action-button/{theme}/{lang}/mastercard';
|
|
121
|
+
}
|
|
122
|
+
interface Background2 {
|
|
123
|
+
light: Light2;
|
|
124
|
+
dark: Light2;
|
|
125
|
+
light_mono: Light2;
|
|
126
|
+
dark_colored: Light2;
|
|
127
|
+
}
|
|
128
|
+
interface Light2 {
|
|
129
|
+
base_color: string;
|
|
130
|
+
background_colors: string[];
|
|
131
|
+
}
|
|
132
|
+
interface Logos {
|
|
133
|
+
dark: Dark2;
|
|
134
|
+
light: Dark2;
|
|
135
|
+
light_mono: Dark2;
|
|
136
|
+
dark_colored: Dark2;
|
|
137
|
+
}
|
|
138
|
+
interface Dark2 {
|
|
139
|
+
svg: string;
|
|
140
|
+
png: string;
|
|
141
|
+
disabled: Disabled;
|
|
142
|
+
currency_widget: Disabled;
|
|
143
|
+
card_icon: Disabled;
|
|
144
|
+
}
|
|
145
|
+
interface Disabled {
|
|
146
|
+
svg: string;
|
|
147
|
+
png: string;
|
|
148
|
+
}
|
|
149
|
+
interface Assests {
|
|
150
|
+
localisation: Localisation;
|
|
151
|
+
theme: Theme;
|
|
152
|
+
web: Theme;
|
|
153
|
+
}
|
|
154
|
+
type Theme = Record<ThemeMode, string> & {
|
|
155
|
+
card: {
|
|
156
|
+
light: string;
|
|
157
|
+
dark: string;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
interface Localisation {
|
|
161
|
+
url: string;
|
|
162
|
+
card: {
|
|
163
|
+
url: string;
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
interface MerchantResponse {
|
|
167
|
+
id: string;
|
|
168
|
+
api_version: string;
|
|
169
|
+
live_mode: boolean;
|
|
170
|
+
object: string;
|
|
171
|
+
name: string;
|
|
172
|
+
country_code: string;
|
|
173
|
+
logo: string;
|
|
174
|
+
background: Background;
|
|
175
|
+
contact: any[];
|
|
176
|
+
powered_by: boolean;
|
|
177
|
+
sdk_settings: Sdksettings;
|
|
178
|
+
session_token: string;
|
|
179
|
+
key_type: string;
|
|
180
|
+
encryption_key: string;
|
|
181
|
+
permissions: string[];
|
|
182
|
+
permission: Permission;
|
|
183
|
+
}
|
|
184
|
+
interface Permission {
|
|
185
|
+
card_wallet: boolean;
|
|
186
|
+
threeDSecure: boolean;
|
|
187
|
+
pci_dss: boolean;
|
|
188
|
+
}
|
|
189
|
+
interface Sdksettings {
|
|
190
|
+
status_display_duration: number;
|
|
191
|
+
otp_resend_interval: number;
|
|
192
|
+
otp_resend_attempts: number;
|
|
193
|
+
}
|
|
194
|
+
interface Background {
|
|
195
|
+
url: string;
|
|
196
|
+
mode: string;
|
|
197
|
+
color: Color;
|
|
198
|
+
}
|
|
199
|
+
interface Color {
|
|
200
|
+
dark: Dark;
|
|
201
|
+
light: Light;
|
|
202
|
+
}
|
|
203
|
+
interface Light {
|
|
204
|
+
color: string;
|
|
205
|
+
rectangle: Rectangle;
|
|
206
|
+
image: string;
|
|
207
|
+
}
|
|
208
|
+
interface Rectangle {
|
|
209
|
+
background: string;
|
|
210
|
+
'backdrop-filter': string;
|
|
211
|
+
}
|
|
212
|
+
interface Dark {
|
|
213
|
+
color: string;
|
|
214
|
+
image: string;
|
|
215
|
+
}
|
|
216
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/build/@types/enums.d.ts
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
export declare enum ButtonStyle {
|
|
2
|
-
Black = "black",
|
|
3
|
-
White = "white",
|
|
4
|
-
WhiteOutline = "white-outline"
|
|
5
|
-
}
|
|
6
|
-
export declare enum FullThemeMode {
|
|
7
|
-
DARK = "dark",
|
|
8
|
-
LIGHT = "light",
|
|
9
|
-
LIGHT_MONO = "light_mono",
|
|
10
|
-
DARK_COLORED = "dark_colored"
|
|
11
|
-
}
|
|
12
|
-
export declare enum ButtonType {
|
|
13
|
-
BOOK = "book",
|
|
14
|
-
BUY = "buy",
|
|
15
|
-
CHECK_OUT = "check-out",
|
|
16
|
-
PAY = "pay",
|
|
17
|
-
PLAIN = "plain",
|
|
18
|
-
SUBSCRIBE = "subscribe"
|
|
19
|
-
}
|
|
20
|
-
export declare enum CHARGE_CODE {
|
|
21
|
-
SUCCESS = "000",
|
|
22
|
-
AUTHORIZED = "001",
|
|
23
|
-
IN_PROGRESS = "200"
|
|
24
|
-
}
|
|
25
|
-
export declare enum MerchantCapabilities {
|
|
26
|
-
Supports3DS = "supports3DS",
|
|
27
|
-
SupportsCredit = "supportsCredit",
|
|
28
|
-
SupportsDebit = "supportsDebit"
|
|
29
|
-
}
|
|
30
|
-
export declare enum SupportedNetworks {
|
|
31
|
-
Amex = "amex",
|
|
32
|
-
Mada = "mada",
|
|
33
|
-
MasterCard = "masterCard",
|
|
34
|
-
Visa = "visa",
|
|
35
|
-
ChinaUnionPay = "chinaUnionPay",
|
|
36
|
-
Discover = "discover",
|
|
37
|
-
Electron = "electron",
|
|
38
|
-
Jcb = "jcb",
|
|
39
|
-
Maestro = "maestro"
|
|
40
|
-
}
|
|
41
|
-
export declare enum IntegrationType {
|
|
42
|
-
SDK = "sdk",
|
|
43
|
-
IFRAME = "iframe"
|
|
44
|
-
}
|
|
1
|
+
export declare enum ButtonStyle {
|
|
2
|
+
Black = "black",
|
|
3
|
+
White = "white",
|
|
4
|
+
WhiteOutline = "white-outline"
|
|
5
|
+
}
|
|
6
|
+
export declare enum FullThemeMode {
|
|
7
|
+
DARK = "dark",
|
|
8
|
+
LIGHT = "light",
|
|
9
|
+
LIGHT_MONO = "light_mono",
|
|
10
|
+
DARK_COLORED = "dark_colored"
|
|
11
|
+
}
|
|
12
|
+
export declare enum ButtonType {
|
|
13
|
+
BOOK = "book",
|
|
14
|
+
BUY = "buy",
|
|
15
|
+
CHECK_OUT = "check-out",
|
|
16
|
+
PAY = "pay",
|
|
17
|
+
PLAIN = "plain",
|
|
18
|
+
SUBSCRIBE = "subscribe"
|
|
19
|
+
}
|
|
20
|
+
export declare enum CHARGE_CODE {
|
|
21
|
+
SUCCESS = "000",
|
|
22
|
+
AUTHORIZED = "001",
|
|
23
|
+
IN_PROGRESS = "200"
|
|
24
|
+
}
|
|
25
|
+
export declare enum MerchantCapabilities {
|
|
26
|
+
Supports3DS = "supports3DS",
|
|
27
|
+
SupportsCredit = "supportsCredit",
|
|
28
|
+
SupportsDebit = "supportsDebit"
|
|
29
|
+
}
|
|
30
|
+
export declare enum SupportedNetworks {
|
|
31
|
+
Amex = "amex",
|
|
32
|
+
Mada = "mada",
|
|
33
|
+
MasterCard = "masterCard",
|
|
34
|
+
Visa = "visa",
|
|
35
|
+
ChinaUnionPay = "chinaUnionPay",
|
|
36
|
+
Discover = "discover",
|
|
37
|
+
Electron = "electron",
|
|
38
|
+
Jcb = "jcb",
|
|
39
|
+
Maestro = "maestro"
|
|
40
|
+
}
|
|
41
|
+
export declare enum IntegrationType {
|
|
42
|
+
SDK = "sdk",
|
|
43
|
+
IFRAME = "iframe"
|
|
44
|
+
}
|
package/build/@types/enums.js
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
export var ButtonStyle;
|
|
2
|
-
(function (ButtonStyle) {
|
|
3
|
-
ButtonStyle["Black"] = "black";
|
|
4
|
-
ButtonStyle["White"] = "white";
|
|
5
|
-
ButtonStyle["WhiteOutline"] = "white-outline";
|
|
6
|
-
})(ButtonStyle || (ButtonStyle = {}));
|
|
7
|
-
export var FullThemeMode;
|
|
8
|
-
(function (FullThemeMode) {
|
|
9
|
-
FullThemeMode["DARK"] = "dark";
|
|
10
|
-
FullThemeMode["LIGHT"] = "light";
|
|
11
|
-
FullThemeMode["LIGHT_MONO"] = "light_mono";
|
|
12
|
-
FullThemeMode["DARK_COLORED"] = "dark_colored";
|
|
13
|
-
})(FullThemeMode || (FullThemeMode = {}));
|
|
14
|
-
export var ButtonType;
|
|
15
|
-
(function (ButtonType) {
|
|
16
|
-
ButtonType["BOOK"] = "book";
|
|
17
|
-
ButtonType["BUY"] = "buy";
|
|
18
|
-
ButtonType["CHECK_OUT"] = "check-out";
|
|
19
|
-
ButtonType["PAY"] = "pay";
|
|
20
|
-
ButtonType["PLAIN"] = "plain";
|
|
21
|
-
ButtonType["SUBSCRIBE"] = "subscribe";
|
|
22
|
-
})(ButtonType || (ButtonType = {}));
|
|
23
|
-
export var CHARGE_CODE;
|
|
24
|
-
(function (CHARGE_CODE) {
|
|
25
|
-
CHARGE_CODE["SUCCESS"] = "000";
|
|
26
|
-
CHARGE_CODE["AUTHORIZED"] = "001";
|
|
27
|
-
CHARGE_CODE["IN_PROGRESS"] = "200";
|
|
28
|
-
})(CHARGE_CODE || (CHARGE_CODE = {}));
|
|
29
|
-
export var MerchantCapabilities;
|
|
30
|
-
(function (MerchantCapabilities) {
|
|
31
|
-
MerchantCapabilities["Supports3DS"] = "supports3DS";
|
|
32
|
-
MerchantCapabilities["SupportsCredit"] = "supportsCredit";
|
|
33
|
-
MerchantCapabilities["SupportsDebit"] = "supportsDebit";
|
|
34
|
-
})(MerchantCapabilities || (MerchantCapabilities = {}));
|
|
35
|
-
export var SupportedNetworks;
|
|
36
|
-
(function (SupportedNetworks) {
|
|
37
|
-
SupportedNetworks["Amex"] = "amex";
|
|
38
|
-
SupportedNetworks["Mada"] = "mada";
|
|
39
|
-
SupportedNetworks["MasterCard"] = "masterCard";
|
|
40
|
-
SupportedNetworks["Visa"] = "visa";
|
|
41
|
-
SupportedNetworks["ChinaUnionPay"] = "chinaUnionPay";
|
|
42
|
-
SupportedNetworks["Discover"] = "discover";
|
|
43
|
-
SupportedNetworks["Electron"] = "electron";
|
|
44
|
-
SupportedNetworks["Jcb"] = "jcb";
|
|
45
|
-
SupportedNetworks["Maestro"] = "maestro";
|
|
46
|
-
})(SupportedNetworks || (SupportedNetworks = {}));
|
|
47
|
-
export var IntegrationType;
|
|
48
|
-
(function (IntegrationType) {
|
|
49
|
-
IntegrationType["SDK"] = "sdk";
|
|
50
|
-
IntegrationType["IFRAME"] = "iframe";
|
|
51
|
-
})(IntegrationType || (IntegrationType = {}));
|
|
1
|
+
export var ButtonStyle;
|
|
2
|
+
(function (ButtonStyle) {
|
|
3
|
+
ButtonStyle["Black"] = "black";
|
|
4
|
+
ButtonStyle["White"] = "white";
|
|
5
|
+
ButtonStyle["WhiteOutline"] = "white-outline";
|
|
6
|
+
})(ButtonStyle || (ButtonStyle = {}));
|
|
7
|
+
export var FullThemeMode;
|
|
8
|
+
(function (FullThemeMode) {
|
|
9
|
+
FullThemeMode["DARK"] = "dark";
|
|
10
|
+
FullThemeMode["LIGHT"] = "light";
|
|
11
|
+
FullThemeMode["LIGHT_MONO"] = "light_mono";
|
|
12
|
+
FullThemeMode["DARK_COLORED"] = "dark_colored";
|
|
13
|
+
})(FullThemeMode || (FullThemeMode = {}));
|
|
14
|
+
export var ButtonType;
|
|
15
|
+
(function (ButtonType) {
|
|
16
|
+
ButtonType["BOOK"] = "book";
|
|
17
|
+
ButtonType["BUY"] = "buy";
|
|
18
|
+
ButtonType["CHECK_OUT"] = "check-out";
|
|
19
|
+
ButtonType["PAY"] = "pay";
|
|
20
|
+
ButtonType["PLAIN"] = "plain";
|
|
21
|
+
ButtonType["SUBSCRIBE"] = "subscribe";
|
|
22
|
+
})(ButtonType || (ButtonType = {}));
|
|
23
|
+
export var CHARGE_CODE;
|
|
24
|
+
(function (CHARGE_CODE) {
|
|
25
|
+
CHARGE_CODE["SUCCESS"] = "000";
|
|
26
|
+
CHARGE_CODE["AUTHORIZED"] = "001";
|
|
27
|
+
CHARGE_CODE["IN_PROGRESS"] = "200";
|
|
28
|
+
})(CHARGE_CODE || (CHARGE_CODE = {}));
|
|
29
|
+
export var MerchantCapabilities;
|
|
30
|
+
(function (MerchantCapabilities) {
|
|
31
|
+
MerchantCapabilities["Supports3DS"] = "supports3DS";
|
|
32
|
+
MerchantCapabilities["SupportsCredit"] = "supportsCredit";
|
|
33
|
+
MerchantCapabilities["SupportsDebit"] = "supportsDebit";
|
|
34
|
+
})(MerchantCapabilities || (MerchantCapabilities = {}));
|
|
35
|
+
export var SupportedNetworks;
|
|
36
|
+
(function (SupportedNetworks) {
|
|
37
|
+
SupportedNetworks["Amex"] = "amex";
|
|
38
|
+
SupportedNetworks["Mada"] = "mada";
|
|
39
|
+
SupportedNetworks["MasterCard"] = "masterCard";
|
|
40
|
+
SupportedNetworks["Visa"] = "visa";
|
|
41
|
+
SupportedNetworks["ChinaUnionPay"] = "chinaUnionPay";
|
|
42
|
+
SupportedNetworks["Discover"] = "discover";
|
|
43
|
+
SupportedNetworks["Electron"] = "electron";
|
|
44
|
+
SupportedNetworks["Jcb"] = "jcb";
|
|
45
|
+
SupportedNetworks["Maestro"] = "maestro";
|
|
46
|
+
})(SupportedNetworks || (SupportedNetworks = {}));
|
|
47
|
+
export var IntegrationType;
|
|
48
|
+
(function (IntegrationType) {
|
|
49
|
+
IntegrationType["SDK"] = "sdk";
|
|
50
|
+
IntegrationType["IFRAME"] = "iframe";
|
|
51
|
+
})(IntegrationType || (IntegrationType = {}));
|
package/build/@types/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './tapTheme';
|
|
1
|
+
export * from './checkoutProfile';
|
|
2
|
+
export * from './ApplePayButtonProps';
|
|
3
|
+
export * from './enums';
|
|
4
|
+
export * from './tapLocalisation';
|
|
5
|
+
export * from './tapTheme';
|
package/build/@types/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './tapTheme';
|
|
1
|
+
export * from './checkoutProfile';
|
|
2
|
+
export * from './ApplePayButtonProps';
|
|
3
|
+
export * from './enums';
|
|
4
|
+
export * from './tapLocalisation';
|
|
5
|
+
export * from './tapTheme';
|