@tap-payments/apple-pay-button 0.0.90-development → 0.0.91-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/charge.d.ts +56 -56
  6. package/build/@types/charge.js +1 -1
  7. package/build/@types/checkoutProfile.d.ts +216 -216
  8. package/build/@types/checkoutProfile.js +1 -1
  9. package/build/@types/enums.d.ts +44 -45
  10. package/build/@types/enums.js +51 -52
  11. package/build/@types/index.d.ts +6 -6
  12. package/build/@types/index.js +6 -6
  13. package/build/@types/tapLocalisation.d.ts +193 -193
  14. package/build/@types/tapLocalisation.js +1 -1
  15. package/build/@types/tapTheme.d.ts +842 -842
  16. package/build/@types/tapTheme.js +1 -1
  17. package/build/api.d.ts +31 -31
  18. package/build/api.js +236 -236
  19. package/build/constants/index.d.ts +3 -3
  20. package/build/constants/index.js +3 -3
  21. package/build/features/ApplePayButton/ApplePayButton.d.ts +4 -4
  22. package/build/features/ApplePayButton/ApplePayButton.js +48 -48
  23. package/build/features/ApplePayButton/index.d.ts +3 -3
  24. package/build/features/ApplePayButton/index.js +2 -2
  25. package/build/hooks/index.d.ts +1 -1
  26. package/build/hooks/index.js +1 -1
  27. package/build/hooks/useApplePay.d.ts +81 -81
  28. package/build/hooks/useApplePay.js +424 -425
  29. package/build/hooks/useMerchantApplePay.d.ts +22 -22
  30. package/build/hooks/useMerchantApplePay.js +190 -190
  31. package/build/index.d.ts +5 -5
  32. package/build/index.js +14 -14
  33. package/build/utils/config.d.ts +14 -14
  34. package/build/utils/config.js +59 -57
  35. package/build/utils/defaultValues.d.ts +2 -2
  36. package/build/utils/defaultValues.js +27 -27
  37. package/build/utils/index.d.ts +3 -3
  38. package/build/utils/index.js +3 -3
  39. package/build/utils/theme.d.ts +13 -13
  40. package/build/utils/theme.js +62 -62
  41. package/package.json +109 -109
