@justifi/webcomponents 4.19.1-rc → 4.19.1-rc-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Analytics-0b3db49d.js → Analytics-1ca4e47e.js} +2 -3
- package/dist/cjs/{business.service-c384784d.js → business.service-6bb7ac82.js} +5 -6
- package/dist/cjs/{get-payout-csv-51a02be7.js → get-payout-csv-1391ff3e.js} +3 -4
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +7 -8
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +4 -5
- package/dist/cjs/justifi-business-details.cjs.entry.js +3 -4
- package/dist/cjs/justifi-business-form.cjs.entry.js +4 -5
- package/dist/cjs/justifi-card-form.cjs.entry.js +4 -5
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkout.cjs.entry.js +4 -5
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -4
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +11 -9
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +1 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +3 -4
- package/dist/cjs/justifi-payment-form.cjs.entry.js +5 -6
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -6
- package/dist/cjs/justifi-payments-list.cjs.entry.js +3 -4
- package/dist/cjs/justifi-payout-details.cjs.entry.js +3 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +3 -4
- package/dist/cjs/justifi-refund-form.cjs.entry.js +2 -3
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +4 -5
- package/dist/cjs/{package-39dc73ed.js → package-bc2632e4.js} +2 -4
- package/dist/cjs/{payment.service-2dbfb83d.js → payment.service-dfcfa19b.js} +2 -3
- package/dist/collection/api/services/analytics.service.js +1 -2
- package/dist/collection/api/services/business.service.js +5 -6
- package/dist/collection/api/services/checkout.service.js +2 -3
- package/dist/collection/api/services/insurance.service.js +2 -3
- package/dist/collection/api/services/payment.service.js +2 -3
- package/dist/collection/api/services/payout.service.js +3 -4
- package/dist/collection/api/services/provision.service.js +2 -4
- package/dist/collection/api/services/reports.service.js +1 -2
- package/dist/collection/components/bank-account-form/bank-account-form.js +3 -4
- package/dist/collection/components/business-forms/business-form/business-form.js +2 -3
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +2 -3
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +2 -3
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -3
- package/dist/collection/components/card-form/card-form.js +3 -4
- package/dist/collection/components/checkout/checkout-core.js +4 -4
- package/dist/collection/components/checkout/new-payment-method.js +6 -4
- package/dist/collection/components/checkout/payment-method-options.js +3 -4
- package/dist/collection/components/checkout/saved-payment-method.js +3 -4
- package/dist/collection/components/checkout/sezzle-payment-method.js +3 -4
- package/dist/collection/components/payment-form/payment-form.js +3 -4
- package/dist/collection/components/refund-form/refund-form.js +2 -3
- package/dist/docs.json +8 -8
- package/dist/esm/{Analytics-37556050.js → Analytics-c51439be.js} +2 -3
- package/dist/esm/{business.service-eee46ab1.js → business.service-f45decfc.js} +5 -6
- package/dist/esm/{get-payout-csv-4d6b29d8.js → get-payout-csv-e784a2ab.js} +3 -4
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +7 -8
- package/dist/esm/justifi-bank-account-form.entry.js +4 -5
- package/dist/esm/justifi-business-details.entry.js +3 -4
- package/dist/esm/justifi-business-form.entry.js +4 -5
- package/dist/esm/justifi-card-form.entry.js +4 -5
- package/dist/esm/justifi-checkout-core.entry.js +3 -3
- package/dist/esm/justifi-checkout.entry.js +4 -5
- package/dist/esm/justifi-gross-payment-chart.entry.js +3 -4
- package/dist/esm/justifi-new-payment-method_4.entry.js +11 -9
- package/dist/esm/justifi-owner-form_3.entry.js +1 -2
- package/dist/esm/justifi-payment-details.entry.js +3 -4
- package/dist/esm/justifi-payment-form.entry.js +5 -6
- package/dist/esm/justifi-payment-method-form.entry.js +1 -1
- package/dist/esm/justifi-payment-provisioning.entry.js +5 -6
- package/dist/esm/justifi-payments-list.entry.js +3 -4
- package/dist/esm/justifi-payout-details.entry.js +3 -4
- package/dist/esm/justifi-payouts-list.entry.js +3 -4
- package/dist/esm/justifi-refund-form.entry.js +2 -3
- package/dist/esm/justifi-season-interruption-insurance.entry.js +4 -5
- package/dist/esm/{package-e2a7aa3f.js → package-09a354e0.js} +2 -4
- package/dist/esm/{payment.service-9005a501.js → payment.service-dad5153b.js} +2 -3
- package/dist/globals.d.ts +2 -0
- package/dist/module/Analytics.js +1 -2
- package/dist/module/business-bank-account-form-step.js +2 -3
- package/dist/module/business-document-upload-form-step.js +2 -3
- package/dist/module/business-terms-conditions-form-step.js +2 -3
- package/dist/module/business.service.js +5 -6
- package/dist/module/checkout-core.js +3 -3
- package/dist/module/get-payout-csv.js +3 -4
- package/dist/module/justifi-bank-account-form.js +2 -3
- package/dist/module/justifi-business-form.js +2 -3
- package/dist/module/justifi-card-form.js +2 -3
- package/dist/module/justifi-checkout.js +2 -3
- package/dist/module/justifi-gross-payment-chart.js +1 -2
- package/dist/module/justifi-payment-form.js +3 -4
- package/dist/module/justifi-payment-provisioning.js +2 -3
- package/dist/module/justifi-refund-form.js +2 -3
- package/dist/module/justifi-season-interruption-insurance.js +2 -3
- package/dist/module/new-payment-method.js +5 -3
- package/dist/module/package.js +2 -4
- package/dist/module/payment-method-options.js +2 -3
- package/dist/module/payment.service.js +2 -3
- package/dist/module/saved-payment-method.js +2 -3
- package/dist/module/sezzle-payment-method.js +2 -3
- package/dist/types/components/checkout/new-payment-method.d.ts +1 -0
- package/dist/webcomponents/index.esm.js +1 -0
- package/dist/webcomponents/p-01a404ca.entry.js +44 -0
- package/dist/webcomponents/p-03d35880.entry.js +130 -0
- package/dist/webcomponents/p-06ff0429.entry.js +65 -0
- package/dist/webcomponents/p-08b0fb31.js +41 -1
- package/dist/webcomponents/p-14c91ffd.js +20 -1
- package/dist/webcomponents/p-1a17ea7d.entry.js +1684 -0
- package/dist/webcomponents/p-1ad5995e.js +3599 -1
- package/dist/webcomponents/p-1ff8810b.js +29 -1
- package/dist/webcomponents/p-21aeb013.entry.js +80 -0
- package/dist/webcomponents/p-2338affa.js +213 -1
- package/dist/webcomponents/p-258b1ee2.entry.js +149 -0
- package/dist/webcomponents/p-25d8cd65.entry.js +102 -0
- package/dist/webcomponents/p-29c0b182.js +114 -1
- package/dist/webcomponents/p-2b6c9c4f.js +7 -1
- package/dist/webcomponents/p-2dabeb5a.js +79 -0
- package/dist/webcomponents/p-2eab3c90.js +3052 -1
- package/dist/webcomponents/p-33272d05.entry.js +94 -0
- package/dist/webcomponents/p-3642ad71.entry.js +145 -0
- package/dist/webcomponents/p-387450f6.js +77 -0
- package/dist/webcomponents/p-3e9ef4a8.js +28 -0
- package/dist/webcomponents/p-3fd13ca3.js +52 -1
- package/dist/webcomponents/p-41bc7c5c.entry.js +97 -0
- package/dist/webcomponents/p-4d8b45c6.entry.js +98 -0
- package/dist/webcomponents/p-525db3e8.js +22 -1
- package/dist/webcomponents/p-5482d030.entry.js +21 -0
- package/dist/webcomponents/p-56f6ce4c.js +10 -1
- package/dist/webcomponents/p-576826b1.entry.js +43 -0
- package/dist/webcomponents/p-5968ff8a.js +178 -1
- package/dist/webcomponents/p-5bd7b204.entry.js +75 -0
- package/dist/webcomponents/p-5cb3f0b2.entry.js +261 -0
- package/dist/webcomponents/p-5e70442b.entry.js +74 -0
- package/dist/webcomponents/p-5f835b89.entry.js +606 -0
- package/dist/webcomponents/p-6078a370.js +244 -1
- package/dist/webcomponents/p-68843186.entry.js +73 -0
- package/dist/webcomponents/p-70a2aa74.entry.js +76 -0
- package/dist/webcomponents/p-7582b554.entry.js +18 -0
- package/dist/webcomponents/p-79646550.entry.js +61 -0
- package/dist/webcomponents/p-7c76e67c.entry.js +117 -0
- package/dist/webcomponents/p-7d85af5c.js +16 -1
- package/dist/webcomponents/p-800d31fe.entry.js +162 -0
- package/dist/webcomponents/p-8115b2f4.js +28 -1
- package/dist/webcomponents/p-83125497.js +4027 -1
- package/dist/webcomponents/p-85fc69e5.js +90 -1
- package/dist/webcomponents/p-890088fc.entry.js +298 -0
- package/dist/webcomponents/p-89887332.js +301 -1
- package/dist/webcomponents/p-8df7bde8.js +27 -1
- package/dist/webcomponents/p-8eb774df.entry.js +54 -0
- package/dist/webcomponents/p-9c9c7dac.js +24 -1
- package/dist/webcomponents/p-9f94bbb6.entry.js +118 -0
- package/dist/webcomponents/p-a5a225d9.entry.js +125 -0
- package/dist/webcomponents/p-a5c5821e.entry.js +101 -0
- package/dist/webcomponents/p-a5fb51dc.entry.js +131 -0
- package/dist/webcomponents/p-a6d04afc.js +44 -0
- package/dist/webcomponents/p-ac086069.entry.js +58 -0
- package/dist/webcomponents/p-af244664.js +126 -1
- package/dist/webcomponents/p-b82c146f.entry.js +111 -0
- package/dist/webcomponents/p-b8a03a4b.entry.js +131 -0
- package/dist/webcomponents/p-ba4bae6f.js +12 -1
- package/dist/webcomponents/p-ba5fae28.js +90 -1
- package/dist/webcomponents/p-c636f563.entry.js +791 -0
- package/dist/webcomponents/p-c86c24d2.entry.js +94 -0
- package/dist/webcomponents/p-cb26f708.js +18 -0
- package/dist/webcomponents/p-ce733539.entry.js +99 -0
- package/dist/webcomponents/p-d17aee2b.entry.js +26 -0
- package/dist/webcomponents/p-d5095f6c.entry.js +133 -0
- package/dist/webcomponents/p-d89bad72.js +39 -1
- package/dist/webcomponents/p-dce846bf.js +27 -1
- package/dist/webcomponents/p-df21aaad.js +120 -1
- package/dist/webcomponents/p-e1255160.js +3 -1
- package/dist/webcomponents/p-e333620e.js +34 -1
- package/dist/webcomponents/p-e356f280.entry.js +29 -0
- package/dist/webcomponents/p-e3fab0e2.js +43 -1
- package/dist/webcomponents/p-ec854a3e.entry.js +11053 -0
- package/dist/webcomponents/p-f02b75dc.entry.js +96 -0
- package/dist/webcomponents/p-fad19d75.js +1638 -2
- package/dist/webcomponents/webcomponents.css +362 -4
- package/dist/webcomponents/webcomponents.esm.js +20 -1
- package/package.json +2 -4
- package/dist/cjs/config-037e67d0.js +0 -15
- package/dist/config.js +0 -11
- package/dist/esm/config-58e393e2.js +0 -13
- package/dist/module/config.js +0 -13
- package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +0 -11
- package/dist/webcomponents/p-023779ee.entry.js +0 -1
- package/dist/webcomponents/p-037763f4.entry.js +0 -1
- package/dist/webcomponents/p-07109641.entry.js +0 -1
- package/dist/webcomponents/p-0f7b9555.entry.js +0 -1
- package/dist/webcomponents/p-17e4246f.entry.js +0 -1
- package/dist/webcomponents/p-1a43e355.entry.js +0 -19
- package/dist/webcomponents/p-1f6afff9.entry.js +0 -1
- package/dist/webcomponents/p-246a6c6a.entry.js +0 -1
- package/dist/webcomponents/p-2d3b1692.entry.js +0 -1
- package/dist/webcomponents/p-30a493cd.entry.js +0 -1
- package/dist/webcomponents/p-32286934.js +0 -1
- package/dist/webcomponents/p-3f5e7e86.js +0 -1
- package/dist/webcomponents/p-462dc522.entry.js +0 -1
- package/dist/webcomponents/p-487b72a8.entry.js +0 -1
- package/dist/webcomponents/p-4abc17f0.entry.js +0 -1
- package/dist/webcomponents/p-52021fa1.entry.js +0 -1
- package/dist/webcomponents/p-53e64f15.entry.js +0 -1
- package/dist/webcomponents/p-57e1f2fd.js +0 -1
- package/dist/webcomponents/p-5f095525.entry.js +0 -1
- package/dist/webcomponents/p-62b32c4c.entry.js +0 -1
- package/dist/webcomponents/p-69faef3f.entry.js +0 -1
- package/dist/webcomponents/p-6c078cd1.js +0 -1
- package/dist/webcomponents/p-8e541a32.entry.js +0 -1
- package/dist/webcomponents/p-8f325782.entry.js +0 -1
- package/dist/webcomponents/p-987b5de2.entry.js +0 -1
- package/dist/webcomponents/p-a63fc384.entry.js +0 -1
- package/dist/webcomponents/p-a8220709.entry.js +0 -1
- package/dist/webcomponents/p-ae530971.entry.js +0 -1
- package/dist/webcomponents/p-b7cf49f4.entry.js +0 -1
- package/dist/webcomponents/p-b87b27ba.js +0 -1
- package/dist/webcomponents/p-bbed6107.entry.js +0 -1
- package/dist/webcomponents/p-be39c802.entry.js +0 -1
- package/dist/webcomponents/p-c28db166.js +0 -1
- package/dist/webcomponents/p-c9f8f7ec.entry.js +0 -1
- package/dist/webcomponents/p-d8355f91.entry.js +0 -1
- package/dist/webcomponents/p-e2c88817.entry.js +0 -1
- package/dist/webcomponents/p-e31f0f3e.entry.js +0 -1
- package/dist/webcomponents/p-edac2b43.entry.js +0 -1
- package/dist/webcomponents/p-ef23c091.entry.js +0 -1
- package/dist/webcomponents/p-f06910aa.entry.js +0 -1
- package/dist/webcomponents/p-f0866375.entry.js +0 -1
- package/dist/webcomponents/p-f0a06884.entry.js +0 -1
- package/dist/webcomponents/p-f2f94d9f.entry.js +0 -1
- package/dist/webcomponents/p-f49b7170.entry.js +0 -1
- package/dist/webcomponents/p-fb58feb5.entry.js +0 -1
- package/dist/webcomponents/p-fe33151d.entry.js +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { config } from "../../../config";
|
|
3
2
|
import { PaymentMethodTypes } from "../../api/Payment";
|
|
4
3
|
import { PaymentMethodOption } from "./payment-method-option-utils";
|
|
5
4
|
export class PaymentMethodOptions {
|
|
@@ -13,7 +12,7 @@ export class PaymentMethodOptions {
|
|
|
13
12
|
this.insuranceToggled = undefined;
|
|
14
13
|
this.authToken = undefined;
|
|
15
14
|
this.accountId = undefined;
|
|
16
|
-
this.iframeOrigin =
|
|
15
|
+
this.iframeOrigin = IFRAME_ORIGIN;
|
|
17
16
|
this.savedPaymentMethods = [];
|
|
18
17
|
this.paymentAmount = undefined;
|
|
19
18
|
this.selectedPaymentMethodId = undefined;
|
|
@@ -59,7 +58,7 @@ export class PaymentMethodOptions {
|
|
|
59
58
|
}
|
|
60
59
|
render() {
|
|
61
60
|
var _a;
|
|
62
|
-
return (h(Host, { key: '
|
|
61
|
+
return (h(Host, { key: '7ee40a1bdc9ec15596e870b48cbe7b6bbc20537c' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
|
|
63
62
|
const newCard = paymentMethodOption.id === PaymentMethodTypes.card;
|
|
64
63
|
const newBankAccount = paymentMethodOption.id === PaymentMethodTypes.bankAccount;
|
|
65
64
|
const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
|
|
@@ -273,7 +272,7 @@ export class PaymentMethodOptions {
|
|
|
273
272
|
},
|
|
274
273
|
"attribute": "iframe-origin",
|
|
275
274
|
"reflect": false,
|
|
276
|
-
"defaultValue": "
|
|
275
|
+
"defaultValue": "IFRAME_ORIGIN"
|
|
277
276
|
},
|
|
278
277
|
"savedPaymentMethods": {
|
|
279
278
|
"type": "unknown",
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { Fragment, h } from "@stencil/core";
|
|
2
|
-
import { config } from "../../../config";
|
|
3
2
|
import { CardBrandLabels } from "./payment-method-option-utils";
|
|
4
3
|
export class SavedPaymentMethod {
|
|
5
4
|
constructor() {
|
|
6
5
|
this.onPaymentMethodOptionClick = () => {
|
|
7
6
|
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
8
7
|
};
|
|
9
|
-
this.iframeOrigin =
|
|
8
|
+
this.iframeOrigin = IFRAME_ORIGIN;
|
|
10
9
|
this.paymentMethodOption = undefined;
|
|
11
10
|
this.isSelected = undefined;
|
|
12
11
|
}
|
|
@@ -20,7 +19,7 @@ export class SavedPaymentMethod {
|
|
|
20
19
|
;
|
|
21
20
|
render() {
|
|
22
21
|
var _a, _b, _c, _d, _e;
|
|
23
|
-
return (h(Fragment, { key: '
|
|
22
|
+
return (h(Fragment, { key: '247dafc3fe4011c5f6a2202690310eedfa5422c8' }, h("div", { key: '9cfb0b6ca9c10e5cc6173832bb8211ddb1d0ae5b', class: "payment-method" }, h("div", { key: 'd247cc4cf9f7bf43d7153134c66a921b5bfc49bc', class: "payment-method-header p-3", onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '180c3aa6c4153bccf7cb620b6df49cc288754cd2', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { key: '6ec14d77e8171a1ddb37c686189878a7ebb4b4f4', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, CardBrandLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.brand], " *", (_e = this.paymentMethodOption) === null || _e === void 0 ? void 0 :
|
|
24
23
|
_e.acct_last_four)))));
|
|
25
24
|
}
|
|
26
25
|
static get is() { return "justifi-saved-payment-method"; }
|
|
@@ -42,7 +41,7 @@ export class SavedPaymentMethod {
|
|
|
42
41
|
},
|
|
43
42
|
"attribute": "iframe-origin",
|
|
44
43
|
"reflect": false,
|
|
45
|
-
"defaultValue": "
|
|
44
|
+
"defaultValue": "IFRAME_ORIGIN"
|
|
46
45
|
},
|
|
47
46
|
"paymentMethodOption": {
|
|
48
47
|
"type": "unknown",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { config } from "../../../config";
|
|
3
2
|
import { formatCurrency } from "../../utils/utils";
|
|
4
3
|
const sezzleLogo = (h("img", { class: "sezzle-smart-button-logo-img", src: "https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg", alt: "Sezzle", style: {
|
|
5
4
|
display: 'inline',
|
|
@@ -39,7 +38,7 @@ export class SezzlePaymentMethod {
|
|
|
39
38
|
this.sezzleCheckout = checkout;
|
|
40
39
|
this.installmentPlan = this.sezzleCheckout.getInstallmentPlan(amount);
|
|
41
40
|
};
|
|
42
|
-
this.iframeOrigin =
|
|
41
|
+
this.iframeOrigin = IFRAME_ORIGIN;
|
|
43
42
|
this.bnpl = undefined;
|
|
44
43
|
this.clientId = undefined;
|
|
45
44
|
this.accountId = undefined;
|
|
@@ -65,7 +64,7 @@ export class SezzlePaymentMethod {
|
|
|
65
64
|
}
|
|
66
65
|
render() {
|
|
67
66
|
var _a, _b, _c, _d, _e;
|
|
68
|
-
return (h("div", { key: '
|
|
67
|
+
return (h("div", { key: '1b4e4a142e1e59465e0db5515ee6b0a0b2aac146', class: "payment-method" }, h("script", { key: 'c835bc94836949e2362974eaeefca1f6a579a1a0', src: "https://checkout-sdk.sezzle.com/checkout.min.js", async: true, ref: (el) => (this.scriptRef = el) }), h("div", { key: '051a0392e6353116423f706be48eb266daf12b84', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '6dd0d61f1b8788b45b008f5ac05f8a8b6a6591f2', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { key: 'caf3429bae616a016f58e141ac5c4493174cf3ef', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, h("div", { key: '0e4ea85fc6fc32a1c35fe0dac86f21ab7f86eb0a' }, "Buy now, pay later with ", sezzleLogo), this.installmentPlan && (h("small", { key: '3740565f14b87aa2e4af44b7e2b12d93d6e454c2' }, h("span", { key: 'ca9b6dff0042c41d378b101067d060092234fa7c' }, (_d = this.installmentPlan) === null || _d === void 0 ? void 0 : _d.installments.length), "\u00A0", h("span", { key: '14ab21fd2d9bd612f41d5cd3e175402593012619' }, this.installmentPlan.schedule, " payments of"), "\u00A0", h("span", { key: '25e08c1e711af0979e14bbb911aedb58f59bc180', class: "fw-bold" }, formatCurrency((_e = this.installmentPlan) === null || _e === void 0 ? void 0 : _e.installments[0].amountInCents))))))));
|
|
69
68
|
}
|
|
70
69
|
static get is() { return "justifi-sezzle-payment-method"; }
|
|
71
70
|
static get properties() {
|
|
@@ -86,7 +85,7 @@ export class SezzlePaymentMethod {
|
|
|
86
85
|
},
|
|
87
86
|
"attribute": "iframe-origin",
|
|
88
87
|
"reflect": false,
|
|
89
|
-
"defaultValue": "
|
|
88
|
+
"defaultValue": "IFRAME_ORIGIN"
|
|
90
89
|
},
|
|
91
90
|
"bnpl": {
|
|
92
91
|
"type": "any",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { PaymentMethodTypes } from "../../api";
|
|
3
3
|
import { loadFontsOnParent } from "../../utils/utils";
|
|
4
|
-
import { config } from "../../../config";
|
|
5
4
|
import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/ComponentError";
|
|
6
5
|
import { getErrorMessage } from "../../api/services/utils";
|
|
7
6
|
import JustifiAnalytics from "../../api/Analytics";
|
|
@@ -106,15 +105,15 @@ export class PaymentForm {
|
|
|
106
105
|
}
|
|
107
106
|
}
|
|
108
107
|
render() {
|
|
109
|
-
return (h(StyledHost, { key: '
|
|
108
|
+
return (h(StyledHost, { key: '8cb6e3903a0045fbffed5f17dc29aacc6b57ad7f' }, h("form", { key: '4e8f00c3d29c0db0bc99fd79da46abe7c40e3e30', class: "row gy-3" }, this.showPaymentMethodTypeSelector() && (h("div", { key: '344a1356f6f482493a35015c32f8e9a9b4cc8a80', class: "col-12" }, h("justifi-payment-method-selector", { key: '36b9dd7a9bc8336b4bef0d12f56c811effbc0a0b', selectedPaymentMethodType: this.getSelectedPaymentMethodType(), onPaymentMethodSelected: event => this.paymentMethodSelectedHandler(event) }))), h("div", { key: '225a260f817f9dd02a7f0a5b25562179ab80f7de', class: "col-12" }, h("justifi-payment-method-form", { key: '52e2bf20b265cc96ab556571a323370cc27ac278', "payment-method-form-type": this.getSelectedPaymentMethodType(), iframeOrigin: IFRAME_ORIGIN, ref: el => {
|
|
110
109
|
if (el) {
|
|
111
110
|
this.paymentMethodFormRef = el;
|
|
112
111
|
}
|
|
113
|
-
} })), h("div", { key: '
|
|
112
|
+
} })), h("div", { key: '433a8ac42c0eec9180e37da222da1dbb1112e48e', class: "col-12" }, h("justifi-billing-form", { key: '4f24f1c8b4083e2d9e5bb2272d32d20bb5cc225d', legend: "Billing Info", ref: el => {
|
|
114
113
|
if (el) {
|
|
115
114
|
this.billingFormRef = el;
|
|
116
115
|
}
|
|
117
|
-
} })), h("slot", { key: '
|
|
116
|
+
} })), h("slot", { key: '9397ae7fdd2677cd61a425fcf5818ae14fabbed0', name: 'insurance' }), h("div", { key: 'db9131f6f35165e69d3b59da7fa25b95f1e46168', class: "col-12" }, h(Button, { key: 'c280836cf6445a7132ff9202a09b6fdac8e29f77', variant: "primary", type: "submit", onClick: event => this.submit(event), disabled: !this.submitButtonEnabled || this.isLoading, isLoading: this.isLoading, "data-testid": "submit-button", style: { width: '100%' } }, this.submitButtonText || 'Submit')))));
|
|
118
117
|
}
|
|
119
118
|
static get is() { return "justifi-payment-form"; }
|
|
120
119
|
static get encapsulation() { return "shadow"; }
|
|
@@ -2,7 +2,6 @@ import { h, } from "@stencil/core";
|
|
|
2
2
|
import RefundFormSchema from "./refund-form-schema";
|
|
3
3
|
import { Api } from "../../api";
|
|
4
4
|
import { FormController } from "../form/form";
|
|
5
|
-
import { config } from "../../../config";
|
|
6
5
|
import { CURRENCY_MASK } from "../../utils/form-input-masks";
|
|
7
6
|
import { StyledHost } from "../../ui-components";
|
|
8
7
|
export class RefundForm {
|
|
@@ -71,11 +70,11 @@ export class RefundForm {
|
|
|
71
70
|
if (!this.authToken) {
|
|
72
71
|
console.warn('Warning: Missing auth-token.');
|
|
73
72
|
}
|
|
74
|
-
this.api = Api({ authToken: this.authToken, apiOrigin:
|
|
73
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: PROXY_API_ORIGIN });
|
|
75
74
|
}
|
|
76
75
|
render() {
|
|
77
76
|
var _a;
|
|
78
|
-
return (h(StyledHost, { key: '
|
|
77
|
+
return (h(StyledHost, { key: '8d31f1a9bf936c9e11f8eca1dc55e614b9fa5939' }, h("h1", { key: 'be589740535ee8a5ab6d4af7151d7ae026f08002' }, "Refund"), this.refundInfoText && (h("div", { key: 'b1d40507dec53bac422f99a3d62678c78c0c2038', class: "d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3", role: "alert" }, h("img", { key: 'cc76014eef0d826bec5ec09355dc5fc747fd2070', src: "/info-icon.svg", alt: "Information", height: "30", width: "30" }), h("p", { key: 'c2efa0f2acdf3faaa6e2974d0535f48799e3cbbd', class: "m-0", innerHTML: this.refundInfoText }))), h("form", { key: '68220114781378f6507651414c87532171bebb31', onSubmit: e => this.handleSubmit(e), class: "d-grid gap-4" }, h("div", { key: '075545e9837316fe160760e0dba9a5104654dd2b', class: "form-group" }, h("form-control-monetary", { key: 'c8ff8a822d2b74b2f80b33cd6cd2b42ceebbff11', name: "amount", label: "Refund Amount", defaultValue: ((_a = this.amount) === null || _a === void 0 ? void 0 : _a.toString()) || '', maskOptions: CURRENCY_MASK.DECIMAL, inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.amount })), h("div", { key: '92093284e763466be5138ea6d788145d5d47bd87', class: "form-group" }, h("form-control-text", { key: 'ddf9e221d43d84ad7436261c5755e673224aa82e', name: "notes", label: "Additional Notes", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.notes })), this.withButton && (h("div", { key: '58abbbabce09d82da4032ef0e08e6cfac1433153', class: "form-group d-flex flex-row-reverse" }, h("button", { key: '3e703ef633e0d45ba70425dc6d58bcd2d590ce1b', type: "submit", disabled: !!this.isSubmitting, class: "btn btn-primary ml-auto" }, this.submitButtonText))))));
|
|
79
78
|
}
|
|
80
79
|
static get is() { return "justifi-refund-form"; }
|
|
81
80
|
static get encapsulation() { return "shadow"; }
|
package/dist/docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2024-09-
|
|
2
|
+
"timestamp": "2024-09-23T17:56:14",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.19.2",
|
|
@@ -3040,7 +3040,7 @@
|
|
|
3040
3040
|
"reflectToAttr": false,
|
|
3041
3041
|
"docs": "URL for the rendered iFrame. End-users need not use this.",
|
|
3042
3042
|
"docsTags": [],
|
|
3043
|
-
"default": "
|
|
3043
|
+
"default": "IFRAME_ORIGIN",
|
|
3044
3044
|
"values": [
|
|
3045
3045
|
{
|
|
3046
3046
|
"type": "string"
|
|
@@ -6281,7 +6281,7 @@
|
|
|
6281
6281
|
"reflectToAttr": false,
|
|
6282
6282
|
"docs": "URL for the rendered iFrame. End-users need not use this.",
|
|
6283
6283
|
"docsTags": [],
|
|
6284
|
-
"default": "
|
|
6284
|
+
"default": "IFRAME_ORIGIN",
|
|
6285
6285
|
"values": [
|
|
6286
6286
|
{
|
|
6287
6287
|
"type": "string"
|
|
@@ -7035,7 +7035,7 @@
|
|
|
7035
7035
|
"reflectToAttr": false,
|
|
7036
7036
|
"docs": "URL for the rendered iFrame. End-users need not use this.",
|
|
7037
7037
|
"docsTags": [],
|
|
7038
|
-
"default": "
|
|
7038
|
+
"default": "IFRAME_ORIGIN",
|
|
7039
7039
|
"values": [
|
|
7040
7040
|
{
|
|
7041
7041
|
"type": "string"
|
|
@@ -7961,7 +7961,7 @@
|
|
|
7961
7961
|
"reflectToAttr": false,
|
|
7962
7962
|
"docs": "",
|
|
7963
7963
|
"docsTags": [],
|
|
7964
|
-
"default": "
|
|
7964
|
+
"default": "IFRAME_ORIGIN",
|
|
7965
7965
|
"values": [
|
|
7966
7966
|
{
|
|
7967
7967
|
"type": "string"
|
|
@@ -9370,7 +9370,7 @@
|
|
|
9370
9370
|
"reflectToAttr": false,
|
|
9371
9371
|
"docs": "",
|
|
9372
9372
|
"docsTags": [],
|
|
9373
|
-
"default": "
|
|
9373
|
+
"default": "IFRAME_ORIGIN",
|
|
9374
9374
|
"values": [
|
|
9375
9375
|
{
|
|
9376
9376
|
"type": "string"
|
|
@@ -11524,7 +11524,7 @@
|
|
|
11524
11524
|
"reflectToAttr": false,
|
|
11525
11525
|
"docs": "",
|
|
11526
11526
|
"docsTags": [],
|
|
11527
|
-
"default": "
|
|
11527
|
+
"default": "IFRAME_ORIGIN",
|
|
11528
11528
|
"values": [
|
|
11529
11529
|
{
|
|
11530
11530
|
"type": "string"
|
|
@@ -12466,7 +12466,7 @@
|
|
|
12466
12466
|
"reflectToAttr": false,
|
|
12467
12467
|
"docs": "",
|
|
12468
12468
|
"docsTags": [],
|
|
12469
|
-
"default": "
|
|
12469
|
+
"default": "IFRAME_ORIGIN",
|
|
12470
12470
|
"values": [
|
|
12471
12471
|
{
|
|
12472
12472
|
"type": "string"
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { p as packageJson } from './package-
|
|
2
|
-
import { c as config } from './config-58e393e2.js';
|
|
1
|
+
import { p as packageJson } from './package-09a354e0.js';
|
|
3
2
|
import { A as Api } from './Api-b09a2f6a.js';
|
|
4
3
|
|
|
5
4
|
class AnalyticsService {
|
|
6
5
|
async record(body) {
|
|
7
6
|
const endpoint = 'analytics';
|
|
8
|
-
return Api({ apiOrigin:
|
|
7
|
+
return Api({ apiOrigin: undefined }).post(endpoint, JSON.stringify(body));
|
|
9
8
|
}
|
|
10
9
|
}
|
|
11
10
|
|
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
import { c as config } from './config-58e393e2.js';
|
|
2
1
|
import { A as Api } from './Api-b09a2f6a.js';
|
|
3
2
|
|
|
4
3
|
class BusinessService {
|
|
5
4
|
async fetchBusiness(businessId, authToken) {
|
|
6
5
|
const endpoint = `entities/business/${businessId}`;
|
|
7
|
-
return Api({ authToken, apiOrigin:
|
|
6
|
+
return Api({ authToken, apiOrigin: undefined }).get(endpoint);
|
|
8
7
|
}
|
|
9
8
|
async patchBusiness(authToken, businessId, payload) {
|
|
10
9
|
const endpoint = `entities/business/${businessId}`;
|
|
11
|
-
return Api({ authToken, apiOrigin:
|
|
10
|
+
return Api({ authToken, apiOrigin: undefined }).patch(endpoint, payload);
|
|
12
11
|
}
|
|
13
12
|
}
|
|
14
13
|
class IdentityService {
|
|
15
14
|
async fetchIdentity(identityId, authToken) {
|
|
16
15
|
const endpoint = `entities/identity/${identityId}`;
|
|
17
|
-
return Api({ authToken, apiOrigin:
|
|
16
|
+
return Api({ authToken, apiOrigin: undefined }).get(endpoint);
|
|
18
17
|
}
|
|
19
18
|
async patchIdentity(authToken, identityId, payload) {
|
|
20
19
|
const endpoint = `entities/identity/${identityId}`;
|
|
21
|
-
return Api({ authToken, apiOrigin:
|
|
20
|
+
return Api({ authToken, apiOrigin: undefined }).patch(endpoint, payload);
|
|
22
21
|
}
|
|
23
22
|
async postIdentity(authToken, payload) {
|
|
24
23
|
const endpoint = `entities/identity`;
|
|
25
|
-
return Api({ authToken, apiOrigin:
|
|
24
|
+
return Api({ authToken, apiOrigin: undefined }).post(endpoint, payload);
|
|
26
25
|
}
|
|
27
26
|
}
|
|
28
27
|
|
|
@@ -2,23 +2,22 @@ import { A as Api } from './Api-b09a2f6a.js';
|
|
|
2
2
|
import './Pagination-afc8f96d.js';
|
|
3
3
|
import './Payment-6bf26fe2.js';
|
|
4
4
|
import './Payout-dfe15b00.js';
|
|
5
|
-
import { c as config } from './config-58e393e2.js';
|
|
6
5
|
import { C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
|
|
7
6
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
8
7
|
|
|
9
8
|
class PayoutService {
|
|
10
9
|
async fetchPayouts(accountId, authToken, params) {
|
|
11
|
-
const api = Api({ authToken, apiOrigin:
|
|
10
|
+
const api = Api({ authToken, apiOrigin: undefined });
|
|
12
11
|
const endpoint = `account/${accountId}/payouts`;
|
|
13
12
|
return api.get(endpoint, params);
|
|
14
13
|
}
|
|
15
14
|
async fetchPayout(payoutId, authToken) {
|
|
16
|
-
const api = Api({ authToken, apiOrigin:
|
|
15
|
+
const api = Api({ authToken, apiOrigin: undefined });
|
|
17
16
|
const endpoint = `payouts/${payoutId}`;
|
|
18
17
|
return api.get(endpoint);
|
|
19
18
|
}
|
|
20
19
|
async fetchCSV(payoutId, authToken) {
|
|
21
|
-
const api = Api({ authToken, apiOrigin:
|
|
20
|
+
const api = Api({ authToken, apiOrigin: undefined });
|
|
22
21
|
const endpoint = `reports/payouts/${payoutId}`;
|
|
23
22
|
return api.get(endpoint);
|
|
24
23
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-57431c24.js';
|
|
2
2
|
import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
|
|
3
3
|
import { m as makeGetBusiness, b as makePatchBusiness } from './payment-provisioning-actions-0635eff7.js';
|
|
4
|
-
import { B as BusinessService } from './business.service-
|
|
4
|
+
import { B as BusinessService } from './business.service-f45decfc.js';
|
|
5
5
|
import { c as create$3, F as FormController, e as create$7 } from './index.esm-fc4f5c0c.js';
|
|
6
6
|
import { b as BusinessFormStep, a as BusinessFormClickActions } from './business-form-types-1bc5fe08.js';
|
|
7
7
|
import { z as bankNameValidation, A as nicknameValidation, i as identityNameValidation, B as accountTypeValidation, C as accountNumberValidation, D as routingNumberValidation, E as voidedCheckValidation, F as governmentIdValidation, G as ss4Validation, H as otherDocumentValidation, I as balanceSheetValidation, J as bankStatementValidation, K as profitAndLossStatementValidation, L as EntityDocument, M as EntityDocumentStorage } from './schema-validations-a83ff220.js';
|
|
@@ -10,7 +10,6 @@ import { A as Api } from './Api-b09a2f6a.js';
|
|
|
10
10
|
import './Pagination-afc8f96d.js';
|
|
11
11
|
import './Payment-6bf26fe2.js';
|
|
12
12
|
import './Payout-dfe15b00.js';
|
|
13
|
-
import { c as config } from './config-58e393e2.js';
|
|
14
13
|
import { n as numberOnlyHandler } from './utils-3bb6347a.js';
|
|
15
14
|
import { B as Business } from './Business-e218b4f4.js';
|
|
16
15
|
import { S as Skeleton } from './skeleton-145a80d4.js';
|
|
@@ -200,7 +199,7 @@ const BusinessBankAccountFormStep = class {
|
|
|
200
199
|
;
|
|
201
200
|
componentWillLoad() {
|
|
202
201
|
this.formController = new FormController(businessBankAccountSchema(this.allowOptionalFields));
|
|
203
|
-
this.api = Api({ authToken: this.authToken, apiOrigin:
|
|
202
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: undefined });
|
|
204
203
|
if (this.businessId && this.authToken) {
|
|
205
204
|
this.fetchData();
|
|
206
205
|
}
|
|
@@ -213,7 +212,7 @@ const BusinessBankAccountFormStep = class {
|
|
|
213
212
|
}
|
|
214
213
|
render() {
|
|
215
214
|
const bankAccountDefaultValue = this.formController.getInitialValues();
|
|
216
|
-
return (h("form", { key: '
|
|
215
|
+
return (h("form", { key: 'bc16efe8af48103ce07d8f5c6ecb040bbb957868' }, h("fieldset", { key: 'aaada7411cd43e678be3fe14bd60462e39f54527' }, h("legend", { key: '165b78cff91b553a37e7f070a40c4941db2929df' }, "Bank Account Info"), h("hr", { key: '006315c63bd21554dfa30d763122b9c9f259aba9' }), h("div", { key: 'f080fa734567a23c43ee7123bf2718aad5f1efa1', class: "row gy-3" }, h("div", { key: '674fab37279d21761f6e588338ebdcdb9e5520aa', class: "col-12" }, h("form-control-text", { key: '68f1a9aa2200e204c4db2a36eb5f4f168ab18bab', name: "bank_name", label: "Bank Name", defaultValue: bankAccountDefaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '085f33f93096bd9ecba304715ea1c3ec879396b4', class: "col-12" }, h("form-control-text", { key: 'c684ee2722f992ed61c51f87fd2c234c7278eb21', name: "nickname", label: "Nickname", defaultValue: bankAccountDefaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: 'c0afbdb31f2faa8f73158e659b232230099e8b9f', class: "col-12" }, h("form-control-text", { key: '3d0e3ca9794beed0c542b6ca18a01eebec48366f', name: "account_owner_name", label: "Account Owner Name", defaultValue: bankAccountDefaultValue.account_owner_name, errorText: this.errors.account_owner_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '40fd8191645312efaadc633061451bd744f2a31a', class: "col-12" }, h("form-control-select", { key: '40e40cc75dcaf8ef9ba47bdf109eb14798f28436', name: "account_type", label: "Account Type", options: bankAccountTypeOptions, defaultValue: bankAccountDefaultValue.account_type, errorText: this.errors.account_type, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '2af9c012bca9d413a5eb5b3b27f685f88137888b', class: "col-12" }, h("form-control-text", { key: '6386c601520152cb758dfe30ea7c6a8cdb1b249a', name: "account_number", label: "Account Number", defaultValue: bankAccountDefaultValue.account_number, maxLength: 17, errorText: this.errors.account_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, disabled: this.formDisabled })), h("div", { key: '8dac645db4cb8f18f4cdd138a02bc2467d2fcdd4', class: "col-12" }, h("form-control-text", { key: 'b8abe9231edd0fd07c21c9b3874e8f4f792a1eda', name: "routing_number", label: "Routing Number", defaultValue: bankAccountDefaultValue.routing_number, maxLength: 9, errorText: this.errors.routing_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, disabled: this.formDisabled }))))));
|
|
217
216
|
}
|
|
218
217
|
};
|
|
219
218
|
|
|
@@ -430,7 +429,7 @@ const BusinessDocumentFormStep = class {
|
|
|
430
429
|
return 'entities/document';
|
|
431
430
|
}
|
|
432
431
|
componentWillLoad() {
|
|
433
|
-
this.api = Api({ authToken: this.authToken, apiOrigin:
|
|
432
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: undefined });
|
|
434
433
|
if (this.businessId && this.authToken) {
|
|
435
434
|
this.fetchData();
|
|
436
435
|
}
|
|
@@ -463,7 +462,7 @@ const BusinessDocumentFormStep = class {
|
|
|
463
462
|
return (h("justifi-business-document-upload-input-group", { paymentVolume: this.paymentVolume, inputHandler: this.inputHandler, storeFiles: this.storeFiles, errors: this.errors }));
|
|
464
463
|
}
|
|
465
464
|
render() {
|
|
466
|
-
return (h("form", { key: '
|
|
465
|
+
return (h("form", { key: '4905c2dacbca9b1390fd7e316993be5d33117ee5' }, h("fieldset", { key: '22dc71452b1917be0d9dc237b1ac27739b922e65' }, h("legend", { key: '7c705b2b00a13f7fe690b2e5169dd1809934f892' }, "Document Uploads"), h("p", { key: 'e0ad37456d88496a589c1c79e8e3e9a0fc101577' }, "Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category."), h("hr", { key: '4ac6afc1c6ce6c6e81d4fcf05ee1c5c58b66f520' }), this.documentsOnFile, h("div", { key: 'bf8aa49a47a2d53f5c0a1179474d8dd885a5a363', class: "d-flex flex-column" }, this.formInputs))));
|
|
467
466
|
}
|
|
468
467
|
};
|
|
469
468
|
|
|
@@ -647,7 +646,7 @@ const BusinessTermsConditionsFormStep = class {
|
|
|
647
646
|
};
|
|
648
647
|
}
|
|
649
648
|
async componentWillLoad() {
|
|
650
|
-
this.api = Api({ authToken: this.authToken, apiOrigin:
|
|
649
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: undefined });
|
|
651
650
|
this.formController = new FormController(businessTermsConditionsSchema(this.allowOptionalFields));
|
|
652
651
|
if (this.businessId && this.authToken) {
|
|
653
652
|
this.fetchData();
|
|
@@ -683,7 +682,7 @@ const BusinessTermsConditionsFormStep = class {
|
|
|
683
682
|
});
|
|
684
683
|
}
|
|
685
684
|
render() {
|
|
686
|
-
return (h("form", { key: '
|
|
685
|
+
return (h("form", { key: 'e7eb6730d5b975ae91057a5218ed062a23d3f0ef' }, h("fieldset", { key: '9dc69375e2c988dc11c4e76f757bde1fe18febea' }, h("legend", { key: '0202cf805071e011f0c087f244c0a43191632b7c' }, "Terms and Conditions"), h("hr", { key: 'a38e7b058d4269406c929abf4f57ddcdc16aa4fd' }), h("justifi-business-terms-conditions-text", { key: '8b87b016198c87c3c52c3e280353489573aff90c' }), h("br", { key: '6c7107e3975a40e44ba4375025ebea0e811630fe' }), h("div", { key: '3667f0455c95bc0d22472598eb2ca3cd7093b9d5', class: "row-gy-3" }, h("div", { key: '1169946dc47b48cd2f8f1a2adfa9ff9b149447f1', class: "col-12" }, h("form-control-checkbox", { key: '66942238443b1e27bb3902ddeba0f6fce973b319', name: "accepted", label: "I agree to the terms and conditions", inputHandler: this.inputHandler, errorText: this.errors.accepted, disabled: this.acceptedTermsBefore, helpText: this.formHelperText }))))));
|
|
687
686
|
}
|
|
688
687
|
};
|
|
689
688
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import './package-e2a7aa3f.js';
|
|
2
|
+
import { J as JustifiAnalytics } from './Analytics-c51439be.js';
|
|
3
|
+
import './package-09a354e0.js';
|
|
5
4
|
import './Api-b09a2f6a.js';
|
|
6
5
|
|
|
7
6
|
const BankAccountForm = class {
|
|
@@ -12,7 +11,7 @@ const BankAccountForm = class {
|
|
|
12
11
|
this.bankAccountFormTokenized = createEvent(this, "bankAccountFormTokenize", 7);
|
|
13
12
|
this.bankAccountFormValidated = createEvent(this, "bankAccountFormValidate", 7);
|
|
14
13
|
this.validationMode = undefined;
|
|
15
|
-
this.iframeOrigin =
|
|
14
|
+
this.iframeOrigin = undefined;
|
|
16
15
|
this.internalStyleOverrides = undefined;
|
|
17
16
|
}
|
|
18
17
|
readyHandler(event) {
|
|
@@ -64,7 +63,7 @@ const BankAccountForm = class {
|
|
|
64
63
|
return this.childRef.resize();
|
|
65
64
|
}
|
|
66
65
|
render() {
|
|
67
|
-
return (h("justifi-payment-method-form", { key: '
|
|
66
|
+
return (h("justifi-payment-method-form", { key: '646e392c1a9ed38e73780ed6a01b6f019767794c', ref: el => {
|
|
68
67
|
if (el) {
|
|
69
68
|
this.childRef = el;
|
|
70
69
|
}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-57431c24.js';
|
|
2
2
|
import { E as ErrorState } from './utils-01413a95.js';
|
|
3
|
-
import { B as BusinessService } from './business.service-
|
|
3
|
+
import { B as BusinessService } from './business.service-f45decfc.js';
|
|
4
4
|
import { B as Business } from './Business-e218b4f4.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 { J as JustifiAnalytics } from './Analytics-
|
|
8
|
-
import './config-58e393e2.js';
|
|
7
|
+
import { J as JustifiAnalytics } from './Analytics-c51439be.js';
|
|
9
8
|
import './Api-b09a2f6a.js';
|
|
10
9
|
import './helpers-96ea3464.js';
|
|
11
10
|
import './state-options-a356fb11.js';
|
|
12
|
-
import './package-
|
|
11
|
+
import './package-09a354e0.js';
|
|
13
12
|
|
|
14
13
|
const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
15
14
|
var _a;
|
|
@@ -6,16 +6,15 @@ import { A as Api } from './Api-b09a2f6a.js';
|
|
|
6
6
|
import './Pagination-afc8f96d.js';
|
|
7
7
|
import './Payment-6bf26fe2.js';
|
|
8
8
|
import './Payout-dfe15b00.js';
|
|
9
|
-
import { c as config } from './config-58e393e2.js';
|
|
10
9
|
import { B as BusinessFormServerErrors, a as BusinessFormClickActions } from './business-form-types-1bc5fe08.js';
|
|
11
10
|
import { B as Business } from './Business-e218b4f4.js';
|
|
12
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
11
|
+
import { J as JustifiAnalytics } from './Analytics-c51439be.js';
|
|
13
12
|
import { S as StyledHost } from './styled-host-ab9da520.js';
|
|
14
13
|
import './schema-validations-a83ff220.js';
|
|
15
14
|
import './state-options-a356fb11.js';
|
|
16
15
|
import './business-form-options-7a9a74fc.js';
|
|
17
16
|
import './helpers-96ea3464.js';
|
|
18
|
-
import './package-
|
|
17
|
+
import './package-09a354e0.js';
|
|
19
18
|
|
|
20
19
|
const businessFormSchema = create$3(Object.assign(Object.assign({}, businessCoreInfoSchema().fields), { legal_address: addressSchema(), additional_questions: additionalQuestionsSchema(), representative: identitySchema('representative') }));
|
|
21
20
|
|
|
@@ -82,7 +81,7 @@ const BusinessForm = class {
|
|
|
82
81
|
if (!this.businessId)
|
|
83
82
|
console.error(missingBusinessIdMessage);
|
|
84
83
|
this.formController = new FormController(businessFormSchema);
|
|
85
|
-
this.api = Api({ authToken: this.authToken, apiOrigin:
|
|
84
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: undefined });
|
|
86
85
|
this.fetchData();
|
|
87
86
|
}
|
|
88
87
|
disconnectedCallback() {
|
|
@@ -110,7 +109,7 @@ const BusinessForm = class {
|
|
|
110
109
|
this.instantiateBusiness(response.data);
|
|
111
110
|
}
|
|
112
111
|
render() {
|
|
113
|
-
return (h(StyledHost, { key: '
|
|
112
|
+
return (h(StyledHost, { key: '8fb79d577c13246fcf3ec1ee8460713fee07d01a', exportparts: "label,input,input-invalid" }, h("form", { key: '1fe23a8cc8714aee257b6c73c6b7b096d684ea1c', onSubmit: this.validateAndSubmit }, h("div", { key: 'e501f6963ed5bfd9eb80f67df13108289db6eba7', class: "row gap-3" }, h("h1", { key: 'f81f22704bda1480c467b872cd3fd309505b0e94' }, this.title), h("form-alert", { key: '15b2ff75d4db6447bfd1892542e8e972ede0ac7e', text: this.errorMessage, hideAlert: this.hideErrors }), h("div", { key: 'fd6a375fd187426940df3f28262be7aec3fedbe5', class: "col-12 mb-4" }, h("justifi-business-core-info", { key: 'd16818a2124cb04dd5a5e84ea40639991fb04a80', formController: this.formController })), h("div", { key: 'd48b04718cf938484cf65cc956bf798f44ed17a7', class: "col-12 mb-4" }, h("justifi-legal-address-form", { key: '3a2bc6babfe8a0a265b2a7f9e7bea1abebd3eb43', formController: this.formController })), h("div", { key: '5c4d5d1fa1e2aba32f42c2bb9e97c0d796ecf709', class: "col-12 mb-4" }, h("justifi-additional-questions", { key: 'c888fb627380d05302cb106c5642e39b1f2652fa', formController: this.formController })), h("div", { key: '623e94d84976cfe29f4501a781c750d1bb537605', class: "col-12 mb-4" }, h("justifi-business-representative", { key: '594c893c0976b58a309679a031f6f1c787e66f48', formController: this.formController })), h("div", { key: '9fbc36ed183b1ebf171da14276092195c7aaf3a9', class: "col-12 d-flex flex-row-reverse" }, h("button", { key: 'a60da6fdda5193d3c41c589b00b040c05ae425ac', type: "submit", class: "btn btn-primary jfi-submit-button", disabled: this.disabledState, onClick: () => this.fireClickEvents({ name: BusinessFormClickActions.submit }) }, this.isLoading ? 'Loading...' : 'Submit'))))));
|
|
114
113
|
}
|
|
115
114
|
};
|
|
116
115
|
BusinessForm.style = JustifiBusinessFormStyle0;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import './package-e2a7aa3f.js';
|
|
2
|
+
import { J as JustifiAnalytics } from './Analytics-c51439be.js';
|
|
3
|
+
import './package-09a354e0.js';
|
|
5
4
|
import './Api-b09a2f6a.js';
|
|
6
5
|
|
|
7
6
|
const CardForm = class {
|
|
@@ -12,7 +11,7 @@ const CardForm = class {
|
|
|
12
11
|
this.cardFormTokenized = createEvent(this, "cardFormTokenize", 7);
|
|
13
12
|
this.cardFormValidated = createEvent(this, "cardFormValidate", 7);
|
|
14
13
|
this.validationMode = undefined;
|
|
15
|
-
this.iframeOrigin =
|
|
14
|
+
this.iframeOrigin = undefined;
|
|
16
15
|
this.singleLine = false;
|
|
17
16
|
this.internalStyleOverrides = undefined;
|
|
18
17
|
}
|
|
@@ -65,7 +64,7 @@ const CardForm = class {
|
|
|
65
64
|
return this.childRef.resize();
|
|
66
65
|
}
|
|
67
66
|
render() {
|
|
68
|
-
return (h("justifi-payment-method-form", { key: '
|
|
67
|
+
return (h("justifi-payment-method-form", { key: 'cc0ad5d8a262ff5c8422d247caed469a8dea3488', ref: el => {
|
|
69
68
|
if (el) {
|
|
70
69
|
this.childRef = el;
|
|
71
70
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
2
|
import { f as formatCurrency } from './utils-3c1dd2fa.js';
|
|
3
|
-
import { c as config } from './config-58e393e2.js';
|
|
4
3
|
import { C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
|
|
5
4
|
import { i as insuranceValuesOn, v as validateInsuranceValues, a as insuranceValues } from './insurance-state-8ce01e59.js';
|
|
6
5
|
import { B as Button } from './button-34e75e0f.js';
|
|
@@ -45,7 +44,7 @@ const CheckoutCore = class {
|
|
|
45
44
|
});
|
|
46
45
|
this.renderState = 'error';
|
|
47
46
|
};
|
|
48
|
-
this.iframeOrigin =
|
|
47
|
+
this.iframeOrigin = undefined;
|
|
49
48
|
this.authToken = undefined;
|
|
50
49
|
this.getCheckout = undefined;
|
|
51
50
|
this.complete = undefined;
|
|
@@ -65,6 +64,7 @@ const CheckoutCore = class {
|
|
|
65
64
|
this.paymentMethodOptionsRef.fillBillingForm(fields);
|
|
66
65
|
}
|
|
67
66
|
componentWillLoad() {
|
|
67
|
+
console.log('CheckoutCore: componentWillLoad iframeOrigin', this, this.iframeOrigin);
|
|
68
68
|
if (this.getCheckout) {
|
|
69
69
|
this.fetchData();
|
|
70
70
|
// Refresh the checkout data when insurance is added or removed
|
|
@@ -141,7 +141,7 @@ const CheckoutCore = class {
|
|
|
141
141
|
return (h("section", null, h("div", { class: !this.isLoading && 'visually-hidden' }, h(Skeleton, { height: "24px" })), h("div", { class: this.isLoading && 'visually-hidden' }, h("div", { class: "jfi-payment-description" }, (_a = this.checkout) === null || _a === void 0 ? void 0 : _a.payment_description), h("div", { class: "jfi-payment-total" }, h("span", { class: "jfi-payment-total-label" }, "Total"), "\u00A0", h("span", { class: "jfi-payment-total-amount" }, formatCurrency(+((_b = this.checkout) === null || _b === void 0 ? void 0 : _b.total_amount)))))));
|
|
142
142
|
}
|
|
143
143
|
render() {
|
|
144
|
-
return (h(StyledHost, { key: '
|
|
144
|
+
return (h(StyledHost, { key: '991ae6970e426028ace0d1e8327119bc197639b0' }, h("div", { key: '1e57ee21429b494240e644235a2d5815ced99d43', class: "row gy-3 jfi-checkout-core" }, h("div", { key: '70023ce10dea6ff8d5bd8e30c7d474f774682c65', class: "col-12" }, h("h2", { key: '8b09b03c1998e4d60e174fefb3d196e48d50b84a', class: "fs-5 fw-bold pb-3 jfi-header" }, "Summary"), this.summary), h("div", { key: 'e3bbdaaaf010451a31fe9c60bdf81e89bdd142f2', class: "col-12" }, h("slot", { key: '442a01184960f42b5e1f6694798633d3e7219bf5', name: "insurance" })), h("div", { key: '716e26e3dc675e9d72a3a992b1cb212ce48ffb1a', class: "col-12 mt-4" }, h("h2", { key: '762cfc8549b20d16583d0fd8748bde8035042c00', class: "fs-5 fw-bold pb-3 jfi-header" }, "Payment"), h("h3", { key: 'f07d716a87f3e2bd44471f7e93f7af5f5d20440e', class: "fs-6 fw-bold lh-lg" }, "Select payment type"), h("div", { key: '1156291dd748b90d64a08916ffb98c3123132175', class: "d-flex flex-column" }, this.paymentType)), h("div", { key: 'a5bd142a1c72c5abb29338a2cf24c180119d4ea7', class: "col-12" }, h("div", { key: '5a94ed9d54fd3dd24cfe3e34c23ee3c4995eca6d', class: "d-flex justify-content-end" }, h(Button, { key: '7fce3940d8fe562aa7c23e38201b5d2924157288', type: "submit", variant: "primary", onClick: (e) => this.submit(e), disabled: this.isLoading, isLoading: this.isLoading, style: { width: '100%' } }, "Pay"))))));
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
147
|
CheckoutCore.style = JustifiCheckoutCoreStyle0 + JustifiCheckoutCoreStyle1;
|
|
@@ -5,9 +5,8 @@ import { A as Api } from './Api-b09a2f6a.js';
|
|
|
5
5
|
import './Pagination-afc8f96d.js';
|
|
6
6
|
import './Payment-6bf26fe2.js';
|
|
7
7
|
import './Payout-dfe15b00.js';
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import './package-e2a7aa3f.js';
|
|
8
|
+
import { J as JustifiAnalytics } from './Analytics-c51439be.js';
|
|
9
|
+
import './package-09a354e0.js';
|
|
11
10
|
|
|
12
11
|
const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
|
|
13
12
|
var _a;
|
|
@@ -66,7 +65,7 @@ const makeCheckoutComplete = ({ authToken, checkoutId, service }) => async ({ pa
|
|
|
66
65
|
class CheckoutService {
|
|
67
66
|
async fetchCheckout(authToken, checkoutId) {
|
|
68
67
|
const endpoint = `checkouts/${checkoutId}`;
|
|
69
|
-
return Api({ authToken, apiOrigin:
|
|
68
|
+
return Api({ authToken, apiOrigin: undefined }).get(endpoint);
|
|
70
69
|
}
|
|
71
70
|
async complete(authToken, checkoutId, payment) {
|
|
72
71
|
const endpoint = `checkouts/${checkoutId}/complete`;
|
|
@@ -76,7 +75,7 @@ class CheckoutService {
|
|
|
76
75
|
if (payment.payment_token) {
|
|
77
76
|
payload.payment_token = payment.payment_token;
|
|
78
77
|
}
|
|
79
|
-
return Api({ authToken, apiOrigin:
|
|
78
|
+
return Api({ authToken, apiOrigin: undefined }).post(endpoint, JSON.stringify(payload));
|
|
80
79
|
}
|
|
81
80
|
}
|
|
82
81
|
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
|
-
import { c as config } from './config-58e393e2.js';
|
|
3
2
|
import { A as Api } from './Api-b09a2f6a.js';
|
|
4
3
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
5
4
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
6
5
|
import { E as ErrorState } from './utils-01413a95.js';
|
|
7
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
8
|
-
import './package-
|
|
6
|
+
import { J as JustifiAnalytics } from './Analytics-c51439be.js';
|
|
7
|
+
import './package-09a354e0.js';
|
|
9
8
|
|
|
10
9
|
class ReportsService {
|
|
11
10
|
async fetchGrossVolumeChartData(accountId, authToken) {
|
|
12
|
-
const api = Api({ authToken: authToken, apiOrigin:
|
|
11
|
+
const api = Api({ authToken: authToken, apiOrigin: undefined });
|
|
13
12
|
const endpoint = `account/${accountId}/reports/gross_volume`;
|
|
14
13
|
return api.get(endpoint);
|
|
15
14
|
}
|