@justifi/webcomponents 5.0.0-rc-2 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{check-pkg-version-18426209.js → check-pkg-version-05db7d8e.js} +1 -1
- package/dist/cjs/iframe-input.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +2 -2
- package/dist/cjs/{package-d6ef89ed.js → package-48c58886.js} +1 -1
- package/dist/docs.json +1 -1
- package/dist/esm/{check-pkg-version-157854b7.js → check-pkg-version-95b9be89.js} +1 -1
- package/dist/esm/iframe-input.entry.js +1 -1
- package/dist/esm/justifi-business-details.entry.js +2 -2
- package/dist/esm/justifi-business-form.entry.js +2 -2
- package/dist/esm/justifi-checkout.entry.js +2 -2
- package/dist/esm/justifi-checkouts-list.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +2 -2
- package/dist/esm/justifi-dispute-notification_3.entry.js +2 -2
- package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
- package/dist/esm/justifi-payment-details.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
- package/dist/esm/justifi-payments-list.entry.js +2 -2
- package/dist/esm/justifi-payout-details.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +2 -2
- package/dist/esm/justifi-season-interruption-insurance.entry.js +2 -2
- package/dist/esm/justifi-terminals-list.entry.js +2 -2
- package/dist/esm/justifi-tokenize-payment-method.entry.js +2 -2
- package/dist/esm/{package-9e3b7f9e.js → package-223933b4.js} +1 -1
- package/dist/module/package.js +1 -1
- package/dist/webcomponents/{p-ec60d318.entry.js → p-01f32098.entry.js} +1 -1
- package/dist/webcomponents/{p-e1ee92f5.entry.js → p-050a6855.entry.js} +1 -1
- package/dist/webcomponents/p-1e6077f4.js +1 -0
- package/dist/webcomponents/{p-28029272.entry.js → p-20a24f3a.entry.js} +1 -1
- package/dist/webcomponents/{p-f99e8150.entry.js → p-238f1ff8.entry.js} +1 -1
- package/dist/webcomponents/{p-83584c56.entry.js → p-2462bf86.entry.js} +1 -1
- package/dist/webcomponents/{p-7693ed02.entry.js → p-3eabbdd4.entry.js} +1 -1
- package/dist/webcomponents/{p-cefd50f8.entry.js → p-47e7f876.entry.js} +1 -1
- package/dist/webcomponents/{p-e723bc30.entry.js → p-70eea098.entry.js} +1 -1
- package/dist/webcomponents/{p-6f4bfdff.entry.js → p-80b1bcc2.entry.js} +1 -1
- package/dist/webcomponents/{p-110cae83.entry.js → p-8fe80110.entry.js} +1 -1
- package/dist/webcomponents/{p-4eb3dcfa.entry.js → p-9c2d5229.entry.js} +1 -1
- package/dist/webcomponents/p-a47971d8.entry.js +1 -0
- package/dist/webcomponents/{p-9ef9a625.entry.js → p-b6d76082.entry.js} +1 -1
- package/dist/webcomponents/{p-f8a3b942.entry.js → p-c212414b.entry.js} +1 -1
- package/dist/webcomponents/{p-7f796066.entry.js → p-d8fdf2b5.entry.js} +1 -1
- package/dist/webcomponents/{p-b867dd5d.entry.js → p-e4421e98.entry.js} +1 -1
- package/dist/webcomponents/{p-5456a794.js → p-e7bb6520.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-5c6d08a6.entry.js +0 -1
- package/dist/webcomponents/p-a07b1816.js +0 -1
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-5b9a3b5f.js');
|
|
6
6
|
const formControlErrorText = require('./form-control-error-text-a2fd5fc1.js');
|
|
7
|
-
const _package = require('./package-
|
|
7
|
+
const _package = require('./package-48c58886.js');
|
|
8
8
|
const iframeInputStylesState = require('./iframe-input-styles-state-d0de0b24.js');
|
|
9
9
|
const parts = require('./parts-811ddb9c.js');
|
|
10
10
|
require('./index-d2d0b181.js');
|
|
@@ -8,13 +8,13 @@ const business_service = require('./business.service-285f6f26.js');
|
|
|
8
8
|
const Business = require('./Business-cfd6a2dd.js');
|
|
9
9
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
10
10
|
const utils = require('./utils-7a478c37.js');
|
|
11
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
11
|
+
const checkPkgVersion = require('./check-pkg-version-05db7d8e.js');
|
|
12
12
|
require('./parts-811ddb9c.js');
|
|
13
13
|
require('./config-b190e93e.js');
|
|
14
14
|
require('./Api-f5280a80.js');
|
|
15
15
|
require('./helpers-602962eb.js');
|
|
16
16
|
require('./state-options-4fbcb48a.js');
|
|
17
|
-
require('./package-
|
|
17
|
+
require('./package-48c58886.js');
|
|
18
18
|
|
|
19
19
|
const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
20
20
|
var _a;
|
|
@@ -13,7 +13,7 @@ require('./Payment-d074b246.js');
|
|
|
13
13
|
require('./SubAccount-fda5ec5b.js');
|
|
14
14
|
const config = require('./config-b190e93e.js');
|
|
15
15
|
const Business = require('./Business-cfd6a2dd.js');
|
|
16
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
16
|
+
const checkPkgVersion = require('./check-pkg-version-05db7d8e.js');
|
|
17
17
|
const button = require('./button-94bdc1f0.js');
|
|
18
18
|
const styledHost = require('./styled-host-94309bab.js');
|
|
19
19
|
const header1 = require('./header-1-cb7af794.js');
|
|
@@ -23,7 +23,7 @@ require('./state-options-4fbcb48a.js');
|
|
|
23
23
|
require('./business-form-options-4bcb8943.js');
|
|
24
24
|
require('./Dispute-eb6bad54.js');
|
|
25
25
|
require('./helpers-602962eb.js');
|
|
26
|
-
require('./package-
|
|
26
|
+
require('./package-48c58886.js');
|
|
27
27
|
require('./parts-811ddb9c.js');
|
|
28
28
|
|
|
29
29
|
const businessFormSchema = index_esm.create$3(Object.assign(Object.assign({}, businessAdditionalQuestionsSchema.businessCoreInfoSchema().fields), { legal_address: businessIdentitySchema.addressSchema(), additional_questions: businessAdditionalQuestionsSchema.additionalQuestionsSchema(), representative: businessIdentitySchema.identitySchema('representative') }));
|
|
@@ -6,7 +6,7 @@ const index = require('./index-5b9a3b5f.js');
|
|
|
6
6
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
7
7
|
const utils = require('./utils-7a478c37.js');
|
|
8
8
|
const checkout_service = require('./checkout.service-671fab62.js');
|
|
9
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
9
|
+
const checkPkgVersion = require('./check-pkg-version-05db7d8e.js');
|
|
10
10
|
require('./config-b190e93e.js');
|
|
11
11
|
require('./Api-f5280a80.js');
|
|
12
12
|
require('./Checkout-a528241d.js');
|
|
@@ -14,7 +14,7 @@ require('./Pagination-0da8f095.js');
|
|
|
14
14
|
require('./Payment-d074b246.js');
|
|
15
15
|
require('./Dispute-eb6bad54.js');
|
|
16
16
|
require('./SubAccount-fda5ec5b.js');
|
|
17
|
-
require('./package-
|
|
17
|
+
require('./package-48c58886.js');
|
|
18
18
|
|
|
19
19
|
const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
|
|
20
20
|
var _a;
|
|
@@ -9,14 +9,14 @@ require('./Payment-d074b246.js');
|
|
|
9
9
|
require('./SubAccount-fda5ec5b.js');
|
|
10
10
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
11
11
|
const utils = require('./utils-7a478c37.js');
|
|
12
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
12
|
+
const checkPkgVersion = require('./check-pkg-version-05db7d8e.js');
|
|
13
13
|
const config = require('./config-b190e93e.js');
|
|
14
14
|
const checkout_service = require('./checkout.service-671fab62.js');
|
|
15
15
|
const getSubaccounts = require('./get-subaccounts-9aa22224.js');
|
|
16
16
|
const styledHost = require('./styled-host-94309bab.js');
|
|
17
17
|
const checkoutsTable = require('./checkouts-table-17648e93.js');
|
|
18
18
|
require('./Dispute-eb6bad54.js');
|
|
19
|
-
require('./package-
|
|
19
|
+
require('./package-48c58886.js');
|
|
20
20
|
require('./Api-f5280a80.js');
|
|
21
21
|
require('./utils-a21b7453.js');
|
|
22
22
|
require('./parts-811ddb9c.js');
|
|
@@ -4,12 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-5b9a3b5f.js');
|
|
6
6
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
7
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
7
|
+
const checkPkgVersion = require('./check-pkg-version-05db7d8e.js');
|
|
8
8
|
const Dispute = require('./Dispute-eb6bad54.js');
|
|
9
9
|
const utils = require('./utils-7a478c37.js');
|
|
10
10
|
const dispute_service = require('./dispute.service-c362a953.js');
|
|
11
11
|
const config = require('./config-b190e93e.js');
|
|
12
|
-
require('./package-
|
|
12
|
+
require('./package-48c58886.js');
|
|
13
13
|
require('./Api-f5280a80.js');
|
|
14
14
|
require('./Checkout-a528241d.js');
|
|
15
15
|
require('./Pagination-0da8f095.js');
|
|
@@ -12,7 +12,7 @@ const ComponentError = require('./ComponentError-233ac749.js');
|
|
|
12
12
|
const utils = require('./utils-7a478c37.js');
|
|
13
13
|
const dispute_service = require('./dispute.service-c362a953.js');
|
|
14
14
|
const eventTypes = require('./event-types-8edaabbb.js');
|
|
15
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
15
|
+
const checkPkgVersion = require('./check-pkg-version-05db7d8e.js');
|
|
16
16
|
const config = require('./config-b190e93e.js');
|
|
17
17
|
require('./Api-f5280a80.js');
|
|
18
18
|
require('./Checkout-a528241d.js');
|
|
@@ -20,7 +20,7 @@ require('./Pagination-0da8f095.js');
|
|
|
20
20
|
require('./Payment-d074b246.js');
|
|
21
21
|
require('./Dispute-eb6bad54.js');
|
|
22
22
|
require('./SubAccount-fda5ec5b.js');
|
|
23
|
-
require('./package-
|
|
23
|
+
require('./package-48c58886.js');
|
|
24
24
|
|
|
25
25
|
const makeUpdateDisputeResponse = ({ authToken, disputeId, service }) => async ({ payload, onSuccess, onError, final = () => { } }) => {
|
|
26
26
|
var _a;
|
|
@@ -8,9 +8,9 @@ const Api = require('./Api-f5280a80.js');
|
|
|
8
8
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
9
9
|
const utils = require('./utils-7a478c37.js');
|
|
10
10
|
const utils$1 = require('./utils-fc17191b.js');
|
|
11
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
11
|
+
const checkPkgVersion = require('./check-pkg-version-05db7d8e.js');
|
|
12
12
|
require('./parts-811ddb9c.js');
|
|
13
|
-
require('./package-
|
|
13
|
+
require('./package-48c58886.js');
|
|
14
14
|
|
|
15
15
|
class ReportsService {
|
|
16
16
|
async fetchGrossVolumeChartData(accountId, authToken) {
|
|
@@ -11,12 +11,12 @@ require('./SubAccount-fda5ec5b.js');
|
|
|
11
11
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
12
12
|
const utils = require('./utils-7a478c37.js');
|
|
13
13
|
const utils$1 = require('./utils-fc17191b.js');
|
|
14
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
14
|
+
const checkPkgVersion = require('./check-pkg-version-05db7d8e.js');
|
|
15
15
|
require('./Api-f5280a80.js');
|
|
16
16
|
require('./config-b190e93e.js');
|
|
17
17
|
require('./Dispute-eb6bad54.js');
|
|
18
18
|
require('./parts-811ddb9c.js');
|
|
19
|
-
require('./package-
|
|
19
|
+
require('./package-48c58886.js');
|
|
20
20
|
|
|
21
21
|
const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
22
22
|
var _a;
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-5b9a3b5f.js');
|
|
6
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
6
|
+
const checkPkgVersion = require('./check-pkg-version-05db7d8e.js');
|
|
7
7
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
8
8
|
const paymentProvisioningActions = require('./payment-provisioning-actions-06466dda.js');
|
|
9
9
|
const business_service = require('./business.service-285f6f26.js');
|
|
10
10
|
const config = require('./config-b190e93e.js');
|
|
11
11
|
const Api = require('./Api-f5280a80.js');
|
|
12
|
-
require('./package-
|
|
12
|
+
require('./package-48c58886.js');
|
|
13
13
|
require('./utils-7a478c37.js');
|
|
14
14
|
|
|
15
15
|
class ProvisionService {
|
|
@@ -10,13 +10,13 @@ const Payment = require('./Payment-d074b246.js');
|
|
|
10
10
|
require('./SubAccount-fda5ec5b.js');
|
|
11
11
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
12
12
|
const utils = require('./utils-7a478c37.js');
|
|
13
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
13
|
+
const checkPkgVersion = require('./check-pkg-version-05db7d8e.js');
|
|
14
14
|
const config = require('./config-b190e93e.js');
|
|
15
15
|
const styledHost = require('./styled-host-94309bab.js');
|
|
16
16
|
const paymentsTable = require('./payments-table-cf5d1c33.js');
|
|
17
17
|
require('./Api-f5280a80.js');
|
|
18
18
|
require('./Dispute-eb6bad54.js');
|
|
19
|
-
require('./package-
|
|
19
|
+
require('./package-48c58886.js');
|
|
20
20
|
require('./payments-status-68ac449d.js');
|
|
21
21
|
require('./utils-a21b7453.js');
|
|
22
22
|
require('./parts-811ddb9c.js');
|
|
@@ -11,12 +11,12 @@ const SubAccount = require('./SubAccount-fda5ec5b.js');
|
|
|
11
11
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
12
12
|
const utils = require('./utils-7a478c37.js');
|
|
13
13
|
const utils$1 = require('./utils-fc17191b.js');
|
|
14
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
14
|
+
const checkPkgVersion = require('./check-pkg-version-05db7d8e.js');
|
|
15
15
|
require('./Api-f5280a80.js');
|
|
16
16
|
require('./config-b190e93e.js');
|
|
17
17
|
require('./Dispute-eb6bad54.js');
|
|
18
18
|
require('./parts-811ddb9c.js');
|
|
19
|
-
require('./package-
|
|
19
|
+
require('./package-48c58886.js');
|
|
20
20
|
|
|
21
21
|
const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
22
22
|
var _a;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-5b9a3b5f.js');
|
|
6
6
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
7
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
7
|
+
const checkPkgVersion = require('./check-pkg-version-05db7d8e.js');
|
|
8
8
|
const config = require('./config-b190e93e.js');
|
|
9
9
|
const getPayoutCsv = require('./get-payout-csv-d2aed52c.js');
|
|
10
10
|
require('./Checkout-a528241d.js');
|
|
@@ -15,7 +15,7 @@ const utils = require('./utils-7a478c37.js');
|
|
|
15
15
|
const getSubaccounts = require('./get-subaccounts-9aa22224.js');
|
|
16
16
|
const styledHost = require('./styled-host-94309bab.js');
|
|
17
17
|
const payoutsTable = require('./payouts-table-58881d95.js');
|
|
18
|
-
require('./package-
|
|
18
|
+
require('./package-48c58886.js');
|
|
19
19
|
require('./Api-f5280a80.js');
|
|
20
20
|
require('./Dispute-eb6bad54.js');
|
|
21
21
|
require('./utils-a21b7453.js');
|
|
@@ -11,9 +11,9 @@ require('./SubAccount-fda5ec5b.js');
|
|
|
11
11
|
const config = require('./config-b190e93e.js');
|
|
12
12
|
const utils = require('./utils-7a478c37.js');
|
|
13
13
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
14
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
14
|
+
const checkPkgVersion = require('./check-pkg-version-05db7d8e.js');
|
|
15
15
|
require('./Dispute-eb6bad54.js');
|
|
16
|
-
require('./package-
|
|
16
|
+
require('./package-48c58886.js');
|
|
17
17
|
|
|
18
18
|
class InsuranceService {
|
|
19
19
|
async fetchQuote(authToken, payload) {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-5b9a3b5f.js');
|
|
6
6
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
7
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
7
|
+
const checkPkgVersion = require('./check-pkg-version-05db7d8e.js');
|
|
8
8
|
const config = require('./config-b190e93e.js');
|
|
9
9
|
const Api = require('./Api-f5280a80.js');
|
|
10
10
|
require('./Checkout-a528241d.js');
|
|
@@ -15,7 +15,7 @@ const utils = require('./utils-7a478c37.js');
|
|
|
15
15
|
const getSubaccounts = require('./get-subaccounts-9aa22224.js');
|
|
16
16
|
const styledHost = require('./styled-host-94309bab.js');
|
|
17
17
|
const terminalsTable = require('./terminals-table-91985249.js');
|
|
18
|
-
require('./package-
|
|
18
|
+
require('./package-48c58886.js');
|
|
19
19
|
require('./Dispute-eb6bad54.js');
|
|
20
20
|
require('./parts-811ddb9c.js');
|
|
21
21
|
|
|
@@ -6,9 +6,9 @@ const index = require('./index-5b9a3b5f.js');
|
|
|
6
6
|
const button = require('./button-94bdc1f0.js');
|
|
7
7
|
const styledHost = require('./styled-host-94309bab.js');
|
|
8
8
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
9
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
9
|
+
const checkPkgVersion = require('./check-pkg-version-05db7d8e.js');
|
|
10
10
|
require('./parts-811ddb9c.js');
|
|
11
|
-
require('./package-
|
|
11
|
+
require('./package-48c58886.js');
|
|
12
12
|
require('./config-b190e93e.js');
|
|
13
13
|
require('./Api-f5280a80.js');
|
|
14
14
|
|
package/dist/docs.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-29fcfdf5.js';
|
|
2
2
|
import { F as FormControlErrorText } from './form-control-error-text-3b2553b5.js';
|
|
3
|
-
import { p as packageJson } from './package-
|
|
3
|
+
import { p as packageJson } from './package-223933b4.js';
|
|
4
4
|
import { a as iframeInputStyles } from './iframe-input-styles-state-ff730fe5.js';
|
|
5
5
|
import { i as inputInvalidAndFocused, b as inputInvalid, a as inputFocused, c as input, l as label } from './parts-186d437f.js';
|
|
6
6
|
import './index-a47fdc7f.js';
|
|
@@ -4,13 +4,13 @@ import { B as BusinessService } from './business.service-182aea6f.js';
|
|
|
4
4
|
import { B as Business } from './Business-29c69f22.js';
|
|
5
5
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
6
6
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
7
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
7
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-95b9be89.js';
|
|
8
8
|
import './parts-186d437f.js';
|
|
9
9
|
import './config-187b3ae1.js';
|
|
10
10
|
import './Api-391d00e2.js';
|
|
11
11
|
import './helpers-96ea3464.js';
|
|
12
12
|
import './state-options-a356fb11.js';
|
|
13
|
-
import './package-
|
|
13
|
+
import './package-223933b4.js';
|
|
14
14
|
|
|
15
15
|
const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
16
16
|
var _a;
|
|
@@ -9,7 +9,7 @@ import './Payment-4f72d277.js';
|
|
|
9
9
|
import './SubAccount-99a00594.js';
|
|
10
10
|
import { c as config } from './config-187b3ae1.js';
|
|
11
11
|
import { B as Business, a as BusinessFormServerErrors } from './Business-29c69f22.js';
|
|
12
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
12
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-95b9be89.js';
|
|
13
13
|
import { B as Button } from './button-1886a33d.js';
|
|
14
14
|
import { S as StyledHost } from './styled-host-32228b45.js';
|
|
15
15
|
import { H as Header1 } from './header-1-c6a00a22.js';
|
|
@@ -19,7 +19,7 @@ import './state-options-a356fb11.js';
|
|
|
19
19
|
import './business-form-options-018f62a5.js';
|
|
20
20
|
import './Dispute-5fd28ec9.js';
|
|
21
21
|
import './helpers-96ea3464.js';
|
|
22
|
-
import './package-
|
|
22
|
+
import './package-223933b4.js';
|
|
23
23
|
import './parts-186d437f.js';
|
|
24
24
|
|
|
25
25
|
const businessFormSchema = create$3(Object.assign(Object.assign({}, businessCoreInfoSchema().fields), { legal_address: addressSchema(), additional_questions: additionalQuestionsSchema(), representative: identitySchema('representative') }));
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js'
|
|
|
2
2
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
3
3
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
4
4
|
import { C as CheckoutService } from './checkout.service-32a6ebe8.js';
|
|
5
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
5
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-95b9be89.js';
|
|
6
6
|
import './config-187b3ae1.js';
|
|
7
7
|
import './Api-391d00e2.js';
|
|
8
8
|
import './Checkout-0b4086f8.js';
|
|
@@ -10,7 +10,7 @@ import './Pagination-afc8f96d.js';
|
|
|
10
10
|
import './Payment-4f72d277.js';
|
|
11
11
|
import './Dispute-5fd28ec9.js';
|
|
12
12
|
import './SubAccount-99a00594.js';
|
|
13
|
-
import './package-
|
|
13
|
+
import './package-223933b4.js';
|
|
14
14
|
|
|
15
15
|
const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
|
|
16
16
|
var _a;
|
|
@@ -5,14 +5,14 @@ import './Payment-4f72d277.js';
|
|
|
5
5
|
import './SubAccount-99a00594.js';
|
|
6
6
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
7
7
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
8
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
8
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-95b9be89.js';
|
|
9
9
|
import { c as config } from './config-187b3ae1.js';
|
|
10
10
|
import { C as CheckoutService } from './checkout.service-32a6ebe8.js';
|
|
11
11
|
import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-0b8af245.js';
|
|
12
12
|
import { S as StyledHost } from './styled-host-32228b45.js';
|
|
13
13
|
import { d as defaultColumnsKeys } from './checkouts-table-8b116232.js';
|
|
14
14
|
import './Dispute-5fd28ec9.js';
|
|
15
|
-
import './package-
|
|
15
|
+
import './package-223933b4.js';
|
|
16
16
|
import './Api-391d00e2.js';
|
|
17
17
|
import './utils-54543523.js';
|
|
18
18
|
import './parts-186d437f.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
|
|
2
2
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
3
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
3
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-95b9be89.js';
|
|
4
4
|
import { a as Dispute } from './Dispute-5fd28ec9.js';
|
|
5
5
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
6
6
|
import { D as DisputeService } from './dispute.service-4e5059aa.js';
|
|
7
7
|
import { c as config } from './config-187b3ae1.js';
|
|
8
|
-
import './package-
|
|
8
|
+
import './package-223933b4.js';
|
|
9
9
|
import './Api-391d00e2.js';
|
|
10
10
|
import './Checkout-0b4086f8.js';
|
|
11
11
|
import './Pagination-afc8f96d.js';
|
|
@@ -8,7 +8,7 @@ import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Compone
|
|
|
8
8
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
9
9
|
import { D as DisputeService } from './dispute.service-4e5059aa.js';
|
|
10
10
|
import { D as DisputeManagementClickActions } from './event-types-07cdb9a0.js';
|
|
11
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
11
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-95b9be89.js';
|
|
12
12
|
import { c as config } from './config-187b3ae1.js';
|
|
13
13
|
import './Api-391d00e2.js';
|
|
14
14
|
import './Checkout-0b4086f8.js';
|
|
@@ -16,7 +16,7 @@ import './Pagination-afc8f96d.js';
|
|
|
16
16
|
import './Payment-4f72d277.js';
|
|
17
17
|
import './Dispute-5fd28ec9.js';
|
|
18
18
|
import './SubAccount-99a00594.js';
|
|
19
|
-
import './package-
|
|
19
|
+
import './package-223933b4.js';
|
|
20
20
|
|
|
21
21
|
const makeUpdateDisputeResponse = ({ authToken, disputeId, service }) => async ({ payload, onSuccess, onError, final = () => { } }) => {
|
|
22
22
|
var _a;
|
|
@@ -4,9 +4,9 @@ import { A as Api } from './Api-391d00e2.js';
|
|
|
4
4
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
5
5
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
6
6
|
import { E as ErrorState } from './utils-d7633e66.js';
|
|
7
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
7
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-95b9be89.js';
|
|
8
8
|
import './parts-186d437f.js';
|
|
9
|
-
import './package-
|
|
9
|
+
import './package-223933b4.js';
|
|
10
10
|
|
|
11
11
|
class ReportsService {
|
|
12
12
|
async fetchGrossVolumeChartData(accountId, authToken) {
|
|
@@ -7,12 +7,12 @@ import './SubAccount-99a00594.js';
|
|
|
7
7
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
8
8
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
9
9
|
import { E as ErrorState } from './utils-d7633e66.js';
|
|
10
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
10
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-95b9be89.js';
|
|
11
11
|
import './Api-391d00e2.js';
|
|
12
12
|
import './config-187b3ae1.js';
|
|
13
13
|
import './Dispute-5fd28ec9.js';
|
|
14
14
|
import './parts-186d437f.js';
|
|
15
|
-
import './package-
|
|
15
|
+
import './package-223933b4.js';
|
|
16
16
|
|
|
17
17
|
const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
18
18
|
var _a;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
|
|
2
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
2
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-95b9be89.js';
|
|
3
3
|
import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
|
|
4
4
|
import { m as makeGetBusiness, a as makePostProvisioning } from './payment-provisioning-actions-0635eff7.js';
|
|
5
5
|
import { B as BusinessService } from './business.service-182aea6f.js';
|
|
6
6
|
import { c as config } from './config-187b3ae1.js';
|
|
7
7
|
import { A as Api } from './Api-391d00e2.js';
|
|
8
|
-
import './package-
|
|
8
|
+
import './package-223933b4.js';
|
|
9
9
|
import './utils-b10dae27.js';
|
|
10
10
|
|
|
11
11
|
class ProvisionService {
|
|
@@ -6,13 +6,13 @@ import { P as Payment } from './Payment-4f72d277.js';
|
|
|
6
6
|
import './SubAccount-99a00594.js';
|
|
7
7
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
8
8
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
9
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
9
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-95b9be89.js';
|
|
10
10
|
import { c as config } from './config-187b3ae1.js';
|
|
11
11
|
import { S as StyledHost } from './styled-host-32228b45.js';
|
|
12
12
|
import { d as defaultColumnsKeys } from './payments-table-d6fbab5b.js';
|
|
13
13
|
import './Api-391d00e2.js';
|
|
14
14
|
import './Dispute-5fd28ec9.js';
|
|
15
|
-
import './package-
|
|
15
|
+
import './package-223933b4.js';
|
|
16
16
|
import './payments-status-a7c18f2a.js';
|
|
17
17
|
import './utils-54543523.js';
|
|
18
18
|
import './parts-186d437f.js';
|
|
@@ -7,12 +7,12 @@ import { P as Payout } from './SubAccount-99a00594.js';
|
|
|
7
7
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
8
8
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
9
9
|
import { E as ErrorState } from './utils-d7633e66.js';
|
|
10
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
10
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-95b9be89.js';
|
|
11
11
|
import './Api-391d00e2.js';
|
|
12
12
|
import './config-187b3ae1.js';
|
|
13
13
|
import './Dispute-5fd28ec9.js';
|
|
14
14
|
import './parts-186d437f.js';
|
|
15
|
-
import './package-
|
|
15
|
+
import './package-223933b4.js';
|
|
16
16
|
|
|
17
17
|
const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
18
18
|
var _a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
|
|
2
2
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
3
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
3
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-95b9be89.js';
|
|
4
4
|
import { c as config } from './config-187b3ae1.js';
|
|
5
5
|
import { m as makeGetPayoutCSV, P as PayoutService } from './get-payout-csv-e6058aa7.js';
|
|
6
6
|
import './Checkout-0b4086f8.js';
|
|
@@ -11,7 +11,7 @@ import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
|
11
11
|
import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-0b8af245.js';
|
|
12
12
|
import { S as StyledHost } from './styled-host-32228b45.js';
|
|
13
13
|
import { d as defaultColumnsKeys } from './payouts-table-2e61a116.js';
|
|
14
|
-
import './package-
|
|
14
|
+
import './package-223933b4.js';
|
|
15
15
|
import './Api-391d00e2.js';
|
|
16
16
|
import './Dispute-5fd28ec9.js';
|
|
17
17
|
import './utils-54543523.js';
|
|
@@ -7,9 +7,9 @@ import './SubAccount-99a00594.js';
|
|
|
7
7
|
import { c as config } from './config-187b3ae1.js';
|
|
8
8
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
9
9
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
10
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
10
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-95b9be89.js';
|
|
11
11
|
import './Dispute-5fd28ec9.js';
|
|
12
|
-
import './package-
|
|
12
|
+
import './package-223933b4.js';
|
|
13
13
|
|
|
14
14
|
class InsuranceService {
|
|
15
15
|
async fetchQuote(authToken, payload) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
|
|
2
2
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
3
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
3
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-95b9be89.js';
|
|
4
4
|
import { c as config } from './config-187b3ae1.js';
|
|
5
5
|
import { A as Api } from './Api-391d00e2.js';
|
|
6
6
|
import './Checkout-0b4086f8.js';
|
|
@@ -11,7 +11,7 @@ import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
|
11
11
|
import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-0b8af245.js';
|
|
12
12
|
import { S as StyledHost } from './styled-host-32228b45.js';
|
|
13
13
|
import { d as defaultColumnsKeys } from './terminals-table-8e42977c.js';
|
|
14
|
-
import './package-
|
|
14
|
+
import './package-223933b4.js';
|
|
15
15
|
import './Dispute-5fd28ec9.js';
|
|
16
16
|
import './parts-186d437f.js';
|
|
17
17
|
|
|
@@ -2,9 +2,9 @@ import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js'
|
|
|
2
2
|
import { B as Button } from './button-1886a33d.js';
|
|
3
3
|
import { S as StyledHost } from './styled-host-32228b45.js';
|
|
4
4
|
import { C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
|
|
5
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
5
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-95b9be89.js';
|
|
6
6
|
import './parts-186d437f.js';
|
|
7
|
-
import './package-
|
|
7
|
+
import './package-223933b4.js';
|
|
8
8
|
import './config-187b3ae1.js';
|
|
9
9
|
import './Api-391d00e2.js';
|
|
10
10
|
|
package/dist/module/package.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,c as i,h as t}from"./p-2783e363.js";import{c as e,F as a}from"./p-5844a0f0.js";import{b as f,a as o}from"./p-79b7c30d.js";import{a as c,i as r}from"./p-bb61c6e0.js";import{A as d}from"./p-0e180654.js";import"./p-16d2932d.js";import"./p-56f6ce4c.js";import"./p-6fbd6abb.js";import"./p-3db8b3c7.js";import{c as n}from"./p-0f23ff58.js";import{B as b,a as h}from"./p-275f2154.js";import{c as p,J as m}from"./p-
|
|
1
|
+
import{r as s,c as i,h as t}from"./p-2783e363.js";import{c as e,F as a}from"./p-5844a0f0.js";import{b as f,a as o}from"./p-79b7c30d.js";import{a as c,i as r}from"./p-bb61c6e0.js";import{A as d}from"./p-0e180654.js";import"./p-16d2932d.js";import"./p-56f6ce4c.js";import"./p-6fbd6abb.js";import"./p-3db8b3c7.js";import{c as n}from"./p-0f23ff58.js";import{B as b,a as h}from"./p-275f2154.js";import{c as p,J as m}from"./p-e7bb6520.js";import{B as l}from"./p-32a5bf4e.js";import{S as j}from"./p-bfe9748b.js";import{H as u}from"./p-b392ec21.js";import{B as y}from"./p-73f9be7c.js";import"./p-af834eb8.js";import"./p-6078a370.js";import"./p-0ea387a2.js";import"./p-abdbcd8e.js";import"./p-1ff8810b.js";import"./p-1e6077f4.js";import"./p-ef4c49b9.js";const k=e(Object.assign(Object.assign({},f().fields),{legal_address:c(),additional_questions:o(),representative:r("representative")})),v=class{constructor(t){s(this,t),this.submitEvent=i(this,"submit-event",7),this.clickEvent=i(this,"click-event",7),this.instantiateBusiness=s=>{const i=new b(s);this.formController.setInitialValues(Object.assign({},i))},this.sendData=async()=>{this.isLoading=!0;try{const s=this.formController.values.getValue(),i=this.formController.getInitialValues(),t=new b(Object.assign(Object.assign({},i),s)).payload,e=await this.api.patch(this.businessEndpoint,t);this.handleReponse(e)}catch(s){this.errorMessage=h.patchData}finally{this.isLoading=!1}},this.fetchData=async()=>{this.isLoading=!0;try{const s=await this.api.get(this.businessEndpoint);this.instantiateBusiness(s.data)}catch(s){this.errorMessage=h.fetchData}finally{this.isLoading=!1}},this.validateAndSubmit=s=>{s.preventDefault(),this.formController.validateAndSubmit(this.sendData)},this.authToken=void 0,this.businessId=void 0,this.hideErrors=!1,this.formTitle="Business Information",this.removeTitle=!1,this.isLoading=!1,this.errorMessage=void 0}componentWillLoad(){p(),this.analytics=new m(this),this.authToken||console.error("Warning: Missing auth-token. The form will not be functional without it."),this.businessId||console.error("Warning: Missing business-id. The form requires an existing business-id to function."),this.formController=new a(k),this.api=d({authToken:this.authToken,apiOrigin:n.proxyApiOrigin}),this.fetchData()}disconnectedCallback(){this.analytics.cleanup()}get title(){return this.removeTitle?"":this.formTitle}get disabledState(){return this.isLoading}get businessEndpoint(){return`entities/business/${this.businessId}`}handleReponse(s){s.error&&(this.errorMessage=h.patchData),this.submitEvent.emit({response:s}),this.instantiateBusiness(s.data)}render(){return t(j,{key:"583d9fda192de2a23255af3a66749bec30e82668"},t("form",{key:"6de44b1f63b18b7e47c377665878435134155d2a",onSubmit:this.validateAndSubmit},t("div",{key:"e83cf5471df4628461978deba6a6269f5a91dc58",class:"row gap-3"},t(u,{key:"228f8d97e1574c714de73884dd564aac2f58bc3c",text:this.title}),t("form-alert",{key:"e3fe0d57a7ee44f44273481c41b3699e1ccf05d1",text:this.errorMessage,hideAlert:this.hideErrors}),t("div",{key:"af3fc2e821a601d5046f230735ba52359f3f3710",class:"col-12 mb-4"},t("justifi-business-core-info",{key:"e27933c4dd6bfc3746d5071d7cdaec05c1795ec2",formController:this.formController})),t("div",{key:"4c11232954cfb171c0c249465637a3050645f36f",class:"col-12 mb-4"},t("justifi-legal-address-form",{key:"3d9f7b042822f4b898862a0c89c00fa281daff66",formController:this.formController})),t("div",{key:"f3b0209fc3cb1b0cd65692f0505ddfcc80a99d0a",class:"col-12 mb-4"},t("justifi-additional-questions",{key:"a9c0f77135d8ff2f2c2f2ffba6d288f1f1b60f61",formController:this.formController})),t("div",{key:"085df35d64de470c9f0198d52b698945759afe27",class:"col-12 mb-4"},t("justifi-business-representative",{key:"fdb24f037b26f9063d0d1f073d7effb6e3789f7f",formController:this.formController})),t("div",{key:"2b0617d9cd67d296de734c8becbea183555317e4",class:"col-12 d-flex flex-row-reverse"},t(l,{key:"7452cb606515807d9d2089330cf5861cd2dcdc1e",type:"submit",disabled:this.disabledState,variant:"primary",onClick:()=>this.clickEvent.emit({name:y.submit}),isLoading:this.isLoading},"Submit")))))}};export{v as justifi_business_form}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as s}from"./p-2783e363.js";import{C as e,a as r}from"./p-14c91ffd.js";import{c as o,J as a}from"./p-
|
|
1
|
+
import{r as t,c as i,h as s}from"./p-2783e363.js";import{C as e,a as r}from"./p-14c91ffd.js";import{c as o,J as a}from"./p-e7bb6520.js";import{a as p}from"./p-abdbcd8e.js";import{g as n,a as h}from"./p-8115b2f4.js";import{D as d}from"./p-441c1cf8.js";import{c}from"./p-0f23ff58.js";import"./p-1e6077f4.js";import"./p-0e180654.js";import"./p-16d2932d.js";import"./p-56f6ce4c.js";import"./p-6fbd6abb.js";import"./p-3db8b3c7.js";const m=class{constructor(s){t(this,s),this.errorEvent=i(this,"error-event",7),this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.disputeId=void 0,this.authToken=void 0,this.apiOrigin=c.proxyApiOrigin,this.getDispute=void 0,this.errorMessage=null}componentWillLoad(){o(),this.analytics=new a(this),this.initializeGetDispute()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetDispute()}initializeGetDispute(){this.disputeId&&this.authToken?this.getDispute=(({id:t,authToken:i,service:s,apiOrigin:r})=>async({onSuccess:o,onError:a})=>{var d;try{const c=await s.fetchDispute(t,i,r);if(c.error)return a({error:n(c.error),code:h(null===(d=c.error)||void 0===d?void 0:d.code),severity:e.ERROR});{const t=Object.assign({},c.page_info);o({dispute:new p(c.data),pagingInfo:t})}}catch(t){const i=h(null==t?void 0:t.code);return a({error:t.message||t,code:i,severity:e.ERROR})}})({id:this.disputeId,authToken:this.authToken,service:new d,apiOrigin:this.apiOrigin}):(this.errorMessage="Dispute ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:r.MISSING_PROPS,severity:e.ERROR}))}render(){return s("justifi-dispute-management-core",{key:"3e2a5b24484e8f1e198168910be7880732da3931",getDispute:this.getDispute,disputeId:this.disputeId,authToken:this.authToken,"onError-event":this.handleErrorEvent})}static get watchers(){return{disputeId:["propChanged"],authToken:["propChanged"]}}};export{m as justifi_dispute_management}
|