@opexa/portal-components 0.0.205 → 0.0.206
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/dist/client/hooks/useCreatePisoPayDepositMutation.d.ts +4 -0
- package/dist/client/hooks/useCreatePisoPayDepositMutation.js +73 -0
- package/dist/client/hooks/useCreatePisoPayWithdrawalMutation.d.ts +4 -0
- package/dist/client/hooks/useCreatePisoPayWithdrawalMutation.js +28 -0
- package/dist/client/hooks/useGlobalStore.d.ts +2 -7
- package/dist/client/hooks/useGlobalStore.js +8 -11
- package/dist/components/DepositWithdrawal/Deposit/Deposit.js +8 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts +2 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit/PisoPayDeposit/PisoPayDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/PisoPayDeposit/PisoPayDeposit.js +182 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.d.ts +2 -2
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.d.ts +1 -1
- package/dist/components/DepositWithdrawal/PaymentMethods.js +6 -0
- package/dist/components/DepositWithdrawal/Withdrawal/PisoPayWithdrawal/PisoPayWithdrawal.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Withdrawal/PisoPayWithdrawal/PisoPayWithdrawal.js +151 -0
- package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.js +8 -1
- package/dist/components/DepositWithdrawal/utils.d.ts +1 -1
- package/dist/components/DepositWithdrawal/utils.js +1 -0
- package/dist/components/KYC/BasicInformation.js +16 -12
- package/dist/components/KYC/IdentityVerification.js +2 -2
- package/dist/components/KYC/Indicator.js +3 -6
- package/dist/components/KYC/KYC.js +1 -3
- package/dist/components/KYC/KYC.lazy.d.ts +2 -1
- package/dist/components/KYC/KYC.lazy.js +16 -11
- package/dist/components/KYC/KYCReminder.d.ts +2 -5
- package/dist/components/KYC/KYCReminder.js +11 -20
- package/dist/components/KYC/KYCReminder.lazy.d.ts +4 -0
- package/dist/components/KYC/KYCReminder.lazy.js +30 -0
- package/dist/components/KYC/index.d.ts +1 -0
- package/dist/components/KYC/index.js +1 -0
- package/dist/components/Messages/MessagesPopup.js +1 -1
- package/dist/components/SignIn/MobileNumberSignIn.js +6 -5
- package/dist/components/SignIn/NameAndPasswordSignIn.js +2 -0
- package/dist/components/SignUp/SignUpDefault/SignUpForm.js +11 -8
- package/dist/constants/PisoPayBanks.d.ts +4 -0
- package/dist/constants/PisoPayBanks.js +45 -0
- package/dist/constants/StorageKey.d.ts +0 -1
- package/dist/constants/StorageKey.js +0 -1
- package/dist/images/piso-pay.png +0 -0
- package/dist/services/queries.d.ts +2 -0
- package/dist/services/queries.js +68 -0
- package/dist/services/wallet.d.ts +27 -0
- package/dist/services/wallet.js +26 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/ui/AlertDialog/AlertDialog.d.ts +88 -88
- package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +8 -8
- package/dist/ui/Badge/Badge.d.ts +12 -12
- package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
- package/dist/ui/Badge/badge.recipe.d.ts +3 -3
- package/dist/ui/Carousel/Carousel.d.ts +45 -45
- package/dist/ui/Carousel/carousel.recipe.d.ts +5 -5
- package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
- package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
- package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
- package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
- package/dist/ui/Collapsible/Collapsible.d.ts +32 -32
- package/dist/ui/Combobox/Combobox.d.ts +42 -42
- package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
- package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
- package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
- package/dist/ui/Dialog/Dialog.d.ts +88 -88
- package/dist/ui/Dialog/dialog.recipe.d.ts +8 -8
- package/dist/ui/Drawer/Drawer.d.ts +33 -33
- package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
- package/dist/ui/Menu/Menu.d.ts +144 -144
- package/dist/ui/Menu/menu.recipe.d.ts +5 -5
- package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
- package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
- package/dist/ui/Popover/Popover.d.ts +55 -55
- package/dist/ui/Progress/Progress.d.ts +27 -27
- package/dist/ui/Progress/progress.recipe.d.ts +3 -3
- package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
- package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
- package/dist/ui/Select/Select.d.ts +45 -45
- package/dist/ui/Select/select.recipe.d.ts +3 -3
- package/dist/ui/Table/Table.d.ts +21 -21
- package/dist/ui/Table/table.anatomy.d.ts +1 -1
- package/dist/ui/Table/table.recipe.d.ts +3 -3
- package/dist/ui/Tabs/Tabs.d.ts +15 -15
- package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
- package/dist/ui/Tooltip/tooltip.recipe.d.ts +5 -5
- package/dist/utils/mutationKeys.d.ts +2 -0
- package/dist/utils/mutationKeys.js +8 -0
- package/package.json +1 -1
|
@@ -18,6 +18,7 @@ import { GCashWithdrawal } from './GCashWithdrawal/GCashWithdrawal.js';
|
|
|
18
18
|
import { InstapayWithdrawal } from './InstapayWithdrawal/InstapayWithdrawal.js';
|
|
19
19
|
import { MayaAppWithdrawal } from './MayaAppWithdrawal/MayaAppWithdrawal.js';
|
|
20
20
|
import { MayaWithdrawal } from './MayaWithdrawal/MayaWithdrawal.js';
|
|
21
|
+
import { PisoPayWithdrawal } from './PisoPayWithdrawal/PisoPayWithdrawal.js';
|
|
21
22
|
import { VentajaWithdrawal } from './VentajaWithdrawal/VentajaWithdrawal.js';
|
|
22
23
|
export function Withdrawal() {
|
|
23
24
|
const [onMMA] = useOnMMA();
|
|
@@ -49,6 +50,9 @@ export function Withdrawal() {
|
|
|
49
50
|
if (paymentSettings?.ventajaWithdrawalGatewaySettings?.mobileWebEnabled) {
|
|
50
51
|
l.push('VENTAJA');
|
|
51
52
|
}
|
|
53
|
+
if (paymentSettings?.pisoPayWithdrawalGatewaySettings?.mobileWebEnabled) {
|
|
54
|
+
l.push('PISO_PAY');
|
|
55
|
+
}
|
|
52
56
|
}
|
|
53
57
|
else {
|
|
54
58
|
if (paymentSettings?.gcashWithdrawalGatewaySettings?.webEnabled) {
|
|
@@ -63,6 +67,9 @@ export function Withdrawal() {
|
|
|
63
67
|
if (paymentSettings?.ventajaWithdrawalGatewaySettings?.mobileWebEnabled) {
|
|
64
68
|
l.push('VENTAJA');
|
|
65
69
|
}
|
|
70
|
+
if (paymentSettings?.pisoPayWithdrawalGatewaySettings?.mobileWebEnabled) {
|
|
71
|
+
l.push('PISO_PAY');
|
|
72
|
+
}
|
|
66
73
|
}
|
|
67
74
|
return l;
|
|
68
75
|
})();
|
|
@@ -96,7 +103,7 @@ export function Withdrawal() {
|
|
|
96
103
|
if (enabledPaymentMethods.length <= 0) {
|
|
97
104
|
return _jsx(NoAvailablePaymentMethods, {});
|
|
98
105
|
}
|
|
99
|
-
return (_jsxs(_Fragment, { children: [_jsx(PaymentMethods, { value: paymentMethod, onChange: setPaymentMethod, options: enabledPaymentMethods }), paymentMethod === 'GCASH' && _jsx(GCashWithdrawal, {}), paymentMethod === 'MAYA' && _jsx(MayaWithdrawal, {}), paymentMethod === 'MAYA_APP' && _jsx(MayaAppWithdrawal, {}), paymentMethod === 'INSTAPAY' && _jsx(InstapayWithdrawal, {}), paymentMethod === 'VENTAJA' && _jsx(VentajaWithdrawal, {})] }));
|
|
106
|
+
return (_jsxs(_Fragment, { children: [_jsx(PaymentMethods, { value: paymentMethod, onChange: setPaymentMethod, options: enabledPaymentMethods }), paymentMethod === 'GCASH' && _jsx(GCashWithdrawal, {}), paymentMethod === 'MAYA' && _jsx(MayaWithdrawal, {}), paymentMethod === 'MAYA_APP' && _jsx(MayaAppWithdrawal, {}), paymentMethod === 'INSTAPAY' && _jsx(InstapayWithdrawal, {}), paymentMethod === 'VENTAJA' && _jsx(VentajaWithdrawal, {}), paymentMethod === 'PISO_PAY' && _jsx(PisoPayWithdrawal, {})] }));
|
|
100
107
|
}
|
|
101
108
|
function TransactionPasswordNotSet() {
|
|
102
109
|
return (_jsxs("div", { className: "pt-xl", children: [_jsx("div", { className: "bg-bg-warning-secondary mx-auto flex size-12 items-center justify-center rounded-full", children: _jsx(AlertCircleIcon, { className: "text-text-featured-icon-light-warning size-6" }) }), _jsx("h2", { className: "mt-lg text-center text-lg font-semibold", children: "Transaction Password Not Set" }), _jsx("p", { className: "text-text-tertiary-600 mx-auto mt-xs max-w-[25rem] text-center text-sm", children: "To proceed with withdrawals, you must first set up a transaction password. This ensures the security of your account and transactions." })] }));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const PaymentMethodDefinition: z.ZodEnum<["GCASH", "MAYA_APP", "MAYA", "ONLINE_BANK", "QRPH", "INSTAPAY", "LIBANGAN", "VENTAJA"]>;
|
|
2
|
+
export declare const PaymentMethodDefinition: z.ZodEnum<["GCASH", "MAYA_APP", "MAYA", "ONLINE_BANK", "QRPH", "INSTAPAY", "LIBANGAN", "VENTAJA", "PISO_PAY"]>;
|
|
3
3
|
export type PaymentMethod = z.infer<typeof PaymentMethodDefinition>;
|
|
@@ -54,7 +54,21 @@ export function BasicInformation() {
|
|
|
54
54
|
});
|
|
55
55
|
const accountQuery = useAccountQuery();
|
|
56
56
|
const account = accountQuery.data;
|
|
57
|
-
const
|
|
57
|
+
const stepCompleted = account != null && account.realName != null && account.birthDay != null;
|
|
58
|
+
useEffect(() => {
|
|
59
|
+
if (stepCompleted)
|
|
60
|
+
kyc.setStep(2);
|
|
61
|
+
}, [stepCompleted, kyc]);
|
|
62
|
+
useEffect(() => {
|
|
63
|
+
if (account) {
|
|
64
|
+
form.reset({
|
|
65
|
+
realName: account.realName ?? '',
|
|
66
|
+
birthDay: account.birthDay
|
|
67
|
+
? format(account.birthDay, 'yyyy-MM-dd')
|
|
68
|
+
: '',
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}, [account, form]);
|
|
58
72
|
const updateAccountMutation = useUpdateAccountMutation({
|
|
59
73
|
onError(error) {
|
|
60
74
|
toaster.error({
|
|
@@ -70,16 +84,6 @@ export function BasicInformation() {
|
|
|
70
84
|
});
|
|
71
85
|
},
|
|
72
86
|
});
|
|
73
|
-
useEffect(() => {
|
|
74
|
-
if (account) {
|
|
75
|
-
form.reset({
|
|
76
|
-
realName: account.realName ?? '',
|
|
77
|
-
birthDay: account.birthDay
|
|
78
|
-
? format(account.birthDay, 'yyyy-MM-dd')
|
|
79
|
-
: '',
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
}, [account, form, kyc]);
|
|
83
87
|
return (_jsxs("div", { children: [_jsx(Dialog.Title, { className: "text-center text-lg font-semibold", children: "Basic Information" }), _jsx(Dialog.Description, { className: "text-text-secondary-700 mt-xs text-center text-sm", children: "Enter your basic details for identification and communication." }), _jsxs("form", { className: "mt-3", onSubmit: form.handleSubmit((data) => {
|
|
84
88
|
invariant(account);
|
|
85
89
|
const input = omitBy({
|
|
@@ -93,5 +97,5 @@ export function BasicInformation() {
|
|
|
93
97
|
updateAccountMutation.mutate(input);
|
|
94
98
|
}), children: [_jsxs(Field.Root, { invalid: !!form.formState.errors.realName, readOnly: !!accountQuery.data?.realName, children: [_jsx(Field.Label, { children: "Real Name" }), _jsx(Field.Input, { placeholder: "Enter your real name", ...form.register('realName') }), _jsx(Field.ErrorText, { children: form.formState.errors.realName?.message })] }), _jsxs(Field.Root, { className: "mt-3", invalid: !!form.formState.errors.branchCode, readOnly: !!accountQuery.data?.birthDay, children: [_jsx(Field.Label, { children: "Date of Birth" }), _jsx(Field.Input, { type: "date", ...form.register('birthDay') }), _jsx(Field.ErrorText, { children: form.formState.errors.birthDay?.message })] }), _jsx(Button, { type: "submit", className: "mt-8", disabled: accountQuery.isLoading ||
|
|
95
99
|
updateAccountMutation.isPending ||
|
|
96
|
-
|
|
100
|
+
stepCompleted, children: "Continue" })] })] }));
|
|
97
101
|
}
|
|
@@ -83,7 +83,7 @@ export function IdentityVerification() {
|
|
|
83
83
|
placeOfBirth: '',
|
|
84
84
|
sourceOfIncome: '',
|
|
85
85
|
});
|
|
86
|
-
|
|
86
|
+
kyc.setStep(3);
|
|
87
87
|
}
|
|
88
88
|
else {
|
|
89
89
|
updateMemberVerification({
|
|
@@ -93,7 +93,7 @@ export function IdentityVerification() {
|
|
|
93
93
|
idFrontImage: values.idFrontImage,
|
|
94
94
|
},
|
|
95
95
|
});
|
|
96
|
-
|
|
96
|
+
kyc.setStep(3);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
useEffect(() => {
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { noop } from 'lodash-es';
|
|
3
|
-
import { useShallow } from 'zustand/shallow';
|
|
4
|
-
import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
|
|
5
3
|
import { Progress } from '../../ui/Progress/index.js';
|
|
4
|
+
import { useKYCContext } from './KYCContext.js';
|
|
6
5
|
export function Indicator() {
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
})));
|
|
10
|
-
return (_jsxs("div", { className: "flex items-center justify-center gap-1.5 py-3", children: [_jsx(Progress.Root, { className: "w-10 shrink-0", value: globalStore.kyc.step > 1 ? 100 : 0, onValueChange: noop, children: _jsx(Progress.Track, { className: "bg-bg-primary-hover", children: _jsx(Progress.Range, {}) }) }), _jsx(Progress.Root, { className: "w-10 shrink-0", value: globalStore.kyc.step > 2 ? 100 : 0, onValueChange: noop, children: _jsx(Progress.Track, { className: "bg-bg-primary-hover", children: _jsx(Progress.Range, {}) }) }), _jsx(Progress.Root, { className: "w-10 shrink-0", value: globalStore.kyc.step === 3 ? 100 : 0, onValueChange: noop, children: _jsx(Progress.Track, { className: "bg-bg-primary-hover", children: _jsx(Progress.Range, {}) }) })] }));
|
|
6
|
+
const kyc = useKYCContext();
|
|
7
|
+
return (_jsxs("div", { className: "flex items-center justify-center gap-1.5 py-3", children: [_jsx(Progress.Root, { className: "w-10 shrink-0", value: kyc.step > 1 ? 100 : 0, onValueChange: noop, children: _jsx(Progress.Track, { className: "bg-bg-primary-hover", children: _jsx(Progress.Range, {}) }) }), _jsx(Progress.Root, { className: "w-10 shrink-0", value: kyc.step > 2 ? 100 : 0, onValueChange: noop, children: _jsx(Progress.Track, { className: "bg-bg-primary-hover", children: _jsx(Progress.Range, {}) }) }), _jsx(Progress.Root, { className: "w-10 shrink-0", value: kyc.step === 3 ? 100 : 0, onValueChange: noop, children: _jsx(Progress.Track, { className: "bg-bg-primary-hover", children: _jsx(Progress.Range, {}) }) })] }));
|
|
11
8
|
}
|
|
@@ -4,13 +4,11 @@ import dynamic from 'next/dynamic';
|
|
|
4
4
|
import Script from 'next/script';
|
|
5
5
|
import { useShallow } from 'zustand/shallow';
|
|
6
6
|
import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
|
|
7
|
-
import { AutoOpen } from './AutoOpen.js';
|
|
8
|
-
import KYCReminder from './KYCReminder.js';
|
|
9
7
|
const Component = dynamic(() => import('./KYC.lazy.js').then((m) => m.KYC), {
|
|
10
8
|
ssr: false,
|
|
11
9
|
loading: () => null,
|
|
12
10
|
});
|
|
13
11
|
export function KYC(props) {
|
|
14
12
|
const touched = useGlobalStore(useShallow((ctx) => ctx.kyc['~touched']));
|
|
15
|
-
return (_jsxs(_Fragment, { children: [touched && _jsx(Component, { ...props }), _jsx(
|
|
13
|
+
return (_jsxs(_Fragment, { children: [touched && _jsx(Component, { ...props }), _jsx(Script, { src: "https://docs.opencv.org/4.7.0/opencv.js", defer: true }), _jsx(Script, { src: "https://cdn.jsdelivr.net/gh/ColonelParrot/jscanify@master/src/jscanify.min.js", defer: true })] }));
|
|
16
14
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ImageProps } from 'next/image';
|
|
2
|
-
|
|
2
|
+
import { type KYCReminderProps } from './KYCReminder.lazy';
|
|
3
|
+
export interface KYCProps extends KYCReminderProps {
|
|
3
4
|
logo: ImageProps['src'];
|
|
4
5
|
}
|
|
5
6
|
export declare function KYC(props: KYCProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import Image from 'next/image';
|
|
3
3
|
import { useShallow } from 'zustand/shallow';
|
|
4
|
+
import { useAccountQuery } from '../../client/hooks/useAccountQuery.js';
|
|
4
5
|
import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
|
|
5
|
-
import {
|
|
6
|
+
import { useMemberVerificationQuery } from '../../client/hooks/useMemberVerificationQuery.js';
|
|
6
7
|
import { XIcon } from '../../icons/XIcon.js';
|
|
7
8
|
import { Dialog } from '../../ui/Dialog/index.js';
|
|
8
9
|
import { Portal } from '../../ui/Portal/index.js';
|
|
@@ -12,17 +13,21 @@ import { CaptureSelfie } from './CaptureSelfie.js';
|
|
|
12
13
|
import { IdentityVerification } from './IdentityVerification.js';
|
|
13
14
|
import { Indicator } from './Indicator.js';
|
|
14
15
|
import { KYCContext } from './KYCContext.js';
|
|
16
|
+
import { KYCReminder } from './KYCReminder.lazy.js';
|
|
15
17
|
import { PersonalInformation } from './PersonalInformation.js';
|
|
16
18
|
import { useKYC } from './useKYC.js';
|
|
17
19
|
export function KYC(props) {
|
|
18
|
-
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
19
|
-
kyc: ctx.kyc,
|
|
20
|
-
})));
|
|
20
|
+
const globalStore = useGlobalStore(useShallow((ctx) => ({ kyc: ctx.kyc })));
|
|
21
21
|
const kyc = useKYC();
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
const { data: account } = useAccountQuery();
|
|
23
|
+
const { data: verification } = useMemberVerificationQuery();
|
|
24
|
+
const isBasicInfoCompleted = account?.realName !== null && account?.birthDay !== null;
|
|
25
|
+
const isUploadCompleted = verification &&
|
|
26
|
+
verification.idFrontImage !== null &&
|
|
27
|
+
verification.selfieImage !== null;
|
|
28
|
+
const isRejected = Boolean(verification?.status === 'REJECTED');
|
|
29
|
+
const hasMissingData = !isBasicInfoCompleted || !isUploadCompleted || isRejected;
|
|
30
|
+
return (_jsxs(_Fragment, { children: [_jsx(KYCContext, { value: kyc, children: _jsx(Dialog.Root, { open: globalStore.kyc.open && hasMissingData, onOpenChange: (details) => {
|
|
31
|
+
globalStore.kyc.setOpen(details.open);
|
|
32
|
+
}, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, onExitComplete: kyc.reset, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: _jsxs(Dialog.Content, { className: "bg-bg-primary-alt lg:min-h-auto mx-auto min-h-full w-full lg:w-fit", children: [kyc.capturing === 'SELFIE' && _jsx(CaptureSelfie, {}), kyc.capturing === 'ID_DOCUMENT' && _jsx(CaptureIdDocument, {}), !kyc.capturing && (_jsxs("div", { className: "flex h-dvh w-full flex-col overflow-y-auto p-3xl sm:h-fit sm:overflow-auto lg:w-[400px]", children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsx(Image, { src: props.logo, alt: "", width: 200, height: 100, className: "mx-auto mb-5 block h-7.5 w-auto", draggable: false }), _jsx(Indicator, {}), kyc.step === 1 && _jsx(BasicInformation, {}), kyc.step === 2 && _jsx(IdentityVerification, {}), kyc.step === 3 && _jsx(PersonalInformation, {})] }))] }) })] }) }) }), _jsx(KYCReminder, { ...props })] }));
|
|
28
33
|
}
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
declare function KYCReminder({ siteName }: Props): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export default KYCReminder;
|
|
1
|
+
import type { KYCReminderProps } from './KYCReminder.lazy';
|
|
2
|
+
export declare function KYCReminder(props: KYCReminderProps): import("react/jsx-runtime").JSX.Element | undefined;
|
|
@@ -1,23 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import dynamic from 'next/dynamic';
|
|
2
4
|
import { useShallow } from 'zustand/shallow';
|
|
3
5
|
import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const globalStore = useGlobalStore(useShallow((ctx) => ctx.kyc));
|
|
13
|
-
return (_jsx(Dialog.Root, { open: globalStore.openKycReminder, onOpenChange: (details) => {
|
|
14
|
-
globalStore.setKycReminder(details.open);
|
|
15
|
-
if (!details.open) {
|
|
16
|
-
localStorage.setItem(KYC_PROMPT_LOCALSTORAGE_KEY, '');
|
|
17
|
-
}
|
|
18
|
-
}, closeOnEscape: true, closeOnInteractOutside: false, lazyMount: true, unmountOnExit: true, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, { className: "!z-[calc(var(--z-dialog)+3)]" }), _jsx(Dialog.Positioner, { className: "!z-[calc(var(--z-dialog)+4)] flex items-center justify-center", children: _jsxs(Dialog.Content, { className: "bg-bg-primary-alt mx-auto h-fit max-w-[400px]", children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsxs("div", { className: "p-3xl text-center", children: [_jsx("div", { className: "bg-bg-warning-secondary mx-auto w-fit rounded-full p-2", children: _jsx(FileCheck02Icon, { className: "text-[#FEDF89]" }) }), _jsx("h1", { className: "text-lg text-white", children: "Personal Verification" }), _jsxs("p", { className: "text-text-tertiary-600 mt-xs text-sm", children: ["All new users are required to complete identity verification to access the full range of ", siteName, " services, including withdrawals."] }), _jsxs("div", { className: "mt-3xl space-y-lg", children: [_jsx("a", { href: "/account/verification", className: buttonRecipe({ variant: 'solid' }), onClick: () => localStorage.setItem(KYC_PROMPT_LOCALSTORAGE_KEY, ''), children: "Verify Now" }), _jsx(Button, { type: "button", variant: "outline", fullWidth: true, onClick: () => {
|
|
19
|
-
globalStore.setKycReminder(false);
|
|
20
|
-
localStorage.setItem(KYC_PROMPT_LOCALSTORAGE_KEY, '');
|
|
21
|
-
}, children: "Do it later" })] })] })] }) })] }) }));
|
|
6
|
+
const Component = dynamic(() => import('./KYCReminder.lazy.js').then((m) => m.KYCReminder), {
|
|
7
|
+
ssr: false,
|
|
8
|
+
loading: () => null,
|
|
9
|
+
});
|
|
10
|
+
export function KYCReminder(props) {
|
|
11
|
+
const touched = useGlobalStore(useShallow((ctx) => ctx.kycReminder['~touched']));
|
|
12
|
+
if (touched)
|
|
13
|
+
return _jsx(Component, { ...props });
|
|
22
14
|
}
|
|
23
|
-
export default KYCReminder;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useShallow } from 'zustand/shallow';
|
|
3
|
+
import { useAccountQuery } from '../../client/hooks/useAccountQuery.js';
|
|
4
|
+
import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
|
|
5
|
+
import { useMemberVerificationQuery } from '../../client/hooks/useMemberVerificationQuery.js';
|
|
6
|
+
import { FileCheck02Icon } from '../../icons/FileCheck02Icon.js';
|
|
7
|
+
import { XIcon } from '../../icons/XIcon.js';
|
|
8
|
+
import { Button } from '../../ui/Button/index.js';
|
|
9
|
+
import { Dialog } from '../../ui/Dialog/index.js';
|
|
10
|
+
import { Portal } from '../../ui/Portal/index.js';
|
|
11
|
+
export function KYCReminder(props) {
|
|
12
|
+
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
13
|
+
kyc: ctx.kyc,
|
|
14
|
+
kycReminder: ctx.kycReminder,
|
|
15
|
+
})));
|
|
16
|
+
const { data: account } = useAccountQuery();
|
|
17
|
+
const { data: verification } = useMemberVerificationQuery();
|
|
18
|
+
const isBasicInfoCompleted = account?.realName !== null && account?.birthDay !== null;
|
|
19
|
+
const isUploadCompleted = verification &&
|
|
20
|
+
verification.idFrontImage !== null &&
|
|
21
|
+
verification.selfieImage !== null;
|
|
22
|
+
const isRejected = Boolean(verification?.status === 'REJECTED');
|
|
23
|
+
const hasMissingData = !isBasicInfoCompleted || !isUploadCompleted || isRejected;
|
|
24
|
+
return (_jsx(Dialog.Root, { open: globalStore.kycReminder.open && hasMissingData, onOpenChange: (details) => {
|
|
25
|
+
globalStore.kycReminder.setOpen(details.open);
|
|
26
|
+
}, closeOnEscape: false, closeOnInteractOutside: false, lazyMount: true, unmountOnExit: true, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, { className: "!z-[calc(var(--z-dialog)+3)]" }), _jsx(Dialog.Positioner, { className: "!z-[calc(var(--z-dialog)+4)] flex items-center justify-center", children: _jsxs(Dialog.Content, { className: "bg-bg-primary-alt mx-auto h-fit max-w-[400px]", children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsxs("div", { className: "p-3xl text-center", children: [_jsx("div", { className: "bg-bg-warning-secondary mx-auto w-fit rounded-full p-2", children: _jsx(FileCheck02Icon, { className: "text-[#FEDF89]" }) }), _jsx("h2", { className: "text-lg text-white", children: "Personal Verification" }), _jsxs("p", { className: "text-text-tertiary-600 mt-xs text-sm", children: ["All new users are required to complete identity verification to access the full range of ", props.siteName, " services, including withdrawals."] }), _jsx(Dialog.Context, { children: (api) => (_jsxs("div", { className: "mt-3xl space-y-lg", children: [_jsx(Button, { onClick: () => {
|
|
27
|
+
api.setOpen(false);
|
|
28
|
+
globalStore.kyc.setOpen(true);
|
|
29
|
+
}, children: "Verify Now" }), _jsx(Button, { type: "button", variant: "outline", fullWidth: true, onClick: () => api.setOpen(false), children: "Do it later" })] })) })] })] }) })] }) }));
|
|
30
|
+
}
|
|
@@ -69,7 +69,7 @@ export function MessagesPopup() {
|
|
|
69
69
|
!globalStore.message.open &&
|
|
70
70
|
!globalStore.account.open &&
|
|
71
71
|
!globalStore.account__mobile.open &&
|
|
72
|
-
!globalStore.kyc.
|
|
72
|
+
!globalStore.kyc.open &&
|
|
73
73
|
!paused,
|
|
74
74
|
refetchInterval: disclosure.open ? undefined : 1000 * 10,
|
|
75
75
|
});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useDialogContext } from '@ark-ui/react/dialog';
|
|
3
2
|
import { zodResolver } from '@hookform/resolvers/zod';
|
|
4
3
|
import Link from 'next/link';
|
|
5
4
|
import { useRef } from 'react';
|
|
@@ -23,9 +22,10 @@ import { useSignInContext, useSignInPropsContext } from './SignInContext.js';
|
|
|
23
22
|
export function MobileNumberSignIn() {
|
|
24
23
|
const signInProps = useSignInPropsContext();
|
|
25
24
|
const context = useSignInContext();
|
|
26
|
-
const dialog = useDialogContext();
|
|
27
25
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
26
|
+
signIn: ctx.signIn,
|
|
28
27
|
signUp: ctx.signUp,
|
|
28
|
+
kycReminder: ctx.kycReminder,
|
|
29
29
|
})));
|
|
30
30
|
const signInMutation = useSignInMutation();
|
|
31
31
|
const sendVerificationCodeMutation = useSendVerificationCodeMutation();
|
|
@@ -103,9 +103,9 @@ export function MobileNumberSignIn() {
|
|
|
103
103
|
o.field.onChange(details.checked);
|
|
104
104
|
}, children: [_jsx(Checkbox.Control, { children: _jsx(Checkbox.Indicator, { asChild: true, children: _jsx(CheckIcon, {}) }) }), _jsxs(Checkbox.Label, { children: ["I am at least 21 years of age and I accept the", ' ', _jsx(Link, { href: signInProps.termsAndConditionsUrl ??
|
|
105
105
|
'/terms-and-conditions', onClick: () => {
|
|
106
|
-
|
|
106
|
+
globalStore.signIn.setOpen(false);
|
|
107
107
|
}, className: "text-brand-400 whitespace-nowrap underline underline-offset-2", children: "Terms and Conditions." })] }), _jsx(Checkbox.HiddenInput, {})] }), _jsx(Field.ErrorText, { className: "ml-6 text-xs", children: o.fieldState.error?.message })] })) })] }), _jsxs("div", { className: "mt-6 flex w-full items-center justify-center gap-xs text-sm", children: [_jsx("span", { className: "text-text-tertiary-600", children: "Don't have an account?" }), _jsx("button", { type: "submit", className: "text-button-tertiary-fg font-semibold", onClick: () => {
|
|
108
|
-
|
|
108
|
+
globalStore.signIn.setOpen(false);
|
|
109
109
|
globalStore.signUp.setOpen(true);
|
|
110
110
|
}, children: "Sign up" })] })] })), context.step === 2 && (_jsxs(_Fragment, { children: [_jsx("h2", { className: "mt-xl text-center text-lg font-semibold", children: "Check your Phone" }), _jsxs("p", { className: "text-text-secondary-700 mt-xs text-center text-sm", children: ["We\u2019ve sent a verification code to your mobile number", ' ', _jsx("span", { className: "font-semibold", children: mobileNumberParser.format(step1Form.getValues('mobileNumber')) }), ' ', "via text"] }), _jsxs("form", { ref: form2Ref, className: "mt-5", onSubmit: step2Form.handleSubmit(async ({ verificationCode }) => {
|
|
111
111
|
const { mobileNumber } = step1Form.getValues();
|
|
@@ -115,10 +115,11 @@ export function MobileNumberSignIn() {
|
|
|
115
115
|
mobileNumber: mobileNumberParser.format(mobileNumber),
|
|
116
116
|
verificationCode: verificationCode.join(''),
|
|
117
117
|
});
|
|
118
|
-
dialog.setOpen(false);
|
|
119
118
|
step1Form.reset();
|
|
120
119
|
step2Form.reset();
|
|
121
120
|
context.setStep(1);
|
|
121
|
+
globalStore.signIn.setOpen(false);
|
|
122
|
+
globalStore.kycReminder.setOpen(true);
|
|
122
123
|
}
|
|
123
124
|
catch {
|
|
124
125
|
toaster.error({
|
|
@@ -25,6 +25,7 @@ export function NameAndPasswordSignIn() {
|
|
|
25
25
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
26
26
|
signIn: ctx.signIn,
|
|
27
27
|
signUp: ctx.signUp,
|
|
28
|
+
kycReminder: ctx.kycReminder,
|
|
28
29
|
forgotPassword: ctx.forgotPassword,
|
|
29
30
|
})));
|
|
30
31
|
const signInMutation = useSignInMutation({
|
|
@@ -48,6 +49,7 @@ export function NameAndPasswordSignIn() {
|
|
|
48
49
|
});
|
|
49
50
|
const authenticateMutation = useAuthenticateMutation({
|
|
50
51
|
onSuccess() {
|
|
52
|
+
globalStore.kycReminder.setOpen(true);
|
|
51
53
|
globalStore.signIn.setOpen(false);
|
|
52
54
|
authenticateMutation.reset();
|
|
53
55
|
signInMutation.reset();
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { createListCollection, parseDate } from '@ark-ui/react';
|
|
4
|
-
import { useDialogContext } from '@ark-ui/react/dialog';
|
|
5
4
|
import { zodResolver } from '@hookform/resolvers/zod';
|
|
6
5
|
import { ObjectId } from '@opexa/object-id';
|
|
7
6
|
import { differenceInYears, format } from 'date-fns';
|
|
@@ -48,9 +47,12 @@ export function SignUpForm() {
|
|
|
48
47
|
itemToString: (item) => `${item.code} - ${item.name}`,
|
|
49
48
|
});
|
|
50
49
|
const [step, setStep] = useState(1);
|
|
51
|
-
const
|
|
50
|
+
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
51
|
+
kycReminder: ctx.kycReminder,
|
|
52
|
+
signIn: ctx.signIn,
|
|
53
|
+
signUp: ctx.signUp,
|
|
54
|
+
})));
|
|
52
55
|
const search = useSearchParams();
|
|
53
|
-
const signInStore = useGlobalStore(useShallow((ctx) => ctx.signIn));
|
|
54
56
|
const signUpMutation = useSignUpMutation();
|
|
55
57
|
const signInMutation = useSignInMutation();
|
|
56
58
|
const updateAccountMutation = useUpdateAccountMutation();
|
|
@@ -180,10 +182,10 @@ export function SignUpForm() {
|
|
|
180
182
|
o.field.onChange(details.checked);
|
|
181
183
|
}, children: [_jsx(Checkbox.Control, { children: _jsx(Checkbox.Indicator, { asChild: true, children: _jsx(CheckIcon, {}) }) }), _jsxs(Checkbox.Label, { children: ["I am at least 21 years of age and I accept the", ' ', _jsx(Link, { href: signUpProps.termsAndConditionsUrl ??
|
|
182
184
|
'/terms-and-conditions', onClick: () => {
|
|
183
|
-
|
|
185
|
+
globalStore.signUp.setOpen(false);
|
|
184
186
|
}, className: "text-brand-400 whitespace-nowrap underline underline-offset-2", children: "Terms and Conditions." })] }), ' ', _jsx(Checkbox.HiddenInput, {})] }), _jsx(Field.ErrorText, { className: "ml-6 text-xs", children: o.fieldState.error?.message })] })) }), _jsx(Button, { type: "submit", className: "mt-3xl", disabled: step1Form.formState.isSubmitting, children: "Create Account" })] }), _jsxs("div", { className: "mt-6 flex w-full items-center justify-center gap-xs text-sm", children: [_jsx("span", { className: "text-text-tertiary-600", children: "Already have an account?" }), _jsx("button", { type: "submit", className: "text-button-tertiary-fg font-semibold", onClick: () => {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
+
globalStore.signUp.setOpen(false);
|
|
188
|
+
globalStore.signIn.setOpen(true);
|
|
187
189
|
}, children: "Log In" })] })] })), step === 2 && (_jsxs(_Fragment, { children: [_jsx("h2", { className: "mt-xl text-center text-lg font-semibold", children: "Check your Phone" }), _jsxs("p", { className: "text-text-secondary-700 mt-xs text-center text-sm", children: ["We\u2019ve sent a verification code to your mobile number", ' ', _jsx("span", { className: "font-semibold", children: mobileNumberParser.format(step1Form.getValues('mobileNumber')) }), ' ', "via text"] }), _jsxs("form", { ref: form2Ref, className: "mt-5", onSubmit: step2Form.handleSubmit(async ({ verificationCode }) => {
|
|
188
190
|
const id = ObjectId.generate(ObjectType.MemberAccount).toString();
|
|
189
191
|
const { mobileNumber } = step1Form.getValues();
|
|
@@ -215,7 +217,7 @@ export function SignUpForm() {
|
|
|
215
217
|
});
|
|
216
218
|
const ok = await pollLogin();
|
|
217
219
|
if (!ok) {
|
|
218
|
-
|
|
220
|
+
globalStore.signIn.setOpen(true);
|
|
219
221
|
return;
|
|
220
222
|
}
|
|
221
223
|
else {
|
|
@@ -238,7 +240,8 @@ export function SignUpForm() {
|
|
|
238
240
|
});
|
|
239
241
|
await pollUpdateAccount();
|
|
240
242
|
}
|
|
241
|
-
|
|
243
|
+
globalStore.signUp.setOpen(false);
|
|
244
|
+
globalStore.kycReminder.setOpen(true);
|
|
242
245
|
step1Form.reset();
|
|
243
246
|
step2Form.reset();
|
|
244
247
|
setStep(1);
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export const PISO_PAY_BANKS = [
|
|
2
|
+
{ code: "010040018", name: "Bank of the Philippine Islands" },
|
|
3
|
+
{ code: "010050011", name: "The Standard Chartered Bank" },
|
|
4
|
+
{ code: "010060014", name: "HK and Shanghai Banking Corp." },
|
|
5
|
+
{ code: "010070017", name: "Citibank, N.A." },
|
|
6
|
+
{ code: "010080010", name: "Philippine National Bank" },
|
|
7
|
+
{ code: "010090039", name: "Philippine Trust Company" },
|
|
8
|
+
{ code: "010100013", name: "China Banking Corporation" },
|
|
9
|
+
{ code: "010110016", name: "Phil. Bank of Communications" },
|
|
10
|
+
{ code: "010120019", name: "Bank of America, Nat'l. Ass'n." },
|
|
11
|
+
{ code: "010140015", name: "Security Bank Corporation" },
|
|
12
|
+
{ code: "010220016", name: "Maybank Phils., Inc." },
|
|
13
|
+
{ code: "010269996", name: "Metropolitan Bank and Trust Co" },
|
|
14
|
+
{ code: "010270341", name: "United Overseas Bank Phils." },
|
|
15
|
+
{ code: "010280014", name: "Rizal Commercial Banking Corp." },
|
|
16
|
+
{ code: "010299995", name: "United Coconut Planters Bank" },
|
|
17
|
+
{ code: "010330016", name: "Philippine Veterans Bank" },
|
|
18
|
+
{ code: "010350025", name: "Land Bank of the Philippines" },
|
|
19
|
+
{ code: "010419995", name: "Union Bank of the Philippines" },
|
|
20
|
+
{ code: "010440016", name: "Bank of Commerce" },
|
|
21
|
+
{ code: "010460012", name: "Bank of Tokyo-Mits., Limited" },
|
|
22
|
+
{ code: "010470992", name: "Philippine Savings Bank" },
|
|
23
|
+
{ code: "010530667", name: "Banco de Oro Unibank, Inc." },
|
|
24
|
+
{ code: "010560019", name: "Mega Intl Comml Bank Co. Ltd" },
|
|
25
|
+
{ code: "010590018", name: "Devt. Bank of the Philippines" },
|
|
26
|
+
{ code: "010620014", name: "East-West Banking Corporation" },
|
|
27
|
+
{ code: "010640010", name: "Mizuho Bank, Ltd." },
|
|
28
|
+
{ code: "010650013", name: "Deutsche Bank" },
|
|
29
|
+
{ code: "010670019", name: "Bangkok Bank Public Co., Ltd." },
|
|
30
|
+
{ code: "010690015", name: "CTBC Bank (Philippines) Corp." },
|
|
31
|
+
{ code: "010700015", name: "Australia & New Zealand Bank" },
|
|
32
|
+
{ code: "010710018", name: "KEB Hana Bank" },
|
|
33
|
+
{ code: "010720011", name: "JPMorgan Chase Bank" },
|
|
34
|
+
{ code: "020780012", name: "First Consolidated Bank" },
|
|
35
|
+
{ code: "010960017", name: "Equicom Savings Bank, Inc." },
|
|
36
|
+
{ code: "011020011", name: "Asia United Bank" },
|
|
37
|
+
{ code: "011070016", name: "Robinsons Bank Corporation" },
|
|
38
|
+
{ code: "011129996", name: "China Bank Savings, Inc." },
|
|
39
|
+
{ code: "011130011", name: "Yuanta Savings Bank" },
|
|
40
|
+
{ code: "011140014", name: "Bank of China" },
|
|
41
|
+
{ code: "011190019", name: "Sterling Bank of Asia" },
|
|
42
|
+
{ code: "011280013", name: "Sumitomo Mitsui Banking Corp." },
|
|
43
|
+
{ code: "011300016", name: "Shinhan Bank" },
|
|
44
|
+
{ code: "011310019", name: "Industrial Bank of Korea" }
|
|
45
|
+
];
|
|
Binary file
|
|
@@ -19,6 +19,7 @@ export declare const CREATE_MAYA_APP_WITHDRAWAL = "\n mutation CreateMayaAppWit
|
|
|
19
19
|
export declare const CREATE_BANK_WITHDRAWAL = "\n mutation CreateBankWithdrawal($input: CreateBankWithdrawalInput!) {\n createBankWithdrawal(input: $input) {\n ... on MobileNumberNotVerifiedError {\n name: __typename\n message\n }\n }\n }\n";
|
|
20
20
|
export declare const CREATE_AIO_INSTAPAY_WITHDRAWAL = "\n mutation CreateAIOInstapayWithdrawal(\n $input: CreateAIOInstapayWithdrawalInput!\n ) {\n createAIOInstapayWithdrawal(input: $input) {\n ... on AccountNotVerifiedError {\n name: __typename\n message\n }\n ... on InvalidWithdrawalAmountError {\n name: __typename\n message\n }\n ... on WithdrawalDailyLimitExceededError {\n name: __typename\n message\n }\n ... on InvalidTransactionPasswordError {\n name: __typename\n message\n }\n ... on NotEnoughBalanceError {\n name: __typename\n message\n }\n ... on WalletDoesNotExistError {\n name: __typename\n message\n }\n ... on TransactionPasswordNotSetError {\n name: __typename\n message\n }\n }\n }\n";
|
|
21
21
|
export declare const CREATE_VENTAJA_WITHDRAWAL = "\n mutation CreateVentajaWithdrawal($input: CreateVentajaWithdrawalInput!) {\n createVentajaWithdrawal(input: $input) {\n ... on AccountNotVerifiedError {\n name: __typename\n message\n }\n ... on InvalidWithdrawalAmountError {\n name: __typename\n message\n }\n ... on WithdrawalDailyLimitExceededError {\n name: __typename\n message\n }\n ... on NotEnoughBalanceError {\n name: __typename\n message\n }\n ... on WalletDoesNotExistError {\n name: __typename\n message\n }\n }\n }\n";
|
|
22
|
+
export declare const CREATE_PISO_PAY_WITHDRAWAL = "\n mutation CreatePisopayWithdrawal($input: CreatePisopayWithdrawalInput!) {\n createPisopayWithdrawal(input: $input) {\n ... on AccountNotVerifiedError {\n name: __typename\n message\n }\n ... on InvalidWithdrawalAmountError {\n name: __typename\n message\n }\n ... on WithdrawalDailyLimitExceededError {\n name: __typename\n message\n }\n ... on InvalidTransactionPasswordError {\n name: __typename\n message\n }\n ... on NotEnoughBalanceError {\n name: __typename\n message\n }\n ... on WalletDoesNotExistError {\n name: __typename\n message\n }\n ... on TransactionPasswordNotSetError {\n name: __typename\n message\n }\n }\n }\n";
|
|
22
23
|
export declare const CREATE_MANUAL_UPI_WITHDRAWAL = "\n mutation CreateManualUPIWithdrawal($input: CreateManualUPIWithdrawalInput!) {\n createManualUPIWithdrawal(input: $input) {\n ... on AccountNotVerifiedError {\n name: __typename\n message\n }\n ... on InvalidWithdrawalAmountError {\n name: __typename\n message\n }\n ... on WithdrawalDailyLimitExceededError {\n name: __typename\n message\n }\n ... on NotEnoughBalanceError {\n name: __typename\n message\n }\n ... on WalletDoesNotExistError {\n name: __typename\n message\n }\n }\n }\n";
|
|
23
24
|
export declare const CREATE_MANUAL_BANK_WITHDRAWAL = "\n mutation CreateManualBankWithdrawal(\n $input: CreateManualBankWithdrawalInput!\n ) {\n createManualBankWithdrawal(input: $input) {\n ... on AccountNotVerifiedError {\n name: __typename\n message\n }\n ... on InvalidWithdrawalAmountError {\n name: __typename\n message\n }\n ... on WithdrawalDailyLimitExceededError {\n name: __typename\n message\n }\n ... on NotEnoughBalanceError {\n name: __typename\n message\n }\n ... on WalletDoesNotExistError {\n name: __typename\n message\n }\n }\n }\n";
|
|
24
25
|
export declare const INSTAPAY_BANK_LIST = "\n query InstapayBankList {\n instapayBankList {\n id\n code\n name\n }\n }\n";
|
|
@@ -27,6 +28,7 @@ export declare const DEPOSIT_RECORDS = "\n query DepositRecords(\n $after: C
|
|
|
27
28
|
export declare const CREATE_GCASH_DEPOSIT = "\n mutation CreateGCashDeposit($input: CreateGCashDepositInput!) {\n createGCashDeposit(input: $input) {\n ... on DepositPromoMaximumAmountExceededError {\n name: __typename\n message\n }\n ... on DepositPromoMinimumAmountNotMetError {\n name: __typename\n message\n }\n ... on MaximumDepositAmountExceededError {\n name: __typename\n message\n }\n ... on MinimumDepositAmountNotMetError {\n name: __typename\n message\n }\n ... on MinimumFirstDepositAmountNotMetError {\n name: __typename\n message\n }\n ... on PromoNotEnabledError {\n name: __typename\n message\n }\n ... on WalletDoesNotExistError {\n name: __typename\n message\n }\n ... on ReCAPTCHAVerificationFailedError {\n name: __typename\n message\n }\n }\n }\n";
|
|
28
29
|
export declare const CREATE_GCASH_DIRECT_WEBPAY_DEPOSIT = "\n mutation CreateGCashDirectWebpayDeposit(\n $input: CreateGCashDirectWebpayDepositInput!\n ) {\n createGCashDirectWebpayDeposit(input: $input) {\n ... on DepositPromoMaximumAmountExceededError {\n name: __typename\n message\n }\n ... on DepositPromoMinimumAmountNotMetError {\n name: __typename\n message\n }\n ... on MaximumDepositAmountExceededError {\n name: __typename\n message\n }\n ... on MinimumDepositAmountNotMetError {\n name: __typename\n message\n }\n ... on MinimumFirstDepositAmountNotMetError {\n name: __typename\n message\n }\n ... on PromoNotEnabledError {\n name: __typename\n message\n }\n ... on WalletDoesNotExistError {\n name: __typename\n message\n }\n }\n }\n";
|
|
29
30
|
export declare const CREATE_LIBANGAN_DEPOSIT = "\n mutation CreateLibanganDeposit($input: CreateLibanganDepositInput!) {\n createLibanganDeposit(input: $input) {\n ... on DepositPromoMaximumAmountExceededError {\n name: __typename\n message\n }\n ... on DepositPromoMinimumAmountNotMetError {\n name: __typename\n message\n }\n ... on MaximumDepositAmountExceededError {\n name: __typename\n message\n }\n ... on MinimumDepositAmountNotMetError {\n name: __typename\n message\n }\n ... on MinimumFirstDepositAmountNotMetError {\n name: __typename\n message\n }\n ... on PromoNotEnabledError {\n name: __typename\n message\n }\n ... on WalletDoesNotExistError {\n name: __typename\n message\n }\n }\n }\n";
|
|
31
|
+
export declare const CREATE_PISO_PAY_DEPOSIT = "\n mutation CreatePisoPayDeposit($input: CreatePisoPayDepositInput!) {\n createPisoPayDeposit(input: $input) {\n ... on WalletDoesNotExistError {\n name: __typename\n message\n }\n ... on DepositPromoMinimumAmountNotMetError {\n name: __typename\n message\n }\n ... on DepositPromoMaximumAmountExceededError {\n name: __typename\n message\n }\n ... on MinimumFirstDepositAmountNotMetError {\n name: __typename\n message\n }\n ... on MinimumDepositAmountNotMetError {\n name: __typename\n message\n }\n ... on MaximumDepositAmountExceededError {\n name: __typename\n message\n }\n ... on PromoNotEnabledError {\n name: __typename\n message\n }\n }\n }\n";
|
|
30
32
|
export declare const CREATE_MAYA_DEPOSIT = "\n mutation CreateMayaDeposit($input: CreateMayaDepositInput!) {\n createMayaDeposit(input: $input) {\n ... on DepositPromoMaximumAmountExceededError {\n name: __typename\n message\n }\n ... on DepositPromoMinimumAmountNotMetError {\n name: __typename\n message\n }\n ... on MaximumDepositAmountExceededError {\n name: __typename\n message\n }\n ... on MinimumDepositAmountNotMetError {\n name: __typename\n message\n }\n ... on MinimumFirstDepositAmountNotMetError {\n name: __typename\n message\n }\n ... on PromoNotEnabledError {\n name: __typename\n message\n }\n ... on WalletDoesNotExistError {\n name: __typename\n message\n }\n }\n }\n";
|
|
31
33
|
export declare const CREATE_MAYA_APP_DEPOSIT = "\n mutation CreateMayaAppDeposit($input: CreateMayaAppDepositInput!) {\n createMayaAppDeposit(input: $input) {\n ... on DepositPromoMaximumAmountExceededError {\n name: __typename\n message\n }\n ... on DepositPromoMinimumAmountNotMetError {\n name: __typename\n message\n }\n ... on MaximumDepositAmountExceededError {\n name: __typename\n message\n }\n ... on MinimumDepositAmountNotMetError {\n name: __typename\n message\n }\n ... on MinimumFirstDepositAmountNotMetError {\n name: __typename\n message\n }\n ... on PromoNotEnabledError {\n name: __typename\n message\n }\n ... on WalletDoesNotExistError {\n name: __typename\n message\n }\n }\n }\n";
|
|
32
34
|
export declare const CREATE_AIO_QRPH_DEPOSIT = "\n mutation CreateAIOQRPHDeposit($input: CreateAIOQRPHDepositInput!) {\n createAIOQRPHDeposit(input: $input) {\n ... on DepositPromoMaximumAmountExceededError {\n name: __typename\n message\n }\n ... on DepositPromoMinimumAmountNotMetError {\n name: __typename\n message\n }\n ... on MaximumDepositAmountExceededError {\n name: __typename\n message\n }\n ... on MinimumDepositAmountNotMetError {\n name: __typename\n message\n }\n ... on MinimumFirstDepositAmountNotMetError {\n name: __typename\n message\n }\n ... on PromoNotEnabledError {\n name: __typename\n message\n }\n ... on WalletDoesNotExistError {\n name: __typename\n message\n }\n ... on ReCAPTCHAVerificationFailedError {\n name: __typename\n message\n }\n }\n }\n";
|