@@ -1,52 +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["WEBVIEW"] = "webview";
52
- })(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 = {}));
@@ -1,6 +1,6 @@
1
- export * from './charge';
2
- export * from './checkoutProfile';
3
- export * from './ApplePayButtonProps';
4
- export * from './enums';
5
- export * from './tapLocalisation';
6
- export * from './tapTheme';
1
+ export * from './charge';
2
+ export * from './checkoutProfile';
3
+ export * from './ApplePayButtonProps';
4
+ export * from './enums';
5
+ export * from './tapLocalisation';
6
+ export * from './tapTheme';
@@ -1,6 +1,6 @@
1
- export * from './charge';
2
- export * from './checkoutProfile';
3
- export * from './ApplePayButtonProps';
4
- export * from './enums';
5
- export * from './tapLocalisation';
6
- export * from './tapTheme';
1
+ export * from './charge';
2
+ export * from './checkoutProfile';
3
+ export * from './ApplePayButtonProps';
4
+ export * from './enums';
5
+ export * from './tapLocalisation';
6
+ export * from './tapTheme';
@@ -1,193 +1,193 @@
1
- export type TapLocalizationResponse = Record<string, TapLocalization>;
2
- export interface TapLocalization {
3
- ActionButton: ActionButton;
4
- Common: Common;
5
- CurrencyChangeWidget: CurrencyChangeWidget;
6
- DeleteCard: DeleteCard;
7
- ExtraFees: DeleteCard;
8
- GoPay: GoPay;
9
- Hints: Hints;
10
- HorizontalHeaders: HorizontalHeaders;
11
- ItemList: ItemList;
12
- NFC: NFC;
13
- TapAsyncSection: TapAsyncSection;
14
- TapCardInputKit: TapCardInputKit;
15
- TapLoyaltySection: TapLoyaltySection;
16
- TapMerchantSection: TapMerchantSection;
17
- TapOtpView: TapOtpView;
18
- TapSwitchView: TapSwitchView;
19
- }
20
- interface TapSwitchView {
21
- goPay: GoPay2;
22
- mainCards: MainCards;
23
- mainTelecom: MainCards;
24
- merchant: GoPay2;
25
- }
26
- interface MainCards {
27
- notes: string;
28
- subtitle: string;
29
- titleEmpty: string;
30
- titleValid: string;
31
- }
32
- interface GoPay2 {
33
- notes: string;
34
- subtitle: string;
35
- title: string;
36
- }
37
- interface TapOtpView {
38
- Message: Message;
39
- }
40
- interface Message {
41
- Expired: string;
42
- Invalid: string;
43
- Ready: string;
44
- }
45
- interface TapMerchantSection {
46
- paymentFor: string;
47
- }
48
- interface TapLoyaltySection {
49
- amountView: AmountView;
50
- footerView: FooterView;
51
- headerView: HeaderView;
52
- hintView: HintView;
53
- }
54
- interface HintView {
55
- minimumWarning: string;
56
- }
57
- interface HeaderView {
58
- balance: string;
59
- lessThanMinimum: string;
60
- redeem: string;
61
- tc: string;
62
- }
63
- interface FooterView {
64
- amount: string;
65
- points: string;
66
- }
67
- interface AmountView {
68
- title: string;
69
- }
70
- interface TapCardInputKit {
71
- additionalLinePlaceHolder: string;
72
- cardCVVPlaceHolder: string;
73
- cardExpiryPlaceHolder: string;
74
- cardNamePlaceHolder: string;
75
- cardNumberPlaceHolder: string;
76
- cardSaveForTapInfoMessage: string;
77
- cardSaveForTapInfoTitle: string;
78
- cardSaveForTapLabel: string;
79
- cardSaveLabel: string;
80
- cardSectionTitle: string;
81
- cardSectionTitleOr: string;
82
- cityPlaceHolder: string;
83
- emailPlaceHolder: string;
84
- flatPlaceHolder: string;
85
- savedCardSectionTitle: string;
86
- weSupport: string;
87
- }
88
- interface TapAsyncSection {
89
- paymentCodeTitleLabel: string;
90
- paymentExpiryTitleLabel: string;
91
- paymentProgressLabel: string;
92
- paymentRecieptEmail: string;
93
- paymentRecieptLabel: string;
94
- paymentRecieptSms: string;
95
- paymentReferenceTitleLabel: string;
96
- paymentVisitBranchesLabel: string;
97
- }
98
- interface NFC {
99
- disabledNFC: string;
100
- enableNFC: string;
101
- nfcDescription: string;
102
- nfcUnsupported: string;
103
- scan: string;
104
- scanSuccess: string;
105
- }
106
- interface ItemList {
107
- Discount: string;
108
- hideDesc: string;
109
- showDesc: string;
110
- }
111
- interface HorizontalHeaders {
112
- GatewayHeader: GatewayHeader;
113
- SaveCardHeader: SaveCardHeader;
114
- }
115
- interface SaveCardHeader {
116
- contactCountryPickerHeader: string;
117
- contactDetailsSectionTitle: string;
118
- shippingSectionTitle: string;
119
- }
120
- interface GatewayHeader {
121
- leftTitle: string;
122
- rightTitle: string;
123
- webViewTitle: string;
124
- }
125
- interface Hints {
126
- Default: Default;
127
- Error: Error;
128
- GoPayLogin: GoPayLogin;
129
- Scanned: Scanned;
130
- Warning: Warning;
131
- }
132
- interface Warning {
133
- missingCVV: string;
134
- missingExpiryCVV: string;
135
- missingName: string;
136
- }
137
- interface Scanned {
138
- successFullScan: string;
139
- }
140
- interface GoPayLogin {
141
- otp: string;
142
- password: string;
143
- }
144
- interface Error {
145
- wrongCardNumber: string;
146
- }
147
- interface Default {
148
- scan: string;
149
- }
150
- interface GoPay {
151
- HintLabel: string;
152
- }
153
- interface DeleteCard {
154
- cancel: string;
155
- confirm: string;
156
- message: string;
157
- title: string;
158
- }
159
- interface CurrencyChangeWidget {
160
- confirmButton: string;
161
- enabledHeader: string;
162
- header: string;
163
- }
164
- interface Common {
165
- availableInOtherCurrencies: string;
166
- back: string;
167
- cancel: string;
168
- change: string;
169
- close: string;
170
- confirm: string;
171
- currencyAlert: string;
172
- done: string;
173
- edit: string;
174
- email: string;
175
- item: string;
176
- items: string;
177
- next: string;
178
- password: string;
179
- phone: string;
180
- previous: string;
181
- recent: string;
182
- }
183
- interface ActionButton {
184
- cancel: string;
185
- close: string;
186
- confirm: string;
187
- next: string;
188
- now: string;
189
- pay: string;
190
- resend: string;
191
- signin: string;
192
- }
193
- export {};
1
+ export type TapLocalizationResponse = Record<string, TapLocalization>;
2
+ export interface TapLocalization {
3
+ ActionButton: ActionButton;
4
+ Common: Common;
5
+ CurrencyChangeWidget: CurrencyChangeWidget;
6
+ DeleteCard: DeleteCard;
7
+ ExtraFees: DeleteCard;
8
+ GoPay: GoPay;
9
+ Hints: Hints;
10
+ HorizontalHeaders: HorizontalHeaders;
11
+ ItemList: ItemList;
12
+ NFC: NFC;
13
+ TapAsyncSection: TapAsyncSection;
14
+ TapCardInputKit: TapCardInputKit;
15
+ TapLoyaltySection: TapLoyaltySection;
16
+ TapMerchantSection: TapMerchantSection;
17
+ TapOtpView: TapOtpView;
18
+ TapSwitchView: TapSwitchView;
19
+ }
20
+ interface TapSwitchView {
21
+ goPay: GoPay2;
22
+ mainCards: MainCards;
23
+ mainTelecom: MainCards;
24
+ merchant: GoPay2;
25
+ }
26
+ interface MainCards {
27
+ notes: string;
28
+ subtitle: string;
29
+ titleEmpty: string;
30
+ titleValid: string;
31
+ }
32
+ interface GoPay2 {
33
+ notes: string;
34
+ subtitle: string;
35
+ title: string;
36
+ }
37
+ interface TapOtpView {
38
+ Message: Message;
39
+ }
40
+ interface Message {
41
+ Expired: string;
42
+ Invalid: string;
43
+ Ready: string;
44
+ }
45
+ interface TapMerchantSection {
46
+ paymentFor: string;
47
+ }
48
+ interface TapLoyaltySection {
49
+ amountView: AmountView;
50
+ footerView: FooterView;
51
+ headerView: HeaderView;
52
+ hintView: HintView;
53
+ }
54
+ interface HintView {
55
+ minimumWarning: string;
56
+ }
57
+ interface HeaderView {
58
+ balance: string;
59
+ lessThanMinimum: string;
60
+ redeem: string;
61
+ tc: string;
62
+ }
63
+ interface FooterView {
64
+ amount: string;
65
+ points: string;
66
+ }
67
+ interface AmountView {
68
+ title: string;
69
+ }
70
+ interface TapCardInputKit {
71
+ additionalLinePlaceHolder: string;
72
+ cardCVVPlaceHolder: string;
73
+ cardExpiryPlaceHolder: string;
74
+ cardNamePlaceHolder: string;
75
+ cardNumberPlaceHolder: string;
76
+ cardSaveForTapInfoMessage: string;
77
+ cardSaveForTapInfoTitle: string;
78
+ cardSaveForTapLabel: string;
79
+ cardSaveLabel: string;
80
+ cardSectionTitle: string;
81
+ cardSectionTitleOr: string;
82
+ cityPlaceHolder: string;
83
+ emailPlaceHolder: string;
84
+ flatPlaceHolder: string;
85
+ savedCardSectionTitle: string;
86
+ weSupport: string;
87
+ }
88
+ interface TapAsyncSection {
89
+ paymentCodeTitleLabel: string;
90
+ paymentExpiryTitleLabel: string;
91
+ paymentProgressLabel: string;
92
+ paymentRecieptEmail: string;
93
+ paymentRecieptLabel: string;
94
+ paymentRecieptSms: string;
95
+ paymentReferenceTitleLabel: string;
96
+ paymentVisitBranchesLabel: string;
97
+ }
98
+ interface NFC {
99
+ disabledNFC: string;
100
+ enableNFC: string;
101
+ nfcDescription: string;
102
+ nfcUnsupported: string;
103
+ scan: string;
104
+ scanSuccess: string;
105
+ }
106
+ interface ItemList {
107
+ Discount: string;
108
+ hideDesc: string;
109
+ showDesc: string;
110
+ }
111
+ interface HorizontalHeaders {
112
+ GatewayHeader: GatewayHeader;
113
+ SaveCardHeader: SaveCardHeader;
114
+ }
115
+ interface SaveCardHeader {
116
+ contactCountryPickerHeader: string;
117
+ contactDetailsSectionTitle: string;
118
+ shippingSectionTitle: string;
119
+ }
120
+ interface GatewayHeader {
121
+ leftTitle: string;
122
+ rightTitle: string;
123
+ webViewTitle: string;
124
+ }
125
+ interface Hints {
126
+ Default: Default;
127
+ Error: Error;
128
+ GoPayLogin: GoPayLogin;
129
+ Scanned: Scanned;
130
+ Warning: Warning;
131
+ }
132
+ interface Warning {
133
+ missingCVV: string;
134
+ missingExpiryCVV: string;
135
+ missingName: string;
136
+ }
137
+ interface Scanned {
138
+ successFullScan: string;
139
+ }
140
+ interface GoPayLogin {
141
+ otp: string;
142
+ password: string;
143
+ }
144
+ interface Error {
145
+ wrongCardNumber: string;
146
+ }
147
+ interface Default {
148
+ scan: string;
149
+ }
150
+ interface GoPay {
151
+ HintLabel: string;
152
+ }
153
+ interface DeleteCard {
154
+ cancel: string;
155
+ confirm: string;
156
+ message: string;
157
+ title: string;
158
+ }
159
+ interface CurrencyChangeWidget {
160
+ confirmButton: string;
161
+ enabledHeader: string;
162
+ header: string;
163
+ }
164
+ interface Common {
165
+ availableInOtherCurrencies: string;
166
+ back: string;
167
+ cancel: string;
168
+ change: string;
169
+ close: string;
170
+ confirm: string;
171
+ currencyAlert: string;
172
+ done: string;
173
+ edit: string;
174
+ email: string;
175
+ item: string;
176
+ items: string;
177
+ next: string;
178
+ password: string;
179
+ phone: string;
180
+ previous: string;
181
+ recent: string;
182
+ }
183
+ interface ActionButton {
184
+ cancel: string;
185
+ close: string;
186
+ confirm: string;
187
+ next: string;
188
+ now: string;
189
+ pay: string;
190
+ resend: string;
191
+ signin: string;
192
+ }
193
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};