@bigbinary/neeto-payments-frontend 3.3.48 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/app/javascript/src/translations/en.json +6 -1
- package/dist/AccountsDashboard.js +1 -1
- package/dist/CustomerCancelRecurringPaymentForm.js +1 -1
- package/dist/ManualUpiConnect.js +256 -0
- package/dist/ManualUpiConnect.js.map +1 -0
- package/dist/{UpiPayment.js → ManualUpiPayment.js} +6 -4
- package/dist/ManualUpiPayment.js.map +1 -0
- package/dist/ManualUpiPaymentConfirmButton.js +7 -30
- package/dist/ManualUpiPaymentConfirmButton.js.map +1 -1
- package/dist/{ConfirmUpiPaymentButton.js → ManualUpiPaymentRejectButton.js} +37 -55
- package/dist/ManualUpiPaymentRejectButton.js.map +1 -0
- package/dist/PaymentsDashboard.js +1 -1
- package/dist/PayoutsDashboard.js +2 -2
- package/dist/PayoutsPage.js +2 -2
- package/dist/RecurringPaymentSettings.js +1 -1
- package/dist/RefundsDashboard.js +1 -1
- package/dist/SplitTransfersDashboard.js +1 -1
- package/dist/TaxesDashboard.js +1 -1
- package/dist/cjs/AccountsDashboard.js +1 -1
- package/dist/cjs/CustomerCancelRecurringPaymentForm.js +1 -1
- package/dist/cjs/ManualUpiConnect.js +277 -0
- package/dist/cjs/ManualUpiConnect.js.map +1 -0
- package/dist/cjs/{UpiPayment.js → ManualUpiPayment.js} +7 -5
- package/dist/cjs/ManualUpiPayment.js.map +1 -0
- package/dist/cjs/ManualUpiPaymentConfirmButton.js +8 -31
- package/dist/cjs/ManualUpiPaymentConfirmButton.js.map +1 -1
- package/dist/cjs/{ConfirmUpiPaymentButton.js → ManualUpiPaymentRejectButton.js} +36 -73
- package/dist/cjs/ManualUpiPaymentRejectButton.js.map +1 -0
- package/dist/cjs/PaymentsDashboard.js +1 -1
- package/dist/cjs/PayoutsDashboard.js +2 -2
- package/dist/cjs/PayoutsPage.js +2 -2
- package/dist/cjs/RecurringPaymentSettings.js +1 -1
- package/dist/cjs/RefundsDashboard.js +1 -1
- package/dist/cjs/SplitTransfersDashboard.js +1 -1
- package/dist/cjs/TaxesDashboard.js +1 -1
- package/dist/cjs/index.js +15 -15
- package/dist/cjs/{queryConstants-DGg4cX3r.js → queryConstants-D2ARfy8-.js} +3 -2
- package/dist/cjs/queryConstants-D2ARfy8-.js.map +1 -0
- package/dist/cjs/{usePaymentsApi-BulmZ4H9.js → usePaymentApi-CMOLq2VR.js} +26 -12
- package/dist/cjs/usePaymentApi-CMOLq2VR.js.map +1 -0
- package/dist/cjs/{usePlatformApi-C1-u-hze.js → usePlatformApi-CmetBzFR.js} +2 -2
- package/dist/cjs/{usePlatformApi-C1-u-hze.js.map → usePlatformApi-CmetBzFR.js.map} +1 -1
- package/dist/index.js +12 -12
- package/dist/{queryConstants-mgjK5Hgk.js → queryConstants-jobxv6K1.js} +3 -2
- package/dist/queryConstants-jobxv6K1.js.map +1 -0
- package/dist/usePaymentApi-CditWIud.js +52 -0
- package/dist/usePaymentApi-CditWIud.js.map +1 -0
- package/dist/{usePlatformApi-Ca-CVxhW.js → usePlatformApi-CvRR6Wi5.js} +2 -2
- package/dist/{usePlatformApi-Ca-CVxhW.js.map → usePlatformApi-CvRR6Wi5.js.map} +1 -1
- package/package.json +5 -5
- package/dist/ConfirmUpiPaymentButton.js.map +0 -1
- package/dist/UpiConnect.js +0 -171
- package/dist/UpiConnect.js.map +0 -1
- package/dist/UpiPayment.js.map +0 -1
- package/dist/cjs/ConfirmUpiPaymentButton.js.map +0 -1
- package/dist/cjs/UpiConnect.js +0 -192
- package/dist/cjs/UpiConnect.js.map +0 -1
- package/dist/cjs/UpiPayment.js.map +0 -1
- package/dist/cjs/queryConstants-DGg4cX3r.js.map +0 -1
- package/dist/cjs/usePaymentsApi-BulmZ4H9.js.map +0 -1
- package/dist/queryConstants-mgjK5Hgk.js.map +0 -1
- package/dist/usePaymentsApi-BWiIWIWh.js +0 -38
- package/dist/usePaymentsApi-BWiIWIWh.js.map +0 -1
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
3
4
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
4
5
|
var reactQuery = require('@tanstack/react-query');
|
|
6
|
+
var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
5
7
|
var axios = require('axios');
|
|
6
8
|
var constants = require('./index-RKMq21yy.js');
|
|
7
9
|
|
|
8
10
|
var create = function create(payload) {
|
|
9
|
-
return axios.post("".concat(constants.BASE_URL, "/api/v1/public/
|
|
11
|
+
return axios.post("".concat(constants.BASE_URL, "/api/v1/public/manual_upi/payments"), {
|
|
10
12
|
payment: payload
|
|
11
13
|
});
|
|
12
14
|
};
|
|
13
|
-
var update = function update(
|
|
14
|
-
|
|
15
|
+
var update = function update(_ref) {
|
|
16
|
+
var id = _ref.id,
|
|
17
|
+
manualUpiId = _ref.manualUpiId,
|
|
18
|
+
payload = _ref.payload;
|
|
19
|
+
return axios.put("".concat(constants.BASE_URL, "/api/v1/manual_upi/").concat(manualUpiId, "/payments/").concat(id), {
|
|
15
20
|
payment: payload
|
|
16
21
|
});
|
|
17
22
|
};
|
|
18
23
|
var paymentsApi = {
|
|
19
|
-
|
|
20
|
-
|
|
24
|
+
update: update,
|
|
25
|
+
create: create
|
|
21
26
|
};
|
|
22
27
|
|
|
23
28
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -27,15 +32,24 @@ var useCreateUpiPayment = function useCreateUpiPayment(options) {
|
|
|
27
32
|
mutationFn: paymentsApi.create
|
|
28
33
|
}, options));
|
|
29
34
|
};
|
|
30
|
-
var useUpdateUpiPayment = function useUpdateUpiPayment(
|
|
31
|
-
var
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
var useUpdateUpiPayment = function useUpdateUpiPayment(_ref) {
|
|
36
|
+
var id = _ref.id,
|
|
37
|
+
manualUpiId = _ref.manualUpiId,
|
|
38
|
+
_ref$options = _ref.options,
|
|
39
|
+
options = _ref$options === void 0 ? {} : _ref$options,
|
|
40
|
+
_ref$keysToInvalidate = _ref.keysToInvalidate,
|
|
41
|
+
keysToInvalidate = _ref$keysToInvalidate === void 0 ? [] : _ref$keysToInvalidate;
|
|
42
|
+
return reactUtils.useMutationWithInvalidation(function (payload) {
|
|
43
|
+
return paymentsApi.update({
|
|
44
|
+
id: id,
|
|
45
|
+
manualUpiId: manualUpiId,
|
|
46
|
+
payload: payload
|
|
47
|
+
});
|
|
48
|
+
}, _objectSpread({
|
|
49
|
+
keysToInvalidate: _toConsumableArray(keysToInvalidate)
|
|
36
50
|
}, options));
|
|
37
51
|
};
|
|
38
52
|
|
|
39
53
|
exports.useCreateUpiPayment = useCreateUpiPayment;
|
|
40
54
|
exports.useUpdateUpiPayment = useUpdateUpiPayment;
|
|
41
|
-
//# sourceMappingURL=
|
|
55
|
+
//# sourceMappingURL=usePaymentApi-CMOLq2VR.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePaymentApi-CMOLq2VR.js","sources":["../../app/javascript/src/apis/manual_upi/payments.js","../../app/javascript/src/hooks/reactQuery/manualUpi/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/manual_upi/payments`, {\n payment: payload,\n });\n\nconst update = ({ id, manualUpiId, payload }) =>\n axios.put(`${BASE_URL}/api/v1/manual_upi/${manualUpiId}/payments/${id}`, {\n payment: payload,\n });\n\nconst paymentsApi = { update, create };\n\nexport default paymentsApi;\n","import { useMutation } from \"@tanstack/react-query\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport paymentsApi from \"apis/manual_upi/payments\";\n\nexport const useCreateUpiPayment = options =>\n useMutation({ mutationFn: paymentsApi.create, ...options });\n\nexport const useUpdateUpiPayment = ({\n id,\n manualUpiId,\n options = {},\n keysToInvalidate = [],\n}) =>\n useMutationWithInvalidation(\n payload => paymentsApi.update({ id, manualUpiId, payload }),\n { keysToInvalidate: [...keysToInvalidate], ...options }\n );\n"],"names":["create","payload","axios","post","concat","BASE_URL","payment","update","_ref","id","manualUpiId","put","paymentsApi","useCreateUpiPayment","options","useMutation","_objectSpread","mutationFn","useUpdateUpiPayment","_ref$options","_ref$keysToInvalidate","keysToInvalidate","useMutationWithInvalidation","_toConsumableArray"],"mappings":";;;;;;;;;AAIA,IAAMA,MAAM,GAAG,SAATA,MAAMA,CAAGC,OAAO,EAAA;AAAA,EAAA,OACpBC,KAAK,CAACC,IAAI,IAAAC,MAAA,CAAIC,kBAAQ,EAAsC,oCAAA,CAAA,EAAA;AAC1DC,IAAAA,OAAO,EAAEL;AACX,GAAC,CAAC;AAAA,CAAA;AAEJ,IAAMM,MAAM,GAAG,SAATA,MAAMA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,EAAE,GAAAD,IAAA,CAAFC,EAAE;IAAEC,WAAW,GAAAF,IAAA,CAAXE,WAAW;IAAET,OAAO,GAAAO,IAAA,CAAPP,OAAO;AAAA,EAAA,OACxCC,KAAK,CAACS,GAAG,CAAA,EAAA,CAAAP,MAAA,CAAIC,kBAAQ,EAAAD,qBAAAA,CAAAA,CAAAA,MAAA,CAAsBM,WAAW,EAAA,YAAA,CAAA,CAAAN,MAAA,CAAaK,EAAE,CAAI,EAAA;AACvEH,IAAAA,OAAO,EAAEL;AACX,GAAC,CAAC;AAAA,CAAA;AAEJ,IAAMW,WAAW,GAAG;AAAEL,EAAAA,MAAM,EAANA,MAAM;AAAEP,EAAAA,MAAM,EAANA;AAAO,CAAC;;;;ICTzBa,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAGC,OAAO,EAAA;EAAA,OACxCC,sBAAW,CAAAC,aAAA,CAAA;IAAGC,UAAU,EAAEL,WAAW,CAACZ;GAAWc,EAAAA,OAAO,CAAE,CAAC;AAAA;IAEhDI,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAAV,IAAA,EAAA;AAAA,EAAA,IAC9BC,EAAE,GAAAD,IAAA,CAAFC,EAAE;IACFC,WAAW,GAAAF,IAAA,CAAXE,WAAW;IAAAS,YAAA,GAAAX,IAAA,CACXM,OAAO;AAAPA,IAAAA,OAAO,GAAAK,YAAA,KAAA,KAAA,CAAA,GAAG,EAAE,GAAAA,YAAA;IAAAC,qBAAA,GAAAZ,IAAA,CACZa,gBAAgB;AAAhBA,IAAAA,gBAAgB,GAAAD,qBAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,qBAAA;EAAA,OAErBE,sCAA2B,CACzB,UAAArB,OAAO,EAAA;IAAA,OAAIW,WAAW,CAACL,MAAM,CAAC;AAAEE,MAAAA,EAAE,EAAFA,EAAE;AAAEC,MAAAA,WAAW,EAAXA,WAAW;AAAET,MAAAA,OAAO,EAAPA;AAAQ,KAAC,CAAC;AAAA,GAAA,EAAAe,aAAA,CAAA;IACzDK,gBAAgB,EAAAE,kBAAA,CAAMF,gBAAgB;GAAMP,EAAAA,OAAO,CACvD,CAAC;AAAA;;;;;"}
|
|
@@ -7,7 +7,7 @@ require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
|
7
7
|
var axios = require('axios');
|
|
8
8
|
var constants = require('./index-RKMq21yy.js');
|
|
9
9
|
require('qs');
|
|
10
|
-
var queryConstants = require('./queryConstants-
|
|
10
|
+
var queryConstants = require('./queryConstants-D2ARfy8-.js');
|
|
11
11
|
|
|
12
12
|
var list$1 = function list(payload) {
|
|
13
13
|
return axios.get("".concat(constants.BASE_URL, "/api/v1/stripe/holdable/payouts"), {
|
|
@@ -81,4 +81,4 @@ exports.useFetchStripePayouts = useFetchStripePayouts;
|
|
|
81
81
|
exports.useFetchStripePlatformPayouts = useFetchStripePlatformPayouts;
|
|
82
82
|
exports.useShowStripePayout = useShowStripePayout;
|
|
83
83
|
exports.useShowStripePlatformPayout = useShowStripePlatformPayout;
|
|
84
|
-
//# sourceMappingURL=usePlatformApi-
|
|
84
|
+
//# sourceMappingURL=usePlatformApi-CmetBzFR.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePlatformApi-
|
|
1
|
+
{"version":3,"file":"usePlatformApi-CmetBzFR.js","sources":["../../app/javascript/src/apis/stripe/holdables/payouts.js","../../app/javascript/src/hooks/reactQuery/stripe/useConnectApi.js","../../app/javascript/src/apis/stripePlatform/payouts.js","../../app/javascript/src/hooks/reactQuery/stripe/usePlatformApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { BASE_URL } from \"src/constants\";\n\nconst list = payload =>\n axios.get(`${BASE_URL}/api/v1/stripe/holdable/payouts`, { params: payload });\n\nconst show = id =>\n axios.get(`${BASE_URL}/api/v1/stripe/holdable/payouts/${id}`);\n\nconst payoutsApi = { list, show };\n\nexport default payoutsApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { isPresent } from \"neetocist\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport accountsApi from \"apis/stripe/holdables/accounts\";\nimport payoutsApi from \"apis/stripe/holdables/payouts\";\nimport transactionsApi from \"apis/stripe/holdables/transactions\";\nimport { QUERY_KEYS } from \"src/common/queryConstants\";\n\nexport const useFetchConnectedStripeAccount = (holdableId, options = {}) =>\n useQuery({\n queryKey: [QUERY_KEYS.CONNECTED_ACCOUNT, holdableId],\n queryFn: () => accountsApi.show(holdableId),\n ...options,\n });\n\nexport const useFetchStripeTransactions = (\n holdableId = \"\",\n payload = {},\n options = {}\n) =>\n useQuery({\n queryKey: [QUERY_KEYS.TRANSACTIONS_LIST, payload],\n queryFn: () => {\n if (isPresent(holdableId)) {\n return transactionsApi.list(holdableId, payload);\n }\n\n return transactionsApi.defaultList(payload);\n },\n ...options,\n });\n\nexport const useFetchStripePayouts = (payload, options = {}) =>\n useQuery({\n queryKey: [QUERY_KEYS.STRIPE_PAYOUTS_LIST, payload],\n queryFn: () => payoutsApi.list(payload),\n ...options,\n });\n\nexport const useShowStripePayout = (id, options = {}) =>\n useQuery({\n queryKey: [QUERY_KEYS.STRIPE_PAYOUT, id],\n queryFn: () => payoutsApi.show(id),\n ...options,\n });\n\nexport const usePollingStripeAccount = (holdableId, { refetchInterval }) =>\n useQuery({\n queryKey: [QUERY_KEYS.STRIPE_ACCOUNT_DETAILS],\n queryFn: () => accountsApi.show(holdableId),\n refetchInterval,\n });\n\nexport const usePollingStripeAccountCreationStatus = (jobId, options) =>\n useQuery({\n queryKey: [QUERY_KEYS.STRIPE_ACCOUNT_DETAILS, jobId],\n queryFn: () => accountsApi.creationStatus(jobId),\n ...options,\n });\n\nexport const useDestroyStripeAccount = ({ onSuccess, holdableId }) =>\n useMutationWithInvalidation(accountsApi.destroy, {\n keysToInvalidate: [\n [QUERY_KEYS.STRIPE_ACCOUNT_DETAILS],\n [QUERY_KEYS.CONNECTED_ACCOUNT, holdableId],\n ],\n onSuccess,\n });\n\nexport const useCreateStripeAccount = ({ onSuccess }) =>\n useMutationWithInvalidation(accountsApi.create, {\n keysToInvalidate: [[QUERY_KEYS.STRIPE_ACCOUNT_DETAILS]],\n onSuccess,\n });\n","import axios from \"axios\";\n\nimport { BASE_URL } from \"src/constants\";\n\nconst list = payload =>\n axios.get(`${BASE_URL}/api/v1/stripe_platform/payouts`, { params: payload });\n\nconst show = id =>\n axios.get(`${BASE_URL}/api/v1/stripe_platform/payouts/${id}`);\n\nconst payoutsApi = { list, show };\n\nexport default payoutsApi;\n","import { useQuery } from \"@tanstack/react-query\";\n\nimport refundsApi from \"apis/stripe/holdables/refunds\";\nimport accountsApi from \"apis/stripePlatform/accounts\";\nimport payoutsApi from \"apis/stripePlatform/payouts\";\nimport splitsApi from \"apis/stripePlatform/splits\";\nimport transactionsApi from \"apis/stripePlatform/transactions\";\nimport { QUERY_KEYS } from \"src/common/queryConstants\";\n\nexport const useFetchStripePlatformAccount = options =>\n useQuery({\n queryKey: [QUERY_KEYS.STRIPE_PLATFORM_ACCOUNT_DETAILS],\n queryFn: accountsApi.show,\n ...options,\n });\n\nexport const useFetchStripePlatformSplits = (payload, options = {}) =>\n useQuery({\n queryKey: [QUERY_KEYS.SPLITS_LIST, payload],\n queryFn: () => splitsApi.list(payload),\n ...options,\n });\n\nexport const useFetchStripePlatformTransactions = (payload, options) =>\n useQuery({\n queryKey: [QUERY_KEYS.TRANSACTIONS_LIST, payload],\n queryFn: () => transactionsApi.list(payload),\n ...options,\n });\n\nexport const useFetchStripePlatformTransaction = (id, options = {}) =>\n useQuery({\n queryKey: [QUERY_KEYS.STRIPE_PLATFORM_TRANSACTION, id],\n queryFn: () => transactionsApi.show(id),\n ...options,\n });\n\nexport const useFetchStripeRefunds = (payload, options = {}) =>\n useQuery({\n queryKey: [QUERY_KEYS.STRIPE_REFUNDS_LIST, payload],\n queryFn: () => refundsApi.list(payload),\n ...options,\n });\n\nexport const useFetchStripePlatformPayouts = (payload, options = {}) =>\n useQuery({\n queryKey: [QUERY_KEYS.STRIPE_PAYOUTS_LIST, payload],\n queryFn: () => payoutsApi.list(payload),\n ...options,\n });\n\nexport const useShowStripePlatformPayout = (id, options = {}) =>\n useQuery({\n queryKey: [QUERY_KEYS.STRIPE_PAYOUT, id],\n queryFn: () => payoutsApi.show(id),\n ...options,\n });\n"],"names":["list","payload","axios","get","concat","BASE_URL","params","show","id","payoutsApi","useFetchStripePayouts","options","arguments","length","undefined","useQuery","_objectSpread","queryKey","QUERY_KEYS","STRIPE_PAYOUTS_LIST","queryFn","useShowStripePayout","STRIPE_PAYOUT","useFetchStripePlatformPayouts","useShowStripePlatformPayout"],"mappings":";;;;;;;;;;;AAIA,IAAMA,MAAI,GAAG,SAAPA,IAAIA,CAAGC,OAAO,EAAA;AAAA,EAAA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,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;EAAA,OAC1DG,mBAAQ,CAAAC,aAAA,CAAA;AACNC,IAAAA,QAAQ,EAAE,CAACC,yBAAU,CAACI,aAAa,EAAEd,EAAE,CAAC;IACxCY,OAAO,EAAE,SAATA,OAAOA,GAAA;AAAA,MAAA,OAAQX,UAAU,CAACF,IAAI,CAACC,EAAE,CAAC;AAAA;GAC/BG,EAAAA,OAAO,CACX,CAAC;AAAA;;;;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -2,9 +2,11 @@ export { default as AccountsDashboard } from './AccountsDashboard.js';
|
|
|
2
2
|
export { default as AdminCancelRecurringPaymentButton } from './AdminCancelRecurringPaymentButton.js';
|
|
3
3
|
export { default as CashPaymentButton } from './CashPaymentButton.js';
|
|
4
4
|
export { default as ConfirmCashPaymentButton } from './ConfirmCashPaymentButton.js';
|
|
5
|
-
export { default as ConfirmUpiPaymentButton } from './ConfirmUpiPaymentButton.js';
|
|
6
5
|
export { default as CustomerCancelRecurringPaymentForm } from './CustomerCancelRecurringPaymentForm.js';
|
|
6
|
+
export { default as ManualUpiConnect } from './ManualUpiConnect.js';
|
|
7
|
+
export { default as ManualUpiPayment } from './ManualUpiPayment.js';
|
|
7
8
|
export { default as ManualUpiPaymentConfirmButton } from './ManualUpiPaymentConfirmButton.js';
|
|
9
|
+
export { default as ManualUpiPaymentRejectButton } from './ManualUpiPaymentRejectButton.js';
|
|
8
10
|
export { default as PaymentKindRestrictionAlert } from './PaymentKindRestrictionAlert.js';
|
|
9
11
|
export { default as PaymentsDashboard } from './PaymentsDashboard.js';
|
|
10
12
|
export { default as PayoutsDashboard } from './PayoutsDashboard.js';
|
|
@@ -14,8 +16,6 @@ export { default as RecurringPaymentSettings } from './RecurringPaymentSettings.
|
|
|
14
16
|
export { default as RefundsDashboard } from './RefundsDashboard.js';
|
|
15
17
|
export { default as SplitTransfersDashboard } from './SplitTransfersDashboard.js';
|
|
16
18
|
export { default as TaxesDashboard } from './TaxesDashboard.js';
|
|
17
|
-
export { default as UpiConnect } from './UpiConnect.js';
|
|
18
|
-
export { default as UpiPayment } from './UpiPayment.js';
|
|
19
19
|
export { default as useRazorpayPayment } from './useRazorpayPayment.js';
|
|
20
20
|
export { default as useStripePromise } from './useStripePromise.js';
|
|
21
21
|
export { C as CURRENCY_OPTIONS, b as buildStripeTransactionLink, g as getAmountInSmallestCurrencyUnit, h as getAmountWithAppliedTax, a as getFormattedAmount, c as getFormattedTaxAmount, e as getFormattedTipAmount, i as getQrCodeValue, f as getTaxAmount, d as getTipAmount } from './index-Cw8BnbrE.js';
|
|
@@ -57,35 +57,35 @@ import '@bigbinary/neeto-molecules/TableWrapper';
|
|
|
57
57
|
import '@bigbinary/neetoui/Table';
|
|
58
58
|
import '@bigbinary/neetoui/NoData';
|
|
59
59
|
import '@bigbinary/neetoui/Spinner';
|
|
60
|
-
import './queryConstants-
|
|
60
|
+
import './queryConstants-jobxv6K1.js';
|
|
61
61
|
import '@bigbinary/neetoui/Alert';
|
|
62
62
|
import './usePaymentApi-AuXKzJ-d.js';
|
|
63
63
|
import '@bigbinary/neetoui/formik/Form';
|
|
64
64
|
import '@bigbinary/neetoui/formik/Textarea';
|
|
65
65
|
import '@bigbinary/neetoui/formik/ActionBlock';
|
|
66
|
-
import '@bigbinary/neetoui/formik/Select';
|
|
67
|
-
import './usePaymentsApi-BWiIWIWh.js';
|
|
68
|
-
import 'yup';
|
|
69
66
|
import '@bigbinary/neetoui/formik/Button';
|
|
67
|
+
import '@bigbinary/neeto-molecules/CardLayout';
|
|
68
|
+
import '@bigbinary/neetoui/formik/Input';
|
|
69
|
+
import 'yup';
|
|
70
|
+
import '@bigbinary/neeto-molecules/MoreDropdown';
|
|
71
|
+
import 'qrcode.react';
|
|
72
|
+
import './usePaymentApi-CditWIud.js';
|
|
73
|
+
import '@bigbinary/neetoui/formik/Select';
|
|
70
74
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
71
75
|
import './ExportModal-CWKMcZgh.js';
|
|
72
|
-
import './usePlatformApi-
|
|
76
|
+
import './usePlatformApi-CvRR6Wi5.js';
|
|
73
77
|
import 'qs';
|
|
74
78
|
import 'react-router-dom/cjs/react-router-dom';
|
|
75
79
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
76
80
|
import '@babel/runtime/regenerator';
|
|
77
81
|
import './usePaymentApi-DSL5iVNT.js';
|
|
78
|
-
import '@bigbinary/neeto-molecules/CardLayout';
|
|
79
82
|
import '@bigbinary/neeto-molecules/Container';
|
|
80
|
-
import '@bigbinary/neetoui/formik/Input';
|
|
81
83
|
import '@bigbinary/neeto-molecules/HelpPopover';
|
|
82
84
|
import '@bigbinary/neetoui/Pane';
|
|
83
85
|
import '@bigbinary/neetoui/Dropdown';
|
|
84
86
|
import '@bigbinary/neeto-molecules/PageLoader';
|
|
85
87
|
import '@bigbinary/neetoui/Label';
|
|
86
88
|
import '@bigbinary/neetoui/formik/Radio';
|
|
87
|
-
import '@bigbinary/neeto-molecules/MoreDropdown';
|
|
88
|
-
import 'qrcode.react';
|
|
89
89
|
import '@bigbinary/neeto-commons-frontend/initializers';
|
|
90
90
|
import 'decimal.js';
|
|
91
91
|
|
|
@@ -20,8 +20,9 @@ var QUERY_KEYS = {
|
|
|
20
20
|
SPLIT_TRANSFERS_DETAILS: "split-transfers-details",
|
|
21
21
|
TAXES: "taxes",
|
|
22
22
|
RECURRING_SETTINGS: "recurring-settings",
|
|
23
|
-
RECURRING_PAYMENT: "recurring-payment"
|
|
23
|
+
RECURRING_PAYMENT: "recurring-payment",
|
|
24
|
+
VPAS_LIST: "vpas-list"
|
|
24
25
|
};
|
|
25
26
|
|
|
26
27
|
export { QUERY_KEYS as Q };
|
|
27
|
-
//# sourceMappingURL=queryConstants-
|
|
28
|
+
//# sourceMappingURL=queryConstants-jobxv6K1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryConstants-jobxv6K1.js","sources":["../app/javascript/src/common/queryConstants.js"],"sourcesContent":["export const QUERY_KEYS = {\n STRIPE_ACCOUNT_DETAILS: \"stripe-account-details\",\n STRIPE_PLATFORM_ACCOUNT_DETAILS: \"stripe-platform-account-details\",\n TRANSACTIONS_LIST: \"transactions-list\",\n PLATFORM_TRANSACTIONS_LIST: \"platform-transactions-list\",\n PAYMENTS_FILTER_OPTIONS: \"payments-filter-options\",\n REFUNDS_LIST: \"refunds-list\",\n SPLITS_LIST: \"platform-splits-list\",\n CONNECTED_ACCOUNT: \"connected-account\",\n STRIPE_ACCOUNTS_LIST: \"stripe-accounts-list\",\n STRIPE_PLATFORM_TRANSACTION: \"stripe-platform-transaction\",\n STRIPE_REFUNDS_LIST: \"stripe-refunds-list\",\n STRIPE_PAYOUTS_LIST: \"stripe-payouts-list\",\n STRIPE_PAYOUT: \"stripe-payout\",\n RAZORPAY_PAYMENTS_LIST: \"razorpay-payment-list\",\n RAZORPAY_ACCOUNT_DETAILS: \"razorpay-account-details\",\n V2_PAYMENTS: \"v2-payments\",\n PAYMENTS_LIST: \"payments-list\",\n SPLIT_TRANSFERS_LIST: \"split-transfers-list\",\n SPLIT_TRANSFERS_DETAILS: \"split-transfers-details\",\n TAXES: \"taxes\",\n RECURRING_SETTINGS: \"recurring-settings\",\n RECURRING_PAYMENT: \"recurring-payment\",\n VPAS_LIST: \"vpas-list\",\n};\n"],"names":["QUERY_KEYS","STRIPE_ACCOUNT_DETAILS","STRIPE_PLATFORM_ACCOUNT_DETAILS","TRANSACTIONS_LIST","PLATFORM_TRANSACTIONS_LIST","PAYMENTS_FILTER_OPTIONS","REFUNDS_LIST","SPLITS_LIST","CONNECTED_ACCOUNT","STRIPE_ACCOUNTS_LIST","STRIPE_PLATFORM_TRANSACTION","STRIPE_REFUNDS_LIST","STRIPE_PAYOUTS_LIST","STRIPE_PAYOUT","RAZORPAY_PAYMENTS_LIST","RAZORPAY_ACCOUNT_DETAILS","V2_PAYMENTS","PAYMENTS_LIST","SPLIT_TRANSFERS_LIST","SPLIT_TRANSFERS_DETAILS","TAXES","RECURRING_SETTINGS","RECURRING_PAYMENT","VPAS_LIST"],"mappings":"AAAO,IAAMA,UAAU,GAAG;AACxBC,EAAAA,sBAAsB,EAAE,wBAAwB;AAChDC,EAAAA,+BAA+B,EAAE,iCAAiC;AAClEC,EAAAA,iBAAiB,EAAE,mBAAmB;AACtCC,EAAAA,0BAA0B,EAAE,4BAA4B;AACxDC,EAAAA,uBAAuB,EAAE,yBAAyB;AAClDC,EAAAA,YAAY,EAAE,cAAc;AAC5BC,EAAAA,WAAW,EAAE,sBAAsB;AACnCC,EAAAA,iBAAiB,EAAE,mBAAmB;AACtCC,EAAAA,oBAAoB,EAAE,sBAAsB;AAC5CC,EAAAA,2BAA2B,EAAE,6BAA6B;AAC1DC,EAAAA,mBAAmB,EAAE,qBAAqB;AAC1CC,EAAAA,mBAAmB,EAAE,qBAAqB;AAC1CC,EAAAA,aAAa,EAAE,eAAe;AAC9BC,EAAAA,sBAAsB,EAAE,uBAAuB;AAC/CC,EAAAA,wBAAwB,EAAE,0BAA0B;AACpDC,EAAAA,WAAW,EAAE,aAAa;AAC1BC,EAAAA,aAAa,EAAE,eAAe;AAC9BC,EAAAA,oBAAoB,EAAE,sBAAsB;AAC5CC,EAAAA,uBAAuB,EAAE,yBAAyB;AAClDC,EAAAA,KAAK,EAAE,OAAO;AACdC,EAAAA,kBAAkB,EAAE,oBAAoB;AACxCC,EAAAA,iBAAiB,EAAE,mBAAmB;AACtCC,EAAAA,SAAS,EAAE;AACb;;;;"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
2
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
3
|
+
import { useMutation } from '@tanstack/react-query';
|
|
4
|
+
import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
5
|
+
import axios from 'axios';
|
|
6
|
+
import { B as BASE_URL } from './index-Cw8BnbrE.js';
|
|
7
|
+
|
|
8
|
+
var create = function create(payload) {
|
|
9
|
+
return axios.post("".concat(BASE_URL, "/api/v1/public/manual_upi/payments"), {
|
|
10
|
+
payment: payload
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var update = function update(_ref) {
|
|
14
|
+
var id = _ref.id,
|
|
15
|
+
manualUpiId = _ref.manualUpiId,
|
|
16
|
+
payload = _ref.payload;
|
|
17
|
+
return axios.put("".concat(BASE_URL, "/api/v1/manual_upi/").concat(manualUpiId, "/payments/").concat(id), {
|
|
18
|
+
payment: payload
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
var paymentsApi = {
|
|
22
|
+
update: update,
|
|
23
|
+
create: create
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
27
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
28
|
+
var useCreateUpiPayment = function useCreateUpiPayment(options) {
|
|
29
|
+
return useMutation(_objectSpread({
|
|
30
|
+
mutationFn: paymentsApi.create
|
|
31
|
+
}, options));
|
|
32
|
+
};
|
|
33
|
+
var useUpdateUpiPayment = function useUpdateUpiPayment(_ref) {
|
|
34
|
+
var id = _ref.id,
|
|
35
|
+
manualUpiId = _ref.manualUpiId,
|
|
36
|
+
_ref$options = _ref.options,
|
|
37
|
+
options = _ref$options === void 0 ? {} : _ref$options,
|
|
38
|
+
_ref$keysToInvalidate = _ref.keysToInvalidate,
|
|
39
|
+
keysToInvalidate = _ref$keysToInvalidate === void 0 ? [] : _ref$keysToInvalidate;
|
|
40
|
+
return useMutationWithInvalidation(function (payload) {
|
|
41
|
+
return paymentsApi.update({
|
|
42
|
+
id: id,
|
|
43
|
+
manualUpiId: manualUpiId,
|
|
44
|
+
payload: payload
|
|
45
|
+
});
|
|
46
|
+
}, _objectSpread({
|
|
47
|
+
keysToInvalidate: _toConsumableArray(keysToInvalidate)
|
|
48
|
+
}, options));
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export { useUpdateUpiPayment as a, useCreateUpiPayment as u };
|
|
52
|
+
//# sourceMappingURL=usePaymentApi-CditWIud.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePaymentApi-CditWIud.js","sources":["../app/javascript/src/apis/manual_upi/payments.js","../app/javascript/src/hooks/reactQuery/manualUpi/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/manual_upi/payments`, {\n payment: payload,\n });\n\nconst update = ({ id, manualUpiId, payload }) =>\n axios.put(`${BASE_URL}/api/v1/manual_upi/${manualUpiId}/payments/${id}`, {\n payment: payload,\n });\n\nconst paymentsApi = { update, create };\n\nexport default paymentsApi;\n","import { useMutation } from \"@tanstack/react-query\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport paymentsApi from \"apis/manual_upi/payments\";\n\nexport const useCreateUpiPayment = options =>\n useMutation({ mutationFn: paymentsApi.create, ...options });\n\nexport const useUpdateUpiPayment = ({\n id,\n manualUpiId,\n options = {},\n keysToInvalidate = [],\n}) =>\n useMutationWithInvalidation(\n payload => paymentsApi.update({ id, manualUpiId, payload }),\n { keysToInvalidate: [...keysToInvalidate], ...options }\n );\n"],"names":["create","payload","axios","post","concat","BASE_URL","payment","update","_ref","id","manualUpiId","put","paymentsApi","useCreateUpiPayment","options","useMutation","_objectSpread","mutationFn","useUpdateUpiPayment","_ref$options","_ref$keysToInvalidate","keysToInvalidate","useMutationWithInvalidation","_toConsumableArray"],"mappings":";;;;;;;AAIA,IAAMA,MAAM,GAAG,SAATA,MAAMA,CAAGC,OAAO,EAAA;AAAA,EAAA,OACpBC,KAAK,CAACC,IAAI,IAAAC,MAAA,CAAIC,QAAQ,EAAsC,oCAAA,CAAA,EAAA;AAC1DC,IAAAA,OAAO,EAAEL;AACX,GAAC,CAAC;AAAA,CAAA;AAEJ,IAAMM,MAAM,GAAG,SAATA,MAAMA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,EAAE,GAAAD,IAAA,CAAFC,EAAE;IAAEC,WAAW,GAAAF,IAAA,CAAXE,WAAW;IAAET,OAAO,GAAAO,IAAA,CAAPP,OAAO;AAAA,EAAA,OACxCC,KAAK,CAACS,GAAG,CAAA,EAAA,CAAAP,MAAA,CAAIC,QAAQ,EAAAD,qBAAAA,CAAAA,CAAAA,MAAA,CAAsBM,WAAW,EAAA,YAAA,CAAA,CAAAN,MAAA,CAAaK,EAAE,CAAI,EAAA;AACvEH,IAAAA,OAAO,EAAEL;AACX,GAAC,CAAC;AAAA,CAAA;AAEJ,IAAMW,WAAW,GAAG;AAAEL,EAAAA,MAAM,EAANA,MAAM;AAAEP,EAAAA,MAAM,EAANA;AAAO,CAAC;;;;ICTzBa,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAGC,OAAO,EAAA;EAAA,OACxCC,WAAW,CAAAC,aAAA,CAAA;IAAGC,UAAU,EAAEL,WAAW,CAACZ;GAAWc,EAAAA,OAAO,CAAE,CAAC;AAAA;IAEhDI,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAAV,IAAA,EAAA;AAAA,EAAA,IAC9BC,EAAE,GAAAD,IAAA,CAAFC,EAAE;IACFC,WAAW,GAAAF,IAAA,CAAXE,WAAW;IAAAS,YAAA,GAAAX,IAAA,CACXM,OAAO;AAAPA,IAAAA,OAAO,GAAAK,YAAA,KAAA,KAAA,CAAA,GAAG,EAAE,GAAAA,YAAA;IAAAC,qBAAA,GAAAZ,IAAA,CACZa,gBAAgB;AAAhBA,IAAAA,gBAAgB,GAAAD,qBAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,qBAAA;EAAA,OAErBE,2BAA2B,CACzB,UAAArB,OAAO,EAAA;IAAA,OAAIW,WAAW,CAACL,MAAM,CAAC;AAAEE,MAAAA,EAAE,EAAFA,EAAE;AAAEC,MAAAA,WAAW,EAAXA,WAAW;AAAET,MAAAA,OAAO,EAAPA;AAAQ,KAAC,CAAC;AAAA,GAAA,EAAAe,aAAA,CAAA;IACzDK,gBAAgB,EAAAE,kBAAA,CAAMF,gBAAgB;GAAMP,EAAAA,OAAO,CACvD,CAAC;AAAA;;;;"}
|
|
@@ -5,7 +5,7 @@ import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
|
5
5
|
import axios from 'axios';
|
|
6
6
|
import { B as BASE_URL } from './index-Cw8BnbrE.js';
|
|
7
7
|
import 'qs';
|
|
8
|
-
import { Q as QUERY_KEYS } from './queryConstants-
|
|
8
|
+
import { Q as QUERY_KEYS } from './queryConstants-jobxv6K1.js';
|
|
9
9
|
|
|
10
10
|
var list$1 = function list(payload) {
|
|
11
11
|
return axios.get("".concat(BASE_URL, "/api/v1/stripe/holdable/payouts"), {
|
|
@@ -76,4 +76,4 @@ var useShowStripePlatformPayout = function useShowStripePlatformPayout(id) {
|
|
|
76
76
|
};
|
|
77
77
|
|
|
78
78
|
export { useFetchStripePlatformPayouts as a, useShowStripePayout as b, useShowStripePlatformPayout as c, useFetchStripePayouts as u };
|
|
79
|
-
//# sourceMappingURL=usePlatformApi-
|
|
79
|
+
//# sourceMappingURL=usePlatformApi-CvRR6Wi5.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePlatformApi-
|
|
1
|
+
{"version":3,"file":"usePlatformApi-CvRR6Wi5.js","sources":["../app/javascript/src/apis/stripe/holdables/payouts.js","../app/javascript/src/hooks/reactQuery/stripe/useConnectApi.js","../app/javascript/src/apis/stripePlatform/payouts.js","../app/javascript/src/hooks/reactQuery/stripe/usePlatformApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { BASE_URL } from \"src/constants\";\n\nconst list = payload =>\n axios.get(`${BASE_URL}/api/v1/stripe/holdable/payouts`, { params: payload });\n\nconst show = id =>\n axios.get(`${BASE_URL}/api/v1/stripe/holdable/payouts/${id}`);\n\nconst payoutsApi = { list, show };\n\nexport default payoutsApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { isPresent } from \"neetocist\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport accountsApi from \"apis/stripe/holdables/accounts\";\nimport payoutsApi from \"apis/stripe/holdables/payouts\";\nimport transactionsApi from \"apis/stripe/holdables/transactions\";\nimport { QUERY_KEYS } from \"src/common/queryConstants\";\n\nexport const useFetchConnectedStripeAccount = (holdableId, options = {}) =>\n useQuery({\n queryKey: [QUERY_KEYS.CONNECTED_ACCOUNT, holdableId],\n queryFn: () => accountsApi.show(holdableId),\n ...options,\n });\n\nexport const useFetchStripeTransactions = (\n holdableId = \"\",\n payload = {},\n options = {}\n) =>\n useQuery({\n queryKey: [QUERY_KEYS.TRANSACTIONS_LIST, payload],\n queryFn: () => {\n if (isPresent(holdableId)) {\n return transactionsApi.list(holdableId, payload);\n }\n\n return transactionsApi.defaultList(payload);\n },\n ...options,\n });\n\nexport const useFetchStripePayouts = (payload, options = {}) =>\n useQuery({\n queryKey: [QUERY_KEYS.STRIPE_PAYOUTS_LIST, payload],\n queryFn: () => payoutsApi.list(payload),\n ...options,\n });\n\nexport const useShowStripePayout = (id, options = {}) =>\n useQuery({\n queryKey: [QUERY_KEYS.STRIPE_PAYOUT, id],\n queryFn: () => payoutsApi.show(id),\n ...options,\n });\n\nexport const usePollingStripeAccount = (holdableId, { refetchInterval }) =>\n useQuery({\n queryKey: [QUERY_KEYS.STRIPE_ACCOUNT_DETAILS],\n queryFn: () => accountsApi.show(holdableId),\n refetchInterval,\n });\n\nexport const usePollingStripeAccountCreationStatus = (jobId, options) =>\n useQuery({\n queryKey: [QUERY_KEYS.STRIPE_ACCOUNT_DETAILS, jobId],\n queryFn: () => accountsApi.creationStatus(jobId),\n ...options,\n });\n\nexport const useDestroyStripeAccount = ({ onSuccess, holdableId }) =>\n useMutationWithInvalidation(accountsApi.destroy, {\n keysToInvalidate: [\n [QUERY_KEYS.STRIPE_ACCOUNT_DETAILS],\n [QUERY_KEYS.CONNECTED_ACCOUNT, holdableId],\n ],\n onSuccess,\n });\n\nexport const useCreateStripeAccount = ({ onSuccess }) =>\n useMutationWithInvalidation(accountsApi.create, {\n keysToInvalidate: [[QUERY_KEYS.STRIPE_ACCOUNT_DETAILS]],\n onSuccess,\n });\n","import axios from \"axios\";\n\nimport { BASE_URL } from \"src/constants\";\n\nconst list = payload =>\n axios.get(`${BASE_URL}/api/v1/stripe_platform/payouts`, { params: payload });\n\nconst show = id =>\n axios.get(`${BASE_URL}/api/v1/stripe_platform/payouts/${id}`);\n\nconst payoutsApi = { list, show };\n\nexport default payoutsApi;\n","import { useQuery } from \"@tanstack/react-query\";\n\nimport refundsApi from \"apis/stripe/holdables/refunds\";\nimport accountsApi from \"apis/stripePlatform/accounts\";\nimport payoutsApi from \"apis/stripePlatform/payouts\";\nimport splitsApi from \"apis/stripePlatform/splits\";\nimport transactionsApi from \"apis/stripePlatform/transactions\";\nimport { QUERY_KEYS } from \"src/common/queryConstants\";\n\nexport const useFetchStripePlatformAccount = options =>\n useQuery({\n queryKey: [QUERY_KEYS.STRIPE_PLATFORM_ACCOUNT_DETAILS],\n queryFn: accountsApi.show,\n ...options,\n });\n\nexport const useFetchStripePlatformSplits = (payload, options = {}) =>\n useQuery({\n queryKey: [QUERY_KEYS.SPLITS_LIST, payload],\n queryFn: () => splitsApi.list(payload),\n ...options,\n });\n\nexport const useFetchStripePlatformTransactions = (payload, options) =>\n useQuery({\n queryKey: [QUERY_KEYS.TRANSACTIONS_LIST, payload],\n queryFn: () => transactionsApi.list(payload),\n ...options,\n });\n\nexport const useFetchStripePlatformTransaction = (id, options = {}) =>\n useQuery({\n queryKey: [QUERY_KEYS.STRIPE_PLATFORM_TRANSACTION, id],\n queryFn: () => transactionsApi.show(id),\n ...options,\n });\n\nexport const useFetchStripeRefunds = (payload, options = {}) =>\n useQuery({\n queryKey: [QUERY_KEYS.STRIPE_REFUNDS_LIST, payload],\n queryFn: () => refundsApi.list(payload),\n ...options,\n });\n\nexport const useFetchStripePlatformPayouts = (payload, options = {}) =>\n useQuery({\n queryKey: [QUERY_KEYS.STRIPE_PAYOUTS_LIST, payload],\n queryFn: () => payoutsApi.list(payload),\n ...options,\n });\n\nexport const useShowStripePlatformPayout = (id, options = {}) =>\n useQuery({\n queryKey: [QUERY_KEYS.STRIPE_PAYOUT, id],\n queryFn: () => payoutsApi.show(id),\n ...options,\n });\n"],"names":["list","payload","axios","get","concat","BASE_URL","params","show","id","payoutsApi","useFetchStripePayouts","options","arguments","length","undefined","useQuery","_objectSpread","queryKey","QUERY_KEYS","STRIPE_PAYOUTS_LIST","queryFn","useShowStripePayout","STRIPE_PAYOUT","useFetchStripePlatformPayouts","useShowStripePlatformPayout"],"mappings":";;;;;;;;;AAIA,IAAMA,MAAI,GAAG,SAAPA,IAAIA,CAAGC,OAAO,EAAA;AAAA,EAAA,OAClBC,KAAK,CAACC,GAAG,IAAAC,MAAA,CAAIC,QAAQ,EAAmC,iCAAA,CAAA,EAAA;AAAEC,IAAAA,MAAM,EAAEL;AAAQ,GAAC,CAAC;AAAA,CAAA;AAE9E,IAAMM,MAAI,GAAG,SAAPA,IAAIA,CAAGC,EAAE,EAAA;AAAA,EAAA,OACbN,KAAK,CAACC,GAAG,CAAA,EAAA,CAAAC,MAAA,CAAIC,QAAQ,EAAA,kCAAA,C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AACC,EAAE,CAAC;AAAA;GAC/BG,EAAAA,OAAO,CACX,CAAC;AAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-payments-frontend",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "To manage payments across the neeto products.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://github.com/bigbinary/neeto-payments-nano",
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"@bigbinary/neeto-editor": "1.47.20",
|
|
65
65
|
"@bigbinary/neeto-filters-frontend": "4.3.22",
|
|
66
66
|
"@bigbinary/neeto-icons": "1.20.53",
|
|
67
|
-
"@bigbinary/neeto-molecules": "3.16.
|
|
68
|
-
"@bigbinary/neetoui": "8.3.
|
|
67
|
+
"@bigbinary/neeto-molecules": "3.16.81",
|
|
68
|
+
"@bigbinary/neetoui": "8.3.13",
|
|
69
69
|
"@emotion/is-prop-valid": "1.2.0",
|
|
70
70
|
"@faker-js/faker": "8.2.0",
|
|
71
71
|
"@honeybadger-io/js": "6.10.1",
|
|
@@ -175,8 +175,8 @@
|
|
|
175
175
|
"@bigbinary/neeto-editor": "1.47.20",
|
|
176
176
|
"@bigbinary/neeto-filters-frontend": "4.3.22",
|
|
177
177
|
"@bigbinary/neeto-icons": "1.20.53",
|
|
178
|
-
"@bigbinary/neeto-molecules": "3.16.
|
|
179
|
-
"@bigbinary/neetoui": "8.3.
|
|
178
|
+
"@bigbinary/neeto-molecules": "3.16.81",
|
|
179
|
+
"@bigbinary/neetoui": "8.3.13",
|
|
180
180
|
"@honeybadger-io/js": "6.10.1",
|
|
181
181
|
"@honeybadger-io/react": "6.1.25",
|
|
182
182
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmUpiPaymentButton.js","sources":["../app/javascript/src/components/ConfirmUpiPaymentButton/constants.js","../app/javascript/src/components/ConfirmUpiPaymentButton/index.jsx"],"sourcesContent":["import { t } from \"i18next\";\nimport * as yup from \"yup\";\n\nexport const INITIAL_VALUE = { vpaId: \"\", notes: \"\" };\n\nexport const VALIDATION_SCHEMA = yup.object({\n vpaId: yup\n .string()\n .required(t(\"neetoPayments.upi.confirmModal.vpasIdRequired\")),\n});\n","import { useState } from \"react\";\n\nimport { findBy, noop } from \"neetocist\";\nimport { Button, Modal, Typography } from \"neetoui\";\nimport { Form, Textarea, Select, ActionBlock } from \"neetoui/formik\";\nimport { mergeLeft } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { useUpdateUpiPayment } from \"hooks/reactQuery/upi/usePaymentsApi\";\n\nimport { INITIAL_VALUE, VALIDATION_SCHEMA } from \"./constants\";\n\nconst ConfirmUpiPaymentButton = ({\n vpas,\n identifier,\n paymentId,\n payableId,\n onSuccess = noop,\n}) => {\n const [isModalOpen, setIsModalOpen] = useState(false);\n\n const { t } = useTranslation();\n\n const { mutate: updateUpiPayment, isPending } = useUpdateUpiPayment(\n paymentId,\n { onSuccess }\n );\n\n const initialValues =\n vpas.length === 1\n ? mergeLeft({ vpaId: vpas[0].id }, INITIAL_VALUE)\n : INITIAL_VALUE;\n\n const onClose = () => setIsModalOpen(false);\n\n const handleSubmit = ({ vpaId, notes }) => {\n const vpa = findBy({ id: vpaId }, vpas);\n const payload = {\n notes,\n vpaId,\n payableId,\n upiId: vpa.upiId,\n status: \"successful\",\n };\n updateUpiPayment(payload);\n };\n\n return (\n <>\n <Button\n label={t(\"neetoPayments.upi.payment.buttons.confirmPayment\")}\n loading={isPending}\n size=\"small\"\n onClick={() => setIsModalOpen(true)}\n />\n <Modal {...{ onClose }} isOpen={isModalOpen} size=\"large\">\n <Modal.Header>\n <Typography style=\"h2\">\n {t(\"neetoPayments.upi.confirmModal.title\")}\n </Typography>\n </Modal.Header>\n <Form\n formikProps={{\n initialValues,\n enableReinitialize: true,\n onSubmit: handleSubmit,\n validationSchema: VALIDATION_SCHEMA,\n }}\n >\n {({ setFieldValue, dirty, isSubmitting }) => (\n <>\n <Modal.Body>\n <div className=\"flex flex-col space-y-4\">\n <Typography lineHeight=\"normal\" style=\"body2\">\n {t(\"neetoPayments.upi.confirmModal.upiTransactionId\", {\n identifier,\n })}\n </Typography>\n <Select\n label={t(\"neetoPayments.upi.confirmModal.accountIdLabel\")}\n name=\"vpaId\"\n options={vpas?.map(({ address, id }) => ({\n label: address,\n value: id,\n }))}\n onChange={({ value }) => setFieldValue(\"vpaId\", value)}\n />\n <Textarea\n data-cy=\"confirm-booking-modal-input-textfield\"\n label={t(\"neetoPayments.upi.confirmModal.notes\")}\n name=\"notes\"\n placeholder={t(\n \"neetoPayments.upi.confirmModal.notesPlaceholder\"\n )}\n />\n </div>\n </Modal.Body>\n <Modal.Footer className=\"space-x-2\">\n <ActionBlock\n isSubmitting={isPending}\n position=\"right\"\n cancelButtonProps={{\n onClick: onClose,\n style: \"tertiary\",\n }}\n submitButtonProps={{\n disabled:\n isSubmitting ||\n isPending ||\n (vpas.length !== 1 && !dirty),\n label: t(\"neetoPayments.common.confirm\"),\n }}\n />\n </Modal.Footer>\n </>\n )}\n </Form>\n </Modal>\n </>\n );\n};\n\nexport default ConfirmUpiPaymentButton;\n"],"names":["INITIAL_VALUE","vpaId","notes","VALIDATION_SCHEMA","yup","object","string","required","t","ConfirmUpiPaymentButton","_ref","vpas","identifier","paymentId","payableId","_ref$onSuccess","onSuccess","noop","_useState","useState","_useState2","_slicedToArray","isModalOpen","setIsModalOpen","_useTranslation","useTranslation","_useUpdateUpiPayment","useUpdateUpiPayment","updateUpiPayment","mutate","isPending","initialValues","length","mergeLeft","id","onClose","handleSubmit","_ref2","vpa","findBy","payload","upiId","status","_jsxs","_Fragment","children","_jsx","Button","label","loading","size","onClick","Modal","isOpen","Header","Typography","style","Form","formikProps","enableReinitialize","onSubmit","validationSchema","_ref3","setFieldValue","dirty","isSubmitting","Body","className","lineHeight","Select","name","options","map","_ref4","address","value","onChange","_ref5","Textarea","placeholder","Footer","ActionBlock","position","cancelButtonProps","submitButtonProps","disabled"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAGO,IAAMA,aAAa,GAAG;AAAEC,EAAAA,KAAK,EAAE,EAAE;AAAEC,EAAAA,KAAK,EAAE;AAAG,CAAC;AAE9C,IAAMC,iBAAiB,GAAGC,GAAG,CAACC,MAAM,CAAC;AAC1CJ,EAAAA,KAAK,EAAEG,GAAG,CACPE,MAAM,EAAE,CACRC,QAAQ,CAACC,CAAC,CAAC,+CAA+C,CAAC;AAChE,CAAC,CAAC;;ACGF,IAAMC,uBAAuB,GAAG,SAA1BA,uBAAuBA,CAAAC,IAAA,EAMvB;AAAA,EAAA,IALJC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,UAAU,GAAAF,IAAA,CAAVE,UAAU;IACVC,SAAS,GAAAH,IAAA,CAATG,SAAS;IACTC,SAAS,GAAAJ,IAAA,CAATI,SAAS;IAAAC,cAAA,GAAAL,IAAA,CACTM,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAGE,KAAAA,CAAAA,GAAAA,IAAI,GAAAF,cAAA;AAEhB,EAAA,IAAAG,SAAA,GAAsCC,QAAQ,CAAC,KAAK,CAAC;IAAAC,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAA9CI,IAAAA,WAAW,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAEG,IAAAA,cAAc,GAAAH,UAAA,CAAA,CAAA,CAAA;AAElC,EAAA,IAAAI,eAAA,GAAcC,cAAc,EAAE;IAAtBjB,CAAC,GAAAgB,eAAA,CAADhB,CAAC;AAET,EAAA,IAAAkB,oBAAA,GAAgDC,mBAAmB,CACjEd,SAAS,EACT;AAAEG,MAAAA,SAAS,EAATA;AAAU,KACd,CAAC;IAHeY,gBAAgB,GAAAF,oBAAA,CAAxBG,MAAM;IAAoBC,SAAS,GAAAJ,oBA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AC;AAAA;AACJ,OACG,CAAC;AAAA,KACF,CAAC;AAAA,GACR,CAAC;AAEP;;;;"}
|
package/dist/UpiConnect.js
DELETED
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import { noop } from '@bigbinary/neeto-cist';
|
|
2
|
-
import Spinner from '@bigbinary/neetoui/Spinner';
|
|
3
|
-
import CardLayout from '@bigbinary/neeto-molecules/CardLayout';
|
|
4
|
-
import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
|
|
5
|
-
import Form from '@bigbinary/neetoui/formik/Form';
|
|
6
|
-
import Input from '@bigbinary/neetoui/formik/Input';
|
|
7
|
-
import { useTranslation, Trans } from 'react-i18next';
|
|
8
|
-
import { useHistory } from 'react-router-dom';
|
|
9
|
-
import { t } from 'i18next';
|
|
10
|
-
import * as yup from 'yup';
|
|
11
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
12
|
-
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
13
|
-
import { useState } from 'react';
|
|
14
|
-
import Alert from '@bigbinary/neetoui/Alert';
|
|
15
|
-
import Table from '@bigbinary/neetoui/Table';
|
|
16
|
-
import { isEmpty } from 'ramda';
|
|
17
|
-
import { dateFormat } from '@bigbinary/neeto-commons-frontend/utils';
|
|
18
|
-
import MoreDropdown from '@bigbinary/neeto-molecules/MoreDropdown';
|
|
19
|
-
import Typography from '@bigbinary/neetoui/Typography';
|
|
20
|
-
|
|
21
|
-
var VALIDATION_SCHEMA = yup.object({
|
|
22
|
-
upiId: yup.string().matches(/^[a-zA-Z0-9.-]{2,256}@[a-zA-Z][a-zA-Z]{2,64}$/, t("neetoPayments.upi.form.validation.invalidUpi")).required(t("neetoPayments.upi.form.validation.required"))
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
var Add = function Add(_ref) {
|
|
26
|
-
var handleCreateUpiId = _ref.handleCreateUpiId;
|
|
27
|
-
var _useTranslation = useTranslation(),
|
|
28
|
-
t = _useTranslation.t;
|
|
29
|
-
var history = useHistory();
|
|
30
|
-
return /*#__PURE__*/jsx(Form, {
|
|
31
|
-
className: "w-full",
|
|
32
|
-
formikProps: {
|
|
33
|
-
initialValues: {
|
|
34
|
-
upiId: ""
|
|
35
|
-
},
|
|
36
|
-
onSubmit: handleCreateUpiId,
|
|
37
|
-
validationSchema: VALIDATION_SCHEMA
|
|
38
|
-
},
|
|
39
|
-
children: /*#__PURE__*/jsx(CardLayout, {
|
|
40
|
-
actionBlock: /*#__PURE__*/jsx(ActionBlock, {
|
|
41
|
-
cancelButtonProps: {
|
|
42
|
-
onClick: function onClick() {
|
|
43
|
-
return history.goBack();
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
submitButtonProps: {
|
|
47
|
-
label: t("neetoPayments.upi.form.add")
|
|
48
|
-
}
|
|
49
|
-
}),
|
|
50
|
-
children: /*#__PURE__*/jsx(Input, {
|
|
51
|
-
className: "w-full",
|
|
52
|
-
label: t("neetoPayments.upi.form.enterUpi"),
|
|
53
|
-
name: "upiId",
|
|
54
|
-
placeholder: t("neetoPayments.upi.form.enterUpi")
|
|
55
|
-
})
|
|
56
|
-
})
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
var getColumnData = function getColumnData(handleDeleteClick) {
|
|
61
|
-
return [{
|
|
62
|
-
title: t("neetoPayments.common.upiId"),
|
|
63
|
-
dataIndex: "address",
|
|
64
|
-
key: "address",
|
|
65
|
-
width: 272,
|
|
66
|
-
render: function render(_, upiId) {
|
|
67
|
-
return /*#__PURE__*/jsxs("div", {
|
|
68
|
-
className: "flex items-center justify-between gap-3",
|
|
69
|
-
children: [/*#__PURE__*/jsx(Typography, {
|
|
70
|
-
className: "w-4/5",
|
|
71
|
-
style: "body2",
|
|
72
|
-
children: upiId.address
|
|
73
|
-
}), /*#__PURE__*/jsx(MoreDropdown, {
|
|
74
|
-
dropdownProps: {
|
|
75
|
-
strategy: "fixed"
|
|
76
|
-
},
|
|
77
|
-
menuItems: [{
|
|
78
|
-
key: "delete-meeting",
|
|
79
|
-
label: t("neetoPayments.common.delete"),
|
|
80
|
-
onClick: function onClick() {
|
|
81
|
-
return handleDeleteClick(upiId);
|
|
82
|
-
}
|
|
83
|
-
}]
|
|
84
|
-
})]
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
}, {
|
|
88
|
-
title: t("neetoPayments.common.createdAt"),
|
|
89
|
-
dataIndex: "createdAt",
|
|
90
|
-
key: "createdAt",
|
|
91
|
-
render: dateFormat.dateTime
|
|
92
|
-
}];
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
var List = function List(_ref) {
|
|
96
|
-
var handleDeleteUpiId = _ref.handleDeleteUpiId,
|
|
97
|
-
upiIds = _ref.upiIds;
|
|
98
|
-
var _useTranslation = useTranslation(),
|
|
99
|
-
t = _useTranslation.t;
|
|
100
|
-
var _useState = useState(false),
|
|
101
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
102
|
-
isAlertOpen = _useState2[0],
|
|
103
|
-
setIsAlertOpen = _useState2[1];
|
|
104
|
-
var _useState3 = useState({}),
|
|
105
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
106
|
-
selectedUpiId = _useState4[0],
|
|
107
|
-
setSelectedUpiId = _useState4[1];
|
|
108
|
-
var handleOpenDeleteModal = function handleOpenDeleteModal(id) {
|
|
109
|
-
setSelectedUpiId(id);
|
|
110
|
-
setIsAlertOpen(true);
|
|
111
|
-
};
|
|
112
|
-
var handleAlertClose = function handleAlertClose() {
|
|
113
|
-
setSelectedUpiId({});
|
|
114
|
-
setIsAlertOpen(false);
|
|
115
|
-
};
|
|
116
|
-
var handleAlertSubmit = function handleAlertSubmit() {
|
|
117
|
-
handleDeleteUpiId(selectedUpiId);
|
|
118
|
-
setIsAlertOpen(false);
|
|
119
|
-
};
|
|
120
|
-
if (isEmpty(upiIds)) {
|
|
121
|
-
return null;
|
|
122
|
-
}
|
|
123
|
-
return /*#__PURE__*/jsxs("div", {
|
|
124
|
-
className: "mx-auto w-full max-w-3xl",
|
|
125
|
-
children: [/*#__PURE__*/jsx(Table, {
|
|
126
|
-
columnData: getColumnData(handleOpenDeleteModal),
|
|
127
|
-
rowData: upiIds
|
|
128
|
-
}), /*#__PURE__*/jsx(Alert, {
|
|
129
|
-
isOpen: isAlertOpen,
|
|
130
|
-
title: t("neetoPayments.upi.alert.title"),
|
|
131
|
-
message: /*#__PURE__*/jsx(Trans, {
|
|
132
|
-
components: {
|
|
133
|
-
b: /*#__PURE__*/jsx("strong", {})
|
|
134
|
-
},
|
|
135
|
-
i18nKey: "neetoPayments.upi.alert.message",
|
|
136
|
-
values: {
|
|
137
|
-
upiId: selectedUpiId.address
|
|
138
|
-
}
|
|
139
|
-
}),
|
|
140
|
-
onClose: handleAlertClose,
|
|
141
|
-
onSubmit: handleAlertSubmit
|
|
142
|
-
})]
|
|
143
|
-
});
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
var UpiConnect = function UpiConnect(_ref) {
|
|
147
|
-
var _ref$upiIds = _ref.upiIds,
|
|
148
|
-
upiIds = _ref$upiIds === void 0 ? [] : _ref$upiIds,
|
|
149
|
-
_ref$isLoading = _ref.isLoading,
|
|
150
|
-
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
151
|
-
_ref$isDeleting = _ref.isDeleting,
|
|
152
|
-
isDeleting = _ref$isDeleting === void 0 ? false : _ref$isDeleting,
|
|
153
|
-
_ref$handleDeleteUpiI = _ref.handleDeleteUpiId,
|
|
154
|
-
handleDeleteUpiId = _ref$handleDeleteUpiI === void 0 ? noop : _ref$handleDeleteUpiI,
|
|
155
|
-
_ref$handleCreateUpiI = _ref.handleCreateUpiId,
|
|
156
|
-
handleCreateUpiId = _ref$handleCreateUpiI === void 0 ? noop : _ref$handleCreateUpiI;
|
|
157
|
-
if (isLoading) return /*#__PURE__*/jsx(Spinner, {});
|
|
158
|
-
return /*#__PURE__*/jsxs("div", {
|
|
159
|
-
className: "flex w-full flex-col items-start",
|
|
160
|
-
children: [/*#__PURE__*/jsx(Add, {
|
|
161
|
-
handleCreateUpiId: handleCreateUpiId
|
|
162
|
-
}), /*#__PURE__*/jsx(List, {
|
|
163
|
-
handleDeleteUpiId: handleDeleteUpiId,
|
|
164
|
-
isDeleting: isDeleting,
|
|
165
|
-
upiIds: upiIds
|
|
166
|
-
})]
|
|
167
|
-
});
|
|
168
|
-
};
|
|
169
|
-
|
|
170
|
-
export { UpiConnect as default };
|
|
171
|
-
//# sourceMappingURL=UpiConnect.js.map
|
package/dist/UpiConnect.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UpiConnect.js","sources":["../app/javascript/src/components/UpiConnect/constants.js","../app/javascript/src/components/UpiConnect/Add.jsx","../app/javascript/src/components/UpiConnect/utils.jsx","../app/javascript/src/components/UpiConnect/List.jsx","../app/javascript/src/components/UpiConnect/index.jsx"],"sourcesContent":["import { t } from \"i18next\";\nimport * as Yup from \"yup\";\n\nexport const VALIDATION_SCHEMA = Yup.object({\n upiId: Yup.string()\n .matches(\n /^[a-zA-Z0-9.-]{2,256}@[a-zA-Z][a-zA-Z]{2,64}$/,\n t(\"neetoPayments.upi.form.validation.invalidUpi\")\n )\n .required(t(\"neetoPayments.upi.form.validation.required\")),\n});\n","import CardLayout from \"neetomolecules/CardLayout\";\nimport { ActionBlock, Form, Input } from \"neetoui/formik\";\nimport { useTranslation } from \"react-i18next\";\nimport { useHistory } from \"react-router-dom\";\n\nimport { VALIDATION_SCHEMA } from \"./constants\";\n\nconst Add = ({ handleCreateUpiId }) => {\n const { t } = useTranslation();\n\n const history = useHistory();\n\n return (\n <Form\n className=\"w-full\"\n formikProps={{\n initialValues: { upiId: \"\" },\n onSubmit: handleCreateUpiId,\n validationSchema: VALIDATION_SCHEMA,\n }}\n >\n <CardLayout\n actionBlock={\n <ActionBlock\n cancelButtonProps={{ onClick: () => history.goBack() }}\n submitButtonProps={{ label: t(\"neetoPayments.upi.form.add\") }}\n />\n }\n >\n <Input\n className=\"w-full\"\n label={t(\"neetoPayments.upi.form.enterUpi\")}\n name=\"upiId\"\n placeholder={t(\"neetoPayments.upi.form.enterUpi\")}\n />\n </CardLayout>\n </Form>\n );\n};\n\nexport default Add;\n","import { t } from \"i18next\";\nimport { dateFormat } from \"neetocommons/utils\";\nimport MoreDropdown from \"neetomolecules/MoreDropdown\";\nimport { Typography } from \"neetoui\";\n\nexport const getColumnData = handleDeleteClick => [\n {\n title: t(\"neetoPayments.common.upiId\"),\n dataIndex: \"address\",\n key: \"address\",\n width: 272,\n render: (_, upiId) => (\n <div className=\"flex items-center justify-between gap-3\">\n <Typography className=\"w-4/5\" style=\"body2\">\n {upiId.address}\n </Typography>\n <MoreDropdown\n dropdownProps={{ strategy: \"fixed\" }}\n menuItems={[\n {\n key: \"delete-meeting\",\n label: t(\"neetoPayments.common.delete\"),\n onClick: () => handleDeleteClick(upiId),\n },\n ]}\n />\n </div>\n ),\n },\n {\n title: t(\"neetoPayments.common.createdAt\"),\n dataIndex: \"createdAt\",\n key: \"createdAt\",\n render: dateFormat.dateTime,\n },\n];\n","import { useState } from \"react\";\n\nimport { Alert, Table } from \"neetoui\";\nimport { isEmpty } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport { getColumnData } from \"./utils\";\n\nconst List = ({ handleDeleteUpiId, upiIds }) => {\n const { t } = useTranslation();\n\n const [isAlertOpen, setIsAlertOpen] = useState(false);\n const [selectedUpiId, setSelectedUpiId] = useState({});\n\n const handleOpenDeleteModal = id => {\n setSelectedUpiId(id);\n setIsAlertOpen(true);\n };\n\n const handleAlertClose = () => {\n setSelectedUpiId({});\n setIsAlertOpen(false);\n };\n\n const handleAlertSubmit = () => {\n handleDeleteUpiId(selectedUpiId);\n setIsAlertOpen(false);\n };\n\n if (isEmpty(upiIds)) {\n return null;\n }\n\n return (\n <div className=\"mx-auto w-full max-w-3xl\">\n <Table\n columnData={getColumnData(handleOpenDeleteModal)}\n rowData={upiIds}\n />\n <Alert\n isOpen={isAlertOpen}\n title={t(\"neetoPayments.upi.alert.title\")}\n message={\n <Trans\n components={{ b: <strong /> }}\n i18nKey=\"neetoPayments.upi.alert.message\"\n values={{ upiId: selectedUpiId.address }}\n />\n }\n onClose={handleAlertClose}\n onSubmit={handleAlertSubmit}\n />\n </div>\n );\n};\n\nexport default List;\n","import { noop } from \"neetocist\";\nimport { Spinner } from \"neetoui\";\n\nimport Add from \"./Add\";\nimport List from \"./List\";\n\nconst UpiConnect = ({\n upiIds = [],\n isLoading = false,\n isDeleting = false,\n handleDeleteUpiId = noop,\n handleCreateUpiId = noop,\n}) => {\n if (isLoading) return <Spinner />;\n\n return (\n <div className=\"flex w-full flex-col items-start\">\n <Add {...{ handleCreateUpiId }} />\n <List {...{ handleDeleteUpiId, isDeleting, upiIds }} />\n </div>\n );\n};\n\nexport default UpiConnect;\n"],"names":["VALIDATION_SCHEMA","Yup","object","upiId","string","matches","t","required","Add","_ref","handleCreateUpiId","_useTranslation","useTranslation","history","useHistory","_jsx","Form","className","formikProps","initialValues","onSubmit","validationSchema","children","CardLayout","actionBlock","ActionBlock","cancelButtonProps","onClick","goBack","submitButtonProps","label","Input","name","placeholder","getColumnData","handleDeleteClick","title","dataIndex","key","width","render","_","_jsxs","Typography","style","address","MoreDropdown","dropdownProps","strategy","menuItems","dateFormat","dateTime","List","handleDeleteUpiId","upiIds","_useState","useState","_useState2","_slicedToArray","isAlertOpen","setIsAlertOpen","_useState3","_useState4","selectedUpiId","setSelectedUpiId","handleOpenDeleteModal","id","handleAlertClose","handleAlertSubmit","isEmpty","Table","columnData","rowData","Alert","isOpen","message","Trans","components","b","i18nKey","values","onClose","UpiConnect","_ref$upiIds","_ref$isLoading","isLoading","_ref$isDeleting","isDeleting","_ref$handleDeleteUpiI","noop","_ref$handleCreateUpiI","Spinner"],"mappings":";;;;;;;;;;;;;;;;;;;;AAGO,IAAMA,iBAAiB,GAAGC,GAAG,CAACC,MAAM,CAAC;EAC1CC,KAAK,EAAEF,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