@justifi/webcomponents 5.3.0 → 5.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Api-b0e4be29.js → Api-089e7501.js} +1 -0
- package/dist/cjs/bank-account-form_9.cjs.entry.js +10 -6
- package/dist/cjs/billing-form_3.cjs.entry.js +1 -1
- package/dist/cjs/{business.service-d575b515.js → business.service-33d7c7f2.js} +1 -1
- package/dist/cjs/{check-pkg-version-1658df6f.js → check-pkg-version-526a9ce5.js} +2 -2
- package/dist/cjs/{checkout.service-057b5a7a.js → checkout.service-d9047ddb.js} +1 -1
- package/dist/cjs/{dispute.service-df9e1830.js → dispute.service-739631c7.js} +1 -1
- package/dist/cjs/{get-payout-csv-527a238c.js → get-payout-csv-bdaff21b.js} +1 -1
- package/dist/cjs/{get-subaccounts-6068c1aa.js → get-subaccounts-2db9fc01.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 +3 -3
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +3 -2
- package/dist/cjs/justifi-checkout.cjs.entry.js +7 -6
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +5 -5
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +4 -4
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +4 -4
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -3
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +5 -5
- package/dist/cjs/justifi-refund-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +5 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-06419e54.js → package-45874555.js} +1 -1
- package/dist/cjs/{payment.service-3eebfe3e.js → payment.service-87924c1a.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +25 -1
- package/dist/collection/components/checkout/card-form/card-form.js +25 -1
- package/dist/collection/components/checkout/checkout-core.js +20 -2
- package/dist/collection/components/checkout/checkout.js +22 -2
- package/dist/collection/components/checkout/new-payment-method.js +20 -2
- package/dist/collection/components/checkout/payment-method-options.js +20 -2
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +21 -1
- package/dist/config.js +1 -0
- package/dist/docs.json +154 -3
- package/dist/esm/{Api-0cac5b8a.js → Api-97801a4b.js} +1 -0
- package/dist/esm/bank-account-form_9.entry.js +10 -6
- package/dist/esm/billing-form_3.entry.js +1 -1
- package/dist/esm/{business.service-6a208f8f.js → business.service-45c7df3c.js} +1 -1
- package/dist/esm/{check-pkg-version-bac7eb5e.js → check-pkg-version-f91ed31f.js} +2 -2
- package/dist/esm/{checkout.service-ac067baa.js → checkout.service-36e3355e.js} +1 -1
- package/dist/esm/{dispute.service-26a788a8.js → dispute.service-9b9b87e5.js} +1 -1
- package/dist/esm/{get-payout-csv-684fece6.js → get-payout-csv-80210301.js} +1 -1
- package/dist/esm/{get-subaccounts-b1bed757.js → get-subaccounts-d3eeb85d.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 +3 -3
- package/dist/esm/justifi-checkout-core.entry.js +3 -2
- package/dist/esm/justifi-checkout.entry.js +7 -6
- package/dist/esm/justifi-checkouts-list.entry.js +5 -5
- package/dist/esm/justifi-dispute-management.entry.js +4 -4
- package/dist/esm/justifi-dispute-notification_3.entry.js +4 -4
- package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
- package/dist/esm/justifi-owner-form_3.entry.js +2 -2
- package/dist/esm/justifi-payment-details.entry.js +4 -4
- package/dist/esm/justifi-payment-provisioning.entry.js +4 -4
- package/dist/esm/justifi-payments-list.entry.js +4 -4
- package/dist/esm/justifi-payout-details.entry.js +4 -4
- package/dist/esm/justifi-payouts-list.entry.js +5 -5
- package/dist/esm/justifi-refund-form.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +3 -3
- package/dist/esm/justifi-terminals-list.entry.js +4 -4
- package/dist/esm/justifi-tokenize-payment-method.entry.js +5 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-90ebd343.js → package-2b7c7bc0.js} +1 -1
- package/dist/esm/{payment.service-2e418da1.js → payment.service-c847c1f6.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/bank-account-form2.js +3 -1
- package/dist/module/card-form2.js +3 -1
- package/dist/module/checkout-core.js +4 -2
- package/dist/module/config.js +1 -0
- package/dist/module/justifi-checkout.js +5 -2
- package/dist/module/justifi-tokenize-payment-method.js +4 -1
- package/dist/module/new-payment-method.js +4 -2
- package/dist/module/package.js +1 -1
- package/dist/module/payment-method-options.js +4 -2
- package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +1 -0
- package/dist/types/components/checkout/card-form/card-form.d.ts +1 -0
- package/dist/types/components/checkout/checkout-core.d.ts +1 -0
- package/dist/types/components/checkout/checkout.d.ts +1 -0
- package/dist/types/components/checkout/new-payment-method.d.ts +1 -0
- package/dist/types/components/checkout/payment-method-options.d.ts +1 -0
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +1 -0
- package/dist/types/components.d.ts +14 -0
- package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +1 -0
- package/dist/webcomponents/{p-fe0d245f.entry.js → p-00c32bb9.entry.js} +1 -1
- package/dist/webcomponents/p-1820fd87.entry.js +1 -0
- package/dist/webcomponents/p-189affee.entry.js +1 -0
- package/dist/webcomponents/{p-3c0b56cd.entry.js → p-31cbc05a.entry.js} +1 -1
- package/dist/webcomponents/{p-865733bc.js → p-35b00a0d.js} +1 -1
- package/dist/webcomponents/{p-ed17e472.entry.js → p-415deed1.entry.js} +1 -1
- package/dist/webcomponents/{p-e0db920c.entry.js → p-47a3003c.entry.js} +1 -1
- package/dist/webcomponents/p-4bad3621.js +1 -0
- package/dist/webcomponents/{p-c845cb7a.js → p-4c820f81.js} +1 -1
- package/dist/webcomponents/{p-a263a3db.entry.js → p-72992c97.entry.js} +1 -1
- package/dist/webcomponents/{p-f1e01bab.entry.js → p-72ff0d5f.entry.js} +1 -1
- package/dist/webcomponents/{p-9235b94e.entry.js → p-74014392.entry.js} +1 -1
- package/dist/webcomponents/{p-f5925b1e.entry.js → p-7542ebd6.entry.js} +1 -1
- package/dist/webcomponents/p-778e9dd0.entry.js +1 -0
- package/dist/webcomponents/p-85b5eeb6.entry.js +1 -0
- package/dist/webcomponents/{p-21cf557e.entry.js → p-8815bf82.entry.js} +1 -1
- package/dist/webcomponents/{p-c470a150.js → p-960a8ec2.js} +1 -1
- package/dist/webcomponents/p-991df3a1.entry.js +1 -0
- package/dist/webcomponents/{p-f706d70e.js → p-a2076a0e.js} +1 -1
- package/dist/webcomponents/{p-abb46c6b.entry.js → p-ab254da1.entry.js} +1 -1
- package/dist/webcomponents/p-af66f580.entry.js +1 -0
- package/dist/webcomponents/p-b15ad5df.js +1 -0
- package/dist/webcomponents/{p-42047b14.entry.js → p-b2209632.entry.js} +1 -1
- package/dist/webcomponents/{p-3d5c8a98.entry.js → p-ca361ef6.entry.js} +1 -1
- package/dist/webcomponents/{p-0ef9eae6.entry.js → p-ccd91d8a.entry.js} +1 -1
- package/dist/webcomponents/{p-2a136295.js → p-d91c46dc.js} +1 -1
- package/dist/webcomponents/{p-cc4adf97.js → p-dd867d1f.js} +1 -1
- package/dist/webcomponents/{p-f9728478.entry.js → p-eae512f0.entry.js} +1 -1
- package/dist/webcomponents/{p-c5ce98b0.entry.js → p-f28ddbe8.entry.js} +1 -1
- package/dist/webcomponents/p-fdbcd486.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-2d801915.js +0 -1
- package/dist/webcomponents/p-56addd0a.entry.js +0 -1
- package/dist/webcomponents/p-631d54a2.entry.js +0 -1
- package/dist/webcomponents/p-6b0bec46.entry.js +0 -1
- package/dist/webcomponents/p-cdb7fa19.entry.js +0 -1
- package/dist/webcomponents/p-ea105de3.js +0 -1
- package/dist/webcomponents/p-ea5cf135.entry.js +0 -1
- package/dist/webcomponents/p-f9ac523e.entry.js +0 -1
- package/dist/webcomponents/p-f9d63d9d.js +0 -1
|
@@ -4,6 +4,7 @@ import { CheckoutService } from "../../api/services/checkout.service";
|
|
|
4
4
|
import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/ComponentError";
|
|
5
5
|
import JustifiAnalytics from "../../api/Analytics";
|
|
6
6
|
import { checkPkgVersion } from "../../utils/check-pkg-version";
|
|
7
|
+
import { config } from "../../../config";
|
|
7
8
|
export class Checkout {
|
|
8
9
|
constructor() {
|
|
9
10
|
this.authToken = undefined;
|
|
@@ -13,6 +14,7 @@ export class Checkout {
|
|
|
13
14
|
this.disableBnpl = undefined;
|
|
14
15
|
this.disablePaymentMethodGroup = undefined;
|
|
15
16
|
this.hideCardBillingForm = undefined;
|
|
17
|
+
this.iframeOrigin = config.iFrameOrigin;
|
|
16
18
|
this.getCheckout = undefined;
|
|
17
19
|
this.complete = undefined;
|
|
18
20
|
this.errorMessage = '';
|
|
@@ -53,11 +55,11 @@ export class Checkout {
|
|
|
53
55
|
this.checkoutCoreRef.fillBillingForm(fields);
|
|
54
56
|
}
|
|
55
57
|
render() {
|
|
56
|
-
return (h("justifi-checkout-core", { key: '
|
|
58
|
+
return (h("justifi-checkout-core", { key: '911e807dc0be670c6bfe59e497cacd5399481981', getCheckout: this.getCheckout, authToken: this.authToken, complete: this.complete, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, disableBnpl: this.disableBnpl, disablePaymentMethodGroup: this.disablePaymentMethodGroup, hideCardBillingForm: this.hideCardBillingForm, iframeOrigin: this.iframeOrigin, ref: el => {
|
|
57
59
|
if (el) {
|
|
58
60
|
this.checkoutCoreRef = el;
|
|
59
61
|
}
|
|
60
|
-
} }, h("div", { key: '
|
|
62
|
+
} }, h("div", { key: '29bcfd776e4dac5a7686a03488d0f8dad2d01a03', slot: "insurance" }, h("slot", { key: '993b8872e8a40dd5111ccaeb586686a396eab2ff', name: "insurance" }))));
|
|
61
63
|
}
|
|
62
64
|
static get is() { return "justifi-checkout"; }
|
|
63
65
|
static get properties() {
|
|
@@ -180,6 +182,24 @@ export class Checkout {
|
|
|
180
182
|
},
|
|
181
183
|
"attribute": "hide-card-billing-form",
|
|
182
184
|
"reflect": false
|
|
185
|
+
},
|
|
186
|
+
"iframeOrigin": {
|
|
187
|
+
"type": "string",
|
|
188
|
+
"mutable": false,
|
|
189
|
+
"complexType": {
|
|
190
|
+
"original": "string",
|
|
191
|
+
"resolved": "string",
|
|
192
|
+
"references": {}
|
|
193
|
+
},
|
|
194
|
+
"required": false,
|
|
195
|
+
"optional": true,
|
|
196
|
+
"docs": {
|
|
197
|
+
"tags": [],
|
|
198
|
+
"text": ""
|
|
199
|
+
},
|
|
200
|
+
"attribute": "iframe-origin",
|
|
201
|
+
"reflect": false,
|
|
202
|
+
"defaultValue": "config.iFrameOrigin"
|
|
183
203
|
}
|
|
184
204
|
};
|
|
185
205
|
}
|
|
@@ -16,6 +16,7 @@ export class NewPaymentMethod {
|
|
|
16
16
|
this.paymentMethodGroupId = undefined;
|
|
17
17
|
this.isSelected = undefined;
|
|
18
18
|
this.hideCardBillingForm = undefined;
|
|
19
|
+
this.iframeOrigin = undefined;
|
|
19
20
|
this.saveNewPaymentMethodChecked = false;
|
|
20
21
|
}
|
|
21
22
|
handleCheckboxChanged(event) {
|
|
@@ -75,11 +76,11 @@ export class NewPaymentMethod {
|
|
|
75
76
|
showNewPaymentMethodForm() {
|
|
76
77
|
var _a;
|
|
77
78
|
const paymentMethodType = (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id;
|
|
78
|
-
return (h("div", { class: "mt-4 pb-4
|
|
79
|
+
return (h("div", { class: "mt-4 pb-4" }, h("hidden-input", null), h("div", { class: "mb-4" }, paymentMethodType === 'card' ? (h("card-form", { ref: (el) => this.paymentMethodFormRef = el, iframeOrigin: this.iframeOrigin })) : (h("bank-account-form", { ref: (el) => this.paymentMethodFormRef = el, iframeOrigin: this.iframeOrigin }))), h("justifi-billing-form-wrapper", { ref: (el) => (this.billingFormWrapperRef = el), hideCardBillingForm: this.hideCardBillingForm, paymentMethodType: paymentMethodType }), h("justifi-save-new-payment-method", { hidden: !this.paymentMethodGroupId })));
|
|
79
80
|
}
|
|
80
81
|
render() {
|
|
81
82
|
var _a, _b;
|
|
82
|
-
return (h(Host, { key: '
|
|
83
|
+
return (h(Host, { key: '17b922ca3b03d458a0e139be895db31b33c255ed', class: "payment-method" }, h("div", { key: '5d1bb3a05e7fc0516d29ade315f13c2f64d3afaf', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick }, h("form-control-radio", { key: '165fd1b54a6d387be307f05ab67078e0d703f0b1', 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));
|
|
83
84
|
}
|
|
84
85
|
static get is() { return "justifi-new-payment-method"; }
|
|
85
86
|
static get properties() {
|
|
@@ -189,6 +190,23 @@ export class NewPaymentMethod {
|
|
|
189
190
|
},
|
|
190
191
|
"attribute": "hide-card-billing-form",
|
|
191
192
|
"reflect": false
|
|
193
|
+
},
|
|
194
|
+
"iframeOrigin": {
|
|
195
|
+
"type": "string",
|
|
196
|
+
"mutable": false,
|
|
197
|
+
"complexType": {
|
|
198
|
+
"original": "string",
|
|
199
|
+
"resolved": "string",
|
|
200
|
+
"references": {}
|
|
201
|
+
},
|
|
202
|
+
"required": false,
|
|
203
|
+
"optional": false,
|
|
204
|
+
"docs": {
|
|
205
|
+
"tags": [],
|
|
206
|
+
"text": ""
|
|
207
|
+
},
|
|
208
|
+
"attribute": "iframe-origin",
|
|
209
|
+
"reflect": false
|
|
192
210
|
}
|
|
193
211
|
};
|
|
194
212
|
}
|
|
@@ -15,6 +15,7 @@ export class PaymentMethodOptions {
|
|
|
15
15
|
this.savedPaymentMethods = [];
|
|
16
16
|
this.paymentAmount = undefined;
|
|
17
17
|
this.hideCardBillingForm = undefined;
|
|
18
|
+
this.iframeOrigin = undefined;
|
|
18
19
|
this.selectedPaymentMethodId = undefined;
|
|
19
20
|
this.paymentMethodOptions = [];
|
|
20
21
|
}
|
|
@@ -58,13 +59,13 @@ export class PaymentMethodOptions {
|
|
|
58
59
|
}
|
|
59
60
|
render() {
|
|
60
61
|
var _a;
|
|
61
|
-
return (h(Host, { key: '
|
|
62
|
+
return (h(Host, { key: '24e7d418958eb61f9582317e615502e77b4090d0' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
|
|
62
63
|
const newCard = paymentMethodOption.id === PaymentMethodTypes.card;
|
|
63
64
|
const newBankAccount = paymentMethodOption.id === PaymentMethodTypes.bankAccount;
|
|
64
65
|
const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
|
|
65
66
|
const sezzle = paymentMethodOption.id === PaymentMethodTypes.sezzle;
|
|
66
67
|
if (newCard || newBankAccount) {
|
|
67
|
-
return (h("justifi-new-payment-method", { paymentMethodOption: paymentMethodOption, authToken: this.authToken, "account-id": this.accountId, "is-selected": isSelected, paymentMethodGroupId: this.paymentMethodGroupId, hideCardBillingForm: this.hideCardBillingForm, ref: (el) => {
|
|
68
|
+
return (h("justifi-new-payment-method", { paymentMethodOption: paymentMethodOption, authToken: this.authToken, "account-id": this.accountId, "is-selected": isSelected, paymentMethodGroupId: this.paymentMethodGroupId, hideCardBillingForm: this.hideCardBillingForm, iframeOrigin: this.iframeOrigin, ref: (el) => {
|
|
68
69
|
if (isSelected) {
|
|
69
70
|
this.selectedPaymentMethodOptionRef = el;
|
|
70
71
|
}
|
|
@@ -295,6 +296,23 @@ export class PaymentMethodOptions {
|
|
|
295
296
|
},
|
|
296
297
|
"attribute": "hide-card-billing-form",
|
|
297
298
|
"reflect": false
|
|
299
|
+
},
|
|
300
|
+
"iframeOrigin": {
|
|
301
|
+
"type": "string",
|
|
302
|
+
"mutable": false,
|
|
303
|
+
"complexType": {
|
|
304
|
+
"original": "string",
|
|
305
|
+
"resolved": "string",
|
|
306
|
+
"references": {}
|
|
307
|
+
},
|
|
308
|
+
"required": false,
|
|
309
|
+
"optional": false,
|
|
310
|
+
"docs": {
|
|
311
|
+
"tags": [],
|
|
312
|
+
"text": ""
|
|
313
|
+
},
|
|
314
|
+
"attribute": "iframe-origin",
|
|
315
|
+
"reflect": false
|
|
298
316
|
}
|
|
299
317
|
};
|
|
300
318
|
}
|
|
@@ -3,6 +3,7 @@ import { Button, StyledHost } from "../../ui-components";
|
|
|
3
3
|
import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/ComponentError";
|
|
4
4
|
import { checkPkgVersion } from "../../utils/check-pkg-version";
|
|
5
5
|
import JustifiAnalytics from "../../api/Analytics";
|
|
6
|
+
import { config } from "../../../config";
|
|
6
7
|
export class TokenizePaymentMethod {
|
|
7
8
|
constructor() {
|
|
8
9
|
this.authToken = undefined;
|
|
@@ -13,6 +14,7 @@ export class TokenizePaymentMethod {
|
|
|
13
14
|
this.disableBankAccount = undefined;
|
|
14
15
|
this.hideSubmitButton = undefined;
|
|
15
16
|
this.hideCardBillingForm = undefined;
|
|
17
|
+
this.iframeOrigin = config.iFrameOrigin;
|
|
16
18
|
this.isLoading = false;
|
|
17
19
|
}
|
|
18
20
|
componentWillLoad() {
|
|
@@ -50,7 +52,7 @@ export class TokenizePaymentMethod {
|
|
|
50
52
|
this.paymentMethodOptionsRef.fillBillingForm(fields);
|
|
51
53
|
}
|
|
52
54
|
render() {
|
|
53
|
-
return (h(StyledHost, { key: '
|
|
55
|
+
return (h(StyledHost, { key: '0ddf067ee86437aa9e860da496daf9ae2b3b5cef' }, h("form", { key: '1416581ae33fdc1e3a4afee8340b5427c2ec3b8d' }, h("fieldset", { key: '1229cbac7d660a8b526f69781ee879783b119d8a' }, h("div", { key: 'ce2fa29a82caeb792caa35e7497afde46886a6a6', class: "row gy-3" }, h("div", { key: 'afdcc686fd93057ab2b44776b94d668f26f5de7c', class: "col-12" }, h("justifi-payment-method-options", { key: '5dd4d7243d930daf99acef4d730faabbfc8080c0', ref: (el) => (this.paymentMethodOptionsRef = el), "show-card": !this.disableCreditCard, "show-ach": !this.disableBankAccount, "show-bnpl": false, paymentMethodGroupId: this.paymentMethodGroupId, "show-saved-payment-methods": false, hideCardBillingForm: this.hideCardBillingForm, authToken: this.authToken, "account-id": this.accountId, iframeOrigin: this.iframeOrigin })), h("div", { key: '375d26a56c451018a78891157bd598437ca65fb7', class: "col-12" }, h(Button, { key: 'aa0ab5b00f58e6f8f9c6ae951cdd756ff37481ef', variant: "primary", type: "submit", onClick: event => this.tokenizePaymentMethod(event), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.hideSubmitButton }, this.submitButtonText || 'Submit')))))));
|
|
54
56
|
}
|
|
55
57
|
static get is() { return "justifi-tokenize-payment-method"; }
|
|
56
58
|
static get encapsulation() { return "shadow"; }
|
|
@@ -191,6 +193,24 @@ export class TokenizePaymentMethod {
|
|
|
191
193
|
},
|
|
192
194
|
"attribute": "hide-card-billing-form",
|
|
193
195
|
"reflect": false
|
|
196
|
+
},
|
|
197
|
+
"iframeOrigin": {
|
|
198
|
+
"type": "string",
|
|
199
|
+
"mutable": false,
|
|
200
|
+
"complexType": {
|
|
201
|
+
"original": "string",
|
|
202
|
+
"resolved": "string",
|
|
203
|
+
"references": {}
|
|
204
|
+
},
|
|
205
|
+
"required": false,
|
|
206
|
+
"optional": true,
|
|
207
|
+
"docs": {
|
|
208
|
+
"tags": [],
|
|
209
|
+
"text": ""
|
|
210
|
+
},
|
|
211
|
+
"attribute": "iframe-origin",
|
|
212
|
+
"reflect": false,
|
|
213
|
+
"defaultValue": "config.iFrameOrigin"
|
|
194
214
|
}
|
|
195
215
|
};
|
|
196
216
|
}
|
package/dist/config.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export const config = {
|
|
2
2
|
proxyApiOrigin: PROXY_API_ORIGIN,
|
|
3
|
+
iFrameOrigin: IFRAME_ORIGIN,
|
|
3
4
|
proxyAuthToken: 'eyJraWQiOiJqdXN0aWZpLWUyNDgyMmU3ODE1MmEzZjRkMjU1IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJpc3MiOiJodHRwczovL2F1dGguanVzdGlmaS5haS8iLCJhenAiOiJvYXNfMmlsWHBqOHQ2WVlEQ0xWU0FiVFczMiIsInN1YiI6Im9hc18yaWxYcGo4dDZZWURDTFZTQWJUVzMyQHNlc3Npb25zIiwiYXVkIjoiaHR0cHM6Ly9hcGkuanVzdGlmaS5haS92MSIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyIsInBlcm1pc3Npb25zIjpbeyJyb2xlIjoicmVhZDphY2NvdW50IiwicmVzb3VyY2VfaWQiOiJhY2NfNUV0OWlYclNTQVpSMktTb3VRR0FXaSJ9LHsicm9sZSI6InJlYWQ6YnVzaW5lc3MiLCJyZXNvdXJjZV9pZCI6ImJpel8zYmg2OWJxMXJrM2RtWE5vQUtWb251In1dLCJleHAiOjE3MTE1NTk0MTQsImlhdCI6MTcwMzc4MzQxNCwicGxhdGZvcm1fYWNjb3VudF9pZCI6ImFjY18zcmVOYjRhTll5MmlXRFpRVmN6bXg0In0.oPOoDYxzrnpE8PRUaz-FCU4KqnSuNbFTeDkl3AtMscjUkIctP1OIFh-ZGBjbH5eVH5noXCbaiin0j92dS7jx4gLpxuYT2Q8gpZbuIsT7fa58elvGeRkUUJ-AC5ueZxlv90yPWMm0OIbyrV7XZhuwYyKbV-ZczEbl2JpvBMe40CM-LdClQV66d_-Kw9a23SabBVfYgP5V-5OsagOIESvzZoO-27tGlNkV2a-hxqddDCOZv0HvRYAtp5S7EQrmRdEBu5gCNbf1eRFG424hxZUFVr2LdetYuKQLxJjDdUjf86ZwEUecrEaDSupiN1VC3CitdOwBVf6-R_N0VpN4VLVD5g',
|
|
4
5
|
exampleAccountId: 'acc_5Et9iXrSSAZR2KSouQGAWi',
|
|
5
6
|
exampleBusinessId: 'biz_3bh69bq1rk3dmXNoAKVonu',
|
package/dist/docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2025-02-
|
|
2
|
+
"timestamp": "2025-02-05T22:05:19",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.19.2",
|
|
@@ -174,7 +174,29 @@
|
|
|
174
174
|
"docs": "",
|
|
175
175
|
"docsTags": [],
|
|
176
176
|
"usage": {},
|
|
177
|
-
"props": [
|
|
177
|
+
"props": [
|
|
178
|
+
{
|
|
179
|
+
"name": "iframeOrigin",
|
|
180
|
+
"type": "string",
|
|
181
|
+
"complexType": {
|
|
182
|
+
"original": "string",
|
|
183
|
+
"resolved": "string",
|
|
184
|
+
"references": {}
|
|
185
|
+
},
|
|
186
|
+
"mutable": false,
|
|
187
|
+
"attr": "iframe-origin",
|
|
188
|
+
"reflectToAttr": false,
|
|
189
|
+
"docs": "",
|
|
190
|
+
"docsTags": [],
|
|
191
|
+
"values": [
|
|
192
|
+
{
|
|
193
|
+
"type": "string"
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"optional": false,
|
|
197
|
+
"required": false
|
|
198
|
+
}
|
|
199
|
+
],
|
|
178
200
|
"methods": [
|
|
179
201
|
{
|
|
180
202
|
"name": "tokenize",
|
|
@@ -713,7 +735,29 @@
|
|
|
713
735
|
"docs": "",
|
|
714
736
|
"docsTags": [],
|
|
715
737
|
"usage": {},
|
|
716
|
-
"props": [
|
|
738
|
+
"props": [
|
|
739
|
+
{
|
|
740
|
+
"name": "iframeOrigin",
|
|
741
|
+
"type": "string",
|
|
742
|
+
"complexType": {
|
|
743
|
+
"original": "string",
|
|
744
|
+
"resolved": "string",
|
|
745
|
+
"references": {}
|
|
746
|
+
},
|
|
747
|
+
"mutable": false,
|
|
748
|
+
"attr": "iframe-origin",
|
|
749
|
+
"reflectToAttr": false,
|
|
750
|
+
"docs": "",
|
|
751
|
+
"docsTags": [],
|
|
752
|
+
"values": [
|
|
753
|
+
{
|
|
754
|
+
"type": "string"
|
|
755
|
+
}
|
|
756
|
+
],
|
|
757
|
+
"optional": false,
|
|
758
|
+
"required": false
|
|
759
|
+
}
|
|
760
|
+
],
|
|
717
761
|
"methods": [
|
|
718
762
|
{
|
|
719
763
|
"name": "tokenize",
|
|
@@ -8096,6 +8140,28 @@
|
|
|
8096
8140
|
],
|
|
8097
8141
|
"optional": true,
|
|
8098
8142
|
"required": false
|
|
8143
|
+
},
|
|
8144
|
+
{
|
|
8145
|
+
"name": "iframeOrigin",
|
|
8146
|
+
"type": "string",
|
|
8147
|
+
"complexType": {
|
|
8148
|
+
"original": "string",
|
|
8149
|
+
"resolved": "string",
|
|
8150
|
+
"references": {}
|
|
8151
|
+
},
|
|
8152
|
+
"mutable": false,
|
|
8153
|
+
"attr": "iframe-origin",
|
|
8154
|
+
"reflectToAttr": false,
|
|
8155
|
+
"docs": "",
|
|
8156
|
+
"docsTags": [],
|
|
8157
|
+
"default": "config.iFrameOrigin",
|
|
8158
|
+
"values": [
|
|
8159
|
+
{
|
|
8160
|
+
"type": "string"
|
|
8161
|
+
}
|
|
8162
|
+
],
|
|
8163
|
+
"optional": true,
|
|
8164
|
+
"required": false
|
|
8099
8165
|
}
|
|
8100
8166
|
],
|
|
8101
8167
|
"methods": [
|
|
@@ -8459,6 +8525,27 @@
|
|
|
8459
8525
|
],
|
|
8460
8526
|
"optional": true,
|
|
8461
8527
|
"required": false
|
|
8528
|
+
},
|
|
8529
|
+
{
|
|
8530
|
+
"name": "iframeOrigin",
|
|
8531
|
+
"type": "string",
|
|
8532
|
+
"complexType": {
|
|
8533
|
+
"original": "string",
|
|
8534
|
+
"resolved": "string",
|
|
8535
|
+
"references": {}
|
|
8536
|
+
},
|
|
8537
|
+
"mutable": false,
|
|
8538
|
+
"attr": "iframe-origin",
|
|
8539
|
+
"reflectToAttr": false,
|
|
8540
|
+
"docs": "",
|
|
8541
|
+
"docsTags": [],
|
|
8542
|
+
"values": [
|
|
8543
|
+
{
|
|
8544
|
+
"type": "string"
|
|
8545
|
+
}
|
|
8546
|
+
],
|
|
8547
|
+
"optional": false,
|
|
8548
|
+
"required": false
|
|
8462
8549
|
}
|
|
8463
8550
|
],
|
|
8464
8551
|
"methods": [
|
|
@@ -10946,6 +11033,27 @@
|
|
|
10946
11033
|
"optional": true,
|
|
10947
11034
|
"required": false
|
|
10948
11035
|
},
|
|
11036
|
+
{
|
|
11037
|
+
"name": "iframeOrigin",
|
|
11038
|
+
"type": "string",
|
|
11039
|
+
"complexType": {
|
|
11040
|
+
"original": "string",
|
|
11041
|
+
"resolved": "string",
|
|
11042
|
+
"references": {}
|
|
11043
|
+
},
|
|
11044
|
+
"mutable": false,
|
|
11045
|
+
"attr": "iframe-origin",
|
|
11046
|
+
"reflectToAttr": false,
|
|
11047
|
+
"docs": "",
|
|
11048
|
+
"docsTags": [],
|
|
11049
|
+
"values": [
|
|
11050
|
+
{
|
|
11051
|
+
"type": "string"
|
|
11052
|
+
}
|
|
11053
|
+
],
|
|
11054
|
+
"optional": false,
|
|
11055
|
+
"required": false
|
|
11056
|
+
},
|
|
10949
11057
|
{
|
|
10950
11058
|
"name": "isSelected",
|
|
10951
11059
|
"type": "boolean",
|
|
@@ -11678,6 +11786,27 @@
|
|
|
11678
11786
|
"optional": true,
|
|
11679
11787
|
"required": false
|
|
11680
11788
|
},
|
|
11789
|
+
{
|
|
11790
|
+
"name": "iframeOrigin",
|
|
11791
|
+
"type": "string",
|
|
11792
|
+
"complexType": {
|
|
11793
|
+
"original": "string",
|
|
11794
|
+
"resolved": "string",
|
|
11795
|
+
"references": {}
|
|
11796
|
+
},
|
|
11797
|
+
"mutable": false,
|
|
11798
|
+
"attr": "iframe-origin",
|
|
11799
|
+
"reflectToAttr": false,
|
|
11800
|
+
"docs": "",
|
|
11801
|
+
"docsTags": [],
|
|
11802
|
+
"values": [
|
|
11803
|
+
{
|
|
11804
|
+
"type": "string"
|
|
11805
|
+
}
|
|
11806
|
+
],
|
|
11807
|
+
"optional": false,
|
|
11808
|
+
"required": false
|
|
11809
|
+
},
|
|
11681
11810
|
{
|
|
11682
11811
|
"name": "insuranceToggled",
|
|
11683
11812
|
"type": "boolean",
|
|
@@ -15566,6 +15695,28 @@
|
|
|
15566
15695
|
"optional": true,
|
|
15567
15696
|
"required": false
|
|
15568
15697
|
},
|
|
15698
|
+
{
|
|
15699
|
+
"name": "iframeOrigin",
|
|
15700
|
+
"type": "string",
|
|
15701
|
+
"complexType": {
|
|
15702
|
+
"original": "string",
|
|
15703
|
+
"resolved": "string",
|
|
15704
|
+
"references": {}
|
|
15705
|
+
},
|
|
15706
|
+
"mutable": false,
|
|
15707
|
+
"attr": "iframe-origin",
|
|
15708
|
+
"reflectToAttr": false,
|
|
15709
|
+
"docs": "",
|
|
15710
|
+
"docsTags": [],
|
|
15711
|
+
"default": "config.iFrameOrigin",
|
|
15712
|
+
"values": [
|
|
15713
|
+
{
|
|
15714
|
+
"type": "string"
|
|
15715
|
+
}
|
|
15716
|
+
],
|
|
15717
|
+
"optional": true,
|
|
15718
|
+
"required": false
|
|
15719
|
+
},
|
|
15569
15720
|
{
|
|
15570
15721
|
"name": "paymentMethodGroupId",
|
|
15571
15722
|
"type": "string",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const config = {
|
|
2
2
|
proxyApiOrigin: "https://wc-proxy.justifi.ai",
|
|
3
|
+
iFrameOrigin: "https://components.justifi.ai/v2",
|
|
3
4
|
proxyAuthToken: 'eyJraWQiOiJqdXN0aWZpLWUyNDgyMmU3ODE1MmEzZjRkMjU1IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJpc3MiOiJodHRwczovL2F1dGguanVzdGlmaS5haS8iLCJhenAiOiJvYXNfMmlsWHBqOHQ2WVlEQ0xWU0FiVFczMiIsInN1YiI6Im9hc18yaWxYcGo4dDZZWURDTFZTQWJUVzMyQHNlc3Npb25zIiwiYXVkIjoiaHR0cHM6Ly9hcGkuanVzdGlmaS5haS92MSIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyIsInBlcm1pc3Npb25zIjpbeyJyb2xlIjoicmVhZDphY2NvdW50IiwicmVzb3VyY2VfaWQiOiJhY2NfNUV0OWlYclNTQVpSMktTb3VRR0FXaSJ9LHsicm9sZSI6InJlYWQ6YnVzaW5lc3MiLCJyZXNvdXJjZV9pZCI6ImJpel8zYmg2OWJxMXJrM2RtWE5vQUtWb251In1dLCJleHAiOjE3MTE1NTk0MTQsImlhdCI6MTcwMzc4MzQxNCwicGxhdGZvcm1fYWNjb3VudF9pZCI6ImFjY18zcmVOYjRhTll5MmlXRFpRVmN6bXg0In0.oPOoDYxzrnpE8PRUaz-FCU4KqnSuNbFTeDkl3AtMscjUkIctP1OIFh-ZGBjbH5eVH5noXCbaiin0j92dS7jx4gLpxuYT2Q8gpZbuIsT7fa58elvGeRkUUJ-AC5ueZxlv90yPWMm0OIbyrV7XZhuwYyKbV-ZczEbl2JpvBMe40CM-LdClQV66d_-Kw9a23SabBVfYgP5V-5OsagOIESvzZoO-27tGlNkV2a-hxqddDCOZv0HvRYAtp5S7EQrmRdEBu5gCNbf1eRFG424hxZUFVr2LdetYuKQLxJjDdUjf86ZwEUecrEaDSupiN1VC3CitdOwBVf6-R_N0VpN4VLVD5g',
|
|
4
5
|
exampleAccountId: 'acc_5Et9iXrSSAZR2KSouQGAWi',
|
|
5
6
|
exampleBusinessId: 'biz_3bh69bq1rk3dmXNoAKVonu',
|
|
@@ -10,6 +10,7 @@ import './Dispute-5fd28ec9.js';
|
|
|
10
10
|
const BankAccountForm = class {
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
registerInstance(this, hostRef);
|
|
13
|
+
this.iframeOrigin = undefined;
|
|
13
14
|
}
|
|
14
15
|
async validate() {
|
|
15
16
|
const accountNumberIsValid = await this.accountNumberIframeElement.validate();
|
|
@@ -20,13 +21,14 @@ const BankAccountForm = class {
|
|
|
20
21
|
return this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
21
22
|
}
|
|
22
23
|
render() {
|
|
23
|
-
return (h(Host, { key: '
|
|
24
|
+
return (h(Host, { key: 'bf5ff6bf71b52c5b7eceb429f057b3ec89c56129' }, h("div", { key: 'db0ea83fa412a1ea77aee8967ea1c9ad07ea387d', class: "container-fluid p-0" }, h("div", { key: 'd354c507e7aeabe77a957165aec900f3e01f27f5', class: "row mb-3" }, h("iframe-input", { key: '1397eb492d2cf5ca40b637360ab52478f9007db1', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/accountNumber` })), h("div", { key: 'a4b98ff832990cac46f49a9ff1ef2de2b33496cd', class: "row" }, h("iframe-input", { key: '0b758f804e3d367c1851fe084d27df1ea620e190', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/routingNumber` })))));
|
|
24
25
|
}
|
|
25
26
|
};
|
|
26
27
|
|
|
27
28
|
const CardForm = class {
|
|
28
29
|
constructor(hostRef) {
|
|
29
30
|
registerInstance(this, hostRef);
|
|
31
|
+
this.iframeOrigin = undefined;
|
|
30
32
|
}
|
|
31
33
|
async validate() {
|
|
32
34
|
const cardNumberIsValid = await this.cardNumberIframeElement.validate();
|
|
@@ -39,7 +41,7 @@ const CardForm = class {
|
|
|
39
41
|
return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
40
42
|
}
|
|
41
43
|
render() {
|
|
42
|
-
return (h(Host, { key: '
|
|
44
|
+
return (h(Host, { key: '5dfd2c79d7691744614af89d0919e58db17434b3', class: "container-fluid p-0" }, h("div", { key: '307e9a7acd80285a59369e813bb0172627395cf6', class: "mb-3" }, h("iframe-input", { key: 'e151a15fb885d7babf13c575a5bf93990f77336b', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/cardNumber` })), h("div", { key: 'd965e93602367c92f53cdc768b9a79032e640a5a', class: "row" }, h("div", { key: 'f836cca70a22e9bec446fdc4d62836a7cc16d70c', class: "col-4 align-content-end" }, h("iframe-input", { key: 'd95608d7ce0434021d416120ada984047804b04f', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/expirationMonth` })), h("div", { key: '34ab01991bac786ada446758b4499c3d58cc9402', class: "col-4 align-content-end" }, h("iframe-input", { key: 'c548d2ba46dd5ab969ab703adecc1d697ad5f8e0', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/expirationYear` })), h("div", { key: '4ce98e07ef97c4e13fe92e8677073f6681c2f707', class: "col-4 align-content-end" }, h("iframe-input", { key: '691c95278d984586ed884ca06d96a57ce0a002b8', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/CVV` })))));
|
|
43
45
|
}
|
|
44
46
|
};
|
|
45
47
|
|
|
@@ -185,6 +187,7 @@ const NewPaymentMethod = class {
|
|
|
185
187
|
this.paymentMethodGroupId = undefined;
|
|
186
188
|
this.isSelected = undefined;
|
|
187
189
|
this.hideCardBillingForm = undefined;
|
|
190
|
+
this.iframeOrigin = undefined;
|
|
188
191
|
this.saveNewPaymentMethodChecked = false;
|
|
189
192
|
}
|
|
190
193
|
handleCheckboxChanged(event) {
|
|
@@ -244,11 +247,11 @@ const NewPaymentMethod = class {
|
|
|
244
247
|
showNewPaymentMethodForm() {
|
|
245
248
|
var _a;
|
|
246
249
|
const paymentMethodType = (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id;
|
|
247
|
-
return (h("div", { class: "mt-4 pb-4
|
|
250
|
+
return (h("div", { class: "mt-4 pb-4" }, h("hidden-input", null), h("div", { class: "mb-4" }, paymentMethodType === 'card' ? (h("card-form", { ref: (el) => this.paymentMethodFormRef = el, iframeOrigin: this.iframeOrigin })) : (h("bank-account-form", { ref: (el) => this.paymentMethodFormRef = el, iframeOrigin: this.iframeOrigin }))), h("justifi-billing-form-wrapper", { ref: (el) => (this.billingFormWrapperRef = el), hideCardBillingForm: this.hideCardBillingForm, paymentMethodType: paymentMethodType }), h("justifi-save-new-payment-method", { hidden: !this.paymentMethodGroupId })));
|
|
248
251
|
}
|
|
249
252
|
render() {
|
|
250
253
|
var _a, _b;
|
|
251
|
-
return (h(Host, { key: '
|
|
254
|
+
return (h(Host, { key: '17b922ca3b03d458a0e139be895db31b33c255ed', class: "payment-method" }, h("div", { key: '5d1bb3a05e7fc0516d29ade315f13c2f64d3afaf', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick }, h("form-control-radio", { key: '165fd1b54a6d387be307f05ab67078e0d703f0b1', 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));
|
|
252
255
|
}
|
|
253
256
|
};
|
|
254
257
|
|
|
@@ -287,6 +290,7 @@ const PaymentMethodOptions = class {
|
|
|
287
290
|
this.savedPaymentMethods = [];
|
|
288
291
|
this.paymentAmount = undefined;
|
|
289
292
|
this.hideCardBillingForm = undefined;
|
|
293
|
+
this.iframeOrigin = undefined;
|
|
290
294
|
this.selectedPaymentMethodId = undefined;
|
|
291
295
|
this.paymentMethodOptions = [];
|
|
292
296
|
}
|
|
@@ -330,13 +334,13 @@ const PaymentMethodOptions = class {
|
|
|
330
334
|
}
|
|
331
335
|
render() {
|
|
332
336
|
var _a;
|
|
333
|
-
return (h(Host, { key: '
|
|
337
|
+
return (h(Host, { key: '24e7d418958eb61f9582317e615502e77b4090d0' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
|
|
334
338
|
const newCard = paymentMethodOption.id === PaymentMethodTypes.card;
|
|
335
339
|
const newBankAccount = paymentMethodOption.id === PaymentMethodTypes.bankAccount;
|
|
336
340
|
const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
|
|
337
341
|
const sezzle = paymentMethodOption.id === PaymentMethodTypes.sezzle;
|
|
338
342
|
if (newCard || newBankAccount) {
|
|
339
|
-
return (h("justifi-new-payment-method", { paymentMethodOption: paymentMethodOption, authToken: this.authToken, "account-id": this.accountId, "is-selected": isSelected, paymentMethodGroupId: this.paymentMethodGroupId, hideCardBillingForm: this.hideCardBillingForm, ref: (el) => {
|
|
343
|
+
return (h("justifi-new-payment-method", { paymentMethodOption: paymentMethodOption, authToken: this.authToken, "account-id": this.accountId, "is-selected": isSelected, paymentMethodGroupId: this.paymentMethodGroupId, hideCardBillingForm: this.hideCardBillingForm, iframeOrigin: this.iframeOrigin, ref: (el) => {
|
|
340
344
|
if (isSelected) {
|
|
341
345
|
this.selectedPaymentMethodOptionRef = el;
|
|
342
346
|
}
|
|
@@ -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-b3d14e92.js';
|
|
7
|
-
import { p as packageJson } from './package-
|
|
7
|
+
import { p as packageJson } from './package-2b7c7bc0.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-ab2bb4b5.js';
|
|
10
10
|
import './business-form-options-018f62a5.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as packageJson } from './package-
|
|
2
|
-
import { A as Api, c as config } from './Api-
|
|
1
|
+
import { p as packageJson } from './package-2b7c7bc0.js';
|
|
2
|
+
import { A as Api, c as config } from './Api-97801a4b.js';
|
|
3
3
|
|
|
4
4
|
class AnalyticsService {
|
|
5
5
|
async record(body) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-29fcfdf5.js';
|
|
2
2
|
import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
|
|
3
3
|
import { m as makeGetBusiness, b as makePatchBusiness, c as makePostBankAccount, d as makePostDocumentRecord } from './payment-provisioning-actions-726795a0.js';
|
|
4
|
-
import { B as BusinessService, a as BusinessBankAccountService, D as DocumentRecordService } from './business.service-
|
|
4
|
+
import { B as BusinessService, a as BusinessBankAccountService, D as DocumentRecordService } from './business.service-45c7df3c.js';
|
|
5
5
|
import './Checkout-8325c97a.js';
|
|
6
6
|
import './Pagination-afc8f96d.js';
|
|
7
7
|
import './Payment-82d2f453.js';
|
|
8
8
|
import './SubAccount-a73bf971.js';
|
|
9
9
|
import './Document-1907c0d4.js';
|
|
10
10
|
import { c as create$3, e as create$7, F as FormController } from './index.esm-0b6849c2.js';
|
|
11
|
-
import { A as Api, c as config } from './Api-
|
|
11
|
+
import { A as Api, c as config } from './Api-97801a4b.js';
|
|
12
12
|
import { h as heading2 } from './parts-ab2bb4b5.js';
|
|
13
13
|
import './Business-29c69f22.js';
|
|
14
14
|
import { a as BusinessFormStep, B as BusinessFormClickActions } from './event-types-5c87de02.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-29fcfdf5.js';
|
|
2
2
|
import { E as ErrorState } from './utils-c2dc83b2.js';
|
|
3
|
-
import { B as BusinessService } from './business.service-
|
|
3
|
+
import { B as BusinessService } from './business.service-45c7df3c.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-f91ed31f.js';
|
|
8
8
|
import './parts-ab2bb4b5.js';
|
|
9
|
-
import './Api-
|
|
9
|
+
import './Api-97801a4b.js';
|
|
10
10
|
import './helpers-96ea3464.js';
|
|
11
11
|
import './state-options-a356fb11.js';
|
|
12
|
-
import './package-
|
|
12
|
+
import './package-2b7c7bc0.js';
|
|
13
13
|
|
|
14
14
|
const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
15
15
|
var _a;
|
|
@@ -2,7 +2,7 @@ import { h, r as registerInstance, c as createEvent } from './index-29fcfdf5.js'
|
|
|
2
2
|
import { c as create$3, F as FormController } from './index.esm-0b6849c2.js';
|
|
3
3
|
import { b as businessCoreInfoSchema, a as additionalQuestionsSchema } from './business-additional-questions-schema-212a96ed.js';
|
|
4
4
|
import { a as addressSchema, i as identitySchema } from './business-identity-schema-05bd2a5f.js';
|
|
5
|
-
import { A as Api, c as config } from './Api-
|
|
5
|
+
import { A as Api, c as config } from './Api-97801a4b.js';
|
|
6
6
|
import './ComponentError-3ce7f437.js';
|
|
7
7
|
import './Checkout-8325c97a.js';
|
|
8
8
|
import './Pagination-afc8f96d.js';
|
|
@@ -10,7 +10,7 @@ import './Payment-82d2f453.js';
|
|
|
10
10
|
import './SubAccount-a73bf971.js';
|
|
11
11
|
import './Document-1907c0d4.js';
|
|
12
12
|
import { B as Business, a as BusinessFormServerErrors } from './Business-29c69f22.js';
|
|
13
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
13
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-f91ed31f.js';
|
|
14
14
|
import { B as Button } from './button-4b3f3934.js';
|
|
15
15
|
import { S as StyledHost } from './styled-host-32228b45.js';
|
|
16
16
|
import { H as Header1 } from './header-1-4db0c986.js';
|
|
@@ -22,7 +22,7 @@ import './business-form-options-018f62a5.js';
|
|
|
22
22
|
import './utils-c37124fc.js';
|
|
23
23
|
import './Dispute-5fd28ec9.js';
|
|
24
24
|
import './helpers-96ea3464.js';
|
|
25
|
-
import './package-
|
|
25
|
+
import './package-2b7c7bc0.js';
|
|
26
26
|
import './parts-ab2bb4b5.js';
|
|
27
27
|
|
|
28
28
|
const businessFormSchema = create$3(Object.assign(Object.assign({}, businessCoreInfoSchema().fields), { legal_address: addressSchema(), additional_questions: additionalQuestionsSchema(), representative: identitySchema('representative') }));
|