@bigbinary/neeto-payments-frontend 2.1.4 → 2.1.5
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/AccountsDashboard.js +3 -3
- package/dist/Dashboard.js +6 -6
- package/dist/{ExportModal-39bfc053.js → ExportModal-05feca63.js} +4 -4
- package/dist/{ExportModal-39bfc053.js.map → ExportModal-05feca63.js.map} +1 -1
- package/dist/PayoutsDashboard.js +5 -5
- package/dist/PayoutsPage.js +6 -6
- package/dist/RazorpayDashboard.js +6 -6
- package/dist/RazorpayPaymentButton.js +10 -3
- package/dist/RazorpayPaymentButton.js.map +1 -1
- package/dist/StripeConnect.js +1 -1
- package/dist/UpiMarkAsPaidButton.js +1 -1
- package/dist/UpiPayment.js +1 -1
- package/dist/V2PaymentsDashboard.js +3 -3
- package/dist/buildStripeTransactionLink.js +2 -2
- package/dist/cjs/AccountsDashboard.js +3 -3
- package/dist/cjs/Dashboard.js +6 -6
- package/dist/cjs/{ExportModal-bdc93240.js → ExportModal-8b3cc7d4.js} +4 -4
- package/dist/cjs/{ExportModal-bdc93240.js.map → ExportModal-8b3cc7d4.js.map} +1 -1
- package/dist/cjs/PayoutsDashboard.js +5 -5
- package/dist/cjs/PayoutsPage.js +6 -6
- package/dist/cjs/RazorpayDashboard.js +6 -6
- package/dist/cjs/RazorpayPaymentButton.js +9 -2
- package/dist/cjs/RazorpayPaymentButton.js.map +1 -1
- package/dist/cjs/StripeConnect.js +1 -1
- package/dist/cjs/UpiMarkAsPaidButton.js +1 -1
- package/dist/cjs/UpiPayment.js +1 -1
- package/dist/cjs/V2PaymentsDashboard.js +3 -3
- package/dist/cjs/buildStripeTransactionLink.js +1 -1
- package/dist/cjs/constants.js +0 -3
- package/dist/cjs/constants.js.map +1 -1
- package/dist/cjs/{exportChannel-25096ec6.js → exportChannel-1c3103ef.js} +1 -1
- package/dist/cjs/{exportChannel-25096ec6.js.map → exportChannel-1c3103ef.js.map} +1 -1
- package/dist/cjs/{index-50640293.js → index-e317e851.js} +1 -1
- package/dist/cjs/{index-50640293.js.map → index-e317e851.js.map} +1 -1
- package/dist/cjs/index.js +9 -9
- package/dist/cjs/{renderFunctions-2078e7e2.js → renderFunctions-c535bfb2.js} +1 -1
- package/dist/cjs/{renderFunctions-2078e7e2.js.map → renderFunctions-c535bfb2.js.map} +1 -1
- package/dist/cjs/{useConnectApi-e7f3de75.js → useConnectApi-a80cbf88.js} +1 -1
- package/dist/cjs/{useConnectApi-e7f3de75.js.map → useConnectApi-a80cbf88.js.map} +1 -1
- package/dist/cjs/{useFiltersAndPagination-5a9347b9.js → useFiltersAndPagination-e46b18de.js} +2 -2
- package/dist/cjs/{useFiltersAndPagination-5a9347b9.js.map → useFiltersAndPagination-e46b18de.js.map} +1 -1
- package/dist/cjs/{usePaymentApi-7a0bbf0b.js → usePaymentApi-77803596.js} +1 -1
- package/dist/cjs/{usePaymentApi-7a0bbf0b.js.map → usePaymentApi-77803596.js.map} +1 -1
- package/dist/cjs/{usePaymentsApi-cd592e15.js → usePaymentsApi-239e8d8a.js} +1 -1
- package/dist/cjs/{usePaymentsApi-cd592e15.js.map → usePaymentsApi-239e8d8a.js.map} +1 -1
- package/dist/cjs/{usePlatformApi-1013cf7c.js → usePlatformApi-6740cf80.js} +2 -2
- package/dist/cjs/{usePlatformApi-1013cf7c.js.map → usePlatformApi-6740cf80.js.map} +1 -1
- package/dist/cjs/useRazorpayPayment.js +1 -1
- package/dist/constants.js +0 -3
- package/dist/constants.js.map +1 -1
- package/dist/{exportChannel-adf7b822.js → exportChannel-23e4628c.js} +1 -1
- package/dist/{exportChannel-adf7b822.js.map → exportChannel-23e4628c.js.map} +1 -1
- package/dist/{index-6162b28f.js → index-385083ef.js} +1 -1
- package/dist/{index-6162b28f.js.map → index-385083ef.js.map} +1 -1
- package/dist/index.js +9 -9
- package/dist/{renderFunctions-f7c87474.js → renderFunctions-641a338d.js} +1 -1
- package/dist/{renderFunctions-f7c87474.js.map → renderFunctions-641a338d.js.map} +1 -1
- package/dist/{useConnectApi-ea17ae47.js → useConnectApi-36a92bd8.js} +1 -1
- package/dist/{useConnectApi-ea17ae47.js.map → useConnectApi-36a92bd8.js.map} +1 -1
- package/dist/{useFiltersAndPagination-78e70378.js → useFiltersAndPagination-cd5ac1b3.js} +2 -2
- package/dist/{useFiltersAndPagination-78e70378.js.map → useFiltersAndPagination-cd5ac1b3.js.map} +1 -1
- package/dist/{usePaymentApi-66c05a32.js → usePaymentApi-edc45d99.js} +1 -1
- package/dist/{usePaymentApi-66c05a32.js.map → usePaymentApi-edc45d99.js.map} +1 -1
- package/dist/{usePaymentsApi-11e025d2.js → usePaymentsApi-663c4058.js} +1 -1
- package/dist/{usePaymentsApi-11e025d2.js.map → usePaymentsApi-663c4058.js.map} +1 -1
- package/dist/{usePlatformApi-5635c757.js → usePlatformApi-3faabc82.js} +2 -2
- package/dist/{usePlatformApi-5635c757.js.map → usePlatformApi-3faabc82.js.map} +1 -1
- package/dist/useRazorpayPayment.js +1 -1
- package/package.json +9 -9
|
@@ -8,12 +8,12 @@ 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 { C as CopyButtonWrapper, r as renderStatus, a as renderFullName, b as renderEmail, c as renderDate, d as buildDefaultPageProperties, e as buildPayload, f as buildRowData, w as withReactQuery } from './renderFunctions-
|
|
11
|
+
import { C as CopyButtonWrapper, r as renderStatus, a as renderFullName, b as renderEmail, c as renderDate, d as buildDefaultPageProperties, e as buildPayload, f as buildRowData, w as withReactQuery } from './renderFunctions-641a338d.js';
|
|
12
12
|
import Download from '@bigbinary/neeto-icons/Download';
|
|
13
13
|
import Button from '@bigbinary/neetoui/Button';
|
|
14
14
|
import Modal from '@bigbinary/neetoui/Modal';
|
|
15
|
-
import { u as useExportData, e as exportChannel } from './exportChannel-
|
|
16
|
-
import { u as uuidV4, b as buildStripeAccountLink } from './index-
|
|
15
|
+
import { u as useExportData, e as exportChannel } from './exportChannel-23e4628c.js';
|
|
16
|
+
import { u as uuidV4, b as buildStripeAccountLink } from './index-385083ef.js';
|
|
17
17
|
import { getQueryParams, buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
|
|
18
18
|
import { pipe, split, map, join, mergeLeft, assoc } from 'ramda';
|
|
19
19
|
import { useHistory } from 'react-router-dom';
|
package/dist/Dashboard.js
CHANGED
|
@@ -9,22 +9,22 @@ 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 { d as buildDefaultPageProperties, r as renderStatus, f as buildRowData, c as renderDate, e as buildPayload, w as withReactQuery } from './renderFunctions-
|
|
12
|
+
import { d as buildDefaultPageProperties, r as renderStatus, f as buildRowData, c as renderDate, e as buildPayload, w as withReactQuery } from './renderFunctions-641a338d.js';
|
|
13
13
|
import { T as TAB, a as TABS, b as TAB_METADATA, I as INITIAL_PANE_STATUS, D as DASHBOARD_MANDATORY_COLUMNS, K as KIND } from './index-1aedc364.js';
|
|
14
|
-
import { b as buildFilterColumns, m as modifySearchProps, a as buildPaymentColumns, r as renderSplitIdentifier, c as renderRefundIdentifier, i as isSplitKind, d as isTransferKind, e as isConnectedKind, f as isRefundKind, g as isPlatformKind, p as processResponse, h as renderIdentifier, E as ExportModal } from './ExportModal-
|
|
14
|
+
import { b as buildFilterColumns, m as modifySearchProps, a as buildPaymentColumns, r as renderSplitIdentifier, c as renderRefundIdentifier, i as isSplitKind, d as isTransferKind, e as isConnectedKind, f as isRefundKind, g as isPlatformKind, p as processResponse, h as renderIdentifier, E as ExportModal } from './ExportModal-05feca63.js';
|
|
15
15
|
import { getQueryParams, buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
|
|
16
16
|
import { modify, mergeLeft, isEmpty, assoc } from 'ramda';
|
|
17
17
|
import { useHistory } from 'react-router-dom';
|
|
18
18
|
import { DEFAULT_SORT_PROPERTIES, SORT_DIRECTIONS } from './constants.js';
|
|
19
|
-
import { p as processDataIndex } from './index-
|
|
19
|
+
import { p as processDataIndex } from './index-385083ef.js';
|
|
20
20
|
import { DEFAULT_PAGE_SIZE, DEFAULT_PAGE_INDEX } from '@bigbinary/neeto-commons-frontend/constants';
|
|
21
21
|
import { useHiddenColumns } from '@bigbinary/neeto-molecules/Columns';
|
|
22
22
|
import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
|
|
23
23
|
import TableWrapper from '@bigbinary/neeto-molecules/TableWrapper';
|
|
24
24
|
import Table from '@bigbinary/neetoui/Table';
|
|
25
25
|
import NoData from '@bigbinary/neetoui/NoData';
|
|
26
|
-
import { u as useFetchStripeTransactions, a as useFetchConnectedStripeAccount } from './useConnectApi-
|
|
27
|
-
import { u as useFetchStripeRefunds, a as useFetchStripePlatformTransactions, b as useFetchStripePlatformSplits, c as useFetchStripePlatformTransaction, d as useFetchStripePlatformAccount } from './usePlatformApi-
|
|
26
|
+
import { u as useFetchStripeTransactions, a as useFetchConnectedStripeAccount } from './useConnectApi-36a92bd8.js';
|
|
27
|
+
import { u as useFetchStripeRefunds, a as useFetchStripePlatformTransactions, b as useFetchStripePlatformSplits, c as useFetchStripePlatformTransaction, d as useFetchStripePlatformAccount } from './usePlatformApi-3faabc82.js';
|
|
28
28
|
import Down from '@bigbinary/neeto-icons/Down';
|
|
29
29
|
import Right from '@bigbinary/neeto-icons/Right';
|
|
30
30
|
import Pane from '@bigbinary/neetoui/Pane';
|
|
@@ -38,7 +38,7 @@ import '@bigbinary/neeto-molecules/CopyToClipboardButton';
|
|
|
38
38
|
import '@bigbinary/neeto-icons/Download';
|
|
39
39
|
import '@bigbinary/neetoui/Modal';
|
|
40
40
|
import 'axios';
|
|
41
|
-
import './exportChannel-
|
|
41
|
+
import './exportChannel-23e4628c.js';
|
|
42
42
|
import './IdentifierButton-73cadb18.js';
|
|
43
43
|
import 'util';
|
|
44
44
|
import './queryConstants-7d91832f.js';
|
|
@@ -7,14 +7,14 @@ import { useTranslation } from 'react-i18next';
|
|
|
7
7
|
import { useMutation } from '@tanstack/react-query';
|
|
8
8
|
import axios from 'axios';
|
|
9
9
|
import { BASE_URL } from './constants.js';
|
|
10
|
-
import { u as useExportData, e as exportChannel } from './exportChannel-
|
|
11
|
-
import { a as buildStripeTransactionLink, c as buildStripeSplitLink, d as buildStripeTransferLink, b as buildStripeAccountLink, e as buildStripeRefundLink, u as uuidV4 } from './index-
|
|
10
|
+
import { u as useExportData, e as exportChannel } from './exportChannel-23e4628c.js';
|
|
11
|
+
import { a as buildStripeTransactionLink, c as buildStripeSplitLink, d as buildStripeTransferLink, b as buildStripeAccountLink, e as buildStripeRefundLink, u as uuidV4 } from './index-385083ef.js';
|
|
12
12
|
import { isPresent, snakeToCamelCase, filterBy } from '@bigbinary/neeto-cist';
|
|
13
13
|
import { curry, equals, sortBy, prop, concat, map, evolve } from 'ramda';
|
|
14
14
|
import { t } from 'i18next';
|
|
15
15
|
import Tag from '@bigbinary/neetoui/Tag';
|
|
16
16
|
import Tooltip from '@bigbinary/neetoui/Tooltip';
|
|
17
|
-
import { C as CopyButtonWrapper, c as renderDate, r as renderStatus } from './renderFunctions-
|
|
17
|
+
import { C as CopyButtonWrapper, c as renderDate, r as renderStatus } from './renderFunctions-641a338d.js';
|
|
18
18
|
import { I as IdentifierButton } from './IdentifierButton-73cadb18.js';
|
|
19
19
|
import { K as KIND, A as APPENDABLE_SEARCH_PROPS } from './index-1aedc364.js';
|
|
20
20
|
|
|
@@ -642,4 +642,4 @@ const ExportModal = _ref => {
|
|
|
642
642
|
};
|
|
643
643
|
|
|
644
644
|
export { ExportModal as E, buildPaymentColumns as a, buildFilterColumns as b, renderRefundIdentifier as c, isTransferKind as d, isConnectedKind as e, isRefundKind as f, isPlatformKind as g, renderIdentifier as h, isSplitKind as i, modifySearchProps as m, processResponse as p, renderSplitIdentifier as r };
|
|
645
|
-
//# sourceMappingURL=ExportModal-
|
|
645
|
+
//# sourceMappingURL=ExportModal-05feca63.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportModal-39bfc053.js","sources":["../app/javascript/src/apis/razorpay/exports.js","../app/javascript/src/hooks/reactQuery/razorpay/useExportsApi.js","../app/javascript/src/components/Dashboard/utils/renderFunctions.jsx","../app/javascript/src/components/Dashboard/utils/columns.js","../app/javascript/src/components/Dashboard/constants/columns.js","../app/javascript/src/components/Dashboard/utils/index.js","../app/javascript/src/components/Dashboard/ExportModal.jsx"],"sourcesContent":["import axios from \"axios\";\n\nimport { BASE_URL } from \"src/constants\";\n\nconst exportData = payload =>\n axios.post(`${BASE_URL}/api/v1/razorpay/exports`, payload);\n\nconst exportsApi = { exportData };\n\nexport default exportsApi;\n","import { useMutation } from \"@tanstack/react-query\";\n\nimport exportsApi from \"apis/razorpay/exports\";\n\nconst useExportRazorpayData = () =>\n useMutation({ mutationFn: exportsApi.exportData });\n\nexport { useExportRazorpayData };\n","import React from \"react\";\n\nimport { t } from \"i18next\";\nimport { isPresent } from \"neetocist\";\nimport { Button, Tag, Tooltip, Typography } from \"neetoui\";\nimport { curry } from \"ramda\";\n\nimport CopyButtonWrapper from \"components/Common/CopyButtonWrapper\";\nimport {\n buildStripeAccountLink,\n buildStripeRefundLink,\n buildStripeSplitLink,\n buildStripeTransactionLink,\n buildStripeTransferLink,\n} from \"utils\";\nimport { renderDate } from \"utils/renderFunctions\";\n\nimport IdentifierButton from \"../IdentifierButton\";\n\nexport const renderIdentifier = ({\n identifier = \"\",\n live: isLive = false,\n} = {}) => (\n <CopyButtonWrapper content={identifier}>\n <IdentifierButton\n href={buildStripeTransactionLink(identifier, isLive)}\n label={identifier}\n />\n </CopyButtonWrapper>\n);\n\nexport const renderKind = curry((type, kind) => (\n <Tooltip\n content={t(`neetoPayments.tooltipContent.${type}.${kind}`)}\n position=\"top\"\n >\n <div className=\"w-fit\">\n <Tag\n label={t(`neetoPayments.tagLabels.${type}.${kind}`)}\n style=\"secondary\"\n />\n </div>\n </Tooltip>\n));\n\nexport const renderSplitIdentifier = ({ identifier, live: isLive }) =>\n identifier ? (\n <CopyButtonWrapper content={identifier}>\n <IdentifierButton\n href={buildStripeSplitLink(identifier, isLive)}\n label={identifier}\n />\n </CopyButtonWrapper>\n ) : (\n <Tooltip\n content={t(\"neetoPayments.tooltipContent.identifierUnavailable\")}\n position=\"top\"\n >\n <div className=\"text-center\">\n <Typography style=\"body2\">\n {t(\"neetoPayments.common.notAvailable\")}\n </Typography>\n </div>\n </Tooltip>\n );\n\nexport const renderTransferIdentifier = ({\n identifier = \"\",\n account = {},\n live: isLive = false,\n} = {}) =>\n identifier ? (\n <CopyButtonWrapper content={identifier}>\n <IdentifierButton\n label={identifier}\n href={\n identifier.startsWith(\"py\")\n ? buildStripeTransferLink(identifier, account?.identifier, isLive)\n : buildStripeTransactionLink(identifier, isLive)\n }\n />\n </CopyButtonWrapper>\n ) : (\n <div className=\"text-center\">\n <Tooltip\n position=\"top\"\n content={t(\n \"neetoPayments.tooltipContent.connectedTransactionUnavailable\"\n )}\n >\n <Typography style=\"body2\">\n {t(\"neetoPayments.common.notAvailable\")}\n </Typography>\n </Tooltip>\n </div>\n );\n\nexport const renderPlatformIdentifier = curry((setPaneStatus, data) => (\n <CopyButtonWrapper content={data?.identifier}>\n <Button\n label={data?.identifier}\n size=\"small\"\n style=\"link\"\n onClick={() => setPaneStatus({ transactionId: data?.id, isOpen: true })}\n />\n </CopyButtonWrapper>\n));\n\nexport const renderAccountIdentifier = ({\n identifier = \"\",\n live: isLive = false,\n}) => (\n <CopyButtonWrapper content={identifier}>\n <IdentifierButton\n href={buildStripeAccountLink(identifier, isLive)}\n label={identifier}\n />\n </CopyButtonWrapper>\n);\n\nexport const renderSplitDate = date =>\n isPresent(date) ? (\n renderDate(date)\n ) : (\n <Tooltip\n content={t(\"neetoPayments.tooltipContent.dateUnavailable\")}\n position=\"top\"\n >\n <div className=\"text-center\">\n <Typography style=\"body2\">\n {t(\"neetoPayments.common.notAvailable\")}\n </Typography>\n </div>\n </Tooltip>\n );\n\nexport const renderRefundIdentifier = ({\n identifier = \"\",\n live: isLive = false,\n} = {}) => (\n <CopyButtonWrapper content={identifier}>\n <IdentifierButton\n href={buildStripeRefundLink(identifier, isLive)}\n label={identifier}\n />\n </CopyButtonWrapper>\n);\n","import { t } from \"i18next\";\n\nimport { renderPlatformIdentifier } from \"./renderFunctions\";\n\nexport const generateSpecialColumns = ({ setPaneStatus }) => [\n {\n title: t(\"neetoPayments.common.platformTransaction\"),\n dataIndex: \"paymentIntent\",\n key: \"paymentIntent\",\n width: \"290px\",\n position: 9,\n render: renderPlatformIdentifier(setPaneStatus),\n },\n];\n","import { t } from \"i18next\";\n\nimport { renderDate, renderStatus } from \"utils/renderFunctions\";\n\nimport {\n renderAccountIdentifier,\n renderIdentifier,\n renderRefundIdentifier,\n renderSplitDate,\n renderSplitIdentifier,\n renderTransferIdentifier,\n} from \"../utils/renderFunctions\";\n\nexport const COLUMNS = [\n {\n title: t(\"neetoPayments.common.id\"),\n dataIndex: \"id\",\n key: \"id\",\n width: \"72px\",\n position: 0,\n isHidable: false,\n },\n {\n title: t(\"neetoPayments.common.identifier\"),\n dataIndex: \"identifier\",\n key: \"identifier\",\n width: \"300px\",\n render: renderIdentifier,\n position: 1,\n isHidable: false,\n },\n {\n title: t(\"neetoPayments.common.identifier\"),\n dataIndex: \"identifier\",\n key: \"splitIdentifier\",\n width: \"300px\",\n render: renderSplitIdentifier,\n position: 1,\n isHidable: false,\n },\n {\n title: t(\"neetoPayments.common.identifier\"),\n dataIndex: \"identifier\",\n key: \"refundIdentifier\",\n width: \"300px\",\n render: renderRefundIdentifier,\n position: 1,\n isHidable: false,\n },\n {\n title: t(\"neetoPayments.common.identifier\"),\n dataIndex: \"identifier\",\n key: \"transferIdentifier\",\n width: \"300px\",\n render: renderTransferIdentifier,\n position: 1,\n isHidable: false,\n },\n {\n title: t(\"neetoPayments.common.status\"),\n dataIndex: \"status\",\n key: \"status\",\n width: \"150px\",\n render: renderStatus(\"transaction\"),\n sorter: true,\n position: 2,\n isHidable: false,\n },\n {\n title: t(\"neetoPayments.common.amount\"),\n dataIndex: \"amount\",\n key: \"amount\",\n width: \"150px\",\n sorter: true,\n position: 3,\n },\n {\n title: t(\"neetoPayments.common.platformShare\"),\n dataIndex: \"platformShare\",\n key: \"platformShare\",\n width: \"280px\",\n position: 3,\n },\n {\n title: t(\"neetoPayments.common.paymentTime\"),\n dataIndex: \"paymentAt\",\n key: \"paymentTime\",\n width: \"220px\",\n render: renderDate,\n sorter: true,\n position: 5,\n },\n {\n title: t(\"neetoPayments.common.refundTime\"),\n dataIndex: \"refunds\",\n key: \"refundsTime\",\n width: \"220px\",\n render: (refunds = []) => renderDate(refunds[0]?.updatedAt),\n position: 6,\n },\n {\n title: t(\"neetoPayments.common.status\"),\n dataIndex: \"status\",\n width: \"150px\",\n key: \"refundStatus\",\n render: renderStatus(\"refund\"),\n sorter: true,\n position: 3,\n isHidable: false,\n },\n {\n title: t(\"neetoPayments.common.paymentAmount\"),\n dataIndex: \"paymentAmount\",\n key: \"paymentAmount\",\n width: \"240px\",\n sorter: true,\n position: 4,\n },\n {\n title: t(\"neetoPayments.common.refundAmount\"),\n dataIndex: \"amount\",\n key: \"refundAmount\",\n width: \"200px\",\n sorter: true,\n position: 3,\n },\n {\n title: t(\"neetoPayments.common.refundTime\"),\n dataIndex: \"updatedAt\",\n key: \"refundTime\",\n width: \"220px\",\n render: renderDate,\n sorter: true,\n position: 9,\n },\n {\n title: t(\"neetoPayments.common.status\"),\n dataIndex: \"status\",\n key: \"splitStatus\",\n width: \"150px\",\n render: renderStatus(\"split\"),\n sorter: true,\n position: 3,\n isHidable: false,\n },\n {\n title: t(\"neetoPayments.common.transferTime\"),\n key: \"splitTime\",\n dataIndex: \"paymentAt\",\n width: \"220px\",\n render: renderSplitDate,\n sorter: true,\n position: 7,\n },\n {\n title: t(\"neetoPayments.common.paymentIdentifier\"),\n key: \"refundPaymentIdentifier\",\n dataIndex: \"transaction\",\n width: \"300px\",\n render: renderTransferIdentifier,\n position: 8,\n },\n {\n title: t(\"neetoPayments.common.connectedTransaction\"),\n dataIndex: \"connectedPayment\",\n key: \"connectedPayment\",\n width: \"300px\",\n render: renderTransferIdentifier,\n position: 9,\n },\n {\n title: t(\"neetoPayments.common.accountIdentifier\"),\n dataIndex: \"account\",\n key: \"destinationAccount\",\n width: \"160px\",\n render: renderAccountIdentifier,\n position: 10,\n },\n];\n\nexport const COLUMN_METADATA = {\n identifier: {\n isHidden: { split: true, transfer: true, refund: true },\n },\n amount: { isHidden: { refund: true } },\n paymentTime: { isHidden: { refund: true, split: true } },\n splitIdentifier: {\n isHidden: {\n platform: true,\n refund: true,\n connected: true,\n transfer: true,\n pending: true,\n },\n },\n transferIdentifier: {\n isHidden: {\n platform: true,\n split: true,\n connected: true,\n refund: true,\n },\n },\n platformShare: {\n isHidden: {\n platform: true,\n connected: true,\n transfer: true,\n refund: true,\n },\n },\n status: {\n isHidden: {\n refund: true,\n split: true,\n declined: true,\n pending: true,\n successful: true,\n refunded: true,\n },\n },\n refundStatus: {\n isHidden: {\n platform: true,\n split: true,\n connected: true,\n transfer: true,\n failed: true,\n pending: true,\n successful: true,\n },\n },\n refundAmount: {\n isHidden: {\n platform: true,\n split: true,\n connected: true,\n transfer: true,\n },\n },\n refundTime: {\n isHidden: {\n platform: true,\n split: true,\n connected: true,\n transfer: true,\n },\n },\n splitStatus: {\n isHidden: {\n platform: true,\n refund: true,\n connected: true,\n transfer: true,\n declined: true,\n pending: true,\n successful: true,\n cancelled: true,\n },\n },\n splitTime: {\n isHidden: {\n platform: true,\n refund: true,\n connected: true,\n transfer: true,\n },\n },\n paymentIntent: {\n isHidden: {\n platform: true,\n refund: true,\n connected: true,\n transfer: true,\n },\n },\n connectedPayment: {\n isHidden: {\n platform: true,\n refund: true,\n connected: true,\n transfer: true,\n pending: true,\n },\n },\n refundPaymentIdentifier: {\n isHidden: {\n platform: true,\n split: true,\n connected: true,\n transfer: true,\n },\n },\n refundIdentifier: {\n isHidden: {\n platform: true,\n split: true,\n connected: true,\n transfer: true,\n },\n },\n destinationAccount: {\n isHidden: {\n platform: true,\n refund: true,\n connected: true,\n transfer: true,\n },\n },\n paymentAmount: {\n isHidden: {\n platform: true,\n split: true,\n connected: true,\n transfer: true,\n },\n },\n refundsTime: {\n isHidden: {\n split: true,\n all: true,\n declined: true,\n pending: true,\n successful: true,\n },\n },\n};\n\nexport const FILTER_COLUMNS = [\n {\n key: \"amount\",\n label: t(\"neetoPayments.common.amount\"),\n node: \"amount\",\n type: \"decimal\",\n showRuleSelector: true,\n },\n {\n key: \"payment_amount\",\n label: t(\"neetoPayments.common.paymentAmount\"),\n node: \"payment_intent.amount\",\n model: \"NeetoPaymentsEngine::Stripe::Transaction\",\n type: \"decimal\",\n showRuleSelector: true,\n },\n {\n key: \"refund_amount\",\n label: t(\"neetoPayments.common.refundAmount\"),\n node: \"amount\",\n type: \"decimal\",\n showRuleSelector: true,\n },\n {\n key: \"payment_time\",\n label: t(\"neetoPayments.common.paymentTime\"),\n node: \"payment_at\",\n type: \"date\",\n showRuleSelector: true,\n },\n {\n key: \"refund_time\",\n label: t(\"neetoPayments.common.refundTime\"),\n node: \"updated_at\",\n type: \"date\",\n showRuleSelector: true,\n },\n {\n key: \"split_time\",\n label: t(\"neetoPayments.common.transferTime\"),\n node: \"payment_at\",\n type: \"date\",\n showRuleSelector: true,\n },\n];\n","import { filterBy, snakeToCamelCase } from \"neetocist\";\nimport { map, prop, equals, concat, evolve, sortBy } from \"ramda\";\n\nimport { generateSpecialColumns } from \"./columns\";\n\nimport { APPENDABLE_SEARCH_PROPS, KIND } from \"../constants\";\nimport { FILTER_COLUMNS, COLUMNS, COLUMN_METADATA } from \"../constants/columns\";\n\nexport const isPlatformKind = equals(KIND.platform);\nexport const isConnectedKind = equals(KIND.connected);\nexport const isSplitKind = equals(KIND.split);\nexport const isTransferKind = equals(KIND.transfer);\nexport const isRefundKind = equals(KIND.refund);\n\nexport const buildPaymentColumns = ({\n tab,\n kind,\n payableEntityColumns = [],\n specialColumnArguments = {},\n}) =>\n sortBy(\n prop(\"position\"),\n COLUMNS.concat(generateSpecialColumns(specialColumnArguments))\n .filter(\n ({ key }) =>\n !(\n COLUMN_METADATA[key]?.isHidden?.[kind] ||\n COLUMN_METADATA[key]?.isHidden?.[tab]\n )\n )\n .concat(\n payableEntityColumns.filter(\n ({ isHidden }) => !(isHidden?.[tab] || isHidden?.[kind])\n )\n )\n );\n\nexport const buildFilterColumns = (tab, kind, payableEntityColumns = []) => {\n const filterColumns = FILTER_COLUMNS.filter(\n ({ key }) => !COLUMN_METADATA[snakeToCamelCase(key)]?.isHidden?.[kind]\n );\n\n return concat(\n filterColumns,\n map(\n prop(\"filterProps\"),\n filterBy(\n {\n isFilterable: true,\n isHidden: isHidden => !(isHidden?.[tab] || isHidden?.[kind]),\n },\n payableEntityColumns\n )\n )\n );\n};\n\nexport const processResponse = (data, kind) => {\n if (isSplitKind(kind)) return data?.splits;\n\n if (isRefundKind(kind)) return data?.refunds;\n\n return data?.transactions;\n};\n\nexport const modifySearchProps = ({ searchProps, kind }) =>\n evolve(\n {\n node: concat(APPENDABLE_SEARCH_PROPS[kind]?.node),\n model: concat(APPENDABLE_SEARCH_PROPS[kind]?.model),\n },\n searchProps\n );\n","import React, { useEffect, useMemo, useState } from \"react\";\n\nimport { Download } from \"neetoicons\";\nimport { Button, Modal, Typography } from \"neetoui\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { useExportRazorpayData } from \"hooks/reactQuery/razorpay/useExportsApi\";\nimport { useExportData } from \"hooks/reactQuery/stripe/useExportsApi\";\nimport exportChannel from \"src/channels/exportChannel\";\nimport { uuidV4 } from \"utils\";\n\nimport { isTransferKind } from \"./utils\";\n\nconst ExportModal = ({\n showExportModal,\n setShowExportModal,\n kind,\n tab,\n filters,\n holdableId,\n sortProperties = {},\n}) => {\n const { t } = useTranslation();\n const [downloadUrl, setDownloadUrl] = useState(\"\");\n const [isGenerating, setIsGenerating] = useState(false);\n\n const { mutate: exportRazorpayPaymentsCsv, isPending: isRazorpayLoading } =\n useExportRazorpayData();\n const { mutate: exportCsv, isPending } = useExportData();\n const isFileLoading = isPending || isGenerating || isRazorpayLoading;\n\n const token = useMemo(() => `${kind}-report-${uuidV4()}`, [kind]);\n\n const receivedCallback = data => {\n if (!data.download_url) return;\n setDownloadUrl(data.download_url);\n setIsGenerating(false);\n };\n\n const handleGenerateClick = () => {\n const payload = {\n kind: isTransferKind(kind) ? \"connected\" : kind,\n token,\n filters,\n tab,\n holdableId,\n ...sortProperties,\n };\n\n if (kind === \"razorpayPayment\") {\n return exportRazorpayPaymentsCsv(payload, {\n onSuccess: () => {\n setDownloadUrl(\"\");\n setIsGenerating(true);\n },\n });\n }\n\n return exportCsv(payload, {\n onSuccess: () => {\n setDownloadUrl(\"\");\n setIsGenerating(true);\n },\n });\n };\n\n useEffect(() => {\n if (showExportModal) {\n const channel = exportChannel(token, receivedCallback);\n setDownloadUrl(\"\");\n setIsGenerating(false);\n\n return () => {\n channel.disconnected();\n };\n }\n\n return undefined;\n }, [showExportModal, token]);\n\n const onClose = () => setShowExportModal(false);\n\n return (\n <Modal {...{ onClose }} isOpen={showExportModal}>\n <Modal.Header>\n <Typography style=\"h2\">\n {t(`neetoPayments.export.title.${kind}`)}\n </Typography>\n </Modal.Header>\n <Modal.Body>\n {isFileLoading ? (\n <Typography style=\"body2\">\n {t(\"neetoPayments.export.pleaseWait\")}\n </Typography>\n ) : (\n <Typography style=\"body2\">\n {downloadUrl\n ? t(\"neetoPayments.export.fileReady\")\n : t(`neetoPayments.export.download.${kind}`)}\n </Typography>\n )}\n </Modal.Body>\n <Modal.Footer className=\"space-x-2\">\n {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={isFileLoading}\n label={t(\"neetoPayments.common.cancel\")}\n style=\"tertiary\"\n onClick={onClose}\n />\n <Button\n disabled={isFileLoading}\n label={t(\"neetoPayments.common.export\")}\n loading={isFileLoading}\n onClick={handleGenerateClick}\n />\n </>\n )}\n </Modal.Footer>\n </Modal>\n );\n};\n\nexport default ExportModal;\n"],"names":["exportData","payload","axios","post","BASE_URL","exportsApi","useExportRazorpayData","useMutation","mutationFn","renderIdentifier","identifier","live","isLive","arguments","length","undefined","React","createElement","CopyButtonWrapper","content","IdentifierButton","href","buildStripeTransactionLink","label","curry","type","kind","Tooltip","t","position","className","Tag","style","renderSplitIdentifier","_ref","buildStripeSplitLink","Typography","renderTransferIdentifier","account","startsWith","buildStripeTransferLink","renderPlatformIdentifier","setPaneStatus","data","Button","size","onClick","transactionId","id","isOpen","renderAccountIdentifier","_ref2","buildStripeAccountLink","renderSplitDate","date","isPresent","renderDate","renderRefundIdentifier","buildStripeRefundLink","generateSpecialColumns","title","dataIndex","key","width","render","COLUMNS","isHidable","renderStatus","sorter","refunds","updatedAt","COLUMN_METADATA","isHidden","split","transfer","refund","amount","paymentTime","splitIdentifier","platform","connected","pending","transferIdentifier","platformShare","status","declined","successful","refunded","refundStatus","failed","refundAmount","refundTime","splitStatus","cancelled","splitTime","paymentIntent","connectedPayment","refundPaymentIdentifier","refundIdentifier","destinationAccount","paymentAmount","refundsTime","all","FILTER_COLUMNS","node","showRuleSelector","model","isPlatformKind","equals","KIND","isConnectedKind","isSplitKind","isTransferKind","isRefundKind","buildPaymentColumns","tab","payableEntityColumns","specialColumnArguments","sortBy","prop","concat","filter","_ref3","buildFilterColumns","filterColumns","_ref4","snakeToCamelCase","map","filterBy","isFilterable","processResponse","splits","transactions","modifySearchProps","_ref5","searchProps","evolve","APPENDABLE_SEARCH_PROPS","ExportModal","showExportModal","setShowExportModal","filters","holdableId","sortProperties","useTranslation","downloadUrl","setDownloadUrl","useState","isGenerating","setIsGenerating","mutate","exportRazorpayPaymentsCsv","isPending","isRazorpayLoading","exportCsv","useExportData","isFileLoading","token","useMemo","uuidV4","receivedCallback","download_url","handleGenerateClick","onSuccess","useEffect","channel","exportChannel","disconnected","onClose","Modal","Header","Body","Footer","icon","Download","Fragment","disabled","loading"],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,MAAMA,UAAU,GAAGC,OAAO,IACxBC,KAAK,CAACC,IAAI,CAAE,CAAEC,EAAAA,QAAS,CAAyB,wBAAA,CAAA,EAAEH,OAAO,CAAC,CAAA;AAE5D,MAAMI,UAAU,GAAG;AAAEL,EAAAA,UAAAA;AAAW,CAAC;;ACHjC,MAAMM,qBAAqB,GAAGA,MAC5BC,WAAW,CAAC;EAAEC,UAAU,EAAEH,UAAU,CAACL,UAAAA;AAAW,CAAC,CAAC;;ACcvCS,MAAAA,gBAAgB,GAAG,YAAA;EAAA,IAAC;AAC/BC,IAAAA,UAAU,GAAG,EAAE;IACfC,IAAI,EAAEC,MAAM,GAAG,KAAA;AACjB,GAAC,GAAAC,SAAA,CAAAC,MAAA,GAAAD,CAAAA,IAAAA,SAAA,CAAAE,CAAAA,CAAAA,KAAAA,SAAA,GAAAF,SAAA,CAAG,CAAA,CAAA,GAAA,EAAE,CAAA;AAAA,EAAA,oBACJG,cAAA,CAAAC,aAAA,CAACC,iBAAiB,EAAA;AAACC,IAAAA,OAAO,EAAET,UAAAA;AAAW,GAAA,eACrCM,cAAA,CAAAC,aAAA,CAACG,gBAAgB,EAAA;AACfC,IAAAA,IAAI,EAAEC,0BAA0B,CAACZ,UAAU,EAAEE,MAAM,CAAE;AACrDW,IAAAA,KAAK,EAAEb,UAAAA;AAAW,GACnB,CACgB,CAAC,CAAA;AAAA,EACrB;AAEyBc,KAAK,CAAC,CAACC,IAAI,EAAEC,IAAI,kBACzCV,cAAA,CAAAC,aAAA,CAACU,OAAO,EAAA;EACNR,OAAO,EAAES,CAAC,C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eACbV,cAAA,CAAAC,aAAA,CAACwJ,KAAK,CAACG,MAAM,EAAA;AAAC9I,IAAAA,SAAS,EAAC,WAAA;AAAW,GAAA,EAChCmH,WAAW,gBACVjI,cAAA,CAAAC,aAAA,CAAC2B,MAAM,EAAA;AACLvB,IAAAA,IAAI,EAAE4H,WAAY;AAClB4B,IAAAA,IAAI,EAAEC,QAAS;AACfvJ,IAAAA,KAAK,EAAEK,CAAC,CAAC,+BAA+B,CAAE;AAC1CkB,IAAAA,OAAO,EAAE0H,OAAAA;AAAQ,GAClB,CAAC,gBAEFxJ,cAAA,CAAAC,aAAA,CAAAD,cAAA,CAAA+J,QAAA,EACE/J,IAAAA,eAAAA,cAAA,CAAAC,aAAA,CAAC2B,MAAM,EAAA;AACLoI,IAAAA,QAAQ,EAAEpB,aAAc;AACxBrI,IAAAA,KAAK,EAAEK,CAAC,CAAC,6BAA6B,CAAE;AACxCI,IAAAA,KAAK,EAAC,UAAU;AAChBc,IAAAA,OAAO,EAAE0H,OAAAA;AAAQ,GAClB,CAAC,eACFxJ,cAAA,CAAAC,aAAA,CAAC2B,MAAM,EAAA;AACLoI,IAAAA,QAAQ,EAAEpB,aAAc;AACxBrI,IAAAA,KAAK,EAAEK,CAAC,CAAC,6BAA6B,CAAE;AACxCqJ,IAAAA,OAAO,EAAErB,aAAc;AACvB9G,IAAAA,OAAO,EAAEoH,mBAAAA;GACV,CACD,CAEQ,CACT,CAAC,CAAA;AAEZ;;;;"}
|
|
1
|
+
{"version":3,"file":"ExportModal-05feca63.js","sources":["../app/javascript/src/apis/razorpay/exports.js","../app/javascript/src/hooks/reactQuery/razorpay/useExportsApi.js","../app/javascript/src/components/Dashboard/utils/renderFunctions.jsx","../app/javascript/src/components/Dashboard/utils/columns.js","../app/javascript/src/components/Dashboard/constants/columns.js","../app/javascript/src/components/Dashboard/utils/index.js","../app/javascript/src/components/Dashboard/ExportModal.jsx"],"sourcesContent":["import axios from \"axios\";\n\nimport { BASE_URL } from \"src/constants\";\n\nconst exportData = payload =>\n axios.post(`${BASE_URL}/api/v1/razorpay/exports`, payload);\n\nconst exportsApi = { exportData };\n\nexport default exportsApi;\n","import { useMutation } from \"@tanstack/react-query\";\n\nimport exportsApi from \"apis/razorpay/exports\";\n\nconst useExportRazorpayData = () =>\n useMutation({ mutationFn: exportsApi.exportData });\n\nexport { useExportRazorpayData };\n","import React from \"react\";\n\nimport { t } from \"i18next\";\nimport { isPresent } from \"neetocist\";\nimport { Button, Tag, Tooltip, Typography } from \"neetoui\";\nimport { curry } from \"ramda\";\n\nimport CopyButtonWrapper from \"components/Common/CopyButtonWrapper\";\nimport {\n buildStripeAccountLink,\n buildStripeRefundLink,\n buildStripeSplitLink,\n buildStripeTransactionLink,\n buildStripeTransferLink,\n} from \"utils\";\nimport { renderDate } from \"utils/renderFunctions\";\n\nimport IdentifierButton from \"../IdentifierButton\";\n\nexport const renderIdentifier = ({\n identifier = \"\",\n live: isLive = false,\n} = {}) => (\n <CopyButtonWrapper content={identifier}>\n <IdentifierButton\n href={buildStripeTransactionLink(identifier, isLive)}\n label={identifier}\n />\n </CopyButtonWrapper>\n);\n\nexport const renderKind = curry((type, kind) => (\n <Tooltip\n content={t(`neetoPayments.tooltipContent.${type}.${kind}`)}\n position=\"top\"\n >\n <div className=\"w-fit\">\n <Tag\n label={t(`neetoPayments.tagLabels.${type}.${kind}`)}\n style=\"secondary\"\n />\n </div>\n </Tooltip>\n));\n\nexport const renderSplitIdentifier = ({ identifier, live: isLive }) =>\n identifier ? (\n <CopyButtonWrapper content={identifier}>\n <IdentifierButton\n href={buildStripeSplitLink(identifier, isLive)}\n label={identifier}\n />\n </CopyButtonWrapper>\n ) : (\n <Tooltip\n content={t(\"neetoPayments.tooltipContent.identifierUnavailable\")}\n position=\"top\"\n >\n <div className=\"text-center\">\n <Typography style=\"body2\">\n {t(\"neetoPayments.common.notAvailable\")}\n </Typography>\n </div>\n </Tooltip>\n );\n\nexport const renderTransferIdentifier = ({\n identifier = \"\",\n account = {},\n live: isLive = false,\n} = {}) =>\n identifier ? (\n <CopyButtonWrapper content={identifier}>\n <IdentifierButton\n label={identifier}\n href={\n identifier.startsWith(\"py\")\n ? buildStripeTransferLink(identifier, account?.identifier, isLive)\n : buildStripeTransactionLink(identifier, isLive)\n }\n />\n </CopyButtonWrapper>\n ) : (\n <div className=\"text-center\">\n <Tooltip\n position=\"top\"\n content={t(\n \"neetoPayments.tooltipContent.connectedTransactionUnavailable\"\n )}\n >\n <Typography style=\"body2\">\n {t(\"neetoPayments.common.notAvailable\")}\n </Typography>\n </Tooltip>\n </div>\n );\n\nexport const renderPlatformIdentifier = curry((setPaneStatus, data) => (\n <CopyButtonWrapper content={data?.identifier}>\n <Button\n label={data?.identifier}\n size=\"small\"\n style=\"link\"\n onClick={() => setPaneStatus({ transactionId: data?.id, isOpen: true })}\n />\n </CopyButtonWrapper>\n));\n\nexport const renderAccountIdentifier = ({\n identifier = \"\",\n live: isLive = false,\n}) => (\n <CopyButtonWrapper content={identifier}>\n <IdentifierButton\n href={buildStripeAccountLink(identifier, isLive)}\n label={identifier}\n />\n </CopyButtonWrapper>\n);\n\nexport const renderSplitDate = date =>\n isPresent(date) ? (\n renderDate(date)\n ) : (\n <Tooltip\n content={t(\"neetoPayments.tooltipContent.dateUnavailable\")}\n position=\"top\"\n >\n <div className=\"text-center\">\n <Typography style=\"body2\">\n {t(\"neetoPayments.common.notAvailable\")}\n </Typography>\n </div>\n </Tooltip>\n );\n\nexport const renderRefundIdentifier = ({\n identifier = \"\",\n live: isLive = false,\n} = {}) => (\n <CopyButtonWrapper content={identifier}>\n <IdentifierButton\n href={buildStripeRefundLink(identifier, isLive)}\n label={identifier}\n />\n </CopyButtonWrapper>\n);\n","import { t } from \"i18next\";\n\nimport { renderPlatformIdentifier } from \"./renderFunctions\";\n\nexport const generateSpecialColumns = ({ setPaneStatus }) => [\n {\n title: t(\"neetoPayments.common.platformTransaction\"),\n dataIndex: \"paymentIntent\",\n key: \"paymentIntent\",\n width: \"290px\",\n position: 9,\n render: renderPlatformIdentifier(setPaneStatus),\n },\n];\n","import { t } from \"i18next\";\n\nimport { renderDate, renderStatus } from \"utils/renderFunctions\";\n\nimport {\n renderAccountIdentifier,\n renderIdentifier,\n renderRefundIdentifier,\n renderSplitDate,\n renderSplitIdentifier,\n renderTransferIdentifier,\n} from \"../utils/renderFunctions\";\n\nexport const COLUMNS = [\n {\n title: t(\"neetoPayments.common.id\"),\n dataIndex: \"id\",\n key: \"id\",\n width: \"72px\",\n position: 0,\n isHidable: false,\n },\n {\n title: t(\"neetoPayments.common.identifier\"),\n dataIndex: \"identifier\",\n key: \"identifier\",\n width: \"300px\",\n render: renderIdentifier,\n position: 1,\n isHidable: false,\n },\n {\n title: t(\"neetoPayments.common.identifier\"),\n dataIndex: \"identifier\",\n key: \"splitIdentifier\",\n width: \"300px\",\n render: renderSplitIdentifier,\n position: 1,\n isHidable: false,\n },\n {\n title: t(\"neetoPayments.common.identifier\"),\n dataIndex: \"identifier\",\n key: \"refundIdentifier\",\n width: \"300px\",\n render: renderRefundIdentifier,\n position: 1,\n isHidable: false,\n },\n {\n title: t(\"neetoPayments.common.identifier\"),\n dataIndex: \"identifier\",\n key: \"transferIdentifier\",\n width: \"300px\",\n render: renderTransferIdentifier,\n position: 1,\n isHidable: false,\n },\n {\n title: t(\"neetoPayments.common.status\"),\n dataIndex: \"status\",\n key: \"status\",\n width: \"150px\",\n render: renderStatus(\"transaction\"),\n sorter: true,\n position: 2,\n isHidable: false,\n },\n {\n title: t(\"neetoPayments.common.amount\"),\n dataIndex: \"amount\",\n key: \"amount\",\n width: \"150px\",\n sorter: true,\n position: 3,\n },\n {\n title: t(\"neetoPayments.common.platformShare\"),\n dataIndex: \"platformShare\",\n key: \"platformShare\",\n width: \"280px\",\n position: 3,\n },\n {\n title: t(\"neetoPayments.common.paymentTime\"),\n dataIndex: \"paymentAt\",\n key: \"paymentTime\",\n width: \"220px\",\n render: renderDate,\n sorter: true,\n position: 5,\n },\n {\n title: t(\"neetoPayments.common.refundTime\"),\n dataIndex: \"refunds\",\n key: \"refundsTime\",\n width: \"220px\",\n render: (refunds = []) => renderDate(refunds[0]?.updatedAt),\n position: 6,\n },\n {\n title: t(\"neetoPayments.common.status\"),\n dataIndex: \"status\",\n width: \"150px\",\n key: \"refundStatus\",\n render: renderStatus(\"refund\"),\n sorter: true,\n position: 3,\n isHidable: false,\n },\n {\n title: t(\"neetoPayments.common.paymentAmount\"),\n dataIndex: \"paymentAmount\",\n key: \"paymentAmount\",\n width: \"240px\",\n sorter: true,\n position: 4,\n },\n {\n title: t(\"neetoPayments.common.refundAmount\"),\n dataIndex: \"amount\",\n key: \"refundAmount\",\n width: \"200px\",\n sorter: true,\n position: 3,\n },\n {\n title: t(\"neetoPayments.common.refundTime\"),\n dataIndex: \"updatedAt\",\n key: \"refundTime\",\n width: \"220px\",\n render: renderDate,\n sorter: true,\n position: 9,\n },\n {\n title: t(\"neetoPayments.common.status\"),\n dataIndex: \"status\",\n key: \"splitStatus\",\n width: \"150px\",\n render: renderStatus(\"split\"),\n sorter: true,\n position: 3,\n isHidable: false,\n },\n {\n title: t(\"neetoPayments.common.transferTime\"),\n key: \"splitTime\",\n dataIndex: \"paymentAt\",\n width: \"220px\",\n render: renderSplitDate,\n sorter: true,\n position: 7,\n },\n {\n title: t(\"neetoPayments.common.paymentIdentifier\"),\n key: \"refundPaymentIdentifier\",\n dataIndex: \"transaction\",\n width: \"300px\",\n render: renderTransferIdentifier,\n position: 8,\n },\n {\n title: t(\"neetoPayments.common.connectedTransaction\"),\n dataIndex: \"connectedPayment\",\n key: \"connectedPayment\",\n width: \"300px\",\n render: renderTransferIdentifier,\n position: 9,\n },\n {\n title: t(\"neetoPayments.common.accountIdentifier\"),\n dataIndex: \"account\",\n key: \"destinationAccount\",\n width: \"160px\",\n render: renderAccountIdentifier,\n position: 10,\n },\n];\n\nexport const COLUMN_METADATA = {\n identifier: {\n isHidden: { split: true, transfer: true, refund: true },\n },\n amount: { isHidden: { refund: true } },\n paymentTime: { isHidden: { refund: true, split: true } },\n splitIdentifier: {\n isHidden: {\n platform: true,\n refund: true,\n connected: true,\n transfer: true,\n pending: true,\n },\n },\n transferIdentifier: {\n isHidden: {\n platform: true,\n split: true,\n connected: true,\n refund: true,\n },\n },\n platformShare: {\n isHidden: {\n platform: true,\n connected: true,\n transfer: true,\n refund: true,\n },\n },\n status: {\n isHidden: {\n refund: true,\n split: true,\n declined: true,\n pending: true,\n successful: true,\n refunded: true,\n },\n },\n refundStatus: {\n isHidden: {\n platform: true,\n split: true,\n connected: true,\n transfer: true,\n failed: true,\n pending: true,\n successful: true,\n },\n },\n refundAmount: {\n isHidden: {\n platform: true,\n split: true,\n connected: true,\n transfer: true,\n },\n },\n refundTime: {\n isHidden: {\n platform: true,\n split: true,\n connected: true,\n transfer: true,\n },\n },\n splitStatus: {\n isHidden: {\n platform: true,\n refund: true,\n connected: true,\n transfer: true,\n declined: true,\n pending: true,\n successful: true,\n cancelled: true,\n },\n },\n splitTime: {\n isHidden: {\n platform: true,\n refund: true,\n connected: true,\n transfer: true,\n },\n },\n paymentIntent: {\n isHidden: {\n platform: true,\n refund: true,\n connected: true,\n transfer: true,\n },\n },\n connectedPayment: {\n isHidden: {\n platform: true,\n refund: true,\n connected: true,\n transfer: true,\n pending: true,\n },\n },\n refundPaymentIdentifier: {\n isHidden: {\n platform: true,\n split: true,\n connected: true,\n transfer: true,\n },\n },\n refundIdentifier: {\n isHidden: {\n platform: true,\n split: true,\n connected: true,\n transfer: true,\n },\n },\n destinationAccount: {\n isHidden: {\n platform: true,\n refund: true,\n connected: true,\n transfer: true,\n },\n },\n paymentAmount: {\n isHidden: {\n platform: true,\n split: true,\n connected: true,\n transfer: true,\n },\n },\n refundsTime: {\n isHidden: {\n split: true,\n all: true,\n declined: true,\n pending: true,\n successful: true,\n },\n },\n};\n\nexport const FILTER_COLUMNS = [\n {\n key: \"amount\",\n label: t(\"neetoPayments.common.amount\"),\n node: \"amount\",\n type: \"decimal\",\n showRuleSelector: true,\n },\n {\n key: \"payment_amount\",\n label: t(\"neetoPayments.common.paymentAmount\"),\n node: \"payment_intent.amount\",\n model: \"NeetoPaymentsEngine::Stripe::Transaction\",\n type: \"decimal\",\n showRuleSelector: true,\n },\n {\n key: \"refund_amount\",\n label: t(\"neetoPayments.common.refundAmount\"),\n node: \"amount\",\n type: \"decimal\",\n showRuleSelector: true,\n },\n {\n key: \"payment_time\",\n label: t(\"neetoPayments.common.paymentTime\"),\n node: \"payment_at\",\n type: \"date\",\n showRuleSelector: true,\n },\n {\n key: \"refund_time\",\n label: t(\"neetoPayments.common.refundTime\"),\n node: \"updated_at\",\n type: \"date\",\n showRuleSelector: true,\n },\n {\n key: \"split_time\",\n label: t(\"neetoPayments.common.transferTime\"),\n node: \"payment_at\",\n type: \"date\",\n showRuleSelector: true,\n },\n];\n","import { filterBy, snakeToCamelCase } from \"neetocist\";\nimport { map, prop, equals, concat, evolve, sortBy } from \"ramda\";\n\nimport { generateSpecialColumns } from \"./columns\";\n\nimport { APPENDABLE_SEARCH_PROPS, KIND } from \"../constants\";\nimport { FILTER_COLUMNS, COLUMNS, COLUMN_METADATA } from \"../constants/columns\";\n\nexport const isPlatformKind = equals(KIND.platform);\nexport const isConnectedKind = equals(KIND.connected);\nexport const isSplitKind = equals(KIND.split);\nexport const isTransferKind = equals(KIND.transfer);\nexport const isRefundKind = equals(KIND.refund);\n\nexport const buildPaymentColumns = ({\n tab,\n kind,\n payableEntityColumns = [],\n specialColumnArguments = {},\n}) =>\n sortBy(\n prop(\"position\"),\n COLUMNS.concat(generateSpecialColumns(specialColumnArguments))\n .filter(\n ({ key }) =>\n !(\n COLUMN_METADATA[key]?.isHidden?.[kind] ||\n COLUMN_METADATA[key]?.isHidden?.[tab]\n )\n )\n .concat(\n payableEntityColumns.filter(\n ({ isHidden }) => !(isHidden?.[tab] || isHidden?.[kind])\n )\n )\n );\n\nexport const buildFilterColumns = (tab, kind, payableEntityColumns = []) => {\n const filterColumns = FILTER_COLUMNS.filter(\n ({ key }) => !COLUMN_METADATA[snakeToCamelCase(key)]?.isHidden?.[kind]\n );\n\n return concat(\n filterColumns,\n map(\n prop(\"filterProps\"),\n filterBy(\n {\n isFilterable: true,\n isHidden: isHidden => !(isHidden?.[tab] || isHidden?.[kind]),\n },\n payableEntityColumns\n )\n )\n );\n};\n\nexport const processResponse = (data, kind) => {\n if (isSplitKind(kind)) return data?.splits;\n\n if (isRefundKind(kind)) return data?.refunds;\n\n return data?.transactions;\n};\n\nexport const modifySearchProps = ({ searchProps, kind }) =>\n evolve(\n {\n node: concat(APPENDABLE_SEARCH_PROPS[kind]?.node),\n model: concat(APPENDABLE_SEARCH_PROPS[kind]?.model),\n },\n searchProps\n );\n","import React, { useEffect, useMemo, useState } from \"react\";\n\nimport { Download } from \"neetoicons\";\nimport { Button, Modal, Typography } from \"neetoui\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { useExportRazorpayData } from \"hooks/reactQuery/razorpay/useExportsApi\";\nimport { useExportData } from \"hooks/reactQuery/stripe/useExportsApi\";\nimport exportChannel from \"src/channels/exportChannel\";\nimport { uuidV4 } from \"utils\";\n\nimport { isTransferKind } from \"./utils\";\n\nconst ExportModal = ({\n showExportModal,\n setShowExportModal,\n kind,\n tab,\n filters,\n holdableId,\n sortProperties = {},\n}) => {\n const { t } = useTranslation();\n const [downloadUrl, setDownloadUrl] = useState(\"\");\n const [isGenerating, setIsGenerating] = useState(false);\n\n const { mutate: exportRazorpayPaymentsCsv, isPending: isRazorpayLoading } =\n useExportRazorpayData();\n const { mutate: exportCsv, isPending } = useExportData();\n const isFileLoading = isPending || isGenerating || isRazorpayLoading;\n\n const token = useMemo(() => `${kind}-report-${uuidV4()}`, [kind]);\n\n const receivedCallback = data => {\n if (!data.download_url) return;\n setDownloadUrl(data.download_url);\n setIsGenerating(false);\n };\n\n const handleGenerateClick = () => {\n const payload = {\n kind: isTransferKind(kind) ? \"connected\" : kind,\n token,\n filters,\n tab,\n holdableId,\n ...sortProperties,\n };\n\n if (kind === \"razorpayPayment\") {\n return exportRazorpayPaymentsCsv(payload, {\n onSuccess: () => {\n setDownloadUrl(\"\");\n setIsGenerating(true);\n },\n });\n }\n\n return exportCsv(payload, {\n onSuccess: () => {\n setDownloadUrl(\"\");\n setIsGenerating(true);\n },\n });\n };\n\n useEffect(() => {\n if (showExportModal) {\n const channel = exportChannel(token, receivedCallback);\n setDownloadUrl(\"\");\n setIsGenerating(false);\n\n return () => {\n channel.disconnected();\n };\n }\n\n return undefined;\n }, [showExportModal, token]);\n\n const onClose = () => setShowExportModal(false);\n\n return (\n <Modal {...{ onClose }} isOpen={showExportModal}>\n <Modal.Header>\n <Typography style=\"h2\">\n {t(`neetoPayments.export.title.${kind}`)}\n </Typography>\n </Modal.Header>\n <Modal.Body>\n {isFileLoading ? (\n <Typography style=\"body2\">\n {t(\"neetoPayments.export.pleaseWait\")}\n </Typography>\n ) : (\n <Typography style=\"body2\">\n {downloadUrl\n ? t(\"neetoPayments.export.fileReady\")\n : t(`neetoPayments.export.download.${kind}`)}\n </Typography>\n )}\n </Modal.Body>\n <Modal.Footer className=\"space-x-2\">\n {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={isFileLoading}\n label={t(\"neetoPayments.common.cancel\")}\n style=\"tertiary\"\n onClick={onClose}\n />\n <Button\n disabled={isFileLoading}\n label={t(\"neetoPayments.common.export\")}\n loading={isFileLoading}\n onClick={handleGenerateClick}\n />\n </>\n )}\n </Modal.Footer>\n </Modal>\n );\n};\n\nexport default ExportModal;\n"],"names":["exportData","payload","axios","post","BASE_URL","exportsApi","useExportRazorpayData","useMutation","mutationFn","renderIdentifier","identifier","live","isLive","arguments","length","undefined","React","createElement","CopyButtonWrapper","content","IdentifierButton","href","buildStripeTransactionLink","label","curry","type","kind","Tooltip","t","position","className","Tag","style","renderSplitIdentifier","_ref","buildStripeSplitLink","Typography","renderTransferIdentifier","account","startsWith","buildStripeTransferLink","renderPlatformIdentifier","setPaneStatus","data","Button","size","onClick","transactionId","id","isOpen","renderAccountIdentifier","_ref2","buildStripeAccountLink","renderSplitDate","date","isPresent","renderDate","renderRefundIdentifier","buildStripeRefundLink","generateSpecialColumns","title","dataIndex","key","width","render","COLUMNS","isHidable","renderStatus","sorter","refunds","updatedAt","COLUMN_METADATA","isHidden","split","transfer","refund","amount","paymentTime","splitIdentifier","platform","connected","pending","transferIdentifier","platformShare","status","declined","successful","refunded","refundStatus","failed","refundAmount","refundTime","splitStatus","cancelled","splitTime","paymentIntent","connectedPayment","refundPaymentIdentifier","refundIdentifier","destinationAccount","paymentAmount","refundsTime","all","FILTER_COLUMNS","node","showRuleSelector","model","isPlatformKind","equals","KIND","isConnectedKind","isSplitKind","isTransferKind","isRefundKind","buildPaymentColumns","tab","payableEntityColumns","specialColumnArguments","sortBy","prop","concat","filter","_ref3","buildFilterColumns","filterColumns","_ref4","snakeToCamelCase","map","filterBy","isFilterable","processResponse","splits","transactions","modifySearchProps","_ref5","searchProps","evolve","APPENDABLE_SEARCH_PROPS","ExportModal","showExportModal","setShowExportModal","filters","holdableId","sortProperties","useTranslation","downloadUrl","setDownloadUrl","useState","isGenerating","setIsGenerating","mutate","exportRazorpayPaymentsCsv","isPending","isRazorpayLoading","exportCsv","useExportData","isFileLoading","token","useMemo","uuidV4","receivedCallback","download_url","handleGenerateClick","onSuccess","useEffect","channel","exportChannel","disconnected","onClose","Modal","Header","Body","Footer","icon","Download","Fragment","disabled","loading"],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,MAAMA,UAAU,GAAGC,OAAO,IACxBC,KAAK,CAACC,IAAI,CAAE,CAAEC,EAAAA,QAAS,CAAyB,wBAAA,CAAA,EAAEH,OAAO,CAAC,CAAA;AAE5D,MAAMI,UAAU,GAAG;AAAEL,EAAAA,UAAAA;AAAW,CAAC;;ACHjC,MAAMM,qBAAqB,GAAGA,MAC5BC,WAAW,CAAC;E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EpB,aAAc;AACxBrI,IAAAA,KAAK,EAAEK,CAAC,CAAC,6BAA6B,CAAE;AACxCI,IAAAA,KAAK,EAAC,UAAU;AAChBc,IAAAA,OAAO,EAAE0H,OAAAA;AAAQ,GAClB,CAAC,eACFxJ,cAAA,CAAAC,aAAA,CAAC2B,MAAM,EAAA;AACLoI,IAAAA,QAAQ,EAAEpB,aAAc;AACxBrI,IAAAA,KAAK,EAAEK,CAAC,CAAC,6BAA6B,CAAE;AACxCqJ,IAAAA,OAAO,EAAErB,aAAc;AACvB9G,IAAAA,OAAO,EAAEoH,mBAAAA;GACV,CACD,CAEQ,CACT,CAAC,CAAA;AAEZ;;;;"}
|
package/dist/PayoutsDashboard.js
CHANGED
|
@@ -8,12 +8,12 @@ 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 { r as renderStatus, c as renderDate, C as CopyButtonWrapper, d as buildDefaultPageProperties, e as buildPayload, f as buildRowData, w as withReactQuery } from './renderFunctions-
|
|
11
|
+
import { r as renderStatus, c as renderDate, C as CopyButtonWrapper, d as buildDefaultPageProperties, e as buildPayload, f as buildRowData, w as withReactQuery } from './renderFunctions-641a338d.js';
|
|
12
12
|
import Download from '@bigbinary/neeto-icons/Download';
|
|
13
13
|
import Button from '@bigbinary/neetoui/Button';
|
|
14
14
|
import Modal from '@bigbinary/neetoui/Modal';
|
|
15
|
-
import { u as useExportData, e as exportChannel } from './exportChannel-
|
|
16
|
-
import { u as uuidV4 } from './index-
|
|
15
|
+
import { u as useExportData, e as exportChannel } from './exportChannel-23e4628c.js';
|
|
16
|
+
import { u as uuidV4 } from './index-385083ef.js';
|
|
17
17
|
import { buildUrl, getQueryParams } from '@bigbinary/neeto-commons-frontend/utils';
|
|
18
18
|
import { curry, assoc, insert, mergeLeft } from 'ramda';
|
|
19
19
|
import { useHistory } from 'react-router-dom';
|
|
@@ -24,8 +24,8 @@ import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
|
|
|
24
24
|
import TableWrapper from '@bigbinary/neeto-molecules/TableWrapper';
|
|
25
25
|
import Table from '@bigbinary/neetoui/Table';
|
|
26
26
|
import NoData from '@bigbinary/neetoui/NoData';
|
|
27
|
-
import { b as useFetchStripePayouts } from './useConnectApi-
|
|
28
|
-
import { e as useFetchStripePlatformPayouts } from './usePlatformApi-
|
|
27
|
+
import { b as useFetchStripePayouts } from './useConnectApi-36a92bd8.js';
|
|
28
|
+
import { e as useFetchStripePlatformPayouts } from './usePlatformApi-3faabc82.js';
|
|
29
29
|
import '@tanstack/react-query';
|
|
30
30
|
import '@tanstack/react-query-devtools';
|
|
31
31
|
import '@bigbinary/neeto-molecules/DateFormat';
|
package/dist/PayoutsPage.js
CHANGED
|
@@ -6,11 +6,11 @@ import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
|
|
|
6
6
|
import Typography from '@bigbinary/neetoui/Typography';
|
|
7
7
|
import { useTranslation } from 'react-i18next';
|
|
8
8
|
import { useParams } from 'react-router-dom/cjs/react-router-dom';
|
|
9
|
-
import { C as CopyButtonWrapper, r as renderStatus, c as renderDate } from './renderFunctions-
|
|
10
|
-
import { c as useShowStripePayout } from './useConnectApi-
|
|
11
|
-
import { f as useShowStripePlatformPayout } from './usePlatformApi-
|
|
9
|
+
import { C as CopyButtonWrapper, r as renderStatus, c as renderDate } from './renderFunctions-641a338d.js';
|
|
10
|
+
import { c as useShowStripePayout } from './useConnectApi-36a92bd8.js';
|
|
11
|
+
import { f as useShowStripePlatformPayout } from './usePlatformApi-3faabc82.js';
|
|
12
12
|
import { I as IdentifierButton } from './IdentifierButton-73cadb18.js';
|
|
13
|
-
import { f as buildStripePayoutLink } from './index-
|
|
13
|
+
import { f as buildStripePayoutLink } from './index-385083ef.js';
|
|
14
14
|
import Dashboard from './Dashboard.js';
|
|
15
15
|
import '@tanstack/react-query';
|
|
16
16
|
import '@tanstack/react-query-devtools';
|
|
@@ -31,10 +31,10 @@ import '@bigbinary/neeto-filters-frontend';
|
|
|
31
31
|
import '@bigbinary/neeto-molecules/SubHeader';
|
|
32
32
|
import '@bigbinary/neetoui/Tab';
|
|
33
33
|
import './index-1aedc364.js';
|
|
34
|
-
import './ExportModal-
|
|
34
|
+
import './ExportModal-05feca63.js';
|
|
35
35
|
import '@bigbinary/neeto-icons/Download';
|
|
36
36
|
import '@bigbinary/neetoui/Modal';
|
|
37
|
-
import './exportChannel-
|
|
37
|
+
import './exportChannel-23e4628c.js';
|
|
38
38
|
import '@bigbinary/neeto-commons-frontend/utils';
|
|
39
39
|
import 'react-router-dom';
|
|
40
40
|
import '@bigbinary/neeto-molecules/Columns';
|
|
@@ -3,9 +3,9 @@ import React__default, { useEffect, useState } from 'react';
|
|
|
3
3
|
import { t } from 'i18next';
|
|
4
4
|
import { withTitle } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import { b as buildPaymentColumns, i as isPaymentKind, u as useFiltersAndPagination, F as FilterWrapper } from './useFiltersAndPagination-
|
|
7
|
-
import { e as buildPayload, f as buildRowData, w as withReactQuery } from './renderFunctions-
|
|
8
|
-
import { E as ExportModal } from './ExportModal-
|
|
6
|
+
import { b as buildPaymentColumns, i as isPaymentKind, u as useFiltersAndPagination, F as FilterWrapper } from './useFiltersAndPagination-cd5ac1b3.js';
|
|
7
|
+
import { e as buildPayload, f as buildRowData, w as withReactQuery } from './renderFunctions-641a338d.js';
|
|
8
|
+
import { E as ExportModal } from './ExportModal-05feca63.js';
|
|
9
9
|
import { isPresent, camelToSnakeCase } from '@bigbinary/neeto-cist';
|
|
10
10
|
import { getQueryParams, buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
|
|
11
11
|
import { useHiddenColumns } from '@bigbinary/neeto-molecules/Columns';
|
|
@@ -19,8 +19,8 @@ import { useQuery } from '@tanstack/react-query';
|
|
|
19
19
|
import axios from 'axios';
|
|
20
20
|
import { BASE_URL, SORT_DIRECTIONS, DEFAULT_SORT_PROPERTIES } from './constants.js';
|
|
21
21
|
import { Q as QUERY_KEYS } from './queryConstants-7d91832f.js';
|
|
22
|
-
import { u as useFetchRazorpayPayments } from './usePaymentApi-
|
|
23
|
-
import { p as processDataIndex } from './index-
|
|
22
|
+
import { u as useFetchRazorpayPayments } from './usePaymentApi-edc45d99.js';
|
|
23
|
+
import { p as processDataIndex } from './index-385083ef.js';
|
|
24
24
|
import '@bigbinary/neeto-filters-frontend';
|
|
25
25
|
import '@bigbinary/neeto-molecules/Header';
|
|
26
26
|
import '@bigbinary/neeto-molecules/SubHeader';
|
|
@@ -36,7 +36,7 @@ import '@bigbinary/neetoui/Tag';
|
|
|
36
36
|
import '@bigbinary/neeto-molecules/CopyToClipboardButton';
|
|
37
37
|
import '@bigbinary/neeto-icons/Download';
|
|
38
38
|
import '@bigbinary/neetoui/Modal';
|
|
39
|
-
import './exportChannel-
|
|
39
|
+
import './exportChannel-23e4628c.js';
|
|
40
40
|
import './IdentifierButton-73cadb18.js';
|
|
41
41
|
|
|
42
42
|
const TAB = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { noop, isNotPresent } from '@bigbinary/neeto-cist';
|
|
2
|
+
import { noop, findBy, isNotPresent } from '@bigbinary/neeto-cist';
|
|
3
3
|
import Button from '@bigbinary/neetoui/Button';
|
|
4
4
|
import { mergeDeepLeft } from 'ramda';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import { a as useCreateRazorpayPayment } from './usePaymentApi-
|
|
6
|
+
import { a as useCreateRazorpayPayment } from './usePaymentApi-edc45d99.js';
|
|
7
7
|
import { RAZORPAY_PAYMENT_BUTTON_OPTIONS } from './constants.js';
|
|
8
8
|
import '@tanstack/react-query';
|
|
9
9
|
import 'axios';
|
|
@@ -30,6 +30,7 @@ const RazorpayPaymentButton = _ref => {
|
|
|
30
30
|
email,
|
|
31
31
|
name,
|
|
32
32
|
isCardPreservable = false,
|
|
33
|
+
theme = {},
|
|
33
34
|
onBeforePayment = noop,
|
|
34
35
|
onSuccessfulPayment = noop,
|
|
35
36
|
onFailedPayment = noop
|
|
@@ -61,6 +62,9 @@ const RazorpayPaymentButton = _ref => {
|
|
|
61
62
|
return onSuccessfulPayment();
|
|
62
63
|
}
|
|
63
64
|
const save = isCardPreservable ? 1 : 0;
|
|
65
|
+
const themePrimaryColor = findBy({
|
|
66
|
+
key: "primary_color"
|
|
67
|
+
}, theme?.properties)?.value;
|
|
64
68
|
const options = {
|
|
65
69
|
save,
|
|
66
70
|
key: payment.publicKey,
|
|
@@ -74,7 +78,10 @@ const RazorpayPaymentButton = _ref => {
|
|
|
74
78
|
confirm_close: true,
|
|
75
79
|
ondismiss: onFailedPayment
|
|
76
80
|
},
|
|
77
|
-
handler: handlePayment
|
|
81
|
+
handler: handlePayment,
|
|
82
|
+
theme: {
|
|
83
|
+
color: themePrimaryColor ?? "#0da84c"
|
|
84
|
+
}
|
|
78
85
|
};
|
|
79
86
|
return openRazorpayCheckout(mergeDeepLeft(RAZORPAY_PAYMENT_BUTTON_OPTIONS, options));
|
|
80
87
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RazorpayPaymentButton.js","sources":["../app/javascript/src/components/RazorpayPaymentButton.jsx"],"sourcesContent":["import React from \"react\";\n\nimport { isNotPresent, noop } from \"neetocist\";\nimport { Button } from \"neetoui\";\nimport { mergeDeepLeft } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { useCreateRazorpayPayment } from \"hooks/reactQuery/razorpay/usePaymentApi\";\nimport { RAZORPAY_PAYMENT_BUTTON_OPTIONS } from \"src/constants\";\n\nconst loadScript = src =>\n new Promise(resolve => {\n const script = document.createElement(\"script\");\n script.src = src;\n script.onload = () => {\n resolve(true);\n };\n\n script.onerror = () => {\n resolve(false);\n };\n document.body.appendChild(script);\n });\n\nconst RazorpayPaymentButton = ({\n label,\n payableId,\n discountCode,\n email,\n name,\n isCardPreservable = false,\n onBeforePayment = noop,\n onSuccessfulPayment = noop,\n onFailedPayment = noop,\n}) => {\n const { t } = useTranslation();\n\n const openRazorpayCheckout = async options => {\n const script = await loadScript(\n \"https://checkout.razorpay.com/v1/checkout.js\"\n );\n\n if (!script) {\n logger.error(t(\"neetoPayments.razorpay.loadError\"));\n\n return;\n }\n const checkout = new window.Razorpay(options);\n checkout.open();\n };\n\n const handlePayment = response => {\n if (isNotPresent(response?.razorpay_signature)) {\n onFailedPayment();\n\n return;\n }\n\n onSuccessfulPayment();\n };\n\n const handleSuccess = ({ payment }) => {\n if (payment?.status === \"successful\") {\n return onSuccessfulPayment();\n }\n\n const save = isCardPreservable ? 1 : 0;\n const options = {\n save,\n key: payment.publicKey,\n order_id: payment.orderIdentifier,\n customer_id: payment.customerIdentifier,\n prefill: { name, email },\n modal: { confirm_close: true, ondismiss: onFailedPayment },\n handler: handlePayment,\n };\n\n return openRazorpayCheckout(\n mergeDeepLeft(RAZORPAY_PAYMENT_BUTTON_OPTIONS, options)\n );\n };\n\n const { isPending, mutate: createRazorpayOrder } = useCreateRazorpayPayment({\n onSuccess: handleSuccess,\n });\n\n const handleClick = () => {\n onBeforePayment();\n const payload = {\n payableId,\n discountCode,\n customerAttributes: { email, name },\n };\n createRazorpayOrder(payload);\n };\n\n return (\n <Button\n disabled={isPending}\n label={label || t(\"neetoPayments.common.pay\")}\n loading={isPending}\n onClick={handleClick}\n />\n );\n};\n\nexport default RazorpayPaymentButton;\n"],"names":["loadScript","src","Promise","resolve","script","document","createElement","onload","onerror","body","appendChild","RazorpayPaymentButton","_ref","label","payableId","discountCode","email","name","isCardPreservable","onBeforePayment","noop","onSuccessfulPayment","onFailedPayment","t","useTranslation","openRazorpayCheckout","options","logger","error","checkout","window","Razorpay","open","handlePayment","response","isNotPresent","razorpay_signature","handleSuccess","_ref2","payment","status","save","key","publicKey","order_id","orderIdentifier","customer_id","customerIdentifier","prefill","modal","confirm_close","ondismiss","handler","mergeDeepLeft","RAZORPAY_PAYMENT_BUTTON_OPTIONS","isPending","mutate","createRazorpayOrder","useCreateRazorpayPayment","onSuccess","handleClick","payload","customerAttributes","React","Button","disabled","loading","onClick"],"mappings":";;;;;;;;;;;;;AAUA,MAAMA,UAAU,GAAGC,GAAG,IACpB,IAAIC,OAAO,CAACC,OAAO,IAAI;AACrB,EAAA,MAAMC,MAAM,GAAGC,QAAQ,CAACC,aAAa,CAAC,QAAQ,CAAC,CAAA;EAC/CF,MAAM,CAACH,GAAG,GAAGA,GAAG,CAAA;EAChBG,MAAM,CAACG,MAAM,GAAG,MAAM;IACpBJ,OAAO,CAAC,IAAI,CAAC,CAAA;GACd,CAAA;EAEDC,MAAM,CAACI,OAAO,GAAG,MAAM;IACrBL,OAAO,CAAC,KAAK,CAAC,CAAA;GACf,CAAA;AACDE,EAAAA,QAAQ,CAACI,IAAI,CAACC,WAAW,CAACN,MAAM,CAAC,CAAA;AACnC,CAAC,CAAC,CAAA;AAEEO,MAAAA,qBAAqB,GAAGC,IAAA,
|
|
1
|
+
{"version":3,"file":"RazorpayPaymentButton.js","sources":["../app/javascript/src/components/RazorpayPaymentButton.jsx"],"sourcesContent":["import React from \"react\";\n\nimport { isNotPresent, noop, findBy } from \"neetocist\";\nimport { Button } from \"neetoui\";\nimport { mergeDeepLeft } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { useCreateRazorpayPayment } from \"hooks/reactQuery/razorpay/usePaymentApi\";\nimport { RAZORPAY_PAYMENT_BUTTON_OPTIONS } from \"src/constants\";\n\nconst loadScript = src =>\n new Promise(resolve => {\n const script = document.createElement(\"script\");\n script.src = src;\n script.onload = () => {\n resolve(true);\n };\n\n script.onerror = () => {\n resolve(false);\n };\n document.body.appendChild(script);\n });\n\nconst RazorpayPaymentButton = ({\n label,\n payableId,\n discountCode,\n email,\n name,\n isCardPreservable = false,\n theme = {},\n onBeforePayment = noop,\n onSuccessfulPayment = noop,\n onFailedPayment = noop,\n}) => {\n const { t } = useTranslation();\n\n const openRazorpayCheckout = async options => {\n const script = await loadScript(\n \"https://checkout.razorpay.com/v1/checkout.js\"\n );\n\n if (!script) {\n logger.error(t(\"neetoPayments.razorpay.loadError\"));\n\n return;\n }\n const checkout = new window.Razorpay(options);\n checkout.open();\n };\n\n const handlePayment = response => {\n if (isNotPresent(response?.razorpay_signature)) {\n onFailedPayment();\n\n return;\n }\n\n onSuccessfulPayment();\n };\n\n const handleSuccess = ({ payment }) => {\n if (payment?.status === \"successful\") {\n return onSuccessfulPayment();\n }\n\n const save = isCardPreservable ? 1 : 0;\n const themePrimaryColor = findBy(\n { key: \"primary_color\" },\n theme?.properties\n )?.value;\n\n const options = {\n save,\n key: payment.publicKey,\n order_id: payment.orderIdentifier,\n customer_id: payment.customerIdentifier,\n prefill: { name, email },\n modal: { confirm_close: true, ondismiss: onFailedPayment },\n handler: handlePayment,\n theme: { color: themePrimaryColor ?? \"#0da84c\" },\n };\n\n return openRazorpayCheckout(\n mergeDeepLeft(RAZORPAY_PAYMENT_BUTTON_OPTIONS, options)\n );\n };\n\n const { isPending, mutate: createRazorpayOrder } = useCreateRazorpayPayment({\n onSuccess: handleSuccess,\n });\n\n const handleClick = () => {\n onBeforePayment();\n const payload = {\n payableId,\n discountCode,\n customerAttributes: { email, name },\n };\n createRazorpayOrder(payload);\n };\n\n return (\n <Button\n disabled={isPending}\n label={label || t(\"neetoPayments.common.pay\")}\n loading={isPending}\n onClick={handleClick}\n />\n );\n};\n\nexport default RazorpayPaymentButton;\n"],"names":["loadScript","src","Promise","resolve","script","document","createElement","onload","onerror","body","appendChild","RazorpayPaymentButton","_ref","label","payableId","discountCode","email","name","isCardPreservable","theme","onBeforePayment","noop","onSuccessfulPayment","onFailedPayment","t","useTranslation","openRazorpayCheckout","options","logger","error","checkout","window","Razorpay","open","handlePayment","response","isNotPresent","razorpay_signature","handleSuccess","_ref2","payment","status","save","themePrimaryColor","findBy","key","properties","value","publicKey","order_id","orderIdentifier","customer_id","customerIdentifier","prefill","modal","confirm_close","ondismiss","handler","color","mergeDeepLeft","RAZORPAY_PAYMENT_BUTTON_OPTIONS","isPending","mutate","createRazorpayOrder","useCreateRazorpayPayment","onSuccess","handleClick","payload","customerAttributes","React","Button","disabled","loading","onClick"],"mappings":";;;;;;;;;;;;;AAUA,MAAMA,UAAU,GAAGC,GAAG,IACpB,IAAIC,OAAO,CAACC,OAAO,IAAI;AACrB,EAAA,MAAMC,MAAM,GAAGC,QAAQ,CAACC,aAAa,CAAC,QAAQ,CAAC,CAAA;EAC/CF,MAAM,CAACH,GAAG,GAAGA,GAAG,CAAA;EAChBG,MAAM,CAACG,MAAM,GAAG,MAAM;IACpBJ,OAAO,CAAC,IAAI,CAAC,CAAA;GACd,CAAA;EAEDC,MAAM,CAACI,OAAO,GAAG,MAAM;IACrBL,OAAO,CAAC,KAAK,CAAC,CAAA;GACf,CAAA;AACDE,EAAAA,QAAQ,CAACI,IAAI,CAACC,WAAW,CAACN,MAAM,CAAC,CAAA;AACnC,CAAC,CAAC,CAAA;AAEEO,MAAAA,qBAAqB,GAAGC,IAAA,IAWxB;EAAA,IAXyB;IAC7BC,KAAK;IACLC,SAAS;IACTC,YAAY;IACZC,KAAK;IACLC,IAAI;AACJC,IAAAA,iBAAiB,GAAG,KAAK;IACzBC,KAAK,GAAG,EAAE;AACVC,IAAAA,eAAe,GAAGC,IAAI;AACtBC,IAAAA,mBAAmB,GAAGD,IAAI;AAC1BE,IAAAA,eAAe,GAAGF,IAAAA;AACpB,GAAC,GAAAT,IAAA,CAAA;EACC,MAAM;AAAEY,IAAAA,CAAAA;GAAG,GAAGC,cAAc,EAAE,CAAA;AAE9B,EAAA,MAAMC,oBAAoB,GAAG,MAAMC,OAAO,IAAI;AAC5C,IAAA,MAAMvB,MAAM,GAAG,MAAMJ,UAAU,CAC7B,8CACF,CAAC,CAAA;IAED,IAAI,CAACI,MAAM,EAAE;AAC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AEvB,aAAa;AACtBf,MAAAA,KAAK,EAAE;QAAEuC,KAAK,EAAEf,iBAAiB,IAAI,SAAA;AAAU,OAAA;KAChD,CAAA;IAED,OAAOjB,oBAAoB,CACzBiC,aAAa,CAACC,+BAA+B,EAAEjC,OAAO,CACxD,CAAC,CAAA;GACF,CAAA;EAED,MAAM;IAAEkC,SAAS;AAAEC,IAAAA,MAAM,EAAEC,mBAAAA;GAAqB,GAAGC,wBAAwB,CAAC;AAC1EC,IAAAA,SAAS,EAAE3B,aAAAA;AACb,GAAC,CAAC,CAAA;EAEF,MAAM4B,WAAW,GAAGA,MAAM;AACxB9C,IAAAA,eAAe,EAAE,CAAA;AACjB,IAAA,MAAM+C,OAAO,GAAG;MACdrD,SAAS;MACTC,YAAY;AACZqD,MAAAA,kBAAkB,EAAE;QAAEpD,KAAK;AAAEC,QAAAA,IAAAA;AAAK,OAAA;KACnC,CAAA;IACD8C,mBAAmB,CAACI,OAAO,CAAC,CAAA;GAC7B,CAAA;AAED,EAAA,oBACEE,cAAA,CAAA/D,aAAA,CAACgE,MAAM,EAAA;AACLC,IAAAA,QAAQ,EAAEV,SAAU;AACpBhD,IAAAA,KAAK,EAAEA,KAAK,IAAIW,CAAC,CAAC,0BAA0B,CAAE;AAC9CgD,IAAAA,OAAO,EAAEX,SAAU;AACnBY,IAAAA,OAAO,EAAEP,WAAAA;AAAY,GACtB,CAAC,CAAA;AAEN;;;;"}
|
package/dist/StripeConnect.js
CHANGED
|
@@ -3,7 +3,7 @@ import React__default, { useState, useEffect, useMemo } from 'react';
|
|
|
3
3
|
import { humanize, isPresent } from '@bigbinary/neeto-cist';
|
|
4
4
|
import { useQueryParams, withT, useStateWithDependency } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
5
5
|
import { Finish as Finish$1, Modal, Demo } from 'neetointegrations';
|
|
6
|
-
import { d as useCreateStripeAccount, e as usePollingStripeAccountCreationStatus, a as useFetchConnectedStripeAccount, f as useDestroyStripeAccount, g as usePollingStripeAccount } from './useConnectApi-
|
|
6
|
+
import { d as useCreateStripeAccount, e as usePollingStripeAccountCreationStatus, a as useFetchConnectedStripeAccount, f as useDestroyStripeAccount, g as usePollingStripeAccount } from './useConnectApi-36a92bd8.js';
|
|
7
7
|
import Label from '@bigbinary/neetoui/Label';
|
|
8
8
|
import Typography from '@bigbinary/neetoui/Typography';
|
|
9
9
|
import { useTranslation, Trans } from 'react-i18next';
|
|
@@ -2,7 +2,7 @@ import React__default from 'react';
|
|
|
2
2
|
import { noop } from '@bigbinary/neeto-cist';
|
|
3
3
|
import Button from '@bigbinary/neetoui/Button';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
|
-
import { u as useUpdateUpiPayment } from './usePaymentsApi-
|
|
5
|
+
import { u as useUpdateUpiPayment } from './usePaymentsApi-663c4058.js';
|
|
6
6
|
import '@tanstack/react-query';
|
|
7
7
|
import 'axios';
|
|
8
8
|
import './constants.js';
|
package/dist/UpiPayment.js
CHANGED
|
@@ -7,7 +7,7 @@ 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 { a as useCreateUpiPayment } from './usePaymentsApi-
|
|
10
|
+
import { a as useCreateUpiPayment } from './usePaymentsApi-663c4058.js';
|
|
11
11
|
import { t } from 'i18next';
|
|
12
12
|
import * as yup from 'yup';
|
|
13
13
|
import '@tanstack/react-query';
|
|
@@ -3,8 +3,8 @@ import React__default, { useEffect } from 'react';
|
|
|
3
3
|
import { t } from 'i18next';
|
|
4
4
|
import { withTitle } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import { u as useFiltersAndPagination, F as FilterWrapper } from './useFiltersAndPagination-
|
|
7
|
-
import { r as renderStatus, c as renderDate, e as buildPayload, w as withReactQuery } from './renderFunctions-
|
|
6
|
+
import { u as useFiltersAndPagination, F as FilterWrapper } from './useFiltersAndPagination-cd5ac1b3.js';
|
|
7
|
+
import { r as renderStatus, c as renderDate, e as buildPayload, w as withReactQuery } from './renderFunctions-641a338d.js';
|
|
8
8
|
import { isPresent, camelToSnakeCase } from '@bigbinary/neeto-cist';
|
|
9
9
|
import { getQueryParams, buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
|
|
10
10
|
import { useHiddenColumns } from '@bigbinary/neeto-molecules/Columns';
|
|
@@ -18,7 +18,7 @@ import { useQuery } from '@tanstack/react-query';
|
|
|
18
18
|
import axios from 'axios';
|
|
19
19
|
import { BASE_URL, SORT_DIRECTIONS, DEFAULT_SORT_PROPERTIES } from './constants.js';
|
|
20
20
|
import { Q as QUERY_KEYS } from './queryConstants-7d91832f.js';
|
|
21
|
-
import { p as processDataIndex } from './index-
|
|
21
|
+
import { p as processDataIndex } from './index-385083ef.js';
|
|
22
22
|
import '@bigbinary/neeto-filters-frontend';
|
|
23
23
|
import '@bigbinary/neeto-molecules/Header';
|
|
24
24
|
import '@bigbinary/neeto-molecules/SubHeader';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as buildStripeTransactionLink } from './index-
|
|
2
|
-
export { a as default } from './index-
|
|
1
|
+
import { a as buildStripeTransactionLink } from './index-385083ef.js';
|
|
2
|
+
export { a as default } from './index-385083ef.js';
|
|
3
3
|
import './constants.js';
|
|
4
4
|
import 'i18next';
|
|
5
5
|
import '@bigbinary/neeto-commons-frontend/constants';
|
|
@@ -10,12 +10,12 @@ var SubHeader = require('@bigbinary/neeto-molecules/SubHeader');
|
|
|
10
10
|
var Tab = require('@bigbinary/neetoui/Tab');
|
|
11
11
|
var Typography = require('@bigbinary/neetoui/Typography');
|
|
12
12
|
var reactI18next = require('react-i18next');
|
|
13
|
-
var renderFunctions = require('./renderFunctions-
|
|
13
|
+
var renderFunctions = require('./renderFunctions-c535bfb2.js');
|
|
14
14
|
var Download = require('@bigbinary/neeto-icons/Download');
|
|
15
15
|
var Button = require('@bigbinary/neetoui/Button');
|
|
16
16
|
var Modal = require('@bigbinary/neetoui/Modal');
|
|
17
|
-
var exportChannel = require('./exportChannel-
|
|
18
|
-
var index$1 = require('./index-
|
|
17
|
+
var exportChannel = require('./exportChannel-1c3103ef.js');
|
|
18
|
+
var index$1 = require('./index-e317e851.js');
|
|
19
19
|
var utils = require('@bigbinary/neeto-commons-frontend/utils');
|
|
20
20
|
var ramda = require('ramda');
|
|
21
21
|
var reactRouterDom = require('react-router-dom');
|
package/dist/cjs/Dashboard.js
CHANGED
|
@@ -11,22 +11,22 @@ var SubHeader = require('@bigbinary/neeto-molecules/SubHeader');
|
|
|
11
11
|
var Tab = require('@bigbinary/neetoui/Tab');
|
|
12
12
|
var Typography = require('@bigbinary/neetoui/Typography');
|
|
13
13
|
var reactI18next = require('react-i18next');
|
|
14
|
-
var renderFunctions = require('./renderFunctions-
|
|
14
|
+
var renderFunctions = require('./renderFunctions-c535bfb2.js');
|
|
15
15
|
var index = require('./index-b7badf96.js');
|
|
16
|
-
var ExportModal = require('./ExportModal-
|
|
16
|
+
var ExportModal = require('./ExportModal-8b3cc7d4.js');
|
|
17
17
|
var utils = require('@bigbinary/neeto-commons-frontend/utils');
|
|
18
18
|
var ramda = require('ramda');
|
|
19
19
|
var reactRouterDom = require('react-router-dom');
|
|
20
20
|
var constants = require('./constants.js');
|
|
21
|
-
var index$1 = require('./index-
|
|
21
|
+
var index$1 = require('./index-e317e851.js');
|
|
22
22
|
var constants$1 = require('@bigbinary/neeto-commons-frontend/constants');
|
|
23
23
|
var Columns = require('@bigbinary/neeto-molecules/Columns');
|
|
24
24
|
var PageLoader = require('@bigbinary/neeto-molecules/PageLoader');
|
|
25
25
|
var TableWrapper = require('@bigbinary/neeto-molecules/TableWrapper');
|
|
26
26
|
var Table = require('@bigbinary/neetoui/Table');
|
|
27
27
|
var NoData = require('@bigbinary/neetoui/NoData');
|
|
28
|
-
var useConnectApi = require('./useConnectApi-
|
|
29
|
-
var usePlatformApi = require('./usePlatformApi-
|
|
28
|
+
var useConnectApi = require('./useConnectApi-a80cbf88.js');
|
|
29
|
+
var usePlatformApi = require('./usePlatformApi-6740cf80.js');
|
|
30
30
|
var Down = require('@bigbinary/neeto-icons/Down');
|
|
31
31
|
var Right = require('@bigbinary/neeto-icons/Right');
|
|
32
32
|
var Pane = require('@bigbinary/neetoui/Pane');
|
|
@@ -40,7 +40,7 @@ require('@bigbinary/neeto-molecules/CopyToClipboardButton');
|
|
|
40
40
|
require('@bigbinary/neeto-icons/Download');
|
|
41
41
|
require('@bigbinary/neetoui/Modal');
|
|
42
42
|
require('axios');
|
|
43
|
-
require('./exportChannel-
|
|
43
|
+
require('./exportChannel-1c3103ef.js');
|
|
44
44
|
require('./IdentifierButton-40b5459d.js');
|
|
45
45
|
require('util');
|
|
46
46
|
require('./queryConstants-45f84f3e.js');
|