@bigbinary/neeto-payments-frontend 4.0.10 → 4.0.11
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/app/javascript/src/translations/en.json +2 -1
- package/dist/AccountsDashboard.js +4 -4
- package/dist/AdminCancelRecurringPaymentButton.js +1 -1
- package/dist/CashPaymentButton.js +2 -2
- package/dist/ConfirmCashPaymentButton.js +2 -2
- package/dist/CustomerCancelRecurringPaymentForm.js +1 -1
- package/dist/{ExportModal-UegCpavy.js → ExportModal-DzJ8p7Ph.js} +2 -2
- package/dist/{ExportModal-UegCpavy.js.map → ExportModal-DzJ8p7Ph.js.map} +1 -1
- package/dist/ManualUpiConnect.js +1 -1
- package/dist/ManualUpiPayment.js +2 -2
- package/dist/ManualUpiPaymentConfirmButton.js +2 -2
- package/dist/ManualUpiPaymentRejectButton.js +2 -2
- package/dist/PaymentsDashboard.js +2 -2
- package/dist/PayoutsDashboard.js +4 -4
- package/dist/PayoutsPage.js +3 -3
- package/dist/RazorpayPaymentButton.js +2 -2
- package/dist/RecurringPaymentSettings.js +1 -1
- package/dist/RefundsDashboard.js +2 -2
- package/dist/SplitTransfersDashboard.js +2 -2
- package/dist/StripeCheckoutSetting.js +99 -0
- package/dist/StripeCheckoutSetting.js.map +1 -0
- package/dist/StripeConnect.js +22 -7
- package/dist/StripeConnect.js.map +1 -1
- package/dist/StripeManage.js +32 -105
- package/dist/StripeManage.js.map +1 -1
- package/dist/TaxesDashboard.js +1 -1
- package/dist/buildStripeTransactionLink.js +1 -1
- package/dist/cjs/AccountsDashboard.js +4 -4
- package/dist/cjs/AdminCancelRecurringPaymentButton.js +1 -1
- package/dist/cjs/CashPaymentButton.js +2 -2
- package/dist/cjs/ConfirmCashPaymentButton.js +2 -2
- package/dist/cjs/CustomerCancelRecurringPaymentForm.js +1 -1
- package/dist/cjs/{ExportModal-DxApGBel.js → ExportModal-DJa3Wbzq.js} +2 -2
- package/dist/cjs/{ExportModal-DxApGBel.js.map → ExportModal-DJa3Wbzq.js.map} +1 -1
- package/dist/cjs/ManualUpiConnect.js +1 -1
- package/dist/cjs/ManualUpiPayment.js +2 -2
- package/dist/cjs/ManualUpiPaymentConfirmButton.js +2 -2
- package/dist/cjs/ManualUpiPaymentRejectButton.js +2 -2
- package/dist/cjs/PaymentsDashboard.js +2 -2
- package/dist/cjs/PayoutsDashboard.js +4 -4
- package/dist/cjs/PayoutsPage.js +3 -3
- package/dist/cjs/RazorpayPaymentButton.js +2 -2
- package/dist/cjs/RecurringPaymentSettings.js +1 -1
- package/dist/cjs/RefundsDashboard.js +2 -2
- package/dist/cjs/SplitTransfersDashboard.js +2 -2
- package/dist/cjs/StripeCheckoutSetting.js +101 -0
- package/dist/cjs/StripeCheckoutSetting.js.map +1 -0
- package/dist/cjs/StripeConnect.js +24 -9
- package/dist/cjs/StripeConnect.js.map +1 -1
- package/dist/cjs/StripeManage.js +32 -105
- package/dist/cjs/StripeManage.js.map +1 -1
- package/dist/cjs/TaxesDashboard.js +1 -1
- package/dist/cjs/buildStripeTransactionLink.js +1 -1
- package/dist/cjs/constants.js +1 -1
- package/dist/cjs/{dashboard-BS8RsSUN.js → dashboard-DOMNx480.js} +2 -2
- package/dist/cjs/{dashboard-BS8RsSUN.js.map → dashboard-DOMNx480.js.map} +1 -1
- package/dist/cjs/getAddressElementOptions.js +14 -0
- package/dist/cjs/getAddressElementOptions.js.map +1 -0
- package/dist/cjs/getAmountInSmallestCurrencyUnit.js +1 -1
- package/dist/cjs/getAmountWithAppliedTax.js +1 -1
- package/dist/cjs/getFormattedAmount.js +1 -1
- package/dist/cjs/getFormattedTaxAmount.js +1 -1
- package/dist/cjs/getFormattedTipAmount.js +1 -1
- package/dist/cjs/getQrCodeValue.js +1 -1
- package/dist/cjs/getTaxAmount.js +1 -1
- package/dist/cjs/getTipAmount.js +1 -1
- package/dist/cjs/{index-D0lrwfeJ.js → index-BsfMVWPy.js} +25 -1
- package/dist/cjs/index-BsfMVWPy.js.map +1 -0
- package/dist/cjs/index.js +14 -11
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/{renderFunctions-pCev76XN.js → renderFunctions-DE1eFzNq.js} +2 -2
- package/dist/cjs/{renderFunctions-pCev76XN.js.map → renderFunctions-DE1eFzNq.js.map} +1 -1
- package/dist/cjs/{useAccountsApi-BZBjuzQ9.js → useAccountsApi-BGRA0HFt.js} +2 -2
- package/dist/cjs/{useAccountsApi-BZBjuzQ9.js.map → useAccountsApi-BGRA0HFt.js.map} +1 -1
- package/dist/cjs/{usePaymentApi-DoMBeLfx.js → usePaymentApi-BCd286m2.js} +2 -2
- package/dist/cjs/{usePaymentApi-DoMBeLfx.js.map → usePaymentApi-BCd286m2.js.map} +1 -1
- package/dist/cjs/{usePaymentApi-qdh5LN7u.js → usePaymentApi-Bp26FR7O.js} +2 -2
- package/dist/cjs/{usePaymentApi-qdh5LN7u.js.map → usePaymentApi-Bp26FR7O.js.map} +1 -1
- package/dist/cjs/{usePaymentApi-CHAcirnx.js → usePaymentApi-BvIWNav8.js} +2 -2
- package/dist/cjs/{usePaymentApi-CHAcirnx.js.map → usePaymentApi-BvIWNav8.js.map} +1 -1
- package/dist/cjs/{usePlatformApi-BP0LZThB.js → usePlatformApi-Bc02PQKG.js} +2 -2
- package/dist/cjs/{usePlatformApi-BP0LZThB.js.map → usePlatformApi-Bc02PQKG.js.map} +1 -1
- package/dist/cjs/useRazorpayPayment.js +2 -2
- package/dist/constants.js +1 -1
- package/dist/{dashboard-BmgAk7ZF.js → dashboard--4UZLFmb.js} +2 -2
- package/dist/{dashboard-BmgAk7ZF.js.map → dashboard--4UZLFmb.js.map} +1 -1
- package/dist/getAddressElementOptions.js +12 -0
- package/dist/getAddressElementOptions.js.map +1 -0
- package/dist/getAmountInSmallestCurrencyUnit.js +1 -1
- package/dist/getAmountWithAppliedTax.js +1 -1
- package/dist/getFormattedAmount.js +1 -1
- package/dist/getFormattedTaxAmount.js +1 -1
- package/dist/getFormattedTipAmount.js +1 -1
- package/dist/getQrCodeValue.js +1 -1
- package/dist/getTaxAmount.js +1 -1
- package/dist/getTipAmount.js +1 -1
- package/dist/{index-P40XHLrP.js → index-Ch59VSVC.js} +25 -2
- package/dist/index-Ch59VSVC.js.map +1 -0
- package/dist/index.js +12 -11
- package/dist/index.js.map +1 -1
- package/dist/{renderFunctions-ByiZ0trU.js → renderFunctions-QDhyLbkY.js} +2 -2
- package/dist/{renderFunctions-ByiZ0trU.js.map → renderFunctions-QDhyLbkY.js.map} +1 -1
- package/dist/{useAccountsApi-CY07Pd2F.js → useAccountsApi-DSk7-BmJ.js} +2 -2
- package/dist/{useAccountsApi-CY07Pd2F.js.map → useAccountsApi-DSk7-BmJ.js.map} +1 -1
- package/dist/{usePaymentApi-DTQ8wxiL.js → usePaymentApi-494WnYo6.js} +2 -2
- package/dist/{usePaymentApi-DTQ8wxiL.js.map → usePaymentApi-494WnYo6.js.map} +1 -1
- package/dist/{usePaymentApi-CnjUFTLo.js → usePaymentApi-BZTUCgiE.js} +2 -2
- package/dist/{usePaymentApi-CnjUFTLo.js.map → usePaymentApi-BZTUCgiE.js.map} +1 -1
- package/dist/{usePaymentApi-BEsw6xFl.js → usePaymentApi-BlscffuE.js} +2 -2
- package/dist/{usePaymentApi-BEsw6xFl.js.map → usePaymentApi-BlscffuE.js.map} +1 -1
- package/dist/{usePlatformApi-OKTgTm_o.js → usePlatformApi-DxcXzqTN.js} +2 -2
- package/dist/{usePlatformApi-OKTgTm_o.js.map → usePlatformApi-DxcXzqTN.js.map} +1 -1
- package/dist/useRazorpayPayment.js +2 -2
- package/package.json +5 -5
- package/types/StripeCheckoutSetting.d.ts +9 -0
- package/types/StripeManage.d.ts +10 -0
- package/types/getAddressElementOptions.d.ts +3 -0
- package/dist/cjs/index-D0lrwfeJ.js.map +0 -1
- package/dist/cjs/useIntegrationsApi-CsGOvw5C.js +0 -26
- package/dist/cjs/useIntegrationsApi-CsGOvw5C.js.map +0 -1
- package/dist/index-P40XHLrP.js.map +0 -1
- package/dist/useIntegrationsApi-Cm_61Wk1.js +0 -24
- package/dist/useIntegrationsApi-Cm_61Wk1.js.map +0 -1
|
@@ -505,7 +505,7 @@
|
|
|
505
505
|
},
|
|
506
506
|
"taxesDashboard": {
|
|
507
507
|
"title": "Taxes",
|
|
508
|
-
"noData": "There are no taxes to show",
|
|
508
|
+
"noData": "There are no taxes to show.",
|
|
509
509
|
"noFee": "You need to set up online payments to configure taxes.",
|
|
510
510
|
"table": {
|
|
511
511
|
"taxName": "Tax name",
|
|
@@ -555,6 +555,7 @@
|
|
|
555
555
|
"accountNotActivated": "Your account is not activated. Please activate it to continue."
|
|
556
556
|
},
|
|
557
557
|
"stripeManage": {
|
|
558
|
+
"viewStripeDashboard": "View Stripe dashboard",
|
|
558
559
|
"checkoutSettings": {
|
|
559
560
|
"title": "Stripe checkout fields",
|
|
560
561
|
"phoneNumber": "Contact phone number",
|
|
@@ -9,20 +9,20 @@ import SubHeader from '@bigbinary/neeto-molecules/SubHeader';
|
|
|
9
9
|
import Tab from '@bigbinary/neetoui/Tab';
|
|
10
10
|
import Typography from '@bigbinary/neetoui/Typography';
|
|
11
11
|
import { useTranslation } from 'react-i18next';
|
|
12
|
-
import { u as useExportData, b as buildDefaultPageProperties, a as buildPayload, c as buildRowData, w as withReactQuery } from './dashboard
|
|
12
|
+
import { u as useExportData, b as buildDefaultPageProperties, a as buildPayload, c as buildRowData, w as withReactQuery } from './dashboard--4UZLFmb.js';
|
|
13
13
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
14
14
|
import Download from '@bigbinary/neeto-icons/Download';
|
|
15
15
|
import Button from '@bigbinary/neetoui/Button';
|
|
16
16
|
import Modal from '@bigbinary/neetoui/Modal';
|
|
17
17
|
import { e as exportChannel } from './exportChannel-CViICC6x.js';
|
|
18
|
-
import { u as uuidV4,
|
|
18
|
+
import { u as uuidV4, m as buildStripeAccountLink, n as DEFAULT_SORT_PROPERTIES, S as SORT_DIRECTIONS } from './index-Ch59VSVC.js';
|
|
19
19
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
20
20
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
21
21
|
import { getQueryParams, buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
|
|
22
22
|
import { buildFiltersFromURL } from '@bigbinary/neeto-filters-frontend/utils';
|
|
23
23
|
import { pipe, split, map, join, mergeLeft, assoc } from 'ramda';
|
|
24
24
|
import { useHistory } from 'react-router-dom';
|
|
25
|
-
import { r as renderStatus, b as renderFullName, a as renderDate } from './renderFunctions-
|
|
25
|
+
import { r as renderStatus, b as renderFullName, a as renderDate } from './renderFunctions-QDhyLbkY.js';
|
|
26
26
|
import { C as CopyButtonWrapper } from './CopyButtonWrapper-B79WRogM.js';
|
|
27
27
|
import { DEFAULT_PAGE_SIZE, DEFAULT_PAGE_INDEX } from '@bigbinary/neeto-commons-frontend/constants';
|
|
28
28
|
import { useHiddenColumns } from '@bigbinary/neeto-molecules/Columns';
|
|
@@ -30,7 +30,7 @@ import TableWrapper from '@bigbinary/neeto-molecules/TableWrapper';
|
|
|
30
30
|
import Table from '@bigbinary/neetoui/Table';
|
|
31
31
|
import NoData from '@bigbinary/neetoui/NoData';
|
|
32
32
|
import Spinner from '@bigbinary/neetoui/Spinner';
|
|
33
|
-
import { u as useFetchConnectedAccounts } from './useAccountsApi-
|
|
33
|
+
import { u as useFetchConnectedAccounts } from './useAccountsApi-DSk7-BmJ.js';
|
|
34
34
|
import '@tanstack/react-query';
|
|
35
35
|
import '@tanstack/react-query-devtools';
|
|
36
36
|
import 'axios';
|
|
@@ -6,7 +6,7 @@ import { useTranslation } from 'react-i18next';
|
|
|
6
6
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
7
7
|
import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
8
8
|
import axios from 'axios';
|
|
9
|
-
import { B as BASE_URL } from './index-
|
|
9
|
+
import { B as BASE_URL } from './index-Ch59VSVC.js';
|
|
10
10
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
11
11
|
import 'i18next';
|
|
12
12
|
import '@bigbinary/neeto-commons-frontend/constants';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { noop } from '@bigbinary/neeto-cist';
|
|
2
2
|
import Button from '@bigbinary/neetoui/Button';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
|
-
import { u as useCreateCashPayment } from './usePaymentApi-
|
|
4
|
+
import { u as useCreateCashPayment } from './usePaymentApi-BlscffuE.js';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
import '@babel/runtime/helpers/defineProperty';
|
|
7
7
|
import '@tanstack/react-query';
|
|
8
8
|
import 'axios';
|
|
9
|
-
import './index-
|
|
9
|
+
import './index-Ch59VSVC.js';
|
|
10
10
|
import 'i18next';
|
|
11
11
|
import '@bigbinary/neeto-commons-frontend/constants';
|
|
12
12
|
import 'decimal.js';
|
|
@@ -8,12 +8,12 @@ import Form from '@bigbinary/neetoui/formik/Form';
|
|
|
8
8
|
import Textarea from '@bigbinary/neetoui/formik/Textarea';
|
|
9
9
|
import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
|
|
10
10
|
import { useTranslation } from 'react-i18next';
|
|
11
|
-
import { a as useUpdateCashPayment } from './usePaymentApi-
|
|
11
|
+
import { a as useUpdateCashPayment } from './usePaymentApi-BlscffuE.js';
|
|
12
12
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
13
13
|
import '@babel/runtime/helpers/defineProperty';
|
|
14
14
|
import '@tanstack/react-query';
|
|
15
15
|
import 'axios';
|
|
16
|
-
import './index-
|
|
16
|
+
import './index-Ch59VSVC.js';
|
|
17
17
|
import 'i18next';
|
|
18
18
|
import '@bigbinary/neeto-commons-frontend/constants';
|
|
19
19
|
import 'decimal.js';
|
|
@@ -6,7 +6,7 @@ import Button from '@bigbinary/neetoui/formik/Button';
|
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
7
|
import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
8
8
|
import axios from 'axios';
|
|
9
|
-
import { B as BASE_URL } from './index-
|
|
9
|
+
import { B as BASE_URL } from './index-Ch59VSVC.js';
|
|
10
10
|
import { useQuery } from '@tanstack/react-query';
|
|
11
11
|
import { isNotNil } from 'ramda';
|
|
12
12
|
import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
|
|
@@ -10,7 +10,7 @@ import { mergeLeft } from 'ramda';
|
|
|
10
10
|
import { useTranslation } from 'react-i18next';
|
|
11
11
|
import { useMutation } from '@tanstack/react-query';
|
|
12
12
|
import axios from 'axios';
|
|
13
|
-
import { B as BASE_URL, u as uuidV4 } from './index-
|
|
13
|
+
import { B as BASE_URL, u as uuidV4 } from './index-Ch59VSVC.js';
|
|
14
14
|
import { e as exportChannel } from './exportChannel-CViICC6x.js';
|
|
15
15
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
16
16
|
|
|
@@ -128,4 +128,4 @@ var ExportModal = function ExportModal(_ref) {
|
|
|
128
128
|
};
|
|
129
129
|
|
|
130
130
|
export { ExportModal as E };
|
|
131
|
-
//# sourceMappingURL=ExportModal-
|
|
131
|
+
//# sourceMappingURL=ExportModal-DzJ8p7Ph.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportModal-
|
|
1
|
+
{"version":3,"file":"ExportModal-DzJ8p7Ph.js","sources":["../app/javascript/src/apis/exports.js","../app/javascript/src/hooks/reactQuery/useExportsApi.js","../app/javascript/src/components/Common/ExportModal.jsx"],"sourcesContent":["import axios from \"axios\";\n\nimport { BASE_URL } from \"src/constants\";\n\nconst create = payload =>\n axios.post(\n `${BASE_URL}/api/v1/exports`,\n { export: payload },\n { showToastr: false }\n );\n\nconst exportsApi = { create };\n\nexport default exportsApi;\n","import { useMutation } from \"@tanstack/react-query\";\n\nimport exportsApi from \"apis/exports\";\n\nexport const useExportsData = () =>\n useMutation({ mutationFn: exportsApi.create });\n","import { useEffect, useMemo, useState } from \"react\";\n\nimport { isPresent, camelToSnakeCase } from \"neetocist\";\nimport { getQueryParams } from \"neetocommons/utils\";\nimport { Download } from \"neetoicons\";\nimport { Button, Modal, Typography } from \"neetoui\";\nimport { mergeLeft } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { useExportsData } from \"hooks/reactQuery/useExportsApi\";\nimport exportChannel from \"src/channels/exportChannel\";\nimport { uuidV4 } from \"utils\";\n\nconst ExportModal = ({\n filters,\n dashboardKind,\n holdableIds,\n sortProperties,\n isExportModalOpen,\n setIsExportModalOpen,\n}) => {\n const { t } = useTranslation();\n const [downloadUrl, setDownloadUrl] = useState(\"\");\n const [isGenerating, setIsGenerating] = useState(false);\n\n const { tab = \"all\" } = getQueryParams();\n\n const { mutate: exportsData } = useExportsData();\n\n const token = useMemo(\n () => `${dashboardKind}-report-${uuidV4()}`,\n [dashboardKind]\n );\n\n const receivedCallback = data => {\n if (!data.download_url) return;\n setDownloadUrl(data.download_url);\n setIsGenerating(false);\n };\n\n useEffect(() => {\n if (isExportModalOpen) {\n const channel = exportChannel(token, receivedCallback);\n setDownloadUrl(\"\");\n setIsGenerating(false);\n\n return () => {\n channel.disconnected();\n };\n }\n\n return undefined;\n }, [isExportModalOpen, token]);\n\n const onClose = () => setIsExportModalOpen(false);\n\n const handleExport = () => {\n setDownloadUrl(\"\");\n setIsGenerating(true);\n const payload = mergeLeft(sortProperties, {\n token,\n filters,\n tab,\n holdableIds,\n dashboard: camelToSnakeCase(dashboardKind),\n });\n\n exportsData(payload);\n };\n\n return (\n <Modal {...{ onClose }} isOpen={isExportModalOpen}>\n <Modal.Header>\n <Typography style=\"h2\">\n {t(`neetoPayments.export.title.${dashboardKind}`)}\n </Typography>\n </Modal.Header>\n <Modal.Body>\n {isGenerating ? (\n <Typography style=\"body2\">\n {t(\"neetoPayments.export.pleaseWait\")}\n </Typography>\n ) : (\n <Typography style=\"body2\">\n {isPresent(downloadUrl)\n ? t(\"neetoPayments.export.fileReady\")\n : t(`neetoPayments.export.download.${dashboardKind}`)}\n </Typography>\n )}\n </Modal.Body>\n <Modal.Footer className=\"space-x-2\">\n {isPresent(downloadUrl) ? (\n <Button\n href={downloadUrl}\n icon={Download}\n label={t(\"neetoPayments.common.download\")}\n onClick={onClose}\n />\n ) : (\n <>\n <Button\n disabled={isGenerating}\n label={t(\"neetoPayments.common.cancel\")}\n style=\"tertiary\"\n onClick={onClose}\n />\n <Button\n disabled={isGenerating}\n label={t(\"neetoPayments.common.export\")}\n loading={isGenerating}\n onClick={handleExport}\n />\n </>\n )}\n </Modal.Footer>\n </Modal>\n );\n};\n\nexport default ExportModal;\n"],"names":["create","payload","axios","post","concat","BASE_URL","showToastr","exportsApi","useExportsData","useMutation","mutationFn","ExportModal","_ref","filters","dashboardKind","holdableIds","sortProperties","isExportModalOpen","setIsExportModalOpen","_useTranslation","useTranslation","t","_useState","useState","_useState2","_slicedToArray","downloadUrl","setDownloadUrl","_useState3","_useState4","isGenerating","setIsGenerating","_getQueryParams","getQueryParams","_getQueryParams$tab","tab","_useExportsData","exportsData","mutate","token","useMemo","uuidV4","receivedCallback","data","download_url","useEffect","channel","exportChannel","disconnected","undefined","onClose","handleExport","mergeLeft","dashboard","camelToSnakeCase","_jsxs","Modal","isOpen","children","_jsx","Header","Typography","style","Body","isPresent","Footer","className","Button","href","icon","Download","label","onClick","_Fragment","disabled","loading"],"mappings":";;;;;;;;;;;;;;;;AAIA,IAAMA,MAAM,GAAG,SAATA,MAAMA,CAAGC,OAAO,EAAA;AAAA,EAAA,OACpBC,KAAK,CAACC,IAAI,IAAAC,MAAA,CACLC,QAAQ,EACX,iBAAA,CAAA,EAAA;IAAE,QAAQJ,EAAAA;AAAQ,GAAC,EACnB;AAAEK,IAAAA,UAAU,EAAE;AAAM,GACtB,CAAC;AAAA,CAAA;AAEH,IAAMC,UAAU,GAAG;AAAEP,E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A,CAAAkB,QAAA,EAAA;QAAAf,QAAA,EAAA,cACEC,GAAA,CAACQ,MAAM,EAAA;AACLO,UAAAA,QAAQ,EAAE5C,YAAa;AACvByC,UAAAA,KAAK,EAAElD,CAAC,CAAC,6BAA6B,CAAE;AACxCyC,UAAAA,KAAK,EAAC,UAAU;AAChBU,UAAAA,OAAO,EAAEtB;AAAQ,SAClB,CAAC,eACFS,GAAA,CAACQ,MAAM,EAAA;AACLO,UAAAA,QAAQ,EAAE5C,YAAa;AACvByC,UAAAA,KAAK,EAAElD,CAAC,CAAC,6BAA6B,CAAE;AACxCsD,UAAAA,OAAO,EAAE7C,YAAa;AACtB0C,UAAAA,OAAO,EAAErB;AAAa,SACvB,CAAC;OACF;AACH,KACW,CAAC;AAAA,GACV,CAAC;AAEZ;;;;"}
|
package/dist/ManualUpiConnect.js
CHANGED
|
@@ -4,7 +4,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
6
6
|
import axios from 'axios';
|
|
7
|
-
import { B as BASE_URL } from './index-
|
|
7
|
+
import { B as BASE_URL } from './index-Ch59VSVC.js';
|
|
8
8
|
import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
|
|
9
9
|
import CardLayout from '@bigbinary/neeto-molecules/CardLayout';
|
|
10
10
|
import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
|
package/dist/ManualUpiPayment.js
CHANGED
|
@@ -7,8 +7,8 @@ import Input from '@bigbinary/neetoui/formik/Input';
|
|
|
7
7
|
import QRCodeImage from 'qrcode.react';
|
|
8
8
|
import { pluck } from 'ramda';
|
|
9
9
|
import { useTranslation } from 'react-i18next';
|
|
10
|
-
import { u as useCreateUpiPayment } from './usePaymentApi-
|
|
11
|
-
import { i as getQrCodeValue } from './index-
|
|
10
|
+
import { u as useCreateUpiPayment } from './usePaymentApi-BZTUCgiE.js';
|
|
11
|
+
import { i as getQrCodeValue } from './index-Ch59VSVC.js';
|
|
12
12
|
import { t } from 'i18next';
|
|
13
13
|
import * as yup from 'yup';
|
|
14
14
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -10,7 +10,7 @@ import Select from '@bigbinary/neetoui/formik/Select';
|
|
|
10
10
|
import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
|
|
11
11
|
import { mergeLeft } from 'ramda';
|
|
12
12
|
import { useTranslation } from 'react-i18next';
|
|
13
|
-
import { a as useUpdateUpiPayment } from './usePaymentApi-
|
|
13
|
+
import { a as useUpdateUpiPayment } from './usePaymentApi-BZTUCgiE.js';
|
|
14
14
|
import { t } from 'i18next';
|
|
15
15
|
import * as yup from 'yup';
|
|
16
16
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
@@ -19,7 +19,7 @@ import '@babel/runtime/helpers/defineProperty';
|
|
|
19
19
|
import '@tanstack/react-query';
|
|
20
20
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
21
21
|
import 'axios';
|
|
22
|
-
import './index-
|
|
22
|
+
import './index-Ch59VSVC.js';
|
|
23
23
|
import '@bigbinary/neeto-commons-frontend/constants';
|
|
24
24
|
import 'decimal.js';
|
|
25
25
|
import '@bigbinary/neeto-commons-frontend/utils';
|
|
@@ -8,14 +8,14 @@ import Form from '@bigbinary/neetoui/formik/Form';
|
|
|
8
8
|
import Textarea from '@bigbinary/neetoui/formik/Textarea';
|
|
9
9
|
import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
|
|
10
10
|
import { useTranslation } from 'react-i18next';
|
|
11
|
-
import { a as useUpdateUpiPayment } from './usePaymentApi-
|
|
11
|
+
import { a as useUpdateUpiPayment } from './usePaymentApi-BZTUCgiE.js';
|
|
12
12
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
13
13
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
14
14
|
import '@babel/runtime/helpers/defineProperty';
|
|
15
15
|
import '@tanstack/react-query';
|
|
16
16
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
17
17
|
import 'axios';
|
|
18
|
-
import './index-
|
|
18
|
+
import './index-Ch59VSVC.js';
|
|
19
19
|
import 'i18next';
|
|
20
20
|
import '@bigbinary/neeto-commons-frontend/constants';
|
|
21
21
|
import 'decimal.js';
|
|
@@ -8,10 +8,10 @@ import { buildFiltersFromURL } from '@bigbinary/neeto-filters-frontend/utils';
|
|
|
8
8
|
import Spinner from '@bigbinary/neetoui/Spinner';
|
|
9
9
|
import { map, curry, concat, mergeDeepWith, mergeLeft, reject, isNil, prop, isEmpty, modify } from 'ramda';
|
|
10
10
|
import { useHistory } from 'react-router-dom';
|
|
11
|
-
import { E as ExportModal } from './ExportModal-
|
|
11
|
+
import { E as ExportModal } from './ExportModal-DzJ8p7Ph.js';
|
|
12
12
|
import { useQuery } from '@tanstack/react-query';
|
|
13
13
|
import axios from 'axios';
|
|
14
|
-
import { B as BASE_URL, P as PAYMENT_PROVIDERS, D as DEFAULT_TAG_STYLE,
|
|
14
|
+
import { B as BASE_URL, P as PAYMENT_PROVIDERS, D as DEFAULT_TAG_STYLE, o as formatAmount, p as formatCurrency, q as getUniquePaymentProviders, r as buildDefaultTableColumns, S as SORT_DIRECTIONS, s as processDataIndex, t as shouldTabsVisible, U as UN_HIDEABLE_COLUMNS, l as DEFAULT_PAGE_VALUES, v as DASHBOARD_KIND } from './index-Ch59VSVC.js';
|
|
15
15
|
import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
|
|
16
16
|
import { t } from 'i18next';
|
|
17
17
|
import { toLabelAndValue, isNotPresent, snakeToCamelCase, humanize, isPresent, camelToSnakeCase } from '@bigbinary/neeto-cist';
|
package/dist/PayoutsDashboard.js
CHANGED
|
@@ -8,13 +8,13 @@ import SubHeader from '@bigbinary/neeto-molecules/SubHeader';
|
|
|
8
8
|
import Tab from '@bigbinary/neetoui/Tab';
|
|
9
9
|
import Typography from '@bigbinary/neetoui/Typography';
|
|
10
10
|
import { useTranslation } from 'react-i18next';
|
|
11
|
-
import { u as useExportData, b as buildDefaultPageProperties, a as buildPayload, c as buildRowData, w as withReactQuery } from './dashboard
|
|
11
|
+
import { u as useExportData, b as buildDefaultPageProperties, a as buildPayload, c as buildRowData, w as withReactQuery } from './dashboard--4UZLFmb.js';
|
|
12
12
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
13
13
|
import Download from '@bigbinary/neeto-icons/Download';
|
|
14
14
|
import Button from '@bigbinary/neetoui/Button';
|
|
15
15
|
import Modal from '@bigbinary/neetoui/Modal';
|
|
16
16
|
import { e as exportChannel } from './exportChannel-CViICC6x.js';
|
|
17
|
-
import { u as uuidV4,
|
|
17
|
+
import { u as uuidV4, n as DEFAULT_SORT_PROPERTIES$1, S as SORT_DIRECTIONS } from './index-Ch59VSVC.js';
|
|
18
18
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
19
19
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
20
20
|
import { camelToSnakeCase, removeBy, snakeToCamelCase, isPresent } from '@bigbinary/neeto-cist';
|
|
@@ -22,7 +22,7 @@ import { buildUrl, getQueryParams } from '@bigbinary/neeto-commons-frontend/util
|
|
|
22
22
|
import { buildFiltersFromURL } from '@bigbinary/neeto-filters-frontend/utils';
|
|
23
23
|
import { curry, assoc, insert, mergeLeft } from 'ramda';
|
|
24
24
|
import { useHistory } from 'react-router-dom';
|
|
25
|
-
import { r as renderStatus, a as renderDate } from './renderFunctions-
|
|
25
|
+
import { r as renderStatus, a as renderDate } from './renderFunctions-QDhyLbkY.js';
|
|
26
26
|
import { C as CopyButtonWrapper } from './CopyButtonWrapper-B79WRogM.js';
|
|
27
27
|
import { DEFAULT_PAGE_SIZE, DEFAULT_PAGE_INDEX } from '@bigbinary/neeto-commons-frontend/constants';
|
|
28
28
|
import { useHiddenColumns } from '@bigbinary/neeto-molecules/Columns';
|
|
@@ -30,7 +30,7 @@ import TableWrapper from '@bigbinary/neeto-molecules/TableWrapper';
|
|
|
30
30
|
import Table from '@bigbinary/neetoui/Table';
|
|
31
31
|
import NoData from '@bigbinary/neetoui/NoData';
|
|
32
32
|
import Spinner from '@bigbinary/neetoui/Spinner';
|
|
33
|
-
import { b as useFetchStripePayouts, c as useFetchStripePlatformPayouts } from './usePlatformApi-
|
|
33
|
+
import { b as useFetchStripePayouts, c as useFetchStripePlatformPayouts } from './usePlatformApi-DxcXzqTN.js';
|
|
34
34
|
import '@tanstack/react-query';
|
|
35
35
|
import '@tanstack/react-query-devtools';
|
|
36
36
|
import 'axios';
|
package/dist/PayoutsPage.js
CHANGED
|
@@ -4,11 +4,11 @@ import Spinner from '@bigbinary/neetoui/Spinner';
|
|
|
4
4
|
import Typography from '@bigbinary/neetoui/Typography';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
import { useParams } from 'react-router-dom/cjs/react-router-dom';
|
|
7
|
-
import { r as renderStatus, a as renderDate } from './renderFunctions-
|
|
8
|
-
import { u as useShowStripePayout, a as useShowStripePlatformPayout } from './usePlatformApi-
|
|
7
|
+
import { r as renderStatus, a as renderDate } from './renderFunctions-QDhyLbkY.js';
|
|
8
|
+
import { u as useShowStripePayout, a as useShowStripePlatformPayout } from './usePlatformApi-DxcXzqTN.js';
|
|
9
9
|
import Button from '@bigbinary/neetoui/Button';
|
|
10
10
|
import { C as CopyButtonWrapper } from './CopyButtonWrapper-B79WRogM.js';
|
|
11
|
-
import {
|
|
11
|
+
import { k as buildStripePayoutLink } from './index-Ch59VSVC.js';
|
|
12
12
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
13
13
|
import 'i18next';
|
|
14
14
|
import '@bigbinary/neeto-molecules/DateFormat';
|
|
@@ -4,8 +4,8 @@ import { noop, findBy, isNotPresent } from '@bigbinary/neeto-cist';
|
|
|
4
4
|
import Button from '@bigbinary/neetoui/Button';
|
|
5
5
|
import { mergeDeepLeft } from 'ramda';
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
|
-
import { u as useCreateRazorpayPayment } from './usePaymentApi-
|
|
8
|
-
import { R as RAZORPAY_PAYMENT_BUTTON_OPTIONS } from './index-
|
|
7
|
+
import { u as useCreateRazorpayPayment } from './usePaymentApi-494WnYo6.js';
|
|
8
|
+
import { R as RAZORPAY_PAYMENT_BUTTON_OPTIONS } from './index-Ch59VSVC.js';
|
|
9
9
|
import { jsx } from 'react/jsx-runtime';
|
|
10
10
|
import '@babel/runtime/helpers/defineProperty';
|
|
11
11
|
import '@tanstack/react-query';
|
|
@@ -14,7 +14,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
14
14
|
import { useQuery } from '@tanstack/react-query';
|
|
15
15
|
import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
16
16
|
import axios from 'axios';
|
|
17
|
-
import { B as BASE_URL } from './index-
|
|
17
|
+
import { B as BASE_URL } from './index-Ch59VSVC.js';
|
|
18
18
|
import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
|
|
19
19
|
import { t } from 'i18next';
|
|
20
20
|
import * as yup from 'yup';
|
package/dist/RefundsDashboard.js
CHANGED
|
@@ -8,10 +8,10 @@ import { buildFiltersFromURL } from '@bigbinary/neeto-filters-frontend/utils';
|
|
|
8
8
|
import Spinner from '@bigbinary/neetoui/Spinner';
|
|
9
9
|
import { map, curry, mergeDeepWith, concat, mergeLeft, reject, isNil, prop, isEmpty, modify } from 'ramda';
|
|
10
10
|
import { useHistory } from 'react-router-dom';
|
|
11
|
-
import { E as ExportModal } from './ExportModal-
|
|
11
|
+
import { E as ExportModal } from './ExportModal-DzJ8p7Ph.js';
|
|
12
12
|
import { useQuery } from '@tanstack/react-query';
|
|
13
13
|
import axios from 'axios';
|
|
14
|
-
import { B as BASE_URL, P as PAYMENT_PROVIDERS, D as DEFAULT_TAG_STYLE,
|
|
14
|
+
import { B as BASE_URL, P as PAYMENT_PROVIDERS, D as DEFAULT_TAG_STYLE, o as formatAmount, p as formatCurrency, r as buildDefaultTableColumns, S as SORT_DIRECTIONS, s as processDataIndex, A as ASSOCIATED_TABLE_COLUMNS, n as DEFAULT_SORT_PROPERTIES, t as shouldTabsVisible, U as UN_HIDEABLE_COLUMNS, l as DEFAULT_PAGE_VALUES, v as DASHBOARD_KIND } from './index-Ch59VSVC.js';
|
|
15
15
|
import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
|
|
16
16
|
import { t } from 'i18next';
|
|
17
17
|
import { toLabelAndValue, snakeToCamelCase, humanize, isPresent, isNotPresent, camelToSnakeCase } from '@bigbinary/neeto-cist';
|
|
@@ -8,11 +8,11 @@ import { buildFiltersFromURL } from '@bigbinary/neeto-filters-frontend/utils';
|
|
|
8
8
|
import Spinner from '@bigbinary/neetoui/Spinner';
|
|
9
9
|
import { mergeLeft, curry, mergeDeepWith, concat, reject, isNil, map, prop, sortBy, isEmpty, modify, pluck } from 'ramda';
|
|
10
10
|
import { useHistory } from 'react-router-dom';
|
|
11
|
-
import { E as ExportModal } from './ExportModal-
|
|
11
|
+
import { E as ExportModal } from './ExportModal-DzJ8p7Ph.js';
|
|
12
12
|
import { useQuery } from '@tanstack/react-query';
|
|
13
13
|
import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
14
14
|
import axios from 'axios';
|
|
15
|
-
import { B as BASE_URL,
|
|
15
|
+
import { B as BASE_URL, x as preProcessStatus, y as getTagStyle, o as formatAmount, p as formatCurrency, z as PAYMENT_KIND, s as processDataIndex, S as SORT_DIRECTIONS, n as DEFAULT_SORT_PROPERTIES, t as shouldTabsVisible, U as UN_HIDEABLE_COLUMNS, l as DEFAULT_PAGE_VALUES, v as DASHBOARD_KIND } from './index-Ch59VSVC.js';
|
|
16
16
|
import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
|
|
17
17
|
import Modal from '@bigbinary/neetoui/Modal';
|
|
18
18
|
import Typography from '@bigbinary/neetoui/Typography';
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import Switch from '@bigbinary/neetoui/Switch';
|
|
2
|
+
import Tooltip from '@bigbinary/neetoui/Tooltip';
|
|
3
|
+
import { useTranslation } from 'react-i18next';
|
|
4
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
5
|
+
import { useQuery } from '@tanstack/react-query';
|
|
6
|
+
import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
7
|
+
import { isNotNil } from 'ramda';
|
|
8
|
+
import axios from 'axios';
|
|
9
|
+
import { B as BASE_URL } from './index-Ch59VSVC.js';
|
|
10
|
+
import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
|
|
11
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
12
|
+
import 'i18next';
|
|
13
|
+
import '@bigbinary/neeto-commons-frontend/constants';
|
|
14
|
+
import 'decimal.js';
|
|
15
|
+
import '@bigbinary/neeto-cist';
|
|
16
|
+
import '@bigbinary/neeto-commons-frontend/utils';
|
|
17
|
+
|
|
18
|
+
var show = function show(integrationId) {
|
|
19
|
+
return axios.get("".concat(BASE_URL, "/api/v1/integrations/").concat(integrationId, "/checkout_setting"));
|
|
20
|
+
};
|
|
21
|
+
var update = function update(integrationId, payload) {
|
|
22
|
+
return axios.put("".concat(BASE_URL, "/api/v1/integrations/").concat(integrationId, "/checkout_setting"), {
|
|
23
|
+
checkoutSetting: payload
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
var checkoutSettingsApi = {
|
|
27
|
+
show: show,
|
|
28
|
+
update: update
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
32
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
33
|
+
var useFetchCheckoutSetting = function useFetchCheckoutSetting(integrationId) {
|
|
34
|
+
return useQuery({
|
|
35
|
+
queryKey: [QUERY_KEYS.CHECKOUT_SETTING, integrationId],
|
|
36
|
+
queryFn: function queryFn() {
|
|
37
|
+
return checkoutSettingsApi.show(integrationId);
|
|
38
|
+
},
|
|
39
|
+
enabled: isNotNil(integrationId)
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
var useUpdateCheckoutSetting = function useUpdateCheckoutSetting(integrationId) {
|
|
43
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
44
|
+
return useMutationWithInvalidation(function (payload) {
|
|
45
|
+
return checkoutSettingsApi.update(integrationId, payload);
|
|
46
|
+
}, _objectSpread({
|
|
47
|
+
keysToInvalidate: [QUERY_KEYS.CHECKOUT_SETTING, integrationId]
|
|
48
|
+
}, options));
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
var StripeCheckoutSetting = function StripeCheckoutSetting(_ref) {
|
|
52
|
+
var _stripeAccount$countr;
|
|
53
|
+
var stripeAccount = _ref.stripeAccount;
|
|
54
|
+
var _useTranslation = useTranslation(),
|
|
55
|
+
t = _useTranslation.t;
|
|
56
|
+
var isAddressRequired = (stripeAccount === null || stripeAccount === void 0 || (_stripeAccount$countr = stripeAccount.country) === null || _stripeAccount$countr === void 0 ? void 0 : _stripeAccount$countr.toLowerCase()) === "india";
|
|
57
|
+
var _useFetchCheckoutSett = useFetchCheckoutSetting(stripeAccount === null || stripeAccount === void 0 ? void 0 : stripeAccount.id),
|
|
58
|
+
_useFetchCheckoutSett2 = _useFetchCheckoutSett.data,
|
|
59
|
+
_useFetchCheckoutSett3 = _useFetchCheckoutSett2 === void 0 ? {} : _useFetchCheckoutSett2,
|
|
60
|
+
checkoutSetting = _useFetchCheckoutSett3.checkoutSetting;
|
|
61
|
+
var _useUpdateCheckoutSet = useUpdateCheckoutSetting(stripeAccount === null || stripeAccount === void 0 ? void 0 : stripeAccount.id),
|
|
62
|
+
isPending = _useUpdateCheckoutSet.isPending,
|
|
63
|
+
updateCheckoutSetting = _useUpdateCheckoutSet.mutate;
|
|
64
|
+
return /*#__PURE__*/jsxs("div", {
|
|
65
|
+
className: "space-y-4",
|
|
66
|
+
children: [/*#__PURE__*/jsx(Tooltip, {
|
|
67
|
+
disabled: !isAddressRequired,
|
|
68
|
+
placement: "bottom",
|
|
69
|
+
content: t("neetoPayments.stripeManage.checkoutSettings.addressDisabledMessage"),
|
|
70
|
+
children: /*#__PURE__*/jsx(Switch, {
|
|
71
|
+
checked: checkoutSetting === null || checkoutSetting === void 0 ? void 0 : checkoutSetting.isAddressEnabled,
|
|
72
|
+
disabled: isAddressRequired || isPending,
|
|
73
|
+
label: t("neetoPayments.stripeManage.checkoutSettings.address"),
|
|
74
|
+
onChange: function onChange() {
|
|
75
|
+
return updateCheckoutSetting({
|
|
76
|
+
isAddressEnabled: !(checkoutSetting !== null && checkoutSetting !== void 0 && checkoutSetting.isAddressEnabled)
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
})
|
|
80
|
+
}), /*#__PURE__*/jsx(Tooltip, {
|
|
81
|
+
disabled: checkoutSetting === null || checkoutSetting === void 0 ? void 0 : checkoutSetting.isAddressEnabled,
|
|
82
|
+
placement: "bottom",
|
|
83
|
+
content: t("neetoPayments.stripeManage.checkoutSettings.phoneNumberDisabledMessage"),
|
|
84
|
+
children: /*#__PURE__*/jsx(Switch, {
|
|
85
|
+
checked: checkoutSetting === null || checkoutSetting === void 0 ? void 0 : checkoutSetting.isPhoneNumberEnabled,
|
|
86
|
+
disabled: isPending || !(checkoutSetting !== null && checkoutSetting !== void 0 && checkoutSetting.isAddressEnabled),
|
|
87
|
+
label: t("neetoPayments.stripeManage.checkoutSettings.phoneNumber"),
|
|
88
|
+
onChange: function onChange() {
|
|
89
|
+
return updateCheckoutSetting({
|
|
90
|
+
isPhoneNumberEnabled: !(checkoutSetting !== null && checkoutSetting !== void 0 && checkoutSetting.isPhoneNumberEnabled)
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
})
|
|
94
|
+
})]
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
export { StripeCheckoutSetting as default };
|
|
99
|
+
//# sourceMappingURL=StripeCheckoutSetting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StripeCheckoutSetting.js","sources":["../app/javascript/src/apis/checkout_settings.js","../app/javascript/src/hooks/reactQuery/useCheckoutSettingsApi.js","../app/javascript/src/components/StripeCheckoutSetting.jsx"],"sourcesContent":["import axios from \"axios\";\n\nimport { BASE_URL } from \"src/constants\";\n\nconst show = integrationId =>\n axios.get(\n `${BASE_URL}/api/v1/integrations/${integrationId}/checkout_setting`\n );\n\nconst update = (integrationId, payload) =>\n axios.put(\n `${BASE_URL}/api/v1/integrations/${integrationId}/checkout_setting`,\n { checkoutSetting: payload }\n );\n\nconst checkoutSettingsApi = { show, update };\n\nexport default checkoutSettingsApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\nimport { isNotNil } from \"ramda\";\n\nimport checkoutSettingsApi from \"apis/checkout_settings\";\nimport { QUERY_KEYS } from \"src/common/queryConstants\";\n\nexport const useFetchCheckoutSetting = integrationId =>\n useQuery({\n queryKey: [QUERY_KEYS.CHECKOUT_SETTING, integrationId],\n queryFn: () => checkoutSettingsApi.show(integrationId),\n enabled: isNotNil(integrationId),\n });\n\nexport const useUpdateCheckoutSetting = (integrationId, options = {}) =>\n useMutationWithInvalidation(\n payload => checkoutSettingsApi.update(integrationId, payload),\n {\n keysToInvalidate: [QUERY_KEYS.CHECKOUT_SETTING, integrationId],\n ...options,\n }\n );\n","import { Switch, Tooltip } from \"neetoui\";\nimport { useTranslation } from \"react-i18next\";\n\nimport {\n useFetchCheckoutSetting,\n useUpdateCheckoutSetting,\n} from \"hooks/reactQuery/useCheckoutSettingsApi\";\n\nconst StripeCheckoutSetting = ({ stripeAccount }) => {\n const { t } = useTranslation();\n const isAddressRequired = stripeAccount?.country?.toLowerCase() === \"india\";\n\n const { data: { checkoutSetting } = {} } = useFetchCheckoutSetting(\n stripeAccount?.id\n );\n\n const { isPending, mutate: updateCheckoutSetting } = useUpdateCheckoutSetting(\n stripeAccount?.id\n );\n\n return (\n <div className=\"space-y-4\">\n <Tooltip\n disabled={!isAddressRequired}\n placement=\"bottom\"\n content={t(\n \"neetoPayments.stripeManage.checkoutSettings.addressDisabledMessage\"\n )}\n >\n <Switch\n checked={checkoutSetting?.isAddressEnabled}\n disabled={isAddressRequired || isPending}\n label={t(\"neetoPayments.stripeManage.checkoutSettings.address\")}\n onChange={() =>\n updateCheckoutSetting({\n isAddressEnabled: !checkoutSetting?.isAddressEnabled,\n })\n }\n />\n </Tooltip>\n <Tooltip\n disabled={checkoutSetting?.isAddressEnabled}\n placement=\"bottom\"\n content={t(\n \"neetoPayments.stripeManage.checkoutSettings.phoneNumberDisabledMessage\"\n )}\n >\n <Switch\n checked={checkoutSetting?.isPhoneNumberEnabled}\n disabled={isPending || !checkoutSetting?.isAddressEnabled}\n label={t(\"neetoPayments.stripeManage.checkoutSettings.phoneNumber\")}\n onChange={() =>\n updateCheckoutSetting({\n isPhoneNumberEnabled: !checkoutSetting?.isPhoneNumberEnabled,\n })\n }\n />\n </Tooltip>\n </div>\n );\n};\n\nexport default StripeCheckoutSetting;\n"],"names":["show","integrationId","axios","get","concat","BASE_URL","update","payload","put","checkoutSetting","checkoutSettingsApi","useFetchCheckoutSetting","useQuery","queryKey","QUERY_KEYS","CHECKOUT_SETTING","queryFn","enabled","isNotNil","useUpdateCheckoutSetting","options","arguments","length","undefined","useMutationWithInvalidation","_objectSpread","keysToInvalidate","StripeCheckoutSetting","_ref","_stripeAccount$countr","stripeAccount","_useTranslation","useTranslation","t","isAddressRequired","country","toLowerCase","_useFetchCheckoutSett","id","_useFetchCheckoutSett2","data","_useFetchCheckoutSett3","_useUpdateCheckoutSet","isPending","updateCheckoutSetting","mutate","_jsxs","className","children","_jsx","Tooltip","disabled","placement","content","Switch","checked","isAddressEnabled","label","onChange","isPhoneNumberEnabled"],"mappings":";;;;;;;;;;;;;;;;;AAIA,IAAMA,IAAI,GAAG,SAAPA,IAAIA,CAAGC,aAAa,EAAA;AAAA,EAAA,OACxBC,KAAK,CAACC,GAAG,CAAA,EAAA,CAAAC,MAAA,CACJC,QAAQ,EAAA,uBAAA,CAAA,CAAAD,MAAA,CAAwBH,aAAa,EAAA,mBAAA,CAClD,CAAC;AAAA,CAAA;AAEH,IAAMK,MAAM,GAAG,SAATA,MAAMA,CAAIL,aAAa,EAAEM,OAAO,EAAA;EAAA,OACpCL,KAAK,CAACM,GAAG,CAAAJ,EAAAA,CAAAA,MAAA,CACJC,QAAQ,EAAAD,uBAAAA,CAAAA,CAAAA,MAAA,CAAwBH,aAAa,EAChD,mBAAA,CAAA,EAAA;AAAEQ,IAAAA,eAAe,EAAEF;AAAQ,GAC7B,CAAC;AAAA,CAAA;AAEH,IAAMG,mBAAmB,GAAG;AAAEV,EAAAA,IAAI,EAAJA,IAAI;AAAEM,EAAAA,MAAM,EAANA;AAAO,CAAC;;;;ACRrC,IAAMK,uBAAuB,GAAG,SAA1BA,uBAAuBA,CAAGV,aAAa,EAAA;AAAA,EAAA,OAClDW,QAAQ,CAAC;AACPC,IAAAA,QAAQ,EAAE,CAACC,UAAU,CAACC,gBAAgB,EAAEd,aAAa,CAAC;IACtDe,OAAO,EAAE,SAATA,OAAOA,GAAA;AAAA,MAAA,OAAQN,mBAAmB,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C,eAAe,KAAA,IAAA,IAAfA,eAAe,KAAfA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,eAAe,CAAE+C,gBAAiB;AAC5CJ,MAAAA,SAAS,EAAC,QAAQ;AAClBC,MAAAA,OAAO,EAAEpB,CAAC,CACR,wEACF,CAAE;MAAAe,QAAA,eAEFC,GAAA,CAACK,MAAM,EAAA;AACLC,QAAAA,OAAO,EAAE9C,eAAe,KAAA,IAAA,IAAfA,eAAe,KAAfA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,eAAe,CAAEkD,oBAAqB;QAC/CR,QAAQ,EAAER,SAAS,IAAI,EAAClC,eAAe,KAAfA,IAAAA,IAAAA,eAAe,KAAfA,KAAAA,CAAAA,IAAAA,eAAe,CAAE+C,gBAAgB,CAAC;AAC1DC,QAAAA,KAAK,EAAExB,CAAC,CAAC,yDAAyD,CAAE;QACpEyB,QAAQ,EAAE,SAAVA,QAAQA,GAAA;AAAA,UAAA,OACNd,qBAAqB,CAAC;YACpBe,oBAAoB,EAAE,EAAClD,eAAe,KAAA,IAAA,IAAfA,eAAe,KAAfA,KAAAA,CAAAA,IAAAA,eAAe,CAAEkD,oBAAoB;AAC9D,WAAC,CAAC;AAAA;OAEL;AAAC,KACK,CAAC;AAAA,GACP,CAAC;AAEV;;;;"}
|
package/dist/StripeConnect.js
CHANGED
|
@@ -11,8 +11,11 @@ import Stripe from '@bigbinary/neeto-icons/misc/Stripe';
|
|
|
11
11
|
import CardLayout from '@bigbinary/neeto-molecules/CardLayout';
|
|
12
12
|
import Radio from '@bigbinary/neetoui/Radio';
|
|
13
13
|
import Button from '@bigbinary/neetoui/Button';
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
14
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
15
|
+
import { useQuery } from '@tanstack/react-query';
|
|
16
|
+
import axios from 'axios';
|
|
17
|
+
import { B as BASE_URL, w as STRIPE_CONNECT_ENDPOINT } from './index-Ch59VSVC.js';
|
|
18
|
+
import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
|
|
16
19
|
import { t } from 'i18next';
|
|
17
20
|
import * as yup from 'yup';
|
|
18
21
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
@@ -20,18 +23,30 @@ import Spinner from '@bigbinary/neetoui/Spinner';
|
|
|
20
23
|
import Select from '@bigbinary/neetoui/formik/Select';
|
|
21
24
|
import Form from '@bigbinary/neetoui/formik/Form';
|
|
22
25
|
import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
|
|
23
|
-
import { a as useCreateStripeAccount, b as usePollingStripeAccountCreationStatus } from './useAccountsApi-
|
|
24
|
-
import { useQuery } from '@tanstack/react-query';
|
|
25
|
-
import axios from 'axios';
|
|
26
|
-
import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
|
|
26
|
+
import { a as useCreateStripeAccount, b as usePollingStripeAccountCreationStatus } from './useAccountsApi-DSk7-BmJ.js';
|
|
27
27
|
import { useQueryParams } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
28
28
|
import Typography from '@bigbinary/neetoui/Typography';
|
|
29
29
|
import Callout from '@bigbinary/neetoui/Callout';
|
|
30
|
-
import '@babel/runtime/helpers/defineProperty';
|
|
31
30
|
import '@bigbinary/neeto-commons-frontend/constants';
|
|
32
31
|
import 'decimal.js';
|
|
33
32
|
import 'ramda';
|
|
34
33
|
|
|
34
|
+
var list = function list() {
|
|
35
|
+
return axios.get("".concat(BASE_URL, "/api/v1/integrations"));
|
|
36
|
+
};
|
|
37
|
+
var integrationsApi = {
|
|
38
|
+
list: list
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
42
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
43
|
+
var useFetchPaymentIntegrations = function useFetchPaymentIntegrations(options) {
|
|
44
|
+
return useQuery(_objectSpread({
|
|
45
|
+
queryKey: [QUERY_KEYS.PAYMENT_INTEGRATION_LIST],
|
|
46
|
+
queryFn: integrationsApi.list
|
|
47
|
+
}, options));
|
|
48
|
+
};
|
|
49
|
+
|
|
35
50
|
var INTEGRATION_METHOD = {
|
|
36
51
|
useExistingAccount: "use_existing_account",
|
|
37
52
|
createNewAccount: "create_new_account"
|