@heyama/pay-react-native 0.0.0-stage → 1.0.1
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 -0
- package/README.md +99 -2
- package/assets/fonts/Figtree-Bold.ttf +0 -0
- package/assets/fonts/Figtree-ExtraBold.ttf +0 -0
- package/assets/fonts/Figtree-Medium.ttf +0 -0
- package/assets/fonts/Figtree-Regular.ttf +0 -0
- package/assets/fonts/Figtree-SemiBold.ttf +0 -0
- package/assets/fonts/OFL.txt +93 -0
- package/assets/logos/apple-pay.png +0 -0
- package/assets/logos/card.png +0 -0
- package/assets/logos/google-pay.png +0 -0
- package/assets/logos/mastercard.png +0 -0
- package/assets/logos/mixx.png +0 -0
- package/assets/logos/moov.png +0 -0
- package/assets/logos/mtn.png +0 -0
- package/assets/logos/orange.png +0 -0
- package/assets/logos/paypal.png +0 -0
- package/assets/logos/visa.png +0 -0
- package/assets/logos/wave.png +0 -0
- package/dist/checkout-core/hooks/use-checkout-controller.d.ts +9 -0
- package/dist/checkout-core/hooks/use-checkout-controller.js +319 -0
- package/dist/checkout-core/hooks/use-checkout-timers.d.ts +15 -0
- package/dist/checkout-core/hooks/use-checkout-timers.js +44 -0
- package/dist/checkout-core/hooks/use-phone-number.d.ts +7 -0
- package/dist/checkout-core/hooks/use-phone-number.js +82 -0
- package/dist/checkout-core/messages/en.d.ts +253 -0
- package/dist/checkout-core/messages/en.js +243 -0
- package/dist/checkout-core/messages/fr.d.ts +4 -0
- package/dist/checkout-core/messages/fr.js +245 -0
- package/dist/checkout-core/models/checkout.card.utils.d.ts +22 -0
- package/dist/checkout-core/models/checkout.card.utils.js +101 -0
- package/dist/checkout-core/models/checkout.constants.d.ts +56 -0
- package/dist/checkout-core/models/checkout.constants.js +142 -0
- package/dist/checkout-core/models/checkout.enum.d.ts +133 -0
- package/dist/checkout-core/models/checkout.enum.js +150 -0
- package/dist/checkout-core/models/checkout.interface.d.ts +417 -0
- package/dist/checkout-core/models/checkout.interface.js +1 -0
- package/dist/checkout-core/models/checkout.money.utils.d.ts +7 -0
- package/dist/checkout-core/models/checkout.money.utils.js +21 -0
- package/dist/checkout-core/models/checkout.phone.utils.d.ts +33 -0
- package/dist/checkout-core/models/checkout.phone.utils.js +159 -0
- package/dist/checkout-core/models/checkout.view.utils.d.ts +34 -0
- package/dist/checkout-core/models/checkout.view.utils.js +205 -0
- package/dist/checkout-core/models/domain.enum.d.ts +56 -0
- package/dist/checkout-core/models/domain.enum.js +62 -0
- package/dist/components/BrissotoPayProvider.d.ts +6 -0
- package/dist/components/BrissotoPayProvider.js +41 -0
- package/dist/components/PaymentSheetModal.d.ts +8 -0
- package/dist/components/PaymentSheetModal.js +77 -0
- package/dist/components/SheetBone.d.ts +3 -0
- package/dist/components/SheetBone.js +12 -0
- package/dist/components/SheetButton.d.ts +3 -0
- package/dist/components/SheetButton.js +33 -0
- package/dist/components/SheetCardFields.d.ts +8 -0
- package/dist/components/SheetCardFields.js +66 -0
- package/dist/components/SheetChosenMethod.d.ts +3 -0
- package/dist/components/SheetChosenMethod.js +60 -0
- package/dist/components/SheetCodeField.d.ts +8 -0
- package/dist/components/SheetCodeField.js +97 -0
- package/dist/components/SheetContent.d.ts +3 -0
- package/dist/components/SheetContent.js +106 -0
- package/dist/components/SheetFailed.d.ts +3 -0
- package/dist/components/SheetFailed.js +43 -0
- package/dist/components/SheetForm.d.ts +8 -0
- package/dist/components/SheetForm.js +101 -0
- package/dist/components/SheetHeader.d.ts +6 -0
- package/dist/components/SheetHeader.js +69 -0
- package/dist/components/SheetIcon.d.ts +3 -0
- package/dist/components/SheetIcon.js +70 -0
- package/dist/components/SheetLayout.d.ts +9 -0
- package/dist/components/SheetLayout.js +48 -0
- package/dist/components/SheetLogo.d.ts +3 -0
- package/dist/components/SheetLogo.js +20 -0
- package/dist/components/SheetMessage.d.ts +3 -0
- package/dist/components/SheetMessage.js +15 -0
- package/dist/components/SheetMethodCard.d.ts +3 -0
- package/dist/components/SheetMethodCard.js +32 -0
- package/dist/components/SheetPhoneField.d.ts +3 -0
- package/dist/components/SheetPhoneField.js +58 -0
- package/dist/components/SheetRow.d.ts +3 -0
- package/dist/components/SheetRow.js +28 -0
- package/dist/components/SheetSimulator.d.ts +6 -0
- package/dist/components/SheetSimulator.js +39 -0
- package/dist/components/SheetSkeleton.d.ts +5 -0
- package/dist/components/SheetSkeleton.js +23 -0
- package/dist/components/SheetSuccess.d.ts +3 -0
- package/dist/components/SheetSuccess.js +51 -0
- package/dist/components/SheetSummary.d.ts +3 -0
- package/dist/components/SheetSummary.js +32 -0
- package/dist/components/SheetTerminal.d.ts +3 -0
- package/dist/components/SheetTerminal.js +21 -0
- package/dist/components/SheetText.d.ts +5 -0
- package/dist/components/SheetText.js +25 -0
- package/dist/components/SheetToast.d.ts +3 -0
- package/dist/components/SheetToast.js +24 -0
- package/dist/components/SheetWaiting.d.ts +7 -0
- package/dist/components/SheetWaiting.js +77 -0
- package/dist/hooks/use-native-platform.d.ts +10 -0
- package/dist/hooks/use-native-platform.js +47 -0
- package/dist/hooks/use-payment-sheet.d.ts +4 -0
- package/dist/hooks/use-payment-sheet.js +10 -0
- package/dist/hooks/use-sheet-motion.d.ts +7 -0
- package/dist/hooks/use-sheet-motion.js +62 -0
- package/dist/hooks/use-sheet-resize.d.ts +6 -0
- package/dist/hooks/use-sheet-resize.js +15 -0
- package/dist/hooks/use-sheet-theme.d.ts +4 -0
- package/dist/hooks/use-sheet-theme.js +12 -0
- package/dist/hooks/use-watched-payment.d.ts +6 -0
- package/dist/hooks/use-watched-payment.js +17 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -0
- package/dist/models/sheet.constants.d.ts +39 -0
- package/dist/models/sheet.constants.js +78 -0
- package/dist/models/sheet.enum.d.ts +16 -0
- package/dist/models/sheet.enum.js +18 -0
- package/dist/models/sheet.interface.d.ts +232 -0
- package/dist/models/sheet.interface.js +1 -0
- package/dist/models/sheet.utils.d.ts +43 -0
- package/dist/models/sheet.utils.js +132 -0
- package/dist/services/checkout.service.d.ts +7 -0
- package/dist/services/checkout.service.js +39 -0
- package/package.json +58 -4
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
export declare enum CheckoutScreenEnum {
|
|
2
|
+
LOADING = "loading",
|
|
3
|
+
FORM = "form",
|
|
4
|
+
SUBMITTING = "submitting",
|
|
5
|
+
WAITING = "waiting",
|
|
6
|
+
/** The last attempt failed: why, a retry and another method. */
|
|
7
|
+
FAILED = "failed",
|
|
8
|
+
SUCCESS = "success",
|
|
9
|
+
EXPIRED = "expired",
|
|
10
|
+
CANCELLED = "cancelled",
|
|
11
|
+
LOCKED = "locked",
|
|
12
|
+
INVALID = "invalid",
|
|
13
|
+
/** Every method went off since the link was made: nothing to pay with. */
|
|
14
|
+
NO_METHOD = "no_method",
|
|
15
|
+
REDIRECT = "redirect"
|
|
16
|
+
}
|
|
17
|
+
/** Values are the `preferredTab` an app may send. */
|
|
18
|
+
export declare enum CheckoutTabEnum {
|
|
19
|
+
MOBILE_MONEY = "mobile_money",
|
|
20
|
+
CARD = "card"
|
|
21
|
+
}
|
|
22
|
+
/** GLOSSARY: Payment. Values are the API's. */
|
|
23
|
+
export declare enum CheckoutPaymentStatusEnum {
|
|
24
|
+
PENDING = "pending",
|
|
25
|
+
PAID = "paid",
|
|
26
|
+
EXPIRED = "expired",
|
|
27
|
+
LOCKED = "locked",
|
|
28
|
+
CANCELLED = "cancelled"
|
|
29
|
+
}
|
|
30
|
+
/** Where a method stands on this payment: payable, greyed with a note, or not built yet. */
|
|
31
|
+
export declare enum MethodStateEnum {
|
|
32
|
+
AVAILABLE = "available",
|
|
33
|
+
MAINTENANCE = "maintenance",
|
|
34
|
+
SOON = "soon"
|
|
35
|
+
}
|
|
36
|
+
export declare enum MethodKindEnum {
|
|
37
|
+
MOBILE_MONEY = "mobile_money",
|
|
38
|
+
CARD = "card"
|
|
39
|
+
}
|
|
40
|
+
/** How the payer approves: a prompt on the phone, a one-time code, or card fields. Values are the backend's. */
|
|
41
|
+
export declare enum MethodFlowEnum {
|
|
42
|
+
USSD_PUSH = "ussd_push",
|
|
43
|
+
OTP = "otp",
|
|
44
|
+
CARD_FIELDS = "card_fields"
|
|
45
|
+
}
|
|
46
|
+
/** The network a Mobile Money number belongs to, from its first digits. Values are logo names. */
|
|
47
|
+
export declare enum MethodBrandEnum {
|
|
48
|
+
ORANGE = "orange",
|
|
49
|
+
MTN = "mtn",
|
|
50
|
+
MOOV = "moov"
|
|
51
|
+
}
|
|
52
|
+
/** Why Pay was refused. Values are the backend's. */
|
|
53
|
+
export declare enum PayRefusalEnum {
|
|
54
|
+
CLOSED = "closed",
|
|
55
|
+
METHOD = "method",
|
|
56
|
+
PHONE = "phone",
|
|
57
|
+
/** An OTP method came without a valid code. */
|
|
58
|
+
CODE = "code",
|
|
59
|
+
/** Earlier attempts still pending could use up the payment's tries. */
|
|
60
|
+
BUSY = "busy"
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* What a provider's card fields page and the checkout tell each other through
|
|
64
|
+
* `postMessage`. The card itself never crosses: only whether it is complete,
|
|
65
|
+
* the page's height, and how a Pay went.
|
|
66
|
+
*/
|
|
67
|
+
export declare enum CardFieldsMessageEnum {
|
|
68
|
+
/** Page → checkout: `complete` says whether Pay can go. */
|
|
69
|
+
STATE = "card-fields:state",
|
|
70
|
+
/** Page → checkout: its content height, so the frame never scrolls. */
|
|
71
|
+
HEIGHT = "card-fields:height",
|
|
72
|
+
/** Checkout → page: Pay was pressed. */
|
|
73
|
+
SUBMIT = "card-fields:submit",
|
|
74
|
+
/** Page → checkout: the card is with the provider; the checkout waits for the status checks. */
|
|
75
|
+
DONE = "card-fields:done",
|
|
76
|
+
/** Page → checkout: Pay was refused (`reason`), or could not reach us (none). */
|
|
77
|
+
REFUSED = "card-fields:refused"
|
|
78
|
+
}
|
|
79
|
+
export declare enum CardFieldEnum {
|
|
80
|
+
NUMBER = "number",
|
|
81
|
+
EXPIRY = "expiry",
|
|
82
|
+
CVC = "cvc"
|
|
83
|
+
}
|
|
84
|
+
/** What a tester makes the Simulator answer. Values are the backend's. */
|
|
85
|
+
export declare enum SimulatorOutcomeEnum {
|
|
86
|
+
APPROVED = "approved",
|
|
87
|
+
DECLINED = "declined",
|
|
88
|
+
INSUFFICIENT_FUNDS = "insufficient_funds",
|
|
89
|
+
NO_ACCOUNT = "no_account",
|
|
90
|
+
WRONG_PIN = "wrong_pin",
|
|
91
|
+
WRONG_CODE = "wrong_code",
|
|
92
|
+
PROVIDER_ERROR = "provider_error",
|
|
93
|
+
WRONG_AMOUNT = "wrong_amount",
|
|
94
|
+
APPROVED_LATE = "approved_late",
|
|
95
|
+
REVERSED = "reversed"
|
|
96
|
+
}
|
|
97
|
+
export declare enum PhoneErrorEnum {
|
|
98
|
+
START = "start",
|
|
99
|
+
SHORT = "short",
|
|
100
|
+
INVALID = "invalid",
|
|
101
|
+
EMPTY = "empty",
|
|
102
|
+
OPERATOR = "operator",
|
|
103
|
+
/** An international number of a country the payment is not offered in. */
|
|
104
|
+
COUNTRY = "country"
|
|
105
|
+
}
|
|
106
|
+
export declare enum SupportChannelEnum {
|
|
107
|
+
WHATSAPP = "whatsapp",
|
|
108
|
+
EMAIL = "email"
|
|
109
|
+
}
|
|
110
|
+
/** Values are the keys of `faqs` in the checkout catalog. */
|
|
111
|
+
export declare enum FaqEnum {
|
|
112
|
+
NOT_RECEIVED = "not_received",
|
|
113
|
+
DEBITED = "debited"
|
|
114
|
+
}
|
|
115
|
+
/** Screens the payer cannot act on, each with its copy. Values are catalog keys. */
|
|
116
|
+
export declare enum TerminalKindEnum {
|
|
117
|
+
EXPIRED = "expired",
|
|
118
|
+
CANCELLED = "cancelled",
|
|
119
|
+
LOCKED = "locked",
|
|
120
|
+
INVALID = "invalid",
|
|
121
|
+
NO_METHOD = "no_method"
|
|
122
|
+
}
|
|
123
|
+
export declare enum CheckoutButtonVariantEnum {
|
|
124
|
+
PRIMARY = "primary",
|
|
125
|
+
SECONDARY = "secondary",
|
|
126
|
+
/** Gives something up: cancelling the payment. */
|
|
127
|
+
DANGER = "danger"
|
|
128
|
+
}
|
|
129
|
+
/** Values are the `theme` an app may send. */
|
|
130
|
+
export declare enum CheckoutThemeEnum {
|
|
131
|
+
LIGHT = "light",
|
|
132
|
+
DARK = "dark"
|
|
133
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
export var CheckoutScreenEnum;
|
|
2
|
+
(function (CheckoutScreenEnum) {
|
|
3
|
+
CheckoutScreenEnum["LOADING"] = "loading";
|
|
4
|
+
CheckoutScreenEnum["FORM"] = "form";
|
|
5
|
+
CheckoutScreenEnum["SUBMITTING"] = "submitting";
|
|
6
|
+
CheckoutScreenEnum["WAITING"] = "waiting";
|
|
7
|
+
/** The last attempt failed: why, a retry and another method. */
|
|
8
|
+
CheckoutScreenEnum["FAILED"] = "failed";
|
|
9
|
+
CheckoutScreenEnum["SUCCESS"] = "success";
|
|
10
|
+
CheckoutScreenEnum["EXPIRED"] = "expired";
|
|
11
|
+
CheckoutScreenEnum["CANCELLED"] = "cancelled";
|
|
12
|
+
CheckoutScreenEnum["LOCKED"] = "locked";
|
|
13
|
+
CheckoutScreenEnum["INVALID"] = "invalid";
|
|
14
|
+
/** Every method went off since the link was made: nothing to pay with. */
|
|
15
|
+
CheckoutScreenEnum["NO_METHOD"] = "no_method";
|
|
16
|
+
CheckoutScreenEnum["REDIRECT"] = "redirect";
|
|
17
|
+
})(CheckoutScreenEnum || (CheckoutScreenEnum = {}));
|
|
18
|
+
/** Values are the `preferredTab` an app may send. */
|
|
19
|
+
export var CheckoutTabEnum;
|
|
20
|
+
(function (CheckoutTabEnum) {
|
|
21
|
+
CheckoutTabEnum["MOBILE_MONEY"] = "mobile_money";
|
|
22
|
+
CheckoutTabEnum["CARD"] = "card";
|
|
23
|
+
})(CheckoutTabEnum || (CheckoutTabEnum = {}));
|
|
24
|
+
/** GLOSSARY: Payment. Values are the API's. */
|
|
25
|
+
export var CheckoutPaymentStatusEnum;
|
|
26
|
+
(function (CheckoutPaymentStatusEnum) {
|
|
27
|
+
CheckoutPaymentStatusEnum["PENDING"] = "pending";
|
|
28
|
+
CheckoutPaymentStatusEnum["PAID"] = "paid";
|
|
29
|
+
CheckoutPaymentStatusEnum["EXPIRED"] = "expired";
|
|
30
|
+
CheckoutPaymentStatusEnum["LOCKED"] = "locked";
|
|
31
|
+
CheckoutPaymentStatusEnum["CANCELLED"] = "cancelled";
|
|
32
|
+
})(CheckoutPaymentStatusEnum || (CheckoutPaymentStatusEnum = {}));
|
|
33
|
+
/** Where a method stands on this payment: payable, greyed with a note, or not built yet. */
|
|
34
|
+
export var MethodStateEnum;
|
|
35
|
+
(function (MethodStateEnum) {
|
|
36
|
+
MethodStateEnum["AVAILABLE"] = "available";
|
|
37
|
+
MethodStateEnum["MAINTENANCE"] = "maintenance";
|
|
38
|
+
MethodStateEnum["SOON"] = "soon";
|
|
39
|
+
})(MethodStateEnum || (MethodStateEnum = {}));
|
|
40
|
+
export var MethodKindEnum;
|
|
41
|
+
(function (MethodKindEnum) {
|
|
42
|
+
MethodKindEnum["MOBILE_MONEY"] = "mobile_money";
|
|
43
|
+
MethodKindEnum["CARD"] = "card";
|
|
44
|
+
})(MethodKindEnum || (MethodKindEnum = {}));
|
|
45
|
+
/** How the payer approves: a prompt on the phone, a one-time code, or card fields. Values are the backend's. */
|
|
46
|
+
export var MethodFlowEnum;
|
|
47
|
+
(function (MethodFlowEnum) {
|
|
48
|
+
MethodFlowEnum["USSD_PUSH"] = "ussd_push";
|
|
49
|
+
MethodFlowEnum["OTP"] = "otp";
|
|
50
|
+
MethodFlowEnum["CARD_FIELDS"] = "card_fields";
|
|
51
|
+
})(MethodFlowEnum || (MethodFlowEnum = {}));
|
|
52
|
+
/** The network a Mobile Money number belongs to, from its first digits. Values are logo names. */
|
|
53
|
+
export var MethodBrandEnum;
|
|
54
|
+
(function (MethodBrandEnum) {
|
|
55
|
+
MethodBrandEnum["ORANGE"] = "orange";
|
|
56
|
+
MethodBrandEnum["MTN"] = "mtn";
|
|
57
|
+
MethodBrandEnum["MOOV"] = "moov";
|
|
58
|
+
})(MethodBrandEnum || (MethodBrandEnum = {}));
|
|
59
|
+
/** Why Pay was refused. Values are the backend's. */
|
|
60
|
+
export var PayRefusalEnum;
|
|
61
|
+
(function (PayRefusalEnum) {
|
|
62
|
+
PayRefusalEnum["CLOSED"] = "closed";
|
|
63
|
+
PayRefusalEnum["METHOD"] = "method";
|
|
64
|
+
PayRefusalEnum["PHONE"] = "phone";
|
|
65
|
+
/** An OTP method came without a valid code. */
|
|
66
|
+
PayRefusalEnum["CODE"] = "code";
|
|
67
|
+
/** Earlier attempts still pending could use up the payment's tries. */
|
|
68
|
+
PayRefusalEnum["BUSY"] = "busy";
|
|
69
|
+
})(PayRefusalEnum || (PayRefusalEnum = {}));
|
|
70
|
+
/**
|
|
71
|
+
* What a provider's card fields page and the checkout tell each other through
|
|
72
|
+
* `postMessage`. The card itself never crosses: only whether it is complete,
|
|
73
|
+
* the page's height, and how a Pay went.
|
|
74
|
+
*/
|
|
75
|
+
export var CardFieldsMessageEnum;
|
|
76
|
+
(function (CardFieldsMessageEnum) {
|
|
77
|
+
/** Page → checkout: `complete` says whether Pay can go. */
|
|
78
|
+
CardFieldsMessageEnum["STATE"] = "card-fields:state";
|
|
79
|
+
/** Page → checkout: its content height, so the frame never scrolls. */
|
|
80
|
+
CardFieldsMessageEnum["HEIGHT"] = "card-fields:height";
|
|
81
|
+
/** Checkout → page: Pay was pressed. */
|
|
82
|
+
CardFieldsMessageEnum["SUBMIT"] = "card-fields:submit";
|
|
83
|
+
/** Page → checkout: the card is with the provider; the checkout waits for the status checks. */
|
|
84
|
+
CardFieldsMessageEnum["DONE"] = "card-fields:done";
|
|
85
|
+
/** Page → checkout: Pay was refused (`reason`), or could not reach us (none). */
|
|
86
|
+
CardFieldsMessageEnum["REFUSED"] = "card-fields:refused";
|
|
87
|
+
})(CardFieldsMessageEnum || (CardFieldsMessageEnum = {}));
|
|
88
|
+
export var CardFieldEnum;
|
|
89
|
+
(function (CardFieldEnum) {
|
|
90
|
+
CardFieldEnum["NUMBER"] = "number";
|
|
91
|
+
CardFieldEnum["EXPIRY"] = "expiry";
|
|
92
|
+
CardFieldEnum["CVC"] = "cvc";
|
|
93
|
+
})(CardFieldEnum || (CardFieldEnum = {}));
|
|
94
|
+
/** What a tester makes the Simulator answer. Values are the backend's. */
|
|
95
|
+
export var SimulatorOutcomeEnum;
|
|
96
|
+
(function (SimulatorOutcomeEnum) {
|
|
97
|
+
SimulatorOutcomeEnum["APPROVED"] = "approved";
|
|
98
|
+
SimulatorOutcomeEnum["DECLINED"] = "declined";
|
|
99
|
+
SimulatorOutcomeEnum["INSUFFICIENT_FUNDS"] = "insufficient_funds";
|
|
100
|
+
SimulatorOutcomeEnum["NO_ACCOUNT"] = "no_account";
|
|
101
|
+
SimulatorOutcomeEnum["WRONG_PIN"] = "wrong_pin";
|
|
102
|
+
SimulatorOutcomeEnum["WRONG_CODE"] = "wrong_code";
|
|
103
|
+
SimulatorOutcomeEnum["PROVIDER_ERROR"] = "provider_error";
|
|
104
|
+
SimulatorOutcomeEnum["WRONG_AMOUNT"] = "wrong_amount";
|
|
105
|
+
SimulatorOutcomeEnum["APPROVED_LATE"] = "approved_late";
|
|
106
|
+
SimulatorOutcomeEnum["REVERSED"] = "reversed";
|
|
107
|
+
})(SimulatorOutcomeEnum || (SimulatorOutcomeEnum = {}));
|
|
108
|
+
export var PhoneErrorEnum;
|
|
109
|
+
(function (PhoneErrorEnum) {
|
|
110
|
+
PhoneErrorEnum["START"] = "start";
|
|
111
|
+
PhoneErrorEnum["SHORT"] = "short";
|
|
112
|
+
PhoneErrorEnum["INVALID"] = "invalid";
|
|
113
|
+
PhoneErrorEnum["EMPTY"] = "empty";
|
|
114
|
+
PhoneErrorEnum["OPERATOR"] = "operator";
|
|
115
|
+
/** An international number of a country the payment is not offered in. */
|
|
116
|
+
PhoneErrorEnum["COUNTRY"] = "country";
|
|
117
|
+
})(PhoneErrorEnum || (PhoneErrorEnum = {}));
|
|
118
|
+
export var SupportChannelEnum;
|
|
119
|
+
(function (SupportChannelEnum) {
|
|
120
|
+
SupportChannelEnum["WHATSAPP"] = "whatsapp";
|
|
121
|
+
SupportChannelEnum["EMAIL"] = "email";
|
|
122
|
+
})(SupportChannelEnum || (SupportChannelEnum = {}));
|
|
123
|
+
/** Values are the keys of `faqs` in the checkout catalog. */
|
|
124
|
+
export var FaqEnum;
|
|
125
|
+
(function (FaqEnum) {
|
|
126
|
+
FaqEnum["NOT_RECEIVED"] = "not_received";
|
|
127
|
+
FaqEnum["DEBITED"] = "debited";
|
|
128
|
+
})(FaqEnum || (FaqEnum = {}));
|
|
129
|
+
/** Screens the payer cannot act on, each with its copy. Values are catalog keys. */
|
|
130
|
+
export var TerminalKindEnum;
|
|
131
|
+
(function (TerminalKindEnum) {
|
|
132
|
+
TerminalKindEnum["EXPIRED"] = "expired";
|
|
133
|
+
TerminalKindEnum["CANCELLED"] = "cancelled";
|
|
134
|
+
TerminalKindEnum["LOCKED"] = "locked";
|
|
135
|
+
TerminalKindEnum["INVALID"] = "invalid";
|
|
136
|
+
TerminalKindEnum["NO_METHOD"] = "no_method";
|
|
137
|
+
})(TerminalKindEnum || (TerminalKindEnum = {}));
|
|
138
|
+
export var CheckoutButtonVariantEnum;
|
|
139
|
+
(function (CheckoutButtonVariantEnum) {
|
|
140
|
+
CheckoutButtonVariantEnum["PRIMARY"] = "primary";
|
|
141
|
+
CheckoutButtonVariantEnum["SECONDARY"] = "secondary";
|
|
142
|
+
/** Gives something up: cancelling the payment. */
|
|
143
|
+
CheckoutButtonVariantEnum["DANGER"] = "danger";
|
|
144
|
+
})(CheckoutButtonVariantEnum || (CheckoutButtonVariantEnum = {}));
|
|
145
|
+
/** Values are the `theme` an app may send. */
|
|
146
|
+
export var CheckoutThemeEnum;
|
|
147
|
+
(function (CheckoutThemeEnum) {
|
|
148
|
+
CheckoutThemeEnum["LIGHT"] = "light";
|
|
149
|
+
CheckoutThemeEnum["DARK"] = "dark";
|
|
150
|
+
})(CheckoutThemeEnum || (CheckoutThemeEnum = {}));
|