@bigbinary/neeto-payments-frontend 6.3.7 → 6.4.0
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 +5 -5
- package/dist/AdminCancelRecurringPaymentButton.js +2 -2
- package/dist/CashPaymentButton.js +2 -2
- package/dist/ConfirmCashPaymentButton.js +2 -2
- package/dist/CustomerCancelRecurringPaymentForm.js +2 -2
- package/dist/{ExportModal-k--5vSLt.js → ExportModal-Imx5pEqt.js} +3 -3
- package/dist/{ExportModal-k--5vSLt.js.map → ExportModal-Imx5pEqt.js.map} +1 -1
- package/dist/{ExportModal-Bun3pMGn.js → ExportModal-hqjn7q4w.js} +3 -3
- package/dist/{ExportModal-Bun3pMGn.js.map → ExportModal-hqjn7q4w.js.map} +1 -1
- package/dist/ManualUpiConnect.js +2 -2
- package/dist/ManualUpiPayment.js +2 -2
- package/dist/ManualUpiPaymentConfirmButton.js +2 -2
- package/dist/ManualUpiPaymentRejectButton.js +2 -2
- package/dist/PaymentsDashboard.js +5 -5
- package/dist/PayoutsDashboard.js +5 -5
- package/dist/PayoutsPage.js +4 -4
- package/dist/RazorpayConnect.js +2 -2
- package/dist/RazorpayLinkedAccountForm.js +2 -2
- package/dist/RazorpayPaymentButton.js +20 -11
- package/dist/RazorpayPaymentButton.js.map +1 -1
- package/dist/RecurringPaymentSettings.js +2 -2
- package/dist/RefundsDashboard.js +5 -5
- package/dist/SplitTransfersDashboard.js +4 -4
- package/dist/StripeCheckoutSetting.js +2 -2
- package/dist/StripeConnect.js +4 -4
- package/dist/StripeManage.js +2 -2
- package/dist/TaxesDashboard.js +2 -2
- package/dist/buildStripeTransactionLink.js +1 -1
- package/dist/cjs/RazorpayPaymentButton.js +19 -10
- package/dist/cjs/RazorpayPaymentButton.js.map +1 -1
- package/dist/cjs/index.js +9 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/razorpayCheckoutOutcome-DwerRK1B.js +96 -0
- package/dist/cjs/razorpayCheckoutOutcome-DwerRK1B.js.map +1 -0
- package/dist/cjs/useRazorpayPayment.js +20 -11
- package/dist/cjs/useRazorpayPayment.js.map +1 -1
- package/dist/cjs/v2/ManualUpiPayment.js +3 -3
- package/dist/cjs/v2/ManualUpiPayment.js.map +1 -1
- package/dist/cjs/v2/RazorpayPaymentButton.js +19 -10
- package/dist/cjs/v2/RazorpayPaymentButton.js.map +1 -1
- package/dist/cjs/v2/RazorpayWebsiteNotice.js +2 -2
- package/dist/cjs/v2/RazorpayWebsiteNotice.js.map +1 -1
- package/dist/cjs/v2/index.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/{dashboard-Ba2uhKXD.js → dashboard-BP47wvu-.js} +2 -2
- package/dist/{dashboard-Ba2uhKXD.js.map → dashboard-BP47wvu-.js.map} +1 -1
- package/dist/getAddressElementOptions.js +1 -1
- package/dist/getAmountInLargestCurrencyUnit.js +1 -1
- package/dist/getAmountInSmallestCurrencyUnit.js +1 -1
- package/dist/getAmountWithAppliedTax.js +1 -1
- package/dist/getFormattedAmount.js +1 -1
- package/dist/getFormattedDiscountedAmount.js +1 -1
- package/dist/getFormattedDiscountedPercentage.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/hasAmountToPay.js +1 -1
- package/dist/{index-CajHy3NQ.js → index-CpGnAY9G.js} +2 -2
- package/dist/{index-CajHy3NQ.js.map → index-CpGnAY9G.js.map} +1 -1
- package/dist/index.js +34 -28
- package/dist/index.js.map +1 -1
- package/dist/razorpayCheckoutOutcome-ChPKzUYJ.js +91 -0
- package/dist/razorpayCheckoutOutcome-ChPKzUYJ.js.map +1 -0
- package/dist/{renderFunctions-B9mVn_ag.js → renderFunctions-CcLI5Jq6.js} +2 -2
- package/dist/{renderFunctions-B9mVn_ag.js.map → renderFunctions-CcLI5Jq6.js.map} +1 -1
- package/dist/{useAccountsApi-CZyJ4R8Z.js → useAccountsApi-DF78k_sA.js} +2 -2
- package/dist/{useAccountsApi-CZyJ4R8Z.js.map → useAccountsApi-DF78k_sA.js.map} +1 -1
- package/dist/{useBusinessTypesApi-CS2aPq7Y.js → useBusinessTypesApi-DwddCKIb.js} +2 -2
- package/dist/{useBusinessTypesApi-CS2aPq7Y.js.map → useBusinessTypesApi-DwddCKIb.js.map} +1 -1
- package/dist/{useCheckoutSettingsApi-D1ZvMA4B.js → useCheckoutSettingsApi-B29sE02j.js} +2 -2
- package/dist/{useCheckoutSettingsApi-D1ZvMA4B.js.map → useCheckoutSettingsApi-B29sE02j.js.map} +1 -1
- package/dist/{useCountriesApi-ClXgwNgC.js → useCountriesApi-CSfkzWgq.js} +2 -2
- package/dist/{useCountriesApi-ClXgwNgC.js.map → useCountriesApi-CSfkzWgq.js.map} +1 -1
- package/dist/{useExportsApi-C1wjoVYy.js → useExportsApi-BCnxSe7P.js} +2 -2
- package/dist/{useExportsApi-C1wjoVYy.js.map → useExportsApi-BCnxSe7P.js.map} +1 -1
- package/dist/{useExportsApi-DA6ThV9b.js → useExportsApi-B_ABJiMX.js} +2 -2
- package/dist/{useExportsApi-DA6ThV9b.js.map → useExportsApi-B_ABJiMX.js.map} +1 -1
- package/dist/{useFetchData-8LLdmA74.js → useFetchData-Cleas8Tk.js} +2 -2
- package/dist/{useFetchData-8LLdmA74.js.map → useFetchData-Cleas8Tk.js.map} +1 -1
- package/dist/{useIntegrationsApi-BqU-lJql.js → useIntegrationsApi-BEZaeW9w.js} +2 -2
- package/dist/{useIntegrationsApi-BqU-lJql.js.map → useIntegrationsApi-BEZaeW9w.js.map} +1 -1
- package/dist/{usePaymentApi-gvPmTOWg.js → usePaymentApi-B0BXE-4o.js} +2 -2
- package/dist/{usePaymentApi-gvPmTOWg.js.map → usePaymentApi-B0BXE-4o.js.map} +1 -1
- package/dist/{usePaymentApi-CjtkL3IU.js → usePaymentApi-BfoBBuRN.js} +2 -2
- package/dist/{usePaymentApi-CjtkL3IU.js.map → usePaymentApi-BfoBBuRN.js.map} +1 -1
- package/dist/{usePaymentsApi-C2xbgHmw.js → usePaymentsApi-Ctl1XsA1.js} +2 -2
- package/dist/{usePaymentsApi-C2xbgHmw.js.map → usePaymentsApi-Ctl1XsA1.js.map} +1 -1
- package/dist/{usePlatformApi-Dug1pxaH.js → usePlatformApi-B29AJb-p.js} +2 -2
- package/dist/{usePlatformApi-Dug1pxaH.js.map → usePlatformApi-B29AJb-p.js.map} +1 -1
- package/dist/useRazorpayPayment.js +21 -12
- package/dist/useRazorpayPayment.js.map +1 -1
- package/dist/{useRecurringPaymentsApi-dbdBrh4V.js → useRecurringPaymentsApi-B6zvIYkm.js} +2 -2
- package/dist/{useRecurringPaymentsApi-dbdBrh4V.js.map → useRecurringPaymentsApi-B6zvIYkm.js.map} +1 -1
- package/dist/{useRecurringPaymentsApi-CkxjkZd2.js → useRecurringPaymentsApi-BTOeJ8Xu.js} +2 -2
- package/dist/{useRecurringPaymentsApi-CkxjkZd2.js.map → useRecurringPaymentsApi-BTOeJ8Xu.js.map} +1 -1
- package/dist/{useRecurringSettingsApi-B_kTDES9.js → useRecurringSettingsApi-Dkjo_BKx.js} +2 -2
- package/dist/{useRecurringSettingsApi-B_kTDES9.js.map → useRecurringSettingsApi-Dkjo_BKx.js.map} +1 -1
- package/dist/{useRefundsApi-DSMKTWIQ.js → useRefundsApi-Ce4HmQgn.js} +2 -2
- package/dist/{useRefundsApi-DSMKTWIQ.js.map → useRefundsApi-Ce4HmQgn.js.map} +1 -1
- package/dist/{useSplitTransfersApi-DlRs4wYh.js → useSplitTransfersApi-CDzhSH8q.js} +2 -2
- package/dist/{useSplitTransfersApi-DlRs4wYh.js.map → useSplitTransfersApi-CDzhSH8q.js.map} +1 -1
- package/dist/{useTaxesApi-BuPeVUxI.js → useTaxesApi-CNyTbsgK.js} +2 -2
- package/dist/{useTaxesApi-BuPeVUxI.js.map → useTaxesApi-CNyTbsgK.js.map} +1 -1
- package/dist/{useVpasApi-wicZ6o_z.js → useVpasApi-X1KhsMZl.js} +2 -2
- package/dist/{useVpasApi-wicZ6o_z.js.map → useVpasApi-X1KhsMZl.js.map} +1 -1
- package/dist/v2/AccountsDashboard.js +4 -4
- package/dist/v2/AdminCancelRecurringPaymentButton.js +2 -2
- package/dist/v2/CashPaymentButton.js +2 -2
- package/dist/v2/ConfirmCashPaymentButton.js +2 -2
- package/dist/v2/CustomerCancelRecurringPaymentForm.js +2 -2
- package/dist/v2/ManualUpiConnect.js +2 -2
- package/dist/v2/ManualUpiPayment.js +5 -5
- package/dist/v2/ManualUpiPayment.js.map +1 -1
- package/dist/v2/ManualUpiPaymentConfirmButton.js +2 -2
- package/dist/v2/ManualUpiPaymentRejectButton.js +2 -2
- package/dist/v2/PaymentsDashboard.js +5 -5
- package/dist/v2/PayoutsDashboard.js +4 -4
- package/dist/v2/PayoutsPage.js +3 -3
- package/dist/v2/RazorpayConnect.js +2 -2
- package/dist/v2/RazorpayLinkedAccountForm.js +2 -2
- package/dist/v2/RazorpayPaymentButton.js +20 -11
- package/dist/v2/RazorpayPaymentButton.js.map +1 -1
- package/dist/v2/RazorpayWebsiteNotice.js +2 -2
- package/dist/v2/RazorpayWebsiteNotice.js.map +1 -1
- package/dist/v2/RecurringPaymentSettings.js +2 -2
- package/dist/v2/RefundsDashboard.js +5 -5
- package/dist/v2/SplitTransfersDashboard.js +4 -4
- package/dist/v2/StripeCheckoutSetting.js +2 -2
- package/dist/v2/StripeConnect.js +4 -4
- package/dist/v2/StripeManage.js +2 -2
- package/dist/v2/TaxesDashboard.js +2 -2
- package/dist/v2/index.js +23 -23
- package/package.json +14 -14
- package/dist/cjs/usePaymentApi-B198Hd_a.js +0 -21
- package/dist/cjs/usePaymentApi-B198Hd_a.js.map +0 -1
- package/dist/usePaymentApi-BzB3rzNe.js +0 -19
- package/dist/usePaymentApi-BzB3rzNe.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RazorpayWebsiteNotice.js","sources":["../../app/javascript/src/v2/components/RazorpayWebsiteNotice.jsx"],"sourcesContent":["import { Callout, Typography } from \"@bigbinary/neeto-atoms\";\nimport { isPresent } from \"neetocist\";\nimport { globalProps } from \"neetocommons/initializers\";\nimport { pluck, uniq } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nconst RazorpayWebsiteNotice = ({\n websiteHosts = [],\n crossProductRazorpayUsage = null,\n}) => {\n const { t } = useTranslation();\n\n const usages = crossProductRazorpayUsage?.usages ?? [];\n const usageHosts = uniq(pluck(\"host\", usages)).join(\", \");\n\n return (\n <>\n {isPresent(websiteHosts) && (\n <Callout className=\"my-2\" variant=\"info\">\n <div className=\"flex flex-col gap-1\">\n <Typography variant=\"h5\">\n {t(\"neetoPayments.razorpayWebsiteNotice.addUrlTitle\", {\n product: globalProps.appName,\n })}\n </Typography>\n <Typography variant=\"body2\">\n {t(\"neetoPayments.razorpayWebsiteNotice.addUrlBody\")}\n </Typography>\n <ul className=\"list-disc pl-5\">\n {websiteHosts.map(host => (\n <li key={host}>\n <Typography variant=\"body2\" weight=\"semibold\">\n {host}\n </Typography>\n </li>\n ))}\n </ul>\n <Typography className=\"
|
|
1
|
+
{"version":3,"file":"RazorpayWebsiteNotice.js","sources":["../../app/javascript/src/v2/components/RazorpayWebsiteNotice.jsx"],"sourcesContent":["import { Callout, Typography } from \"@bigbinary/neeto-atoms\";\nimport { isPresent } from \"neetocist\";\nimport { globalProps } from \"neetocommons/initializers\";\nimport { pluck, uniq } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nconst RazorpayWebsiteNotice = ({\n websiteHosts = [],\n crossProductRazorpayUsage = null,\n}) => {\n const { t } = useTranslation();\n\n const usages = crossProductRazorpayUsage?.usages ?? [];\n const usageHosts = uniq(pluck(\"host\", usages)).join(\", \");\n\n return (\n <>\n {isPresent(websiteHosts) && (\n <Callout className=\"my-2\" variant=\"info\">\n <div className=\"flex flex-col gap-1\">\n <Typography variant=\"h5\">\n {t(\"neetoPayments.razorpayWebsiteNotice.addUrlTitle\", {\n product: globalProps.appName,\n })}\n </Typography>\n <Typography variant=\"body2\">\n {t(\"neetoPayments.razorpayWebsiteNotice.addUrlBody\")}\n </Typography>\n <ul className=\"list-disc pl-5\">\n {websiteHosts.map(host => (\n <li key={host}>\n <Typography variant=\"body2\" weight=\"semibold\">\n {host}\n </Typography>\n </li>\n ))}\n </ul>\n <Typography className=\"text-gray-500\" variant=\"body3\">\n {t(\"neetoPayments.razorpayWebsiteNotice.ignoreNote\")}\n </Typography>\n </div>\n </Callout>\n )}\n {isPresent(usages) && (\n <Callout className=\"my-2\" variant=\"warning\">\n <div className=\"flex flex-col gap-1\">\n <Typography variant=\"h5\">\n {t(\"neetoPayments.razorpayWebsiteNotice.crossProductTitle\")}\n </Typography>\n <Typography variant=\"body2\">\n {t(\"neetoPayments.razorpayWebsiteNotice.crossProductBody\", {\n hosts: usageHosts,\n })}\n </Typography>\n <Typography className=\"text-gray-500\" variant=\"body3\">\n {t(\"neetoPayments.razorpayWebsiteNotice.ignoreNote\")}\n </Typography>\n </div>\n </Callout>\n )}\n </>\n );\n};\n\nexport default RazorpayWebsiteNotice;\n"],"names":["RazorpayWebsiteNotice","websiteHosts","crossProductRazorpayUsage","t","useTranslation","usages","usageHosts","uniq","pluck","join","_jsxs","_Fragment","children","isPresent","_jsx","Callout","className","variant","Typography","product","globalProps","appName","map","host","weight","hosts"],"mappings":";;;;;;;AAMA,MAAMA,qBAAqB,GAAGA,CAAC;AAC7BC,EAAAA,YAAY,GAAG,EAAE;AACjBC,EAAAA,yBAAyB,GAAG;AAC9B,CAAC,KAAK;EACJ,MAAM;AAAEC,IAAAA;GAAG,GAAGC,cAAc,EAAE;AAE9B,EAAA,MAAMC,MAAM,GAAGH,yBAAyB,EAAEG,MAAM,IAAI,EAAE;AACtD,EAAA,MAAMC,UAAU,GAAGC,IAAI,CAACC,KAAK,CAAC,MAAM,EAAEH,MAAM,CAAC,CAAC,CAACI,IAAI,CAAC,IAAI,CAAC;EAEzD,oBACEC,IAAA,CAAAC,QAAA,EAAA;IAAAC,QAAA,EAAA,CACGC,SAAS,CAACZ,YAAY,CAAC,iBACtBa,GAAA,CAACC,OAAO,EAAA;AAACC,MAAAA,SAAS,EAAC,MAAM;AAACC,MAAAA,OAAO,EAAC,MAAM;AAAAL,MAAAA,QAAA,eACtCF,IAAA,CAAA,KAAA,EAAA;AAAKM,QAAAA,SAAS,EAAC,qBAAqB;QAAAJ,QAAA,EAAA,cAClCE,GAAA,CAACI,UAAU,EAAA;AAACD,UAAAA,OAAO,EAAC,IAAI;AAAAL,UAAAA,QAAA,EACrBT,CAAC,CAAC,iDAAiD,EAAE;YACpDgB,OAAO,EAAEC,WAAW,CAACC;WACtB;AAAC,SACQ,CAAC,eACbP,GAAA,CAACI,UAAU,EAAA;AAACD,UAAAA,OAAO,EAAC,OAAO;UAAAL,QAAA,EACxBT,CAAC,CAAC,gDAAgD;SACzC,CAAC,eACbW,GAAA,CAAA,IAAA,EAAA;AAAIE,UAAAA,SAAS,EAAC,gBAAgB;AAAAJ,UAAAA,QAAA,EAC3BX,YAAY,CAACqB,GAAG,CAACC,IAAI,iBACpBT,GAAA,CAAA,IAAA,EAAA;YAAAF,QAAA,eACEE,GAAA,CAACI,UAAU,EAAA;AAACD,cAAAA,OAAO,EAAC,OAAO;AAACO,cAAAA,MAAM,EAAC,UAAU;AAAAZ,cAAAA,QAAA,EAC1CW;aACS;AAAC,WAAA,EAHNA,IAIL,CACL;AAAC,SACA,CAAC,eACLT,GAAA,CAACI,UAAU,EAAA;AAACF,UAAAA,SAAS,EAAC,eAAe;AAACC,UAAAA,OAAO,EAAC,OAAO;UAAAL,QAAA,EAClDT,CAAC,CAAC,gDAAgD;AAAC,SAC1C,CAAC;OACV;KACE,CACV,EACAU,SAAS,CAACR,MAAM,CAAC,iBAChBS,GAAA,CAACC,OAAO,EAAA;AAACC,MAAAA,SAAS,EAAC,MAAM;AAACC,MAAAA,OAAO,EAAC,SAAS;AAAAL,MAAAA,QAAA,eACzCF,IAAA,CAAA,KAAA,EAAA;AAAKM,QAAAA,SAAS,EAAC,qBAAqB;QAAAJ,QAAA,EAAA,cAClCE,GAAA,CAACI,UAAU,EAAA;AAACD,UAAAA,OAAO,EAAC,IAAI;UAAAL,QAAA,EACrBT,CAAC,CAAC,uDAAuD;AAAC,SACjD,CAAC,eACbW,GAAA,CAACI,UAAU,EAAA;AAACD,UAAAA,OAAO,EAAC,OAAO;AAAAL,UAAAA,QAAA,EACxBT,CAAC,CAAC,sDAAsD,EAAE;AACzDsB,YAAAA,KAAK,EAAEnB;WACR;AAAC,SACQ,CAAC,eACbQ,GAAA,CAACI,UAAU,EAAA;AAACF,UAAAA,SAAS,EAAC,eAAe;AAACC,UAAAA,OAAO,EAAC,OAAO;UAAAL,QAAA,EAClDT,CAAC,CAAC,gDAAgD;AAAC,SAC1C,CAAC;OACV;AAAC,KACC,CACV;AAAA,GACD,CAAC;AAEP;;;;"}
|
|
@@ -6,14 +6,14 @@ import Container from '@bigbinary/neeto-molecules/v2/Container';
|
|
|
6
6
|
import Header from '@bigbinary/neeto-molecules/v2/Header';
|
|
7
7
|
import { mergeLeft } from 'ramda';
|
|
8
8
|
import { useTranslation, Trans } from 'react-i18next';
|
|
9
|
-
import { u as useFetchRecurringSettings, a as useUpdateRecurringSettings } from '../useRecurringSettingsApi-
|
|
9
|
+
import { u as useFetchRecurringSettings, a as useUpdateRecurringSettings } from '../useRecurringSettingsApi-Dkjo_BKx.js';
|
|
10
10
|
import { t } from 'i18next';
|
|
11
11
|
import * as yup from 'yup';
|
|
12
12
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
13
13
|
import '@tanstack/react-query';
|
|
14
14
|
import 'neetocommons/react-utils';
|
|
15
15
|
import 'axios';
|
|
16
|
-
import '../index-
|
|
16
|
+
import '../index-CpGnAY9G.js';
|
|
17
17
|
import 'neetocommons/constants';
|
|
18
18
|
import 'decimal.js';
|
|
19
19
|
import 'neetocommons/utils';
|
|
@@ -5,10 +5,10 @@ import { getQueryParams, buildUrl } from 'neetocommons/utils';
|
|
|
5
5
|
import { Bar, buildFiltersFromURL } from '@bigbinary/neeto-filters-frontend/v2';
|
|
6
6
|
import { map, curry, reject, isNil, concat, prop, mergeDeepWith, mergeLeft, isEmpty } from 'ramda';
|
|
7
7
|
import { useHistory } from 'react-router-dom';
|
|
8
|
-
import { E as ExportModal } from '../ExportModal-
|
|
9
|
-
import { u as useFetchRefunds } from '../useRefundsApi-
|
|
10
|
-
import { q as PAYMENT_PROVIDERS, r as formatAmount, s as formatCurrency, z as DEFAULT_SORT_PROPERTIES, A as ASSOCIATED_TABLE_COLUMNS, x as shouldTabsVisible, U as UN_HIDEABLE_COLUMNS, D as DEFAULT_PAGE_VALUES, y as DASHBOARD_KIND } from '../index-
|
|
11
|
-
import { m as mergeEnforcedFilters } from '../dashboard-
|
|
8
|
+
import { E as ExportModal } from '../ExportModal-Imx5pEqt.js';
|
|
9
|
+
import { u as useFetchRefunds } from '../useRefundsApi-Ce4HmQgn.js';
|
|
10
|
+
import { q as PAYMENT_PROVIDERS, r as formatAmount, s as formatCurrency, z as DEFAULT_SORT_PROPERTIES, A as ASSOCIATED_TABLE_COLUMNS, x as shouldTabsVisible, U as UN_HIDEABLE_COLUMNS, D as DEFAULT_PAGE_VALUES, y as DASHBOARD_KIND } from '../index-CpGnAY9G.js';
|
|
11
|
+
import { m as mergeEnforcedFilters } from '../dashboard-BP47wvu-.js';
|
|
12
12
|
import { t } from 'i18next';
|
|
13
13
|
import { toLabelAndValue, humanize, snakeToCamelCase, isPresent, isNotPresent, camelToSnakeCase } from 'neetocist';
|
|
14
14
|
import { RotateCcw } from 'lucide-react';
|
|
@@ -22,7 +22,7 @@ import { C as CopyButtonWrapper } from '../CopyButtonWrapper-B53v2TyQ.js';
|
|
|
22
22
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
23
23
|
import Header from '@bigbinary/neeto-molecules/v2/Header';
|
|
24
24
|
import SubHeader from '@bigbinary/neeto-molecules/v2/SubHeader';
|
|
25
|
-
import '../useExportsApi-
|
|
25
|
+
import '../useExportsApi-BCnxSe7P.js';
|
|
26
26
|
import '@tanstack/react-query';
|
|
27
27
|
import 'axios';
|
|
28
28
|
import '../queryConstants-8c7Nd8ML.js';
|
|
@@ -5,9 +5,9 @@ import { currencyFormat, getQueryParams, buildUrl } from 'neetocommons/utils';
|
|
|
5
5
|
import { Bar, buildFiltersFromURL } from '@bigbinary/neeto-filters-frontend/v2';
|
|
6
6
|
import { mergeLeft, curry, reject, isNil, concat, map, prop, mergeDeepWith, sortBy, isEmpty, pluck } from 'ramda';
|
|
7
7
|
import { useHistory } from 'react-router-dom';
|
|
8
|
-
import { E as ExportModal } from '../ExportModal-
|
|
9
|
-
import { u as useShowSplitTransfers, a as useFetchSplitTransfers, b as useBulkUpdateSplitTransfers } from '../useSplitTransfersApi-
|
|
10
|
-
import { r as formatAmount, s as formatCurrency, J as PAYMENT_KIND, z as DEFAULT_SORT_PROPERTIES, x as shouldTabsVisible, U as UN_HIDEABLE_COLUMNS, D as DEFAULT_PAGE_VALUES, y as DASHBOARD_KIND } from '../index-
|
|
8
|
+
import { E as ExportModal } from '../ExportModal-Imx5pEqt.js';
|
|
9
|
+
import { u as useShowSplitTransfers, a as useFetchSplitTransfers, b as useBulkUpdateSplitTransfers } from '../useSplitTransfersApi-CDzhSH8q.js';
|
|
10
|
+
import { r as formatAmount, s as formatCurrency, J as PAYMENT_KIND, z as DEFAULT_SORT_PROPERTIES, x as shouldTabsVisible, U as UN_HIDEABLE_COLUMNS, D as DEFAULT_PAGE_VALUES, y as DASHBOARD_KIND } from '../index-CpGnAY9G.js';
|
|
11
11
|
import { Form, Textarea, ActionBlock } from '@bigbinary/neeto-atoms/formik';
|
|
12
12
|
import { useTranslation } from 'react-i18next';
|
|
13
13
|
import { t } from 'i18next';
|
|
@@ -24,7 +24,7 @@ import DateFormat from '@bigbinary/neeto-molecules/v2/DateFormat';
|
|
|
24
24
|
import { C as CopyButtonWrapper } from '../CopyButtonWrapper-B53v2TyQ.js';
|
|
25
25
|
import Header from '@bigbinary/neeto-molecules/v2/Header';
|
|
26
26
|
import SubHeader from '@bigbinary/neeto-molecules/v2/SubHeader';
|
|
27
|
-
import '../useExportsApi-
|
|
27
|
+
import '../useExportsApi-BCnxSe7P.js';
|
|
28
28
|
import '@tanstack/react-query';
|
|
29
29
|
import 'axios';
|
|
30
30
|
import 'neetocommons/react-utils';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Switch } from '@bigbinary/neeto-atoms';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
|
-
import { u as useFetchCheckoutSetting, a as useUpdateCheckoutSetting } from '../useCheckoutSettingsApi-
|
|
3
|
+
import { u as useFetchCheckoutSetting, a as useUpdateCheckoutSetting } from '../useCheckoutSettingsApi-B29sE02j.js';
|
|
4
4
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
5
|
import '@tanstack/react-query';
|
|
6
6
|
import 'neetocommons/react-utils';
|
|
7
7
|
import 'ramda';
|
|
8
8
|
import 'axios';
|
|
9
|
-
import '../index-
|
|
9
|
+
import '../index-CpGnAY9G.js';
|
|
10
10
|
import 'i18next';
|
|
11
11
|
import 'neetocommons/constants';
|
|
12
12
|
import 'decimal.js';
|
package/dist/v2/StripeConnect.js
CHANGED
|
@@ -9,14 +9,14 @@ import DOMPurify from 'dompurify';
|
|
|
9
9
|
import { buildUrl } from 'neetocommons/v2/utils';
|
|
10
10
|
import { Stripe } from '@bigbinary/neeto-icons/misc';
|
|
11
11
|
import CardLayout from '@bigbinary/neeto-molecules/v2/CardLayout';
|
|
12
|
-
import { u as useFetchPaymentIntegrations } from '../useIntegrationsApi-
|
|
13
|
-
import { F as STRIPE_CONNECT_ENDPOINT, P as POLLING_INTERVAL, E as ERROR_TYPE, M as MAX_POLLING_TIME } from '../index-
|
|
12
|
+
import { u as useFetchPaymentIntegrations } from '../useIntegrationsApi-BEZaeW9w.js';
|
|
13
|
+
import { F as STRIPE_CONNECT_ENDPOINT, P as POLLING_INTERVAL, E as ERROR_TYPE, M as MAX_POLLING_TIME } from '../index-CpGnAY9G.js';
|
|
14
14
|
import { t } from 'i18next';
|
|
15
15
|
import * as yup from 'yup';
|
|
16
16
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
17
17
|
import { Form, Select, ActionBlock } from '@bigbinary/neeto-atoms/formik';
|
|
18
|
-
import { u as useCreateStripeAccount, a as usePollingStripeAccountCreationStatus } from '../useAccountsApi-
|
|
19
|
-
import { u as useFetchStripeCountries } from '../useCountriesApi-
|
|
18
|
+
import { u as useCreateStripeAccount, a as usePollingStripeAccountCreationStatus } from '../useAccountsApi-DF78k_sA.js';
|
|
19
|
+
import { u as useFetchStripeCountries } from '../useCountriesApi-CSfkzWgq.js';
|
|
20
20
|
import { useQueryClient } from '@tanstack/react-query';
|
|
21
21
|
import { useQueryParams } from 'neetocommons/v2/react-utils';
|
|
22
22
|
import { Q as QUERY_KEYS } from '../queryConstants-8c7Nd8ML.js';
|
package/dist/v2/StripeManage.js
CHANGED
|
@@ -5,12 +5,12 @@ import CardLayout from '@bigbinary/neeto-molecules/v2/CardLayout';
|
|
|
5
5
|
import StripeCheckoutSetting from './StripeCheckoutSetting.js';
|
|
6
6
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
7
7
|
import 'react-i18next';
|
|
8
|
-
import '../useCheckoutSettingsApi-
|
|
8
|
+
import '../useCheckoutSettingsApi-B29sE02j.js';
|
|
9
9
|
import '@tanstack/react-query';
|
|
10
10
|
import 'neetocommons/react-utils';
|
|
11
11
|
import 'ramda';
|
|
12
12
|
import 'axios';
|
|
13
|
-
import '../index-
|
|
13
|
+
import '../index-CpGnAY9G.js';
|
|
14
14
|
import 'i18next';
|
|
15
15
|
import 'neetocommons/constants';
|
|
16
16
|
import 'decimal.js';
|
|
@@ -8,7 +8,7 @@ import MoreDropdown from '@bigbinary/neeto-molecules/v2/MoreDropdown';
|
|
|
8
8
|
import TableWrapper from '@bigbinary/neeto-molecules/v2/TableWrapper';
|
|
9
9
|
import { isEmpty } from 'ramda';
|
|
10
10
|
import { useTranslation, Trans } from 'react-i18next';
|
|
11
|
-
import { u as useCreateTax, a as useUpdateTax, b as useFetchTaxes, c as useDeleteTax } from '../useTaxesApi-
|
|
11
|
+
import { u as useCreateTax, a as useUpdateTax, b as useFetchTaxes, c as useDeleteTax } from '../useTaxesApi-CNyTbsgK.js';
|
|
12
12
|
import { Form, Input, RadioGroup, ActionBlock } from '@bigbinary/neeto-atoms/formik';
|
|
13
13
|
import { t } from 'i18next';
|
|
14
14
|
import * as yup from 'yup';
|
|
@@ -16,7 +16,7 @@ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
|
16
16
|
import '@tanstack/react-query';
|
|
17
17
|
import 'neetocommons/react-utils';
|
|
18
18
|
import 'axios';
|
|
19
|
-
import '../index-
|
|
19
|
+
import '../index-CpGnAY9G.js';
|
|
20
20
|
import 'neetocommons/constants';
|
|
21
21
|
import 'decimal.js';
|
|
22
22
|
import 'neetocommons/utils';
|
package/dist/v2/index.js
CHANGED
|
@@ -22,7 +22,7 @@ export { default as StripeCheckoutSetting } from './StripeCheckoutSetting.js';
|
|
|
22
22
|
export { default as StripeConnect } from './StripeConnect.js';
|
|
23
23
|
export { default as StripeManage } from './StripeManage.js';
|
|
24
24
|
export { default as TaxesDashboard } from './TaxesDashboard.js';
|
|
25
|
-
export { g as getAddressElementOptions,
|
|
25
|
+
export { g as getAddressElementOptions, a as getAmountInSmallestCurrencyUnit } from '../index-CpGnAY9G.js';
|
|
26
26
|
export { default as useStripePromise } from '../useStripePromise.js';
|
|
27
27
|
import '../main-Bqi97Os6.js';
|
|
28
28
|
import 'react';
|
|
@@ -34,7 +34,7 @@ import '@bigbinary/neeto-filters-frontend/v2';
|
|
|
34
34
|
import '@bigbinary/neeto-molecules/v2/Header';
|
|
35
35
|
import '@bigbinary/neeto-molecules/v2/SubHeader';
|
|
36
36
|
import 'react-i18next';
|
|
37
|
-
import '../useExportsApi-
|
|
37
|
+
import '../useExportsApi-B_ABJiMX.js';
|
|
38
38
|
import '@tanstack/react-query';
|
|
39
39
|
import '@tanstack/react-query-devtools';
|
|
40
40
|
import 'neetocommons/constants';
|
|
@@ -45,7 +45,7 @@ import 'neetocommons/utils';
|
|
|
45
45
|
import 'lucide-react';
|
|
46
46
|
import 'ramda';
|
|
47
47
|
import 'react-router-dom';
|
|
48
|
-
import '../dashboard-
|
|
48
|
+
import '../dashboard-BP47wvu-.js';
|
|
49
49
|
import '../renderFunctions-SFUBbGqd.js';
|
|
50
50
|
import '@bigbinary/neeto-molecules/v2/DateFormat';
|
|
51
51
|
import '../CopyButtonWrapper-B53v2TyQ.js';
|
|
@@ -53,44 +53,44 @@ import '@bigbinary/neeto-molecules/v2/CopyToClipboardButton';
|
|
|
53
53
|
import '../copy-button-EhEBcNP9.js';
|
|
54
54
|
import '@bigbinary/neeto-molecules/v2/Columns';
|
|
55
55
|
import '@bigbinary/neeto-molecules/v2/TableWrapper';
|
|
56
|
-
import '../useAccountsApi-
|
|
56
|
+
import '../useAccountsApi-DF78k_sA.js';
|
|
57
57
|
import 'neetocommons/react-utils';
|
|
58
58
|
import '../queryConstants-8c7Nd8ML.js';
|
|
59
|
-
import '../useRecurringPaymentsApi-
|
|
60
|
-
import '../usePaymentApi-
|
|
59
|
+
import '../useRecurringPaymentsApi-B6zvIYkm.js';
|
|
60
|
+
import '../usePaymentApi-B0BXE-4o.js';
|
|
61
61
|
import '@bigbinary/neeto-atoms/formik';
|
|
62
|
-
import '../useRecurringPaymentsApi-
|
|
63
|
-
import '../useVpasApi-
|
|
62
|
+
import '../useRecurringPaymentsApi-BTOeJ8Xu.js';
|
|
63
|
+
import '../useVpasApi-X1KhsMZl.js';
|
|
64
64
|
import '@bigbinary/neeto-molecules/v2/CardLayout';
|
|
65
65
|
import 'yup';
|
|
66
66
|
import 'neetocommons/v2/utils';
|
|
67
67
|
import '@bigbinary/neeto-molecules/v2/MoreDropdown';
|
|
68
68
|
import '@rails/activestorage';
|
|
69
69
|
import 'qrcode.react';
|
|
70
|
-
import '../usePaymentApi-
|
|
70
|
+
import '../usePaymentApi-BfoBBuRN.js';
|
|
71
71
|
import 'formik';
|
|
72
|
-
import '../ExportModal-
|
|
73
|
-
import '../useExportsApi-
|
|
74
|
-
import '../usePaymentsApi-
|
|
72
|
+
import '../ExportModal-Imx5pEqt.js';
|
|
73
|
+
import '../useExportsApi-BCnxSe7P.js';
|
|
74
|
+
import '../usePaymentsApi-Ctl1XsA1.js';
|
|
75
75
|
import '../index-CKJlawqs.js';
|
|
76
|
-
import '../usePlatformApi-
|
|
76
|
+
import '../usePlatformApi-B29AJb-p.js';
|
|
77
77
|
import 'qs';
|
|
78
78
|
import 'react-router-dom/cjs/react-router-dom';
|
|
79
|
-
import '../useFetchData-
|
|
79
|
+
import '../useFetchData-Cleas8Tk.js';
|
|
80
80
|
import '@bigbinary/neeto-icons/misc';
|
|
81
81
|
import '@bigbinary/neeto-molecules/v2/Container';
|
|
82
|
-
import '../useIntegrationsApi-
|
|
82
|
+
import '../useIntegrationsApi-BEZaeW9w.js';
|
|
83
83
|
import '@bigbinary/neeto-molecules/v2/PhoneNumber';
|
|
84
|
-
import '../useBusinessTypesApi-
|
|
85
|
-
import '../
|
|
84
|
+
import '../useBusinessTypesApi-DwddCKIb.js';
|
|
85
|
+
import '../razorpayCheckoutOutcome-ChPKzUYJ.js';
|
|
86
86
|
import 'neetocommons/initializers';
|
|
87
|
-
import '../useRecurringSettingsApi-
|
|
88
|
-
import '../useRefundsApi-
|
|
89
|
-
import '../useSplitTransfersApi-
|
|
87
|
+
import '../useRecurringSettingsApi-Dkjo_BKx.js';
|
|
88
|
+
import '../useRefundsApi-Ce4HmQgn.js';
|
|
89
|
+
import '../useSplitTransfersApi-CDzhSH8q.js';
|
|
90
90
|
import '@bigbinary/neeto-molecules/v2/HelpPopover';
|
|
91
|
-
import '../useCheckoutSettingsApi-
|
|
91
|
+
import '../useCheckoutSettingsApi-B29sE02j.js';
|
|
92
92
|
import 'dompurify';
|
|
93
|
-
import '../useCountriesApi-
|
|
94
|
-
import '../useTaxesApi-
|
|
93
|
+
import '../useCountriesApi-CSfkzWgq.js';
|
|
94
|
+
import '../useTaxesApi-CNyTbsgK.js';
|
|
95
95
|
import 'decimal.js';
|
|
96
96
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-payments-frontend",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0",
|
|
4
4
|
"description": "To manage payments across the neeto products.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://github.com/bigbinary/neeto-payments-nano",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@babel/core": "7.
|
|
65
|
+
"@babel/core": "7.29.7",
|
|
66
66
|
"@babel/eslint-parser": "7.25.9",
|
|
67
67
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
68
68
|
"@babel/plugin-transform-runtime": "7.25.9",
|
|
@@ -71,14 +71,14 @@
|
|
|
71
71
|
"@babel/preset-typescript": "7.26.0",
|
|
72
72
|
"@babel/runtime": "7.29.7",
|
|
73
73
|
"@bigbinary/babel-preset-neeto": "^1.0.3",
|
|
74
|
-
"@bigbinary/eslint-plugin-neeto": "1.9.
|
|
74
|
+
"@bigbinary/eslint-plugin-neeto": "1.9.1",
|
|
75
75
|
"@bigbinary/neeto-atoms": "1.0.90",
|
|
76
76
|
"@bigbinary/neeto-cist": "1.0.17",
|
|
77
|
-
"@bigbinary/neeto-commons-frontend": "4.13.
|
|
77
|
+
"@bigbinary/neeto-commons-frontend": "4.13.144",
|
|
78
78
|
"@bigbinary/neeto-editor": "1.47.120",
|
|
79
|
-
"@bigbinary/neeto-filters-frontend": "4.3.
|
|
79
|
+
"@bigbinary/neeto-filters-frontend": "4.3.42",
|
|
80
80
|
"@bigbinary/neeto-icons": "1.20.89",
|
|
81
|
-
"@bigbinary/neeto-molecules": "5.
|
|
81
|
+
"@bigbinary/neeto-molecules": "5.2.6",
|
|
82
82
|
"@dnd-kit/core": "6.3.1",
|
|
83
83
|
"@dnd-kit/sortable": "10.0.0",
|
|
84
84
|
"@emotion/is-prop-valid": "1.2.0",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"@tanstack/react-query-devtools": "5.59.20",
|
|
100
100
|
"antd": "5.22.1",
|
|
101
101
|
"autoprefixer": "^10.4.5",
|
|
102
|
-
"axios": "1.
|
|
102
|
+
"axios": "1.18.0",
|
|
103
103
|
"babel-loader": "^8.2.5",
|
|
104
104
|
"babel-plugin-istanbul": "^6.1.1",
|
|
105
105
|
"babel-plugin-js-logger": "1.0.17",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"classnames": "2.5.1",
|
|
115
115
|
"crypto-browserify": "3.12.1",
|
|
116
116
|
"css-loader": "6.8.1",
|
|
117
|
-
"dompurify": "3.4.
|
|
117
|
+
"dompurify": "3.4.11",
|
|
118
118
|
"dotenv-webpack": "^8.0.1",
|
|
119
119
|
"eslint": "^9.25.1",
|
|
120
120
|
"eslint-config-prettier": "^10.1.2",
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
"mixpanel-browser": "2.47.0",
|
|
146
146
|
"os-browserify": "0.3.0",
|
|
147
147
|
"path-browserify": "^1.0.1",
|
|
148
|
-
"postcss": "8.5.
|
|
148
|
+
"postcss": "8.5.15",
|
|
149
149
|
"postcss-import": "^15.0.0",
|
|
150
150
|
"postcss-loader": "^7.0.1",
|
|
151
151
|
"postcss-preset-env": "7.8.2",
|
|
@@ -188,11 +188,11 @@
|
|
|
188
188
|
"@babel/runtime": "7.29.7",
|
|
189
189
|
"@bigbinary/neeto-atoms": "1.0.90",
|
|
190
190
|
"@bigbinary/neeto-cist": "1.0.17",
|
|
191
|
-
"@bigbinary/neeto-commons-frontend": "4.13.
|
|
191
|
+
"@bigbinary/neeto-commons-frontend": "4.13.144",
|
|
192
192
|
"@bigbinary/neeto-editor": "1.47.120",
|
|
193
|
-
"@bigbinary/neeto-filters-frontend": "4.3.
|
|
193
|
+
"@bigbinary/neeto-filters-frontend": "4.3.42",
|
|
194
194
|
"@bigbinary/neeto-icons": "1.20.89",
|
|
195
|
-
"@bigbinary/neeto-molecules": "5.
|
|
195
|
+
"@bigbinary/neeto-molecules": "5.2.6",
|
|
196
196
|
"@dnd-kit/core": "6.3.1",
|
|
197
197
|
"@dnd-kit/sortable": "10.0.0",
|
|
198
198
|
"@honeybadger-io/js": "6.10.1",
|
|
@@ -201,11 +201,11 @@
|
|
|
201
201
|
"@tanstack/react-query": "5.59.20",
|
|
202
202
|
"@tanstack/react-query-devtools": "5.59.20",
|
|
203
203
|
"antd": "5.22.1",
|
|
204
|
-
"axios": "1.
|
|
204
|
+
"axios": "1.18.0",
|
|
205
205
|
"buffer": "^6.0.3",
|
|
206
206
|
"classnames": "2.5.1",
|
|
207
207
|
"crypto-browserify": "3.12.1",
|
|
208
|
-
"dompurify": "3.4.
|
|
208
|
+
"dompurify": "3.4.11",
|
|
209
209
|
"formik": "2.4.6",
|
|
210
210
|
"https-browserify": "1.0.0",
|
|
211
211
|
"i18next": "22.5.1",
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var reactQuery = require('@tanstack/react-query');
|
|
4
|
-
require('neetocist');
|
|
5
|
-
var axios = require('axios');
|
|
6
|
-
var constants = require('./index-CpEnC-Gq.js');
|
|
7
|
-
|
|
8
|
-
const create = payload => axios.post(`${constants.BASE_URL}/api/v1/public/razorpay/payments`, {
|
|
9
|
-
payment: payload
|
|
10
|
-
});
|
|
11
|
-
const paymentsApi = {
|
|
12
|
-
create
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
const useCreateRazorpayPayment = options => reactQuery.useMutation({
|
|
16
|
-
mutationFn: paymentsApi.create,
|
|
17
|
-
...options
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
exports.useCreateRazorpayPayment = useCreateRazorpayPayment;
|
|
21
|
-
//# sourceMappingURL=usePaymentApi-B198Hd_a.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePaymentApi-B198Hd_a.js","sources":["../../app/javascript/src/apis/razorpay/payments.js","../../app/javascript/src/hooks/reactQuery/razorpay/usePaymentApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { BASE_URL } from \"src/constants\";\n\nconst create = payload =>\n axios.post(`${BASE_URL}/api/v1/public/razorpay/payments`, {\n payment: payload,\n });\n\nconst defaultList = payload =>\n axios.get(`${BASE_URL}/api/v1/razorpay/holdable/payments`, {\n params: payload,\n });\n\nconst list = (holdableId, payload) =>\n axios.get(`${BASE_URL}/api/v1/razorpay/holdables/${holdableId}/payments`, {\n params: payload,\n });\n\nconst paymentsApi = { defaultList, list, create };\n\nexport default paymentsApi;\n","import { useQuery, useMutation } from \"@tanstack/react-query\";\nimport { isPresent } from \"neetocist\";\n\nimport paymentsApi from \"apis/razorpay/payments\";\nimport { QUERY_KEYS } from \"src/common/queryConstants\";\n\nexport const useFetchRazorpayPayments = (\n holdableId = \"\",\n payload = {},\n options = {}\n) =>\n useQuery({\n queryKey: [QUERY_KEYS.RAZORPAY_ACCOUNT_DETAILS, payload],\n queryFn: () => {\n if (isPresent(holdableId)) return paymentsApi.list(holdableId, payload);\n\n return paymentsApi.defaultList(payload);\n },\n ...options,\n });\n\nexport const useCreateRazorpayPayment = options =>\n useMutation({ mutationFn: paymentsApi.create, ...options });\n"],"names":["create","payload","axios","post","BASE_URL","payment","paymentsApi","useCreateRazorpayPayment","options","useMutation","mutationFn"],"mappings":";;;;;;;AAIA,MAAMA,MAAM,GAAGC,OAAO,IACpBC,KAAK,CAACC,IAAI,CAAC,CAAA,EAAGC,kBAAQ,CAAA,gCAAA,CAAkC,EAAE;AACxDC,EAAAA,OAAO,EAAEJ;AACX,CAAC,CAAC;AAYJ,MAAMK,WAAW,GAAG;EAAqBN;AAAO,CAAC;;MCEpCO,wBAAwB,GAAGC,OAAO,IAC7CC,sBAAW,CAAC;EAAEC,UAAU,EAAEJ,WAAW,CAACN,MAAM;EAAE,GAAGQ;AAAQ,CAAC;;;;"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { useMutation } from '@tanstack/react-query';
|
|
2
|
-
import 'neetocist';
|
|
3
|
-
import axios from 'axios';
|
|
4
|
-
import { B as BASE_URL } from './index-CajHy3NQ.js';
|
|
5
|
-
|
|
6
|
-
const create = payload => axios.post(`${BASE_URL}/api/v1/public/razorpay/payments`, {
|
|
7
|
-
payment: payload
|
|
8
|
-
});
|
|
9
|
-
const paymentsApi = {
|
|
10
|
-
create
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
const useCreateRazorpayPayment = options => useMutation({
|
|
14
|
-
mutationFn: paymentsApi.create,
|
|
15
|
-
...options
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
export { useCreateRazorpayPayment as u };
|
|
19
|
-
//# sourceMappingURL=usePaymentApi-BzB3rzNe.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePaymentApi-BzB3rzNe.js","sources":["../app/javascript/src/apis/razorpay/payments.js","../app/javascript/src/hooks/reactQuery/razorpay/usePaymentApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { BASE_URL } from \"src/constants\";\n\nconst create = payload =>\n axios.post(`${BASE_URL}/api/v1/public/razorpay/payments`, {\n payment: payload,\n });\n\nconst defaultList = payload =>\n axios.get(`${BASE_URL}/api/v1/razorpay/holdable/payments`, {\n params: payload,\n });\n\nconst list = (holdableId, payload) =>\n axios.get(`${BASE_URL}/api/v1/razorpay/holdables/${holdableId}/payments`, {\n params: payload,\n });\n\nconst paymentsApi = { defaultList, list, create };\n\nexport default paymentsApi;\n","import { useQuery, useMutation } from \"@tanstack/react-query\";\nimport { isPresent } from \"neetocist\";\n\nimport paymentsApi from \"apis/razorpay/payments\";\nimport { QUERY_KEYS } from \"src/common/queryConstants\";\n\nexport const useFetchRazorpayPayments = (\n holdableId = \"\",\n payload = {},\n options = {}\n) =>\n useQuery({\n queryKey: [QUERY_KEYS.RAZORPAY_ACCOUNT_DETAILS, payload],\n queryFn: () => {\n if (isPresent(holdableId)) return paymentsApi.list(holdableId, payload);\n\n return paymentsApi.defaultList(payload);\n },\n ...options,\n });\n\nexport const useCreateRazorpayPayment = options =>\n useMutation({ mutationFn: paymentsApi.create, ...options });\n"],"names":["create","payload","axios","post","BASE_URL","payment","paymentsApi","useCreateRazorpayPayment","options","useMutation","mutationFn"],"mappings":";;;;;AAIA,MAAMA,MAAM,GAAGC,OAAO,IACpBC,KAAK,CAACC,IAAI,CAAC,CAAA,EAAGC,QAAQ,CAAA,gCAAA,CAAkC,EAAE;AACxDC,EAAAA,OAAO,EAAEJ;AACX,CAAC,CAAC;AAYJ,MAAMK,WAAW,GAAG;EAAqBN;AAAO,CAAC;;MCEpCO,wBAAwB,GAAGC,OAAO,IAC7CC,WAAW,CAAC;EAAEC,UAAU,EAAEJ,WAAW,CAACN,MAAM;EAAE,GAAGQ;AAAQ,CAAC;;;;"}
|