@justifi/webcomponents 5.1.0 → 5.2.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/bank-account-form_9.cjs.entry.js +5 -2
- package/dist/cjs/billing-form_3.cjs.entry.js +1 -1
- package/dist/cjs/{check-pkg-version-931df996.js → check-pkg-version-dee8dbb7.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-52ac8376.js → package-8b9059cc.js} +1 -1
- package/dist/collection/components/checkout/new-payment-method.js +5 -2
- package/dist/docs.json +2 -2
- package/dist/esm/bank-account-form_9.entry.js +5 -2
- package/dist/esm/billing-form_3.entry.js +1 -1
- package/dist/esm/{check-pkg-version-f613bceb.js → check-pkg-version-51d2616b.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-9b94eb81.js → package-5eedfd72.js} +1 -1
- package/dist/module/new-payment-method.js +5 -2
- package/dist/module/package.js +1 -1
- package/dist/types/components/checkout/payment-method-payload.d.ts +2 -0
- package/dist/webcomponents/{p-df795bd0.entry.js → p-270033ba.entry.js} +1 -1
- package/dist/webcomponents/{p-c65c07f7.entry.js → p-2a17a29c.entry.js} +1 -1
- package/dist/webcomponents/{p-14d21d66.entry.js → p-332bd5ab.entry.js} +1 -1
- package/dist/webcomponents/{p-def672dc.entry.js → p-427881b1.entry.js} +1 -1
- package/dist/webcomponents/{p-156f0a23.entry.js → p-4acfed0d.entry.js} +1 -1
- package/dist/webcomponents/{p-850b7717.entry.js → p-64a1ae2c.entry.js} +1 -1
- package/dist/webcomponents/{p-aee49e6e.entry.js → p-6ad11a9f.entry.js} +1 -1
- package/dist/webcomponents/{p-0f4168f4.entry.js → p-7aff48a1.entry.js} +1 -1
- package/dist/webcomponents/{p-16a9e343.js → p-9069fab5.js} +1 -1
- package/dist/webcomponents/{p-560bc606.entry.js → p-948b7710.entry.js} +1 -1
- package/dist/webcomponents/{p-9154210a.entry.js → p-98b027b7.entry.js} +1 -1
- package/dist/webcomponents/{p-783f72a5.entry.js → p-b86e804e.entry.js} +1 -1
- package/dist/webcomponents/{p-b04da0de.entry.js → p-bb842885.entry.js} +1 -1
- package/dist/webcomponents/{p-6b21b6c9.js → p-c2efe406.js} +1 -1
- package/dist/webcomponents/{p-b7b18a0f.entry.js → p-c358b253.entry.js} +1 -1
- package/dist/webcomponents/{p-3fa7d9c9.entry.js → p-c6051278.entry.js} +1 -1
- package/dist/webcomponents/p-d5dace8b.entry.js +1 -0
- package/dist/webcomponents/{p-c0e18724.entry.js → p-dc6e1e5f.entry.js} +1 -1
- package/dist/webcomponents/{p-4e92b1ac.entry.js → p-f5a7a7d1.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-98e49e54.entry.js +0 -1
|
@@ -212,7 +212,10 @@ const NewPaymentMethod = class {
|
|
|
212
212
|
}
|
|
213
213
|
else {
|
|
214
214
|
const tokenizeRessponseData = tokenizeResponse.data;
|
|
215
|
-
return {
|
|
215
|
+
return {
|
|
216
|
+
token: ((_a = tokenizeRessponseData.card) === null || _a === void 0 ? void 0 : _a.token) || ((_b = tokenizeRessponseData.bank_account) === null || _b === void 0 ? void 0 : _b.token),
|
|
217
|
+
data: tokenizeRessponseData
|
|
218
|
+
};
|
|
216
219
|
}
|
|
217
220
|
}
|
|
218
221
|
catch (error) {
|
|
@@ -249,7 +252,7 @@ const NewPaymentMethod = class {
|
|
|
249
252
|
}
|
|
250
253
|
render() {
|
|
251
254
|
var _a, _b;
|
|
252
|
-
return (index.h(index.Host, { key: '
|
|
255
|
+
return (index.h(index.Host, { key: 'c0d2a7efd367d357a4c205960f8765e488f7e376', class: "payment-method" }, index.h("div", { key: '697f5d543ed4690b11f6d8e36bb88eabbc8cc368', class: "radio-list-item p-3", part: parts.radioListItem, onClick: this.onPaymentMethodOptionClick }, index.h("form-control-radio", { key: '43bf63f112ef40cca0332b77bf447c5f8b5e0379', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: PaymentMethodTypeLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id] })), this.isSelected ? this.showNewPaymentMethodForm() : null));
|
|
253
256
|
}
|
|
254
257
|
};
|
|
255
258
|
|
|
@@ -8,7 +8,7 @@ const schemaValidations = require('./schema-validations-0be8068a.js');
|
|
|
8
8
|
const stateOptions = require('./state-options-4fbcb48a.js');
|
|
9
9
|
const utils = require('./utils-bc03ca40.js');
|
|
10
10
|
const formControlErrorText = require('./form-control-error-text-c1f49f35.js');
|
|
11
|
-
const _package = require('./package-
|
|
11
|
+
const _package = require('./package-8b9059cc.js');
|
|
12
12
|
const iframeInputStylesState = require('./iframe-input-styles-state-d0de0b24.js');
|
|
13
13
|
const parts = require('./parts-addf2176.js');
|
|
14
14
|
require('./business-form-options-4bcb8943.js');
|
|
@@ -8,12 +8,12 @@ const business_service = require('./business.service-ffb6f478.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-dee8dbb7.js');
|
|
12
12
|
require('./parts-addf2176.js');
|
|
13
13
|
require('./Api-b0e4be29.js');
|
|
14
14
|
require('./helpers-602962eb.js');
|
|
15
15
|
require('./state-options-4fbcb48a.js');
|
|
16
|
-
require('./package-
|
|
16
|
+
require('./package-8b9059cc.js');
|
|
17
17
|
|
|
18
18
|
const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
19
19
|
var _a;
|
|
@@ -12,7 +12,7 @@ require('./Pagination-0da8f095.js');
|
|
|
12
12
|
require('./Payment-84817e2d.js');
|
|
13
13
|
require('./SubAccount-f236913b.js');
|
|
14
14
|
const Business = require('./Business-cfd6a2dd.js');
|
|
15
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
15
|
+
const checkPkgVersion = require('./check-pkg-version-dee8dbb7.js');
|
|
16
16
|
const button = require('./button-e7796b07.js');
|
|
17
17
|
const styledHost = require('./styled-host-94309bab.js');
|
|
18
18
|
const header1 = require('./header-1-96b97cab.js');
|
|
@@ -24,7 +24,7 @@ require('./business-form-options-4bcb8943.js');
|
|
|
24
24
|
require('./utils-5fb95d31.js');
|
|
25
25
|
require('./Dispute-eb6bad54.js');
|
|
26
26
|
require('./helpers-602962eb.js');
|
|
27
|
-
require('./package-
|
|
27
|
+
require('./package-8b9059cc.js');
|
|
28
28
|
require('./parts-addf2176.js');
|
|
29
29
|
|
|
30
30
|
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-e9c05c15.js');
|
|
9
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
9
|
+
const checkPkgVersion = require('./check-pkg-version-dee8dbb7.js');
|
|
10
10
|
require('./Api-b0e4be29.js');
|
|
11
11
|
require('./Checkout-2ff4f9c8.js');
|
|
12
12
|
require('./utils-5fb95d31.js');
|
|
@@ -14,7 +14,7 @@ require('./Pagination-0da8f095.js');
|
|
|
14
14
|
require('./Payment-84817e2d.js');
|
|
15
15
|
require('./Dispute-eb6bad54.js');
|
|
16
16
|
require('./SubAccount-f236913b.js');
|
|
17
|
-
require('./package-
|
|
17
|
+
require('./package-8b9059cc.js');
|
|
18
18
|
|
|
19
19
|
const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
|
|
20
20
|
var _a;
|
|
@@ -9,7 +9,7 @@ require('./Payment-84817e2d.js');
|
|
|
9
9
|
require('./SubAccount-f236913b.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-dee8dbb7.js');
|
|
13
13
|
const Api = require('./Api-b0e4be29.js');
|
|
14
14
|
const checkout_service = require('./checkout.service-e9c05c15.js');
|
|
15
15
|
const getSubaccounts = require('./get-subaccounts-b087fa39.js');
|
|
@@ -17,7 +17,7 @@ const styledHost = require('./styled-host-94309bab.js');
|
|
|
17
17
|
const checkoutsTable = require('./checkouts-table-0f19c1e6.js');
|
|
18
18
|
require('./utils-5fb95d31.js');
|
|
19
19
|
require('./Dispute-eb6bad54.js');
|
|
20
|
-
require('./package-
|
|
20
|
+
require('./package-8b9059cc.js');
|
|
21
21
|
require('./badge-fbf58cb9.js');
|
|
22
22
|
require('./parts-addf2176.js');
|
|
23
23
|
|
|
@@ -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-dee8dbb7.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-9272a2a6.js');
|
|
11
11
|
const Api = require('./Api-b0e4be29.js');
|
|
12
|
-
require('./package-
|
|
12
|
+
require('./package-8b9059cc.js');
|
|
13
13
|
require('./Checkout-2ff4f9c8.js');
|
|
14
14
|
require('./utils-5fb95d31.js');
|
|
15
15
|
require('./Pagination-0da8f095.js');
|
|
@@ -12,14 +12,14 @@ const ComponentError = require('./ComponentError-233ac749.js');
|
|
|
12
12
|
const utils = require('./utils-7a478c37.js');
|
|
13
13
|
const dispute_service = require('./dispute.service-9272a2a6.js');
|
|
14
14
|
const eventTypes = require('./event-types-8edaabbb.js');
|
|
15
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
15
|
+
const checkPkgVersion = require('./check-pkg-version-dee8dbb7.js');
|
|
16
16
|
const Api = require('./Api-b0e4be29.js');
|
|
17
17
|
require('./Checkout-2ff4f9c8.js');
|
|
18
18
|
require('./Pagination-0da8f095.js');
|
|
19
19
|
require('./Payment-84817e2d.js');
|
|
20
20
|
require('./Dispute-eb6bad54.js');
|
|
21
21
|
require('./SubAccount-f236913b.js');
|
|
22
|
-
require('./package-
|
|
22
|
+
require('./package-8b9059cc.js');
|
|
23
23
|
|
|
24
24
|
const makeUpdateDisputeResponse = ({ authToken, disputeId, service }) => async ({ payload, onSuccess, onError, final = () => { } }) => {
|
|
25
25
|
var _a;
|
|
@@ -7,9 +7,9 @@ const Api = require('./Api-b0e4be29.js');
|
|
|
7
7
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
8
8
|
const utils = require('./utils-7a478c37.js');
|
|
9
9
|
const utils$1 = require('./utils-a05a8bf6.js');
|
|
10
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
10
|
+
const checkPkgVersion = require('./check-pkg-version-dee8dbb7.js');
|
|
11
11
|
require('./parts-addf2176.js');
|
|
12
|
-
require('./package-
|
|
12
|
+
require('./package-8b9059cc.js');
|
|
13
13
|
|
|
14
14
|
class ReportsService {
|
|
15
15
|
async fetchGrossVolumeChartData(accountId, authToken) {
|
|
@@ -11,12 +11,12 @@ require('./SubAccount-f236913b.js');
|
|
|
11
11
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
12
12
|
const utils = require('./utils-7a478c37.js');
|
|
13
13
|
const utils$1 = require('./utils-a05a8bf6.js');
|
|
14
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
14
|
+
const checkPkgVersion = require('./check-pkg-version-dee8dbb7.js');
|
|
15
15
|
require('./Api-b0e4be29.js');
|
|
16
16
|
require('./utils-5fb95d31.js');
|
|
17
17
|
require('./Dispute-eb6bad54.js');
|
|
18
18
|
require('./parts-addf2176.js');
|
|
19
|
-
require('./package-
|
|
19
|
+
require('./package-8b9059cc.js');
|
|
20
20
|
|
|
21
21
|
const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
22
22
|
var _a;
|
|
@@ -3,12 +3,12 @@
|
|
|
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-dee8dbb7.js');
|
|
7
7
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
8
8
|
const paymentProvisioningActions = require('./payment-provisioning-actions-fbd30d1b.js');
|
|
9
9
|
const business_service = require('./business.service-ffb6f478.js');
|
|
10
10
|
const Api = require('./Api-b0e4be29.js');
|
|
11
|
-
require('./package-
|
|
11
|
+
require('./package-8b9059cc.js');
|
|
12
12
|
require('./utils-7a478c37.js');
|
|
13
13
|
|
|
14
14
|
class ProvisionService {
|
|
@@ -10,13 +10,13 @@ const Payment = require('./Payment-84817e2d.js');
|
|
|
10
10
|
require('./SubAccount-f236913b.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-dee8dbb7.js');
|
|
14
14
|
const Api = require('./Api-b0e4be29.js');
|
|
15
15
|
const styledHost = require('./styled-host-94309bab.js');
|
|
16
16
|
const paymentsTable = require('./payments-table-16f3f95e.js');
|
|
17
17
|
require('./utils-5fb95d31.js');
|
|
18
18
|
require('./Dispute-eb6bad54.js');
|
|
19
|
-
require('./package-
|
|
19
|
+
require('./package-8b9059cc.js');
|
|
20
20
|
require('./payments-status-411c325c.js');
|
|
21
21
|
require('./badge-fbf58cb9.js');
|
|
22
22
|
require('./parts-addf2176.js');
|
|
@@ -11,12 +11,12 @@ const SubAccount = require('./SubAccount-f236913b.js');
|
|
|
11
11
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
12
12
|
const utils = require('./utils-7a478c37.js');
|
|
13
13
|
const utils$1 = require('./utils-a05a8bf6.js');
|
|
14
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
14
|
+
const checkPkgVersion = require('./check-pkg-version-dee8dbb7.js');
|
|
15
15
|
require('./Api-b0e4be29.js');
|
|
16
16
|
require('./utils-5fb95d31.js');
|
|
17
17
|
require('./Dispute-eb6bad54.js');
|
|
18
18
|
require('./parts-addf2176.js');
|
|
19
|
-
require('./package-
|
|
19
|
+
require('./package-8b9059cc.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-dee8dbb7.js');
|
|
8
8
|
const Api = require('./Api-b0e4be29.js');
|
|
9
9
|
const getPayoutCsv = require('./get-payout-csv-778db023.js');
|
|
10
10
|
require('./Checkout-2ff4f9c8.js');
|
|
@@ -15,7 +15,7 @@ const utils = require('./utils-7a478c37.js');
|
|
|
15
15
|
const getSubaccounts = require('./get-subaccounts-b087fa39.js');
|
|
16
16
|
const styledHost = require('./styled-host-94309bab.js');
|
|
17
17
|
const payoutsTable = require('./payouts-table-bc15179c.js');
|
|
18
|
-
require('./package-
|
|
18
|
+
require('./package-8b9059cc.js');
|
|
19
19
|
require('./utils-5fb95d31.js');
|
|
20
20
|
require('./Dispute-eb6bad54.js');
|
|
21
21
|
require('./payouts-status-0951e39d.js');
|
|
@@ -10,10 +10,10 @@ require('./Payment-84817e2d.js');
|
|
|
10
10
|
require('./SubAccount-f236913b.js');
|
|
11
11
|
const utils = require('./utils-7a478c37.js');
|
|
12
12
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
13
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
13
|
+
const checkPkgVersion = require('./check-pkg-version-dee8dbb7.js');
|
|
14
14
|
require('./utils-5fb95d31.js');
|
|
15
15
|
require('./Dispute-eb6bad54.js');
|
|
16
|
-
require('./package-
|
|
16
|
+
require('./package-8b9059cc.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-dee8dbb7.js');
|
|
8
8
|
const Api = require('./Api-b0e4be29.js');
|
|
9
9
|
require('./Checkout-2ff4f9c8.js');
|
|
10
10
|
require('./Pagination-0da8f095.js');
|
|
@@ -14,7 +14,7 @@ const utils = require('./utils-7a478c37.js');
|
|
|
14
14
|
const getSubaccounts = require('./get-subaccounts-b087fa39.js');
|
|
15
15
|
const styledHost = require('./styled-host-94309bab.js');
|
|
16
16
|
const terminalsTable = require('./terminals-table-3c19847b.js');
|
|
17
|
-
require('./package-
|
|
17
|
+
require('./package-8b9059cc.js');
|
|
18
18
|
require('./utils-5fb95d31.js');
|
|
19
19
|
require('./Dispute-eb6bad54.js');
|
|
20
20
|
require('./badge-fbf58cb9.js');
|
|
@@ -6,9 +6,9 @@ const index = require('./index-5b9a3b5f.js');
|
|
|
6
6
|
const button = require('./button-e7796b07.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-dee8dbb7.js');
|
|
10
10
|
require('./parts-addf2176.js');
|
|
11
|
-
require('./package-
|
|
11
|
+
require('./package-8b9059cc.js');
|
|
12
12
|
require('./Api-b0e4be29.js');
|
|
13
13
|
|
|
14
14
|
const TokenizePaymentMethod = class {
|
|
@@ -39,7 +39,10 @@ export class NewPaymentMethod {
|
|
|
39
39
|
}
|
|
40
40
|
else {
|
|
41
41
|
const tokenizeRessponseData = tokenizeResponse.data;
|
|
42
|
-
return {
|
|
42
|
+
return {
|
|
43
|
+
token: ((_a = tokenizeRessponseData.card) === null || _a === void 0 ? void 0 : _a.token) || ((_b = tokenizeRessponseData.bank_account) === null || _b === void 0 ? void 0 : _b.token),
|
|
44
|
+
data: tokenizeRessponseData
|
|
45
|
+
};
|
|
43
46
|
}
|
|
44
47
|
}
|
|
45
48
|
catch (error) {
|
|
@@ -76,7 +79,7 @@ export class NewPaymentMethod {
|
|
|
76
79
|
}
|
|
77
80
|
render() {
|
|
78
81
|
var _a, _b;
|
|
79
|
-
return (h(Host, { key: '
|
|
82
|
+
return (h(Host, { key: 'c0d2a7efd367d357a4c205960f8765e488f7e376', class: "payment-method" }, h("div", { key: '697f5d543ed4690b11f6d8e36bb88eabbc8cc368', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick }, h("form-control-radio", { key: '43bf63f112ef40cca0332b77bf447c5f8b5e0379', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: PaymentMethodTypeLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id] })), this.isSelected ? this.showNewPaymentMethodForm() : null));
|
|
80
83
|
}
|
|
81
84
|
static get is() { return "justifi-new-payment-method"; }
|
|
82
85
|
static get properties() {
|
package/dist/docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2025-01-
|
|
2
|
+
"timestamp": "2025-01-29T16:34:45",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.19.2",
|
|
@@ -17504,7 +17504,7 @@
|
|
|
17504
17504
|
"path": "src/components/checkout/payment-method-option-utils.ts"
|
|
17505
17505
|
},
|
|
17506
17506
|
"src/components/checkout/payment-method-payload.ts::PaymentMethodPayload": {
|
|
17507
|
-
"declaration": "export interface PaymentMethodPayload {\n token?: string;\n bnpl?: {\n order_uuid: string;\n status: string;\n session_uuid: string;\n }
|
|
17507
|
+
"declaration": "export interface PaymentMethodPayload {\n data?: CreatePaymentMethodResponse;\n token?: string;\n bnpl?: {\n order_uuid: string;\n status: string;\n session_uuid: string;\n };\n error?: {\n code: string;\n message: string;\n decline_code: string;\n };\n validationError?: boolean;\n}",
|
|
17508
17508
|
"docstring": "",
|
|
17509
17509
|
"path": "src/components/checkout/payment-method-payload.ts"
|
|
17510
17510
|
},
|
|
@@ -208,7 +208,10 @@ const NewPaymentMethod = class {
|
|
|
208
208
|
}
|
|
209
209
|
else {
|
|
210
210
|
const tokenizeRessponseData = tokenizeResponse.data;
|
|
211
|
-
return {
|
|
211
|
+
return {
|
|
212
|
+
token: ((_a = tokenizeRessponseData.card) === null || _a === void 0 ? void 0 : _a.token) || ((_b = tokenizeRessponseData.bank_account) === null || _b === void 0 ? void 0 : _b.token),
|
|
213
|
+
data: tokenizeRessponseData
|
|
214
|
+
};
|
|
212
215
|
}
|
|
213
216
|
}
|
|
214
217
|
catch (error) {
|
|
@@ -245,7 +248,7 @@ const NewPaymentMethod = class {
|
|
|
245
248
|
}
|
|
246
249
|
render() {
|
|
247
250
|
var _a, _b;
|
|
248
|
-
return (h(Host, { key: '
|
|
251
|
+
return (h(Host, { key: 'c0d2a7efd367d357a4c205960f8765e488f7e376', class: "payment-method" }, h("div", { key: '697f5d543ed4690b11f6d8e36bb88eabbc8cc368', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick }, h("form-control-radio", { key: '43bf63f112ef40cca0332b77bf447c5f8b5e0379', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: PaymentMethodTypeLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id] })), this.isSelected ? this.showNewPaymentMethodForm() : null));
|
|
249
252
|
}
|
|
250
253
|
};
|
|
251
254
|
|
|
@@ -4,7 +4,7 @@ import { u as identityNameValidation, l as lineOneValidation, k as lineTwoValida
|
|
|
4
4
|
import { S as StateOptions } from './state-options-a356fb11.js';
|
|
5
5
|
import { n as numberOnlyHandler } from './utils-20cdf321.js';
|
|
6
6
|
import { F as FormControlErrorText } from './form-control-error-text-066cdad4.js';
|
|
7
|
-
import { p as packageJson } from './package-
|
|
7
|
+
import { p as packageJson } from './package-5eedfd72.js';
|
|
8
8
|
import { a as iframeInputStyles } from './iframe-input-styles-state-ff730fe5.js';
|
|
9
9
|
import { i as inputInvalidAndFocused, b as inputInvalid, a as inputFocused, c as input, l as label } from './parts-93f379ab.js';
|
|
10
10
|
import './business-form-options-018f62a5.js';
|
|
@@ -4,12 +4,12 @@ import { B as BusinessService } from './business.service-ab2663a3.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-51d2616b.js';
|
|
8
8
|
import './parts-93f379ab.js';
|
|
9
9
|
import './Api-0cac5b8a.js';
|
|
10
10
|
import './helpers-96ea3464.js';
|
|
11
11
|
import './state-options-a356fb11.js';
|
|
12
|
-
import './package-
|
|
12
|
+
import './package-5eedfd72.js';
|
|
13
13
|
|
|
14
14
|
const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
15
15
|
var _a;
|
|
@@ -8,7 +8,7 @@ import './Pagination-afc8f96d.js';
|
|
|
8
8
|
import './Payment-47630113.js';
|
|
9
9
|
import './SubAccount-f31349a9.js';
|
|
10
10
|
import { B as Business, a as BusinessFormServerErrors } from './Business-29c69f22.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-51d2616b.js';
|
|
12
12
|
import { B as Button } from './button-8a02823c.js';
|
|
13
13
|
import { S as StyledHost } from './styled-host-32228b45.js';
|
|
14
14
|
import { H as Header1 } from './header-1-75c284dd.js';
|
|
@@ -20,7 +20,7 @@ import './business-form-options-018f62a5.js';
|
|
|
20
20
|
import './utils-b76d791e.js';
|
|
21
21
|
import './Dispute-5fd28ec9.js';
|
|
22
22
|
import './helpers-96ea3464.js';
|
|
23
|
-
import './package-
|
|
23
|
+
import './package-5eedfd72.js';
|
|
24
24
|
import './parts-93f379ab.js';
|
|
25
25
|
|
|
26
26
|
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-c275270e.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-51d2616b.js';
|
|
6
6
|
import './Api-0cac5b8a.js';
|
|
7
7
|
import './Checkout-d476bb83.js';
|
|
8
8
|
import './utils-b76d791e.js';
|
|
@@ -10,7 +10,7 @@ import './Pagination-afc8f96d.js';
|
|
|
10
10
|
import './Payment-47630113.js';
|
|
11
11
|
import './Dispute-5fd28ec9.js';
|
|
12
12
|
import './SubAccount-f31349a9.js';
|
|
13
|
-
import './package-
|
|
13
|
+
import './package-5eedfd72.js';
|
|
14
14
|
|
|
15
15
|
const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
|
|
16
16
|
var _a;
|
|
@@ -5,7 +5,7 @@ import './Payment-47630113.js';
|
|
|
5
5
|
import './SubAccount-f31349a9.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-51d2616b.js';
|
|
9
9
|
import { c as config } from './Api-0cac5b8a.js';
|
|
10
10
|
import { C as CheckoutService } from './checkout.service-c275270e.js';
|
|
11
11
|
import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-ab3dd32c.js';
|
|
@@ -13,7 +13,7 @@ import { S as StyledHost } from './styled-host-32228b45.js';
|
|
|
13
13
|
import { d as defaultColumnsKeys } from './checkouts-table-115bacc4.js';
|
|
14
14
|
import './utils-b76d791e.js';
|
|
15
15
|
import './Dispute-5fd28ec9.js';
|
|
16
|
-
import './package-
|
|
16
|
+
import './package-5eedfd72.js';
|
|
17
17
|
import './badge-b034e71b.js';
|
|
18
18
|
import './parts-93f379ab.js';
|
|
19
19
|
|
|
@@ -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-51d2616b.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-882e35ed.js';
|
|
7
7
|
import { c as config } from './Api-0cac5b8a.js';
|
|
8
|
-
import './package-
|
|
8
|
+
import './package-5eedfd72.js';
|
|
9
9
|
import './Checkout-d476bb83.js';
|
|
10
10
|
import './utils-b76d791e.js';
|
|
11
11
|
import './Pagination-afc8f96d.js';
|
|
@@ -8,14 +8,14 @@ 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-882e35ed.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-51d2616b.js';
|
|
12
12
|
import { c as config } from './Api-0cac5b8a.js';
|
|
13
13
|
import './Checkout-d476bb83.js';
|
|
14
14
|
import './Pagination-afc8f96d.js';
|
|
15
15
|
import './Payment-47630113.js';
|
|
16
16
|
import './Dispute-5fd28ec9.js';
|
|
17
17
|
import './SubAccount-f31349a9.js';
|
|
18
|
-
import './package-
|
|
18
|
+
import './package-5eedfd72.js';
|
|
19
19
|
|
|
20
20
|
const makeUpdateDisputeResponse = ({ authToken, disputeId, service }) => async ({ payload, onSuccess, onError, final = () => { } }) => {
|
|
21
21
|
var _a;
|
|
@@ -3,9 +3,9 @@ import { A as Api, c as config } from './Api-0cac5b8a.js';
|
|
|
3
3
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
4
4
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
5
5
|
import { E as ErrorState } from './utils-7fb6331d.js';
|
|
6
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
6
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-51d2616b.js';
|
|
7
7
|
import './parts-93f379ab.js';
|
|
8
|
-
import './package-
|
|
8
|
+
import './package-5eedfd72.js';
|
|
9
9
|
|
|
10
10
|
class ReportsService {
|
|
11
11
|
async fetchGrossVolumeChartData(accountId, authToken) {
|
|
@@ -7,12 +7,12 @@ import './SubAccount-f31349a9.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-7fb6331d.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-51d2616b.js';
|
|
11
11
|
import './Api-0cac5b8a.js';
|
|
12
12
|
import './utils-b76d791e.js';
|
|
13
13
|
import './Dispute-5fd28ec9.js';
|
|
14
14
|
import './parts-93f379ab.js';
|
|
15
|
-
import './package-
|
|
15
|
+
import './package-5eedfd72.js';
|
|
16
16
|
|
|
17
17
|
const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
18
18
|
var _a;
|
|
@@ -1,10 +1,10 @@
|
|
|
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-51d2616b.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-a262ee82.js';
|
|
5
5
|
import { B as BusinessService } from './business.service-ab2663a3.js';
|
|
6
6
|
import { A as Api, c as config } from './Api-0cac5b8a.js';
|
|
7
|
-
import './package-
|
|
7
|
+
import './package-5eedfd72.js';
|
|
8
8
|
import './utils-b10dae27.js';
|
|
9
9
|
|
|
10
10
|
class ProvisionService {
|
|
@@ -6,13 +6,13 @@ import { P as Payment } from './Payment-47630113.js';
|
|
|
6
6
|
import './SubAccount-f31349a9.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-51d2616b.js';
|
|
10
10
|
import { c as config } from './Api-0cac5b8a.js';
|
|
11
11
|
import { S as StyledHost } from './styled-host-32228b45.js';
|
|
12
12
|
import { d as defaultColumnsKeys } from './payments-table-c0bb25b6.js';
|
|
13
13
|
import './utils-b76d791e.js';
|
|
14
14
|
import './Dispute-5fd28ec9.js';
|
|
15
|
-
import './package-
|
|
15
|
+
import './package-5eedfd72.js';
|
|
16
16
|
import './payments-status-82466054.js';
|
|
17
17
|
import './badge-b034e71b.js';
|
|
18
18
|
import './parts-93f379ab.js';
|
|
@@ -7,12 +7,12 @@ import { P as Payout } from './SubAccount-f31349a9.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-7fb6331d.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-51d2616b.js';
|
|
11
11
|
import './Api-0cac5b8a.js';
|
|
12
12
|
import './utils-b76d791e.js';
|
|
13
13
|
import './Dispute-5fd28ec9.js';
|
|
14
14
|
import './parts-93f379ab.js';
|
|
15
|
-
import './package-
|
|
15
|
+
import './package-5eedfd72.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-51d2616b.js';
|
|
4
4
|
import { c as config } from './Api-0cac5b8a.js';
|
|
5
5
|
import { m as makeGetPayoutCSV, P as PayoutService } from './get-payout-csv-50aea928.js';
|
|
6
6
|
import './Checkout-d476bb83.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-ab3dd32c.js';
|
|
12
12
|
import { S as StyledHost } from './styled-host-32228b45.js';
|
|
13
13
|
import { d as defaultColumnsKeys } from './payouts-table-4382a264.js';
|
|
14
|
-
import './package-
|
|
14
|
+
import './package-5eedfd72.js';
|
|
15
15
|
import './utils-b76d791e.js';
|
|
16
16
|
import './Dispute-5fd28ec9.js';
|
|
17
17
|
import './payouts-status-b98c8297.js';
|
|
@@ -6,10 +6,10 @@ import './Payment-47630113.js';
|
|
|
6
6
|
import './SubAccount-f31349a9.js';
|
|
7
7
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
8
8
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.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-51d2616b.js';
|
|
10
10
|
import './utils-b76d791e.js';
|
|
11
11
|
import './Dispute-5fd28ec9.js';
|
|
12
|
-
import './package-
|
|
12
|
+
import './package-5eedfd72.js';
|
|
13
13
|
|
|
14
14
|
class InsuranceService {
|
|
15
15
|
async fetchQuote(authToken, payload) {
|