@justifi/webcomponents 5.3.3 → 5.3.4-rc
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/cjs/{Analytics-f448aa27.js → Analytics-25d07997.js} +2 -2
- package/dist/cjs/billing-form_3.cjs.entry.js +1 -1
- package/dist/cjs/{business.service-6b05ee96.js → business.service-776142b1.js} +7 -7
- package/dist/cjs/{check-pkg-version-d75dc147.js → check-pkg-version-407ee257.js} +1 -1
- package/dist/cjs/{checkout.service-aa037531.js → checkout.service-b23994d2.js} +3 -3
- package/dist/cjs/{dispute.service-27dcd7f4.js → dispute.service-c192dd33.js} +4 -4
- package/dist/cjs/{get-payout-csv-7646128d.js → get-payout-csv-78297c3a.js} +3 -3
- package/dist/cjs/{get-subaccounts-cc933b3e.js → get-subaccounts-b2e6ab82.js} +1 -1
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-business-form.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkout.cjs.entry.js +5 -5
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +6 -6
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +5 -5
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +5 -5
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -4
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +4 -4
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payments-list.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +6 -6
- package/dist/cjs/justifi-refund-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -5
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +7 -7
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +4 -4
- package/dist/cjs/{package-a24ad889.js → package-74690e82.js} +1 -1
- package/dist/cjs/{payment.service-65fbac72.js → payment.service-f53022c3.js} +2 -2
- package/dist/docs.json +1 -1
- package/dist/esm/{Analytics-c083a998.js → Analytics-1051e87d.js} +2 -2
- package/dist/esm/billing-form_3.entry.js +1 -1
- package/dist/esm/{business.service-98709b1e.js → business.service-f7c3b9f7.js} +7 -7
- package/dist/esm/{check-pkg-version-6d475fed.js → check-pkg-version-cdc4a3de.js} +1 -1
- package/dist/esm/{checkout.service-9330c18a.js → checkout.service-bb45d248.js} +3 -3
- package/dist/esm/{dispute.service-a14ac172.js → dispute.service-9008b3b7.js} +4 -4
- package/dist/esm/{get-payout-csv-87cc2147.js → get-payout-csv-be3ee3f0.js} +3 -3
- package/dist/esm/{get-subaccounts-26454771.js → get-subaccounts-3af0844a.js} +1 -1
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +2 -2
- package/dist/esm/justifi-business-details.entry.js +4 -4
- package/dist/esm/justifi-business-form.entry.js +4 -4
- package/dist/esm/justifi-checkout.entry.js +5 -5
- package/dist/esm/justifi-checkouts-list.entry.js +6 -6
- package/dist/esm/justifi-dispute-management.entry.js +5 -5
- package/dist/esm/justifi-dispute-notification_3.entry.js +5 -5
- package/dist/esm/justifi-gross-payment-chart.entry.js +4 -4
- package/dist/esm/justifi-order-terminals.entry.js +4 -4
- package/dist/esm/justifi-owner-form_3.entry.js +1 -1
- package/dist/esm/justifi-payment-details.entry.js +4 -4
- package/dist/esm/justifi-payment-provisioning.entry.js +5 -5
- package/dist/esm/justifi-payments-list.entry.js +5 -5
- package/dist/esm/justifi-payout-details.entry.js +4 -4
- package/dist/esm/justifi-payouts-list.entry.js +6 -6
- package/dist/esm/justifi-refund-form.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -5
- package/dist/esm/justifi-terminal-orders-list.entry.js +3 -3
- package/dist/esm/justifi-terminals-list.entry.js +7 -7
- package/dist/esm/justifi-tokenize-payment-method.entry.js +4 -4
- package/dist/esm/{package-13968013.js → package-8bc1e068.js} +1 -1
- package/dist/esm/{payment.service-35bbab8f.js → payment.service-a8ee345c.js} +2 -2
- package/dist/module/Analytics.js +1 -1
- package/dist/module/business-terms-conditions-form-step.js +1 -1
- package/dist/module/business.service.js +7 -7
- package/dist/module/checkout.service.js +3 -3
- package/dist/module/dispute-response-actions.js +4 -4
- package/dist/module/dispute-response.js +1 -1
- package/dist/module/get-payout-csv.js +3 -3
- package/dist/module/get-subaccounts.js +1 -1
- package/dist/module/justifi-business-form.js +1 -1
- package/dist/module/justifi-checkout.js +1 -1
- package/dist/module/justifi-checkouts-list.js +1 -1
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-gross-payment-chart.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +1 -1
- package/dist/module/justifi-payments-list.js +1 -1
- package/dist/module/justifi-payouts-list.js +1 -1
- package/dist/module/justifi-refund-form.js +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +2 -2
- package/dist/module/justifi-terminal-orders-list.js +1 -1
- package/dist/module/justifi-terminals-list.js +3 -3
- package/dist/module/justifi-tokenize-payment-method.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/payment.service.js +2 -2
- package/dist/webcomponents/p-06d34949.entry.js +1 -0
- package/dist/webcomponents/p-13de2830.entry.js +1 -0
- package/dist/webcomponents/p-14f40baa.js +1 -0
- package/dist/webcomponents/{p-0f0c5556.entry.js → p-1f270bb9.entry.js} +1 -1
- package/dist/webcomponents/p-2208ab4c.entry.js +1 -0
- package/dist/webcomponents/p-29fbbc93.js +1 -0
- package/dist/webcomponents/{p-cc552f59.entry.js → p-2e1081d7.entry.js} +1 -1
- package/dist/webcomponents/p-39d421c9.entry.js +1 -0
- package/dist/webcomponents/p-4b718a6c.entry.js +1 -0
- package/dist/webcomponents/{p-ea0f2446.entry.js → p-4fbdf440.entry.js} +1 -1
- package/dist/webcomponents/{p-245819b0.entry.js → p-58a3c5a6.entry.js} +1 -1
- package/dist/webcomponents/p-59918c9e.entry.js +1 -0
- package/dist/webcomponents/p-5ab25e5d.js +1 -0
- package/dist/webcomponents/{p-69242bad.entry.js → p-5d2d11be.entry.js} +1 -1
- package/dist/webcomponents/p-60948775.entry.js +1 -0
- package/dist/webcomponents/{p-15675401.entry.js → p-65880158.entry.js} +1 -1
- package/dist/webcomponents/p-7746acac.js +1 -0
- package/dist/webcomponents/p-82cbcce9.js +1 -0
- package/dist/webcomponents/p-8b6a3249.entry.js +1 -0
- package/dist/webcomponents/p-93accc9a.entry.js +1 -0
- package/dist/webcomponents/p-ad0fffc5.entry.js +1 -0
- package/dist/webcomponents/p-af945fc0.entry.js +1 -0
- package/dist/webcomponents/p-b4ed5a2c.js +1 -0
- package/dist/webcomponents/{p-b1aa7d2b.entry.js → p-b57cfe54.entry.js} +1 -1
- package/dist/webcomponents/p-c3ada049.entry.js +1 -0
- package/dist/webcomponents/p-dfebd7a4.js +1 -0
- package/dist/webcomponents/p-e8fdbc36.entry.js +1 -0
- package/dist/webcomponents/p-f6aa31bc.entry.js +1 -0
- package/dist/webcomponents/p-f9ff808d.js +1 -0
- package/dist/webcomponents/p-ff1f2d65.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-0c768ac5.entry.js +0 -1
- package/dist/webcomponents/p-185181a8.js +0 -1
- package/dist/webcomponents/p-1906c67d.entry.js +0 -1
- package/dist/webcomponents/p-1a2eea29.entry.js +0 -1
- package/dist/webcomponents/p-26864218.entry.js +0 -1
- package/dist/webcomponents/p-309dc8aa.js +0 -1
- package/dist/webcomponents/p-32ca779f.js +0 -1
- package/dist/webcomponents/p-375b4d2c.entry.js +0 -1
- package/dist/webcomponents/p-3a7a2a64.entry.js +0 -1
- package/dist/webcomponents/p-3bb21097.entry.js +0 -1
- package/dist/webcomponents/p-45bf8573.js +0 -1
- package/dist/webcomponents/p-61b5417f.entry.js +0 -1
- package/dist/webcomponents/p-73b98298.entry.js +0 -1
- package/dist/webcomponents/p-7bf21156.js +0 -1
- package/dist/webcomponents/p-87a7c3aa.js +0 -1
- package/dist/webcomponents/p-8bedece0.entry.js +0 -1
- package/dist/webcomponents/p-95fbb4b0.entry.js +0 -1
- package/dist/webcomponents/p-b7084adc.js +0 -1
- package/dist/webcomponents/p-c78b5581.js +0 -1
- package/dist/webcomponents/p-cbb6cc19.js +0 -1
- package/dist/webcomponents/p-e15f749c.entry.js +0 -1
- package/dist/webcomponents/p-edae0bb0.entry.js +0 -1
- package/dist/webcomponents/p-f162c569.entry.js +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
|
|
2
2
|
import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError-c61dce41.js';
|
|
3
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
4
|
-
import { c as checkPkgVersion } from './check-pkg-version-
|
|
5
|
-
import { m as makeGetPayoutCSV, P as PayoutService } from './get-payout-csv-
|
|
3
|
+
import { J as JustifiAnalytics } from './Analytics-1051e87d.js';
|
|
4
|
+
import { c as checkPkgVersion } from './check-pkg-version-cdc4a3de.js';
|
|
5
|
+
import { m as makeGetPayoutCSV, P as PayoutService } from './get-payout-csv-be3ee3f0.js';
|
|
6
6
|
import './Checkout-919eb1ba.js';
|
|
7
7
|
import './Pagination-afc8f96d.js';
|
|
8
8
|
import './Payment-82d2f453.js';
|
|
9
9
|
import { P as Payout } from './SubAccount-9aad3891.js';
|
|
10
10
|
import './Document-1907c0d4.js';
|
|
11
11
|
import { g as getErrorMessage, a as getErrorCode } from './utils-fd99b806.js';
|
|
12
|
-
import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-
|
|
12
|
+
import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-3af0844a.js';
|
|
13
13
|
import { S as StyledHost } from './styled-host-32228b45.js';
|
|
14
14
|
import { d as defaultColumnsKeys } from './payouts-table-6b8ba8f1.js';
|
|
15
|
-
import './package-
|
|
15
|
+
import './package-8bc1e068.js';
|
|
16
16
|
import './Api-391d00e2.js';
|
|
17
17
|
import './utils-c37124fc.js';
|
|
18
18
|
import './Dispute-5fd28ec9.js';
|
|
@@ -69,7 +69,7 @@ const PayoutsList = class {
|
|
|
69
69
|
this.errorMessage = null;
|
|
70
70
|
this.accountId = undefined;
|
|
71
71
|
this.authToken = undefined;
|
|
72
|
-
this.apiOrigin =
|
|
72
|
+
this.apiOrigin = "https://wc-proxy.justifi.ai";
|
|
73
73
|
this.columns = defaultColumnsKeys;
|
|
74
74
|
}
|
|
75
75
|
componentWillLoad() {
|
|
@@ -91,7 +91,7 @@ const RefundForm = class {
|
|
|
91
91
|
if (!this.authToken) {
|
|
92
92
|
console.warn('Warning: Missing auth-token.');
|
|
93
93
|
}
|
|
94
|
-
this.api = Api({ authToken: this.authToken, apiOrigin:
|
|
94
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: "https://wc-proxy.justifi.ai" });
|
|
95
95
|
}
|
|
96
96
|
render() {
|
|
97
97
|
var _a;
|
|
@@ -7,20 +7,20 @@ import './Payment-82d2f453.js';
|
|
|
7
7
|
import './SubAccount-9aad3891.js';
|
|
8
8
|
import './Document-1907c0d4.js';
|
|
9
9
|
import { g as getErrorMessage, a as getErrorCode } from './utils-fd99b806.js';
|
|
10
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
11
|
-
import { c as checkPkgVersion } from './check-pkg-version-
|
|
10
|
+
import { J as JustifiAnalytics } from './Analytics-1051e87d.js';
|
|
11
|
+
import { c as checkPkgVersion } from './check-pkg-version-cdc4a3de.js';
|
|
12
12
|
import './utils-c37124fc.js';
|
|
13
13
|
import './Dispute-5fd28ec9.js';
|
|
14
|
-
import './package-
|
|
14
|
+
import './package-8bc1e068.js';
|
|
15
15
|
|
|
16
16
|
class InsuranceService {
|
|
17
17
|
async fetchQuote(authToken, payload) {
|
|
18
18
|
const endpoint = 'insurance/quotes';
|
|
19
|
-
return Api({ authToken, apiOrigin:
|
|
19
|
+
return Api({ authToken, apiOrigin: "https://wc-proxy.justifi.ai" }).post(endpoint, payload);
|
|
20
20
|
}
|
|
21
21
|
async toggleCoverage(authToken, quoteId, payload) {
|
|
22
22
|
const endpoint = `insurance/quotes/${quoteId}/toggle`;
|
|
23
|
-
return Api({ authToken, apiOrigin:
|
|
23
|
+
return Api({ authToken, apiOrigin: "https://wc-proxy.justifi.ai" }).post(endpoint, payload);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-29fcfdf5.js';
|
|
2
2
|
import { S as StyledHost } from './styled-host-32228b45.js';
|
|
3
|
-
import { c as checkPkgVersion } from './check-pkg-version-
|
|
3
|
+
import { c as checkPkgVersion } from './check-pkg-version-cdc4a3de.js';
|
|
4
4
|
import { d as defaultColumnsKeys } from './terminal-orders-table-765c44d5.js';
|
|
5
|
-
import './package-
|
|
5
|
+
import './package-8bc1e068.js';
|
|
6
6
|
import './parts-489f0af6.js';
|
|
7
7
|
|
|
8
8
|
const TerminalOrdersList = class {
|
|
@@ -12,7 +12,7 @@ const TerminalOrdersList = class {
|
|
|
12
12
|
this.errorMessage = null;
|
|
13
13
|
this.businessId = undefined;
|
|
14
14
|
this.authToken = undefined;
|
|
15
|
-
this.apiOrigin =
|
|
15
|
+
this.apiOrigin = "https://wc-proxy.justifi.ai";
|
|
16
16
|
this.columns = defaultColumnsKeys;
|
|
17
17
|
}
|
|
18
18
|
componentWillLoad() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
|
|
2
2
|
import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError-c61dce41.js';
|
|
3
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
4
|
-
import { c as checkPkgVersion } from './check-pkg-version-
|
|
3
|
+
import { J as JustifiAnalytics } from './Analytics-1051e87d.js';
|
|
4
|
+
import { c as checkPkgVersion } from './check-pkg-version-cdc4a3de.js';
|
|
5
5
|
import { A as Api } from './Api-391d00e2.js';
|
|
6
6
|
import './Checkout-919eb1ba.js';
|
|
7
7
|
import './Pagination-afc8f96d.js';
|
|
@@ -9,23 +9,23 @@ import './Payment-82d2f453.js';
|
|
|
9
9
|
import { T as Terminal } from './SubAccount-9aad3891.js';
|
|
10
10
|
import './Document-1907c0d4.js';
|
|
11
11
|
import { g as getErrorMessage, a as getErrorCode } from './utils-fd99b806.js';
|
|
12
|
-
import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-
|
|
12
|
+
import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-3af0844a.js';
|
|
13
13
|
import { S as StyledHost } from './styled-host-32228b45.js';
|
|
14
14
|
import { d as defaultColumnsKeys } from './terminals-table-c6258344.js';
|
|
15
|
-
import './package-
|
|
15
|
+
import './package-8bc1e068.js';
|
|
16
16
|
import './utils-c37124fc.js';
|
|
17
17
|
import './Dispute-5fd28ec9.js';
|
|
18
18
|
import './badge-2eb79416.js';
|
|
19
19
|
import './parts-489f0af6.js';
|
|
20
20
|
|
|
21
21
|
class TerminalService {
|
|
22
|
-
async fetchTerminals(accountId, authToken, params, apiOrigin =
|
|
22
|
+
async fetchTerminals(accountId, authToken, params, apiOrigin = "https://wc-proxy.justifi.ai") {
|
|
23
23
|
const headers = { Account: accountId };
|
|
24
24
|
const api = Api({ authToken, apiOrigin });
|
|
25
25
|
const endpoint = 'terminals';
|
|
26
26
|
return api.get(endpoint, params, null, headers);
|
|
27
27
|
}
|
|
28
|
-
async fetchTerminal(terminalId, authToken, apiOrigin =
|
|
28
|
+
async fetchTerminal(terminalId, authToken, apiOrigin = "https://wc-proxy.justifi.ai") {
|
|
29
29
|
const endpoint = `terminals/${terminalId}`;
|
|
30
30
|
return Api({ authToken, apiOrigin: apiOrigin }).get(endpoint);
|
|
31
31
|
}
|
|
@@ -73,7 +73,7 @@ const TerminalsList = class {
|
|
|
73
73
|
this.errorMessage = null;
|
|
74
74
|
this.accountId = undefined;
|
|
75
75
|
this.authToken = undefined;
|
|
76
|
-
this.apiOrigin =
|
|
76
|
+
this.apiOrigin = "https://wc-proxy.justifi.ai";
|
|
77
77
|
this.columns = defaultColumnsKeys;
|
|
78
78
|
}
|
|
79
79
|
componentWillLoad() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
|
|
2
2
|
import { B as Button } from './button-cc455199.js';
|
|
3
3
|
import { S as StyledHost } from './styled-host-32228b45.js';
|
|
4
|
-
import { c as checkPkgVersion } from './check-pkg-version-
|
|
5
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
4
|
+
import { c as checkPkgVersion } from './check-pkg-version-cdc4a3de.js';
|
|
5
|
+
import { J as JustifiAnalytics } from './Analytics-1051e87d.js';
|
|
6
6
|
import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError-c61dce41.js';
|
|
7
7
|
import './Checkout-919eb1ba.js';
|
|
8
8
|
import './Pagination-afc8f96d.js';
|
|
@@ -10,7 +10,7 @@ import './Payment-82d2f453.js';
|
|
|
10
10
|
import './SubAccount-9aad3891.js';
|
|
11
11
|
import './Document-1907c0d4.js';
|
|
12
12
|
import './parts-489f0af6.js';
|
|
13
|
-
import './package-
|
|
13
|
+
import './package-8bc1e068.js';
|
|
14
14
|
import './Api-391d00e2.js';
|
|
15
15
|
import './utils-c37124fc.js';
|
|
16
16
|
import './Dispute-5fd28ec9.js';
|
|
@@ -28,7 +28,7 @@ const TokenizePaymentMethod = class {
|
|
|
28
28
|
this.disableBankAccount = undefined;
|
|
29
29
|
this.hideSubmitButton = undefined;
|
|
30
30
|
this.hideCardBillingForm = undefined;
|
|
31
|
-
this.iframeOrigin =
|
|
31
|
+
this.iframeOrigin = "https://components.justifi.ai/v2";
|
|
32
32
|
this.isLoading = false;
|
|
33
33
|
}
|
|
34
34
|
componentWillLoad() {
|
|
@@ -7,14 +7,14 @@ import './SubAccount-9aad3891.js';
|
|
|
7
7
|
import './Document-1907c0d4.js';
|
|
8
8
|
|
|
9
9
|
class PaymentService {
|
|
10
|
-
async fetchPayments(accountId, authToken, params, apiOrigin =
|
|
10
|
+
async fetchPayments(accountId, authToken, params, apiOrigin = "https://wc-proxy.justifi.ai") {
|
|
11
11
|
const api = Api({ authToken, apiOrigin: apiOrigin });
|
|
12
12
|
const endpoint = `account/${accountId}/payments`;
|
|
13
13
|
return api.get(endpoint, params);
|
|
14
14
|
}
|
|
15
15
|
async fetchPayment(paymentId, authToken) {
|
|
16
16
|
const endpoint = `payments/${paymentId}`;
|
|
17
|
-
return Api({ authToken, apiOrigin:
|
|
17
|
+
return Api({ authToken, apiOrigin: "https://wc-proxy.justifi.ai" }).get(endpoint);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
package/dist/module/Analytics.js
CHANGED
|
@@ -4,7 +4,7 @@ import { A as Api } from './Api.js';
|
|
|
4
4
|
class AnalyticsService {
|
|
5
5
|
async record(body) {
|
|
6
6
|
const endpoint = 'analytics';
|
|
7
|
-
return Api({ apiOrigin:
|
|
7
|
+
return Api({ apiOrigin: "https://wc-proxy.justifi.ai" }).post(endpoint, body);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -98,7 +98,7 @@ const BusinessTermsConditionsFormStep = /*@__PURE__*/ proxyCustomElement(class B
|
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
100
|
async componentWillLoad() {
|
|
101
|
-
this.api = Api({ authToken: this.authToken, apiOrigin:
|
|
101
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: "https://wc-proxy.justifi.ai" });
|
|
102
102
|
this.formController = new FormController(businessTermsConditionsSchema(this.allowOptionalFields));
|
|
103
103
|
if (this.businessId && this.authToken) {
|
|
104
104
|
this.fetchData();
|
|
@@ -3,37 +3,37 @@ import { A as Api } from './Api.js';
|
|
|
3
3
|
class BusinessService {
|
|
4
4
|
async fetchBusiness(businessId, authToken) {
|
|
5
5
|
const endpoint = `entities/business/${businessId}`;
|
|
6
|
-
return Api({ authToken, apiOrigin:
|
|
6
|
+
return Api({ authToken, apiOrigin: "https://wc-proxy.justifi.ai" }).get(endpoint);
|
|
7
7
|
}
|
|
8
8
|
async patchBusiness(authToken, businessId, payload) {
|
|
9
9
|
const endpoint = `entities/business/${businessId}`;
|
|
10
|
-
return Api({ authToken, apiOrigin:
|
|
10
|
+
return Api({ authToken, apiOrigin: "https://wc-proxy.justifi.ai" }).patch(endpoint, payload);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
class IdentityService {
|
|
14
14
|
async fetchIdentity(identityId, authToken) {
|
|
15
15
|
const endpoint = `entities/identity/${identityId}`;
|
|
16
|
-
return Api({ authToken, apiOrigin:
|
|
16
|
+
return Api({ authToken, apiOrigin: "https://wc-proxy.justifi.ai" }).get(endpoint);
|
|
17
17
|
}
|
|
18
18
|
async patchIdentity(authToken, identityId, payload) {
|
|
19
19
|
const endpoint = `entities/identity/${identityId}`;
|
|
20
|
-
return Api({ authToken, apiOrigin:
|
|
20
|
+
return Api({ authToken, apiOrigin: "https://wc-proxy.justifi.ai" }).patch(endpoint, payload);
|
|
21
21
|
}
|
|
22
22
|
async postIdentity(authToken, payload) {
|
|
23
23
|
const endpoint = `entities/identity`;
|
|
24
|
-
return Api({ authToken, apiOrigin:
|
|
24
|
+
return Api({ authToken, apiOrigin: "https://wc-proxy.justifi.ai" }).post(endpoint, payload);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
class BusinessBankAccountService {
|
|
28
28
|
async postBankAccount(authToken, payload) {
|
|
29
29
|
const endpoint = `entities/bank_accounts`;
|
|
30
|
-
return Api({ authToken, apiOrigin:
|
|
30
|
+
return Api({ authToken, apiOrigin: "https://wc-proxy.justifi.ai" }).post(endpoint, payload);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
class DocumentRecordService {
|
|
34
34
|
async postDocumentRecord(authToken, payload) {
|
|
35
35
|
const endpoint = `entities/document`;
|
|
36
|
-
return Api({ authToken, apiOrigin:
|
|
36
|
+
return Api({ authToken, apiOrigin: "https://wc-proxy.justifi.ai" }).post(endpoint, payload);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -9,11 +9,11 @@ import './Document.js';
|
|
|
9
9
|
class CheckoutService {
|
|
10
10
|
async fetchCheckout(authToken, checkoutId) {
|
|
11
11
|
const endpoint = `checkouts/${checkoutId}`;
|
|
12
|
-
return Api({ authToken, apiOrigin:
|
|
12
|
+
return Api({ authToken, apiOrigin: "https://wc-proxy.justifi.ai" }).get(endpoint);
|
|
13
13
|
}
|
|
14
14
|
async fetchCheckouts(accountId, authToken, params, apiOrigin) {
|
|
15
15
|
if (!apiOrigin) {
|
|
16
|
-
apiOrigin =
|
|
16
|
+
apiOrigin = "https://wc-proxy.justifi.ai";
|
|
17
17
|
}
|
|
18
18
|
const headers = { Account: accountId };
|
|
19
19
|
const api = Api({ authToken, apiOrigin: apiOrigin });
|
|
@@ -28,7 +28,7 @@ class CheckoutService {
|
|
|
28
28
|
if (payment.payment_token) {
|
|
29
29
|
payload.payment_token = payment.payment_token;
|
|
30
30
|
}
|
|
31
|
-
return Api({ authToken, apiOrigin:
|
|
31
|
+
return Api({ authToken, apiOrigin: "https://wc-proxy.justifi.ai" }).post(endpoint, payload);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -10,19 +10,19 @@ import { g as getErrorMessage, a as getErrorCode } from './utils4.js';
|
|
|
10
10
|
class DisputeService {
|
|
11
11
|
async fetchDispute(disputeId, authToken) {
|
|
12
12
|
const endpoint = `disputes/${disputeId}`;
|
|
13
|
-
return Api({ authToken, apiOrigin:
|
|
13
|
+
return Api({ authToken, apiOrigin: "https://wc-proxy.justifi.ai" }).get(endpoint);
|
|
14
14
|
}
|
|
15
15
|
async updateDisputeResponse(disputeId, authToken, payload) {
|
|
16
16
|
const endpoint = `disputes/${disputeId}/response`;
|
|
17
|
-
return Api({ authToken, apiOrigin:
|
|
17
|
+
return Api({ authToken, apiOrigin: "https://wc-proxy.justifi.ai" }).patch(endpoint, payload);
|
|
18
18
|
}
|
|
19
19
|
async submitDisputeResponse(disputeId, authToken, payload) {
|
|
20
20
|
const endpoint = `disputes/${disputeId}/response`;
|
|
21
|
-
return Api({ authToken, apiOrigin:
|
|
21
|
+
return Api({ authToken, apiOrigin: "https://wc-proxy.justifi.ai" }).post(endpoint, payload);
|
|
22
22
|
}
|
|
23
23
|
async createDisputeEvidence(disputeId, authToken, payload) {
|
|
24
24
|
const endpoint = `disputes/${disputeId}/evidence`;
|
|
25
|
-
return Api({ authToken, apiOrigin:
|
|
25
|
+
return Api({ authToken, apiOrigin: "https://wc-proxy.justifi.ai" }).put(endpoint, payload);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -39,7 +39,7 @@ const DisputeResponse = /*@__PURE__*/ proxyCustomElement(class DisputeResponse e
|
|
|
39
39
|
this.authToken = undefined;
|
|
40
40
|
this.disputeId = undefined;
|
|
41
41
|
this.disputeResponse = undefined;
|
|
42
|
-
this.apiOrigin =
|
|
42
|
+
this.apiOrigin = "https://wc-proxy.justifi.ai";
|
|
43
43
|
}
|
|
44
44
|
componentWillLoad() {
|
|
45
45
|
checkPkgVersion();
|
|
@@ -8,17 +8,17 @@ import './Document.js';
|
|
|
8
8
|
import { g as getErrorMessage, a as getErrorCode } from './utils4.js';
|
|
9
9
|
|
|
10
10
|
class PayoutService {
|
|
11
|
-
async fetchPayouts(accountId, authToken, params, apiOrigin =
|
|
11
|
+
async fetchPayouts(accountId, authToken, params, apiOrigin = "https://wc-proxy.justifi.ai") {
|
|
12
12
|
const api = Api({ authToken, apiOrigin });
|
|
13
13
|
const endpoint = `account/${accountId}/payouts`;
|
|
14
14
|
return api.get(endpoint, params);
|
|
15
15
|
}
|
|
16
|
-
async fetchPayout(payoutId, authToken, apiOrigin =
|
|
16
|
+
async fetchPayout(payoutId, authToken, apiOrigin = "https://wc-proxy.justifi.ai") {
|
|
17
17
|
const api = Api({ authToken, apiOrigin });
|
|
18
18
|
const endpoint = `payouts/${payoutId}`;
|
|
19
19
|
return api.get(endpoint);
|
|
20
20
|
}
|
|
21
|
-
async fetchCSV(payoutId, authToken, apiOrigin =
|
|
21
|
+
async fetchCSV(payoutId, authToken, apiOrigin = "https://wc-proxy.justifi.ai") {
|
|
22
22
|
const api = Api({ authToken, apiOrigin });
|
|
23
23
|
const endpoint = `reports/payouts/${payoutId}`;
|
|
24
24
|
return api.get(endpoint);
|
|
@@ -8,7 +8,7 @@ import './Document.js';
|
|
|
8
8
|
import { g as getErrorMessage, a as getErrorCode } from './utils4.js';
|
|
9
9
|
|
|
10
10
|
class SubAccountService {
|
|
11
|
-
async fetchSubAccounts(accountId, authToken, params, apiOrigin =
|
|
11
|
+
async fetchSubAccounts(accountId, authToken, params, apiOrigin = "https://wc-proxy.justifi.ai") {
|
|
12
12
|
const headers = { Account: accountId };
|
|
13
13
|
const api = Api({ authToken, apiOrigin: apiOrigin });
|
|
14
14
|
const endpoint = 'sub_accounts';
|
|
@@ -119,7 +119,7 @@ const BusinessForm = /*@__PURE__*/ proxyCustomElement(class BusinessForm extends
|
|
|
119
119
|
if (!this.businessId)
|
|
120
120
|
console.error(missingBusinessIdMessage);
|
|
121
121
|
this.formController = new FormController(businessFormSchema);
|
|
122
|
-
this.api = Api({ authToken: this.authToken, apiOrigin:
|
|
122
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: "https://wc-proxy.justifi.ai" });
|
|
123
123
|
this.fetchData();
|
|
124
124
|
}
|
|
125
125
|
disconnectedCallback() {
|
|
@@ -92,7 +92,7 @@ const Checkout = /*@__PURE__*/ proxyCustomElement(class Checkout extends HTMLEle
|
|
|
92
92
|
this.disableBnpl = undefined;
|
|
93
93
|
this.disablePaymentMethodGroup = undefined;
|
|
94
94
|
this.hideCardBillingForm = undefined;
|
|
95
|
-
this.iframeOrigin =
|
|
95
|
+
this.iframeOrigin = "https://components.justifi.ai/v2";
|
|
96
96
|
this.getCheckout = undefined;
|
|
97
97
|
this.complete = undefined;
|
|
98
98
|
this.errorMessage = '';
|
|
@@ -59,7 +59,7 @@ const CheckoutsList = /*@__PURE__*/ proxyCustomElement(class CheckoutsList exten
|
|
|
59
59
|
this.errorMessage = null;
|
|
60
60
|
this.accountId = undefined;
|
|
61
61
|
this.authToken = undefined;
|
|
62
|
-
this.apiOrigin =
|
|
62
|
+
this.apiOrigin = "https://wc-proxy.justifi.ai";
|
|
63
63
|
this.columns = defaultColumnsKeys;
|
|
64
64
|
}
|
|
65
65
|
componentWillLoad() {
|
|
@@ -65,7 +65,7 @@ const DisputeManagement = /*@__PURE__*/ proxyCustomElement(class DisputeManageme
|
|
|
65
65
|
};
|
|
66
66
|
this.disputeId = undefined;
|
|
67
67
|
this.authToken = undefined;
|
|
68
|
-
this.apiOrigin =
|
|
68
|
+
this.apiOrigin = "https://wc-proxy.justifi.ai";
|
|
69
69
|
this.getDispute = undefined;
|
|
70
70
|
this.errorMessage = null;
|
|
71
71
|
}
|
|
@@ -9,7 +9,7 @@ import { d as defineCustomElement$2 } from './gross-payment-chart-core2.js';
|
|
|
9
9
|
|
|
10
10
|
class ReportsService {
|
|
11
11
|
async fetchGrossVolumeChartData(accountId, authToken) {
|
|
12
|
-
const api = Api({ authToken: authToken, apiOrigin:
|
|
12
|
+
const api = Api({ authToken: authToken, apiOrigin: "https://wc-proxy.justifi.ai" });
|
|
13
13
|
const endpoint = `account/${accountId}/reports/gross_volume`;
|
|
14
14
|
return api.get(endpoint);
|
|
15
15
|
}
|
|
@@ -46,7 +46,7 @@ class ProvisionService {
|
|
|
46
46
|
business_id: businessId,
|
|
47
47
|
product_category: product,
|
|
48
48
|
};
|
|
49
|
-
return Api({ authToken, apiOrigin:
|
|
49
|
+
return Api({ authToken, apiOrigin: "https://wc-proxy.justifi.ai" }).post(endpoint, payload);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|
|
@@ -60,7 +60,7 @@ const PaymentsList = /*@__PURE__*/ proxyCustomElement(class PaymentsList extends
|
|
|
60
60
|
this.errorMessage = null;
|
|
61
61
|
this.accountId = undefined;
|
|
62
62
|
this.authToken = undefined;
|
|
63
|
-
this.apiOrigin =
|
|
63
|
+
this.apiOrigin = "https://wc-proxy.justifi.ai";
|
|
64
64
|
this.columns = defaultColumnsKeys;
|
|
65
65
|
}
|
|
66
66
|
componentWillLoad() {
|
|
@@ -66,7 +66,7 @@ const PayoutsList = /*@__PURE__*/ proxyCustomElement(class PayoutsList extends H
|
|
|
66
66
|
this.errorMessage = null;
|
|
67
67
|
this.accountId = undefined;
|
|
68
68
|
this.authToken = undefined;
|
|
69
|
-
this.apiOrigin =
|
|
69
|
+
this.apiOrigin = "https://wc-proxy.justifi.ai";
|
|
70
70
|
this.columns = defaultColumnsKeys;
|
|
71
71
|
}
|
|
72
72
|
componentWillLoad() {
|
|
@@ -96,7 +96,7 @@ const RefundForm = /*@__PURE__*/ proxyCustomElement(class RefundForm extends HTM
|
|
|
96
96
|
if (!this.authToken) {
|
|
97
97
|
console.warn('Warning: Missing auth-token.');
|
|
98
98
|
}
|
|
99
|
-
this.api = Api({ authToken: this.authToken, apiOrigin:
|
|
99
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: "https://wc-proxy.justifi.ai" });
|
|
100
100
|
}
|
|
101
101
|
render() {
|
|
102
102
|
var _a;
|
|
@@ -16,11 +16,11 @@ import { d as defineCustomElement$2 } from './season-interruption-insurance-core
|
|
|
16
16
|
class InsuranceService {
|
|
17
17
|
async fetchQuote(authToken, payload) {
|
|
18
18
|
const endpoint = 'insurance/quotes';
|
|
19
|
-
return Api({ authToken, apiOrigin:
|
|
19
|
+
return Api({ authToken, apiOrigin: "https://wc-proxy.justifi.ai" }).post(endpoint, payload);
|
|
20
20
|
}
|
|
21
21
|
async toggleCoverage(authToken, quoteId, payload) {
|
|
22
22
|
const endpoint = `insurance/quotes/${quoteId}/toggle`;
|
|
23
|
-
return Api({ authToken, apiOrigin:
|
|
23
|
+
return Api({ authToken, apiOrigin: "https://wc-proxy.justifi.ai" }).post(endpoint, payload);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -14,7 +14,7 @@ const TerminalOrdersList = /*@__PURE__*/ proxyCustomElement(class TerminalOrders
|
|
|
14
14
|
this.errorMessage = null;
|
|
15
15
|
this.businessId = undefined;
|
|
16
16
|
this.authToken = undefined;
|
|
17
|
-
this.apiOrigin =
|
|
17
|
+
this.apiOrigin = "https://wc-proxy.justifi.ai";
|
|
18
18
|
this.columns = defaultColumnsKeys;
|
|
19
19
|
}
|
|
20
20
|
componentWillLoad() {
|
|
@@ -16,13 +16,13 @@ import { d as defineCustomElement$2, a as defaultColumnsKeys } from './terminals
|
|
|
16
16
|
import { d as defineCustomElement$3 } from './pagination-menu2.js';
|
|
17
17
|
|
|
18
18
|
class TerminalService {
|
|
19
|
-
async fetchTerminals(accountId, authToken, params, apiOrigin =
|
|
19
|
+
async fetchTerminals(accountId, authToken, params, apiOrigin = "https://wc-proxy.justifi.ai") {
|
|
20
20
|
const headers = { Account: accountId };
|
|
21
21
|
const api = Api({ authToken, apiOrigin });
|
|
22
22
|
const endpoint = 'terminals';
|
|
23
23
|
return api.get(endpoint, params, null, headers);
|
|
24
24
|
}
|
|
25
|
-
async fetchTerminal(terminalId, authToken, apiOrigin =
|
|
25
|
+
async fetchTerminal(terminalId, authToken, apiOrigin = "https://wc-proxy.justifi.ai") {
|
|
26
26
|
const endpoint = `terminals/${terminalId}`;
|
|
27
27
|
return Api({ authToken, apiOrigin: apiOrigin }).get(endpoint);
|
|
28
28
|
}
|
|
@@ -72,7 +72,7 @@ const TerminalsList = /*@__PURE__*/ proxyCustomElement(class TerminalsList exten
|
|
|
72
72
|
this.errorMessage = null;
|
|
73
73
|
this.accountId = undefined;
|
|
74
74
|
this.authToken = undefined;
|
|
75
|
-
this.apiOrigin =
|
|
75
|
+
this.apiOrigin = "https://wc-proxy.justifi.ai";
|
|
76
76
|
this.columns = defaultColumnsKeys;
|
|
77
77
|
}
|
|
78
78
|
componentWillLoad() {
|
|
@@ -45,7 +45,7 @@ const TokenizePaymentMethod = /*@__PURE__*/ proxyCustomElement(class TokenizePay
|
|
|
45
45
|
this.disableBankAccount = undefined;
|
|
46
46
|
this.hideSubmitButton = undefined;
|
|
47
47
|
this.hideCardBillingForm = undefined;
|
|
48
|
-
this.iframeOrigin =
|
|
48
|
+
this.iframeOrigin = "https://components.justifi.ai/v2";
|
|
49
49
|
this.isLoading = false;
|
|
50
50
|
}
|
|
51
51
|
componentWillLoad() {
|
package/dist/module/package.js
CHANGED
|
@@ -7,14 +7,14 @@ import './SubAccount.js';
|
|
|
7
7
|
import './Document.js';
|
|
8
8
|
|
|
9
9
|
class PaymentService {
|
|
10
|
-
async fetchPayments(accountId, authToken, params, apiOrigin =
|
|
10
|
+
async fetchPayments(accountId, authToken, params, apiOrigin = "https://wc-proxy.justifi.ai") {
|
|
11
11
|
const api = Api({ authToken, apiOrigin: apiOrigin });
|
|
12
12
|
const endpoint = `account/${accountId}/payments`;
|
|
13
13
|
return api.get(endpoint, params);
|
|
14
14
|
}
|
|
15
15
|
async fetchPayment(paymentId, authToken) {
|
|
16
16
|
const endpoint = `payments/${paymentId}`;
|
|
17
|
-
return Api({ authToken, apiOrigin:
|
|
17
|
+
return Api({ authToken, apiOrigin: "https://wc-proxy.justifi.ai" }).get(endpoint);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as t,h as s}from"./p-2783e363.js";import{f as i}from"./p-2ca5b5e4.js";import{t as a,B as r}from"./p-e8cd9691.js";import{B as d}from"./p-06f5b709.js";import{S as c}from"./p-bfe9748b.js";import{S as o}from"./p-e9e80a62.js";import{a as n,C as h}from"./p-9dd8685c.js";import{g as p,a as f}from"./p-87f8c596.js";import{D as l}from"./p-14f40baa.js";import{D as b}from"./p-667ebd79.js";import{c as u}from"./p-82cbcce9.js";import{J as y}from"./p-5ab25e5d.js";import"./p-0e180654.js";import"./p-389e1eb7.js";import"./p-56f6ce4c.js";import"./p-9894484a.js";import"./p-abdbcd8e.js";import"./p-42a48c59.js";import"./p-61f0a2ce.js";import"./p-7746acac.js";const v=({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=(()=>{})})=>{var c;try{const d=await s.submitDisputeResponse(t,e,i);if(d.error){return r({error:p(d.error),code:f(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR})}a(d)}catch(e){const t=f(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}},m=class{constructor(s){e(this,s),this.clickEvent=t(this,"click-event",7),this.errorEvent=t(this,"error-event",7),this.submitEvent=t(this,"submit-event",7),this.dispute=void 0,this.authToken=void 0,this.isLoading=void 0}acceptDispute(){v({disputeId:this.dispute.id,authToken:this.authToken,service:new l})({payload:{forfeit:!0},onSuccess:e=>{this.submitEvent.emit({response:e})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}})}initiateRespondToDispute(){this.clickEvent.emit({name:b.respondToDispute})}render(){var e,t,n,h,p,f,l;return s(c,{key:"77119b1227200909f4742e24df0a45e1f631c65c"},this.isLoading&&s("div",{key:"f0766ff057fb2f4b75b34c7d4a386bde43e49652",style:{marginBottom:"8px"}},s(o,{key:"d7268194dea5ac2a3b87aea8e17573b4768e308f",height:"28px",width:"70%",styles:{marginBottom:"16px"}}),s(o,{key:"f8863e45a917f56be302ca1b0b3d472119f6465c",height:"18px",styles:{marginBottom:"8px"}}),s(o,{key:"c7b8c9c89d9488eea3be8ea0b4536f98a8151487",height:"18px",styles:{marginBottom:"8px"}})),(null===(e=this.dispute)||void 0===e?void 0:e.needsResponse)&&s("div",{key:"875fe7def317ce1c4547e04e83baf2b232209058",part:a},s("h1",{key:"09646afc2aac3bf4ef9737bc12442660bbafb2dd",class:"h4",part:r},"This payment is disputed"),s("p",{key:"14224cffb16726eaa589118be954e0f844ffaee8"},"The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."),s("h2",{key:"415028b91872a2391796872fdffdbee837a2a511",class:"h5"},"Dispute details"),s("div",{key:"c2b8c6be3132f98eb8c686ab88a5a6a68f92a60e",class:"d-table gap-2"},s("div",{key:"d11bd8b3bc680183e8bee40281cc2c294aedbd5a",class:"d-table-row gap-2"},s("span",{key:"d77796c0d2764329c3b482ae49ceb8b4cac03d37",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Amount"),s("span",{key:"716d8af2a250c3237af6e23b43bf50e032e9f203",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},i(null===(t=this.dispute)||void 0===t?void 0:t.amount))),s("div",{key:"daba4379197533d2a4b246e81139d81cd15761c6",class:"d-table-row gap-2"},s("span",{key:"a039fbf47aff16445e3411c33a7b53716c42866d",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Reason"),s("span",{key:"19087aba5c516d0c71e9f84e8b3323a044ae532a",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(n=this.dispute)||void 0===n?void 0:n.reason)),s("div",{key:"68ef78b15627df3b22bcde4b90f7c216466e7468",class:"d-table-row gap-2"},s("span",{key:"9463c281d76b5e201a55c2993253fc22d04168dc",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Dispute ID"),s("span",{key:"5cffed27038f5571f37377c5023a88c8b7773a59",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(h=this.dispute)||void 0===h?void 0:h.id))),s("div",{key:"e856d924edac10116781425f6d7c4c8c6b26ced2",class:"d-flex gap-2 mt-4 justify-content-end"},s(d,{key:"6d5278a91f79c2fe8fbdd9e391b109a6491b13b6",variant:"secondary",onClick:()=>this.acceptDispute()},"Accept dispute"),s(d,{key:"242b9076b482aae731ab6bedc1592a1a826e24c5",variant:"primary",onClick:()=>this.initiateRespondToDispute()},"Counter dispute"))),(null===(p=this.dispute)||void 0===p?void 0:p.underReview)&&s("div",{key:"f3711546ce5bf8b6a4a8689f5db3fdbf58f45bf4"},s("h1",{key:"06e39be43cfacf667919adbd2f4f8c596702c340",class:"h4"},"This payment is disputed and under review"),s("p",{key:"b3bfef2d40e197f8dc9df6f71d9f13017a4b923d"},"The cardholder is disputing this payment. A counter dispute has been submitEvent and is under review.")),(null===(f=this.dispute)||void 0===f?void 0:f.won)&&s("div",{key:"cb6185865417d70ab67734db37b880f67160ea62"},s("h1",{key:"96dfe178f6d5de97f190f0df6bb0bf19e7b04227",class:"h4"},"This payment was disputed"),s("p",{key:"4f6e8bdd940b69d34c1d84564b83f0a1f8c76059"},"The cardholder disputed this payment and the card issuer has settled it in your favor.")),(null===(l=this.dispute)||void 0===l?void 0:l.lost)&&s("div",{key:"3852f5221f59739d5079ad0e56b99409167678b0"},s("h1",{key:"f6052feaabc3b94c727465a8f02534805ba968c8",class:"h4"},"This payment was disputed"),s("p",{key:"b0c91b828828842bf7a706e794124d0a8404c25e"},"The cardholder disputed this payment and the card issuer has settled it their favor.")))}},k=class{constructor(s){e(this,s),this.errorEvent=t(this,"error-event",7),this.handleErrorEvent=e=>{this.errorMessage=e.detail.message,this.errorEvent.emit(e.detail)},this.updateDisputeResponse=void 0,this.submitDisputeResponse=void 0,this.createDisputeEvidence=void 0,this.errorMessage=null,this.authToken=void 0,this.disputeId=void 0,this.disputeResponse=void 0,this.apiOrigin="https://wc-proxy.justifi.ai"}componentWillLoad(){u(),this.analytics=new y(this),this.initializeDisputeServiceMethods()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeDisputeServiceMethods()}initializeDisputeServiceMethods(){this.disputeId&&this.authToken?(this.updateDisputeResponse=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=(()=>{})})=>{var c;try{const d=await s.updateDisputeResponse(t,e,i);if(d.error)return r({error:p(d.error),code:f(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR});a(d)}catch(e){const t=f(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.createDisputeEvidence=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=(()=>{})})=>{var c;try{const d=await s.createDisputeEvidence(t,e,i);if(d.error)return r({error:p(d.error),code:f(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR});a(d)}catch(e){const t=f(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.submitDisputeResponse=v({disputeId:this.disputeId,authToken:this.authToken,service:new l})):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:h.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return s(c,{key:"4c0cd0b8a082d9f2f4428868d88cbb9bde2a3a5d"},s("justifi-dispute-response-core",{key:"58bbf7f5b2ce8efea0467efddfeffe3c752a3402","onError-event":this.handleErrorEvent,"dispute-id":this.disputeId,disputeResponse:this.disputeResponse,createDisputeEvidence:this.createDisputeEvidence,updateDisputeResponse:this.updateDisputeResponse,submitDisputeResponse:this.submitDisputeResponse}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}},j=class{constructor(i){e(this,i),this.clickEvent=t(this,"click-event",7),this.errorEvent=t(this,"error-event",7),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.submitEvent=t(this,"submit-event",7),this.componentStepMapping=[()=>s("justifi-product-or-service",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse}),()=>s("justifi-customer-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse}),()=>s("justifi-cancellation-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse}),()=>s("justifi-refund-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse}),()=>s("justifi-duplicate-charge",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse}),()=>s("justifi-electronic-evidence",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse}),()=>s("justifi-shipping-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse}),()=>s("justifi-additional-statement",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse})],this.saveData=async(e,t)=>{if(Object.keys(e).length)return this.isLastStep?this.submitDisputeResponse({payload:e,onSuccess:e=>{this.submitEvent.emit({response:e}),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}}):this.updateDisputeResponse({payload:e,onSuccess:e=>{this.disputeResponse=Object.assign({},e.data),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}});this.stepCompleteEvent.emit({response:null,formStep:t})},this.initializeMakePresignedURLs=async()=>{const e=this.documentList.map((e=>this.getPresignedFileUrl(e)));return await Promise.all(e)},this.initializeFileUploads=async()=>{const e=this.documentList.map((e=>this.uploadDocument(e)));return Promise.all(e)},this.getPresignedFileUrl=async e=>this.createDisputeEvidence({payload:{file_name:e.file_name,file_type:e.file_type,dispute_evidence_type:e.dispute_evidence_type},onSuccess:t=>{e.presignedUrl=t.data.presigned_url,this.isLoading=!1},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s}),this.isLoading=!1}}),this.uploadDocument=async e=>{const t=await e.getFileString();if(!e.presignedUrl)throw new Error("Presigned URL is not set");return await fetch(e.presignedUrl,{method:"PUT",body:t})},this.onCancel=()=>{this.clickEvent.emit({name:b.cancelDispute})},this.handleSubmit=async(e,t,s)=>{this.isLoading=!0,t.length&&(this.documentList=t,await this.initializeMakePresignedURLs(),await this.initializeFileUploads()),await this.saveData(e,s),this.isLoading=!1},this.onBack=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:b.previousStep}),await this.handleSubmit(e,t,s),this.currentStep--}))},this.onNext=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:b.nextStep}),await this.handleSubmit(e,t,s),this.currentStep++}))},this.onSubmit=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:b.submit});const i=Object.assign(Object.assign({},e),{forfeit:!1});await this.handleSubmit(i,t,s)}))},this.updateDisputeResponse=void 0,this.submitDisputeResponse=void 0,this.createDisputeEvidence=void 0,this.disputeResponse={},this.isLoading=!1,this.documentList=[],this.currentStep=0,this.currentStepComponentRef=void 0}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}get isLastStep(){return this.currentStep===this.componentStepMapping.length-1}get isFirstStep(){return 0===this.currentStep}render(){return s("div",{key:"a031de7ea80f4f31c6e841be4b4640a8b7db7dcd",class:"row gy-3"},s("div",{key:"cd7ef54b4643e1a74022ed7c2e075e75076c4c44",class:"col-12"},s("h1",{key:"705612783bc67e0d01f4d24e01c9c09d1b2a7362",class:"h4",part:r},"Counter dispute")),s("div",{key:"72c35e89dc87377fe4dbcbb9fe2e2c1b58767a21",class:"col-12"},this.currentStepComponent),s("div",{key:"37d85a8980293390f15b45271f8b2a8fa4cadb29",class:"col-12"},s("div",{key:"c3b281e02b19598b11acdb09a34212edf1745173",class:"d-flex gap-2 mt-4 justify-content-end"},this.isFirstStep?s(d,{variant:"secondary",onClick:()=>this.onCancel(),disabled:this.isLoading,isLoading:this.isLoading},"Cancel"):s(d,{variant:"secondary",onClick:()=>this.onBack(),disabled:this.isLoading,isLoading:this.isLoading},"Back"),this.isLastStep?s(d,{variant:"primary",onClick:()=>this.onSubmit(),disabled:this.isLoading,isLoading:this.isLoading},"Submit Counter Dispute"):s(d,{variant:"primary",onClick:()=>this.onNext(),disabled:this.isLoading,isLoading:this.isLoading},"Next"))))}};export{m as justifi_dispute_notification,k as justifi_dispute_response,j as justifi_dispute_response_core}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as i,h as t}from"./p-2783e363.js";import{J as e}from"./p-5ab25e5d.js";import{C as o,a as r}from"./p-9dd8685c.js";import{m as n,a}from"./p-b84ee6d8.js";import{B as p}from"./p-b4ed5a2c.js";import{A as h}from"./p-0e180654.js";import{c}from"./p-82cbcce9.js";import"./p-7746acac.js";import"./p-87f8c596.js";class d{async postProvisioning(s,i,t){const e={business_id:i,product_category:t};return h({authToken:s,apiOrigin:"https://wc-proxy.justifi.ai"}).post("entities/provisioning",e)}}const m=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event",7),this.postProvisioning=void 0,this.getBusiness=void 0,this.businessId=void 0,this.authToken=void 0,this.allowOptionalFields=!1,this.formTitle="Business Information"}propChanged(){this.initializeApi()}componentWillLoad(){c(),this.analytics=new e(this),this.initializeApi()}disconnectedCallback(){this.analytics.cleanup()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=n({authToken:this.authToken,businessId:this.businessId,service:new p}),this.postProvisioning=a({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new d})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:o.MISSING_PROPS,severity:r.ERROR})}render(){return t("justifi-payment-provisioning-core",{key:"ca4b13afe923312bd51d477eae50099876991599",businessId:this.businessId,authToken:this.authToken,allowOptionalFields:this.allowOptionalFields,formTitle:this.formTitle,getBusiness:this.getBusiness,postProvisioning:this.postProvisioning})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};export{m as justifi_payment_provisioning}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as s}from"./p-0e180654.js";import"./p-9dd8685c.js";import"./p-389e1eb7.js";import"./p-56f6ce4c.js";import"./p-9894484a.js";import"./p-42a48c59.js";import"./p-61f0a2ce.js";class t{async fetchDispute(t,i){const p=`disputes/${t}`;return s({authToken:i,apiOrigin:"https://wc-proxy.justifi.ai"}).get(p)}async updateDisputeResponse(t,i,p){const e=`disputes/${t}/response`;return s({authToken:i,apiOrigin:"https://wc-proxy.justifi.ai"}).patch(e,p)}async submitDisputeResponse(t,i,p){const e=`disputes/${t}/response`;return s({authToken:i,apiOrigin:"https://wc-proxy.justifi.ai"}).post(e,p)}async createDisputeEvidence(t,i,p){const e=`disputes/${t}/evidence`;return s({authToken:i,apiOrigin:"https://wc-proxy.justifi.ai"}).put(e,p)}}export{t as D}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-2783e363.js";import{m as o,P as
|
|
1
|
+
import{r as t,c as s,h as i}from"./p-2783e363.js";import{m as o,P as e}from"./p-f9ff808d.js";import{a as r,C as a}from"./p-9dd8685c.js";import"./p-389e1eb7.js";import"./p-56f6ce4c.js";import"./p-9894484a.js";import{P as p}from"./p-42a48c59.js";import"./p-61f0a2ce.js";import{g as h,a as c}from"./p-87f8c596.js";import{E as d}from"./p-8b16a20f.js";import{J as n}from"./p-5ab25e5d.js";import{c as m}from"./p-82cbcce9.js";import"./p-0e180654.js";import"./p-2ca5b5e4.js";import"./p-abdbcd8e.js";import"./p-e8cd9691.js";import"./p-7746acac.js";const u=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.payoutId=void 0,this.authToken=void 0,this.getPayout=void 0,this.getPayoutCSV=void 0,this.errorMessage=null}componentWillLoad(){m(),this.analytics=new n(this),this.initializeServices()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeServices()}initializeServices(){this.payoutId&&this.authToken?(this.getPayout=(({id:t,authToken:s,service:i})=>async({onSuccess:o,onError:e})=>{var a;try{const d=await i.fetchPayout(t,s);d.error?e({error:h(d.error),code:c(null===(a=d.error)||void 0===a?void 0:a.code),severity:r.ERROR}):o(new p(d.data))}catch(t){e({error:h(t),code:c(null==t?void 0:t.code),severity:r.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new e}),this.getPayoutCSV=o({authToken:this.authToken,service:new e})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:a.MISSING_PROPS,severity:r.ERROR}))}render(){return this.errorMessage?d(this.errorMessage):i("payout-details-core",{getPayout:this.getPayout,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleErrorEvent})}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"]}}};export{u as justifi_payout_details}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as i}from"./p-2783e363.js";import{P as e}from"./p-dfebd7a4.js";import{a as r,C as o}from"./p-9dd8685c.js";import"./p-389e1eb7.js";import"./p-56f6ce4c.js";import{P as a}from"./p-9894484a.js";import"./p-42a48c59.js";import"./p-61f0a2ce.js";import{g as p,a as c}from"./p-87f8c596.js";import{J as n}from"./p-5ab25e5d.js";import{c as d}from"./p-82cbcce9.js";import{S as h}from"./p-bfe9748b.js";import{d as m}from"./p-1278dedf.js";import"./p-0e180654.js";import"./p-2ca5b5e4.js";import"./p-abdbcd8e.js";import"./p-7746acac.js";import"./p-09496255.js";import"./p-3b680e50.js";import"./p-e8cd9691.js";const f=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.getPayments=void 0,this.errorMessage=null,this.accountId=void 0,this.authToken=void 0,this.apiOrigin="https://wc-proxy.justifi.ai",this.columns=m}componentWillLoad(){d(),this.analytics=new n(this),this.initializeGetPayments()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetPayments()}initializeGetPayments(){this.accountId&&this.authToken?this.getPayments=(({id:t,authToken:s,service:i,apiOrigin:e})=>async({params:o,onSuccess:n,onError:d,final:h})=>{var m,f;try{const h=await i.fetchPayments(t,s,o,e);if(h.error)return d({error:p(h.error),code:c(null===(f=h.error)||void 0===f?void 0:f.code),severity:r.ERROR});{const t=Object.assign({},h.page_info);n({payments:(null===(m=h.data)||void 0===m?void 0:m.map((t=>new a(t))))||[],pagingInfo:t})}}catch(t){const s=c(null==t?void 0:t.code);return d({error:t.message||t,code:s,severity:r.ERROR})}finally{return h()}})({id:this.accountId,authToken:this.authToken,service:new e,apiOrigin:this.apiOrigin}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:this.errorMessage,severity:r.ERROR}))}render(){return i(h,{key:"e03e05c3cb3c8dbaf0a5e982958345feccec1902"},i("payments-list-core",{key:"05f2b38a6a854e2e08bdd559e7e8dfab2d80f398",getPayments:this.getPayments,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{f as justifi_payments_list}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as o}from"./p-0e180654.js";import{a as r}from"./p-9dd8685c.js";import"./p-389e1eb7.js";import"./p-56f6ce4c.js";import"./p-9894484a.js";import{S as s}from"./p-42a48c59.js";import"./p-61f0a2ce.js";import{g as c,a as t}from"./p-87f8c596.js";class a{async fetchSubAccounts(r,s,c,t="https://wc-proxy.justifi.ai"){const a={Account:r};return o({authToken:s,apiOrigin:t}).get("sub_accounts",c,null,a)}}const i=({accountId:o,authToken:a,service:i,apiOrigin:n})=>async({params:e,onSuccess:p,onError:u})=>{var m,f;try{const d=await i.fetchSubAccounts(o,a,e,n);if(d.error){return u({error:c(d.error),code:t(null===(f=d.error)||void 0===f?void 0:f.code),severity:r.ERROR})}{const o=Object.assign({},d.page_info);p({subAccounts:(null===(m=d.data)||void 0===m?void 0:m.map((o=>new s(o))))||[],pagingInfo:o})}}catch(o){const s=t(null==o?void 0:o.code);return u({error:o.message||o,code:s,severity:r.ERROR})}};export{a as S,i as m}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,c as i,h as t,H as o}from"./p-2783e363.js";import{E as r}from"./p-8b16a20f.js";import{B as e}from"./p-
|
|
1
|
+
import{r as s,c as i,h as t,H as o}from"./p-2783e363.js";import{E as r}from"./p-8b16a20f.js";import{B as e}from"./p-b4ed5a2c.js";import{m as p}from"./p-f30cb232.js";import{C as a,a as h}from"./p-9dd8685c.js";import{J as m}from"./p-5ab25e5d.js";import{c as d}from"./p-82cbcce9.js";import"./p-e8cd9691.js";import"./p-0e180654.js";import"./p-5d1d2fd7.js";import"./p-1ff8810b.js";import"./p-6078a370.js";import"./p-87f8c596.js";import"./p-7746acac.js";const c=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event",7),this.businessId=void 0,this.authToken=void 0,this.errorMessage=void 0,this.getBusiness=void 0}componentWillLoad(){d(),this.analytics=new m(this),this.initializeGetBusiness()}disconnectedCallback(){this.analytics.cleanup()}initializeGetBusiness(){if(!this.businessId||!this.authToken)return this.errorMessage="Invalid business id or auth token",void this.errorEvent.emit({errorCode:a.MISSING_PROPS,message:this.errorMessage,severity:h.ERROR});this.getBusiness=p({id:this.businessId,authToken:this.authToken,service:new e})}render(){return t(o,null,this.errorMessage?r(this.errorMessage):t("business-details-core",{getBusiness:this.getBusiness}))}};export{c as justifi_business_details}
|