@justifi/webcomponents 4.19.1-rc → 4.19.3-rc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Analytics-0b3db49d.js → Analytics-57e3b5a8.js} +2 -3
- package/dist/cjs/{business.service-c384784d.js → business.service-090a21e1.js} +5 -6
- package/dist/cjs/{get-payout-csv-51a02be7.js → get-payout-csv-238e839a.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 +2 -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 +8 -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-97b9c902.js} +2 -4
- package/dist/cjs/{payment.service-2dbfb83d.js → payment.service-c92635c8.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 +3 -4
- package/dist/collection/components/checkout/new-payment-method.js +3 -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-7cb9826b.js} +2 -3
- package/dist/esm/{business.service-eee46ab1.js → business.service-37d0cc72.js} +5 -6
- package/dist/esm/{get-payout-csv-4d6b29d8.js → get-payout-csv-a702a0d9.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 +2 -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 +8 -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-93884871.js} +2 -4
- package/dist/esm/{payment.service-9005a501.js → payment.service-9359fe15.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 +2 -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 +2 -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/webcomponents/p-03419b17.js +1 -0
- package/dist/webcomponents/p-0bbe1f1c.entry.js +1 -0
- package/dist/webcomponents/{p-ae530971.entry.js → p-0cd89142.entry.js} +1 -1
- package/dist/webcomponents/p-0e1bc91e.js +1 -0
- package/dist/webcomponents/p-16887e04.entry.js +1 -0
- package/dist/webcomponents/p-17baca7d.entry.js +1 -0
- package/dist/webcomponents/p-1f761d16.entry.js +1 -0
- package/dist/webcomponents/p-276cc368.entry.js +1 -0
- package/dist/webcomponents/p-32211b2f.entry.js +1 -0
- package/dist/webcomponents/p-3352353a.entry.js +1 -0
- package/dist/webcomponents/p-47d79529.js +1 -0
- package/dist/webcomponents/p-4a485cce.js +1 -0
- package/dist/webcomponents/p-4c849993.entry.js +1 -0
- package/dist/webcomponents/p-83876625.entry.js +1 -0
- package/dist/webcomponents/p-97272668.entry.js +1 -0
- package/dist/webcomponents/{p-a63fc384.entry.js → p-b1257354.entry.js} +1 -1
- package/dist/webcomponents/p-b29f5084.entry.js +1 -0
- package/dist/webcomponents/p-b4b8b531.js +1 -0
- package/dist/webcomponents/p-babd56c3.entry.js +1 -0
- package/dist/webcomponents/p-c607f049.entry.js +1 -0
- package/dist/webcomponents/p-cd37a87e.entry.js +1 -0
- package/dist/webcomponents/p-cff82e78.entry.js +1 -0
- package/dist/webcomponents/p-f117d1d1.entry.js +1 -0
- package/dist/webcomponents/p-f883bf32.entry.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -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-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-32286934.js +0 -1
- package/dist/webcomponents/p-3f5e7e86.js +0 -1
- package/dist/webcomponents/p-57e1f2fd.js +0 -1
- package/dist/webcomponents/p-5f095525.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-8f325782.entry.js +0 -1
- package/dist/webcomponents/p-987b5de2.entry.js +0 -1
- package/dist/webcomponents/p-a8220709.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-c28db166.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-f0a06884.entry.js +0 -1
- package/dist/webcomponents/p-f2f94d9f.entry.js +0 -1
- package/dist/webcomponents/p-f49b7170.entry.js +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, F as Fragment } from './index-57431c24.js';
|
|
2
|
-
import { c as config } from './config-58e393e2.js';
|
|
3
2
|
import { a as PaymentMethodTypes } from './Payment-6bf26fe2.js';
|
|
4
3
|
import { g as snakeToCamel, f as formatCurrency } from './utils-3c1dd2fa.js';
|
|
5
4
|
|
|
@@ -14,7 +13,7 @@ const NewPaymentMethod = class {
|
|
|
14
13
|
this.onPaymentMethodOptionClick = () => {
|
|
15
14
|
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
16
15
|
};
|
|
17
|
-
this.iframeOrigin =
|
|
16
|
+
this.iframeOrigin = "";
|
|
18
17
|
this.authToken = undefined;
|
|
19
18
|
this.accountId = undefined;
|
|
20
19
|
this.paymentMethodOption = undefined;
|
|
@@ -74,7 +73,7 @@ const NewPaymentMethod = class {
|
|
|
74
73
|
}
|
|
75
74
|
render() {
|
|
76
75
|
var _a, _b, _c, _d;
|
|
77
|
-
return (h("div", { key: '
|
|
76
|
+
return (h("div", { key: '55a43467070e4981a6fda7b529f329122f33dda8', class: "payment-method" }, h("div", { key: 'b86a20d2e51883dab9f2c46e6787417d498af17e', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '900b836be24e83816d1e6c915855b11ba3b605ee', 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: 'b1976293de17845cba7671606c50698b90878bcb', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, PaymentMethodTypeLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.id])), this.isSelected ? this.showNewPaymentMethodForm() : null));
|
|
78
77
|
}
|
|
79
78
|
};
|
|
80
79
|
|
|
@@ -117,7 +116,7 @@ const PaymentMethodOptions = class {
|
|
|
117
116
|
this.insuranceToggled = undefined;
|
|
118
117
|
this.authToken = undefined;
|
|
119
118
|
this.accountId = undefined;
|
|
120
|
-
this.iframeOrigin =
|
|
119
|
+
this.iframeOrigin = "";
|
|
121
120
|
this.savedPaymentMethods = [];
|
|
122
121
|
this.paymentAmount = undefined;
|
|
123
122
|
this.selectedPaymentMethodId = undefined;
|
|
@@ -163,7 +162,7 @@ const PaymentMethodOptions = class {
|
|
|
163
162
|
}
|
|
164
163
|
render() {
|
|
165
164
|
var _a;
|
|
166
|
-
return (h(Host, { key: '
|
|
165
|
+
return (h(Host, { key: '7ee40a1bdc9ec15596e870b48cbe7b6bbc20537c' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
|
|
167
166
|
const newCard = paymentMethodOption.id === PaymentMethodTypes.card;
|
|
168
167
|
const newBankAccount = paymentMethodOption.id === PaymentMethodTypes.bankAccount;
|
|
169
168
|
const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
|
|
@@ -204,7 +203,7 @@ const SavedPaymentMethod = class {
|
|
|
204
203
|
this.onPaymentMethodOptionClick = () => {
|
|
205
204
|
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
206
205
|
};
|
|
207
|
-
this.iframeOrigin =
|
|
206
|
+
this.iframeOrigin = "";
|
|
208
207
|
this.paymentMethodOption = undefined;
|
|
209
208
|
this.isSelected = undefined;
|
|
210
209
|
}
|
|
@@ -218,7 +217,7 @@ const SavedPaymentMethod = class {
|
|
|
218
217
|
;
|
|
219
218
|
render() {
|
|
220
219
|
var _a, _b, _c, _d, _e;
|
|
221
|
-
return (h(Fragment, { key: '
|
|
220
|
+
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 :
|
|
222
221
|
_e.acct_last_four)))));
|
|
223
222
|
}
|
|
224
223
|
};
|
|
@@ -263,7 +262,7 @@ const SezzlePaymentMethod = class {
|
|
|
263
262
|
this.sezzleCheckout = checkout;
|
|
264
263
|
this.installmentPlan = this.sezzleCheckout.getInstallmentPlan(amount);
|
|
265
264
|
};
|
|
266
|
-
this.iframeOrigin =
|
|
265
|
+
this.iframeOrigin = "";
|
|
267
266
|
this.bnpl = undefined;
|
|
268
267
|
this.clientId = undefined;
|
|
269
268
|
this.accountId = undefined;
|
|
@@ -289,7 +288,7 @@ const SezzlePaymentMethod = class {
|
|
|
289
288
|
}
|
|
290
289
|
render() {
|
|
291
290
|
var _a, _b, _c, _d, _e;
|
|
292
|
-
return (h("div", { key: '
|
|
291
|
+
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))))))));
|
|
293
292
|
}
|
|
294
293
|
};
|
|
295
294
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
2
|
import { c as makeGetIdentity, d as makePatchIdentity, e as makePostIdentity } from './payment-provisioning-actions-0635eff7.js';
|
|
3
|
-
import { I as IdentityService } from './business.service-
|
|
3
|
+
import { I as IdentityService } from './business.service-37d0cc72.js';
|
|
4
4
|
import { F as FormController } from './index.esm-fc4f5c0c.js';
|
|
5
5
|
import { O as Owner } from './Business-e218b4f4.js';
|
|
6
6
|
import { a as BusinessFormClickActions } from './business-form-types-1bc5fe08.js';
|
|
@@ -10,7 +10,6 @@ import { S as SSN_MASK, P as PHONE_MASKS } from './form-input-masks-0e18300f.js'
|
|
|
10
10
|
import { u as updateFormValues, a as updateAddressFormValues, b as updateDateOfBirthFormValues } from './input-handlers-270ac806.js';
|
|
11
11
|
import './ComponentError-3ce7f437.js';
|
|
12
12
|
import './utils-b10dae27.js';
|
|
13
|
-
import './config-58e393e2.js';
|
|
14
13
|
import './Api-b09a2f6a.js';
|
|
15
14
|
import './helpers-96ea3464.js';
|
|
16
15
|
import './state-options-a356fb11.js';
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
|
-
import { P as PaymentService } from './payment.service-
|
|
2
|
+
import { P as PaymentService } from './payment.service-9359fe15.js';
|
|
3
3
|
import './Pagination-afc8f96d.js';
|
|
4
4
|
import { P as Payment } from './Payment-6bf26fe2.js';
|
|
5
5
|
import './Payout-dfe15b00.js';
|
|
6
6
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
7
7
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
8
8
|
import { E as ErrorState } from './utils-01413a95.js';
|
|
9
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
9
|
+
import { J as JustifiAnalytics } from './Analytics-7cb9826b.js';
|
|
10
10
|
import './Api-b09a2f6a.js';
|
|
11
|
-
import './
|
|
12
|
-
import './package-e2a7aa3f.js';
|
|
11
|
+
import './package-93884871.js';
|
|
13
12
|
|
|
14
13
|
const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
15
14
|
var _a;
|
|
@@ -3,13 +3,12 @@ import './Pagination-afc8f96d.js';
|
|
|
3
3
|
import { a as PaymentMethodTypes } from './Payment-6bf26fe2.js';
|
|
4
4
|
import './Payout-dfe15b00.js';
|
|
5
5
|
import { l as loadFontsOnParent } from './utils-3c1dd2fa.js';
|
|
6
|
-
import { c as config } from './config-58e393e2.js';
|
|
7
6
|
import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
|
|
8
7
|
import { g as getErrorMessage } from './utils-b10dae27.js';
|
|
9
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
8
|
+
import { J as JustifiAnalytics } from './Analytics-7cb9826b.js';
|
|
10
9
|
import { B as Button } from './button-34e75e0f.js';
|
|
11
10
|
import { S as StyledHost } from './styled-host-ab9da520.js';
|
|
12
|
-
import './package-
|
|
11
|
+
import './package-93884871.js';
|
|
13
12
|
import './Api-b09a2f6a.js';
|
|
14
13
|
|
|
15
14
|
const paymentFormCss = ":host{display:block}justifi-payment-method-form{display:block;margin-left:calc(var(--jfi-layout-padding) * -1);margin-right:calc(var(--jfi-layout-padding) * -1)}*::part(label){color:var(--jfi-form-label-color);font-family:var(--jfi-form-label-font-family);font-weight:var(--jfi-form-label-font-weight);font-size:var(--jfi-form-label-font-size);margin:var(--jfi-form-label-margin)}*::part(input){font-family:var(--jfi-layout-font-family);background-color:var(--jfi-form-control-background-color);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-radius:var(--jfi-form-control-border-radius);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);font-size:var(--jfi-form-control-font-size);font-weight:var(--jfi-form-control-font-weight);line-height:var(--jfi-form-control-line-height);margin:var(--jfi-form-control-margin);padding:var(--jfi-form-control-padding)}*::part(input):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}.jfi-submit-button{font-family:var(--jfi-layout-font-family);color:var(--jfi-submit-button-color);background-color:var(--jfi-submit-button-background-color);border-color:var(--jfi-submit-button-border-color);padding:var(--jfi-submit-button-padding);font-size:var(--jfi-submit-button-font-size);border-radius:var(--jfi-submit-button-border-radius);width:var(--jfi-submit-button-width);box-shadow:var(--jfi-submit-button-box-shadow)}.jfi-submit-button:hover{color:var(--jfi-submit-button-color-hover);background-color:var(--jfi-submit-button-background-color-hover);border-color:var(--jfi-submit-button-border-color-hover)}.jfi-submit-button:focus{color:var(--jfi-submit-button-color-focus);background-color:var(--jfi-submit-button-background-color-focus);border-color:var(--jfi-submit-button-border-color-focus)}.btn.jfi-submit-button:active{color:var(--jfi-submit-button-color-active);background-color:var(--jfi-submit-button-background-color-active);border-color:var(--jfi-submit-button-border-color-active)}.btn.jfi-submit-button-loading{min-width:75px;color:var(--jfi-submit-button-color-loading);background-color:var(--jfi-submit-button-background-color-loading);border-color:var(--jfi-submit-button-border-color-loading)}.btn.jfi-submit-button-loading .spinner-border{border-top-color:var(--jfi-submit-button-color-loading);border-bottom-color:var(--jfi-submit-button-color-loading);border-left-color:var(--jfi-submit-button-color-loading)}";
|
|
@@ -118,15 +117,15 @@ const PaymentForm = class {
|
|
|
118
117
|
}
|
|
119
118
|
}
|
|
120
119
|
render() {
|
|
121
|
-
return (h(StyledHost, { key: '
|
|
120
|
+
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: "", ref: el => {
|
|
122
121
|
if (el) {
|
|
123
122
|
this.paymentMethodFormRef = el;
|
|
124
123
|
}
|
|
125
|
-
} })), h("div", { key: '
|
|
124
|
+
} })), h("div", { key: '433a8ac42c0eec9180e37da222da1dbb1112e48e', class: "col-12" }, h("justifi-billing-form", { key: '4f24f1c8b4083e2d9e5bb2272d32d20bb5cc225d', legend: "Billing Info", ref: el => {
|
|
126
125
|
if (el) {
|
|
127
126
|
this.billingFormRef = el;
|
|
128
127
|
}
|
|
129
|
-
} })), h("slot", { key: '
|
|
128
|
+
} })), 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')))));
|
|
130
129
|
}
|
|
131
130
|
};
|
|
132
131
|
PaymentForm.style = JustifiPaymentFormStyle0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-57431c24.js';
|
|
2
|
-
import { p as packageJson } from './package-
|
|
2
|
+
import { p as packageJson } from './package-93884871.js';
|
|
3
3
|
import { m as composeQueryParams } from './utils-3c1dd2fa.js';
|
|
4
4
|
|
|
5
5
|
var iframeResizer = {exports: {}};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
2
|
+
import { J as JustifiAnalytics } from './Analytics-7cb9826b.js';
|
|
3
3
|
import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
|
|
4
4
|
import { m as makeGetBusiness, a as makePostProvisioning } from './payment-provisioning-actions-0635eff7.js';
|
|
5
|
-
import { B as BusinessService } from './business.service-
|
|
6
|
-
import { c as config } from './config-58e393e2.js';
|
|
5
|
+
import { B as BusinessService } from './business.service-37d0cc72.js';
|
|
7
6
|
import { A as Api } from './Api-b09a2f6a.js';
|
|
8
|
-
import './package-
|
|
7
|
+
import './package-93884871.js';
|
|
9
8
|
import './utils-b10dae27.js';
|
|
10
9
|
|
|
11
10
|
class ProvisionService {
|
|
@@ -13,9 +12,9 @@ class ProvisionService {
|
|
|
13
12
|
const endpoint = `entities/provisioning`;
|
|
14
13
|
const payload = {
|
|
15
14
|
business_id: businessId,
|
|
16
|
-
product_category: product
|
|
15
|
+
product_category: product,
|
|
17
16
|
};
|
|
18
|
-
return Api({ authToken, apiOrigin:
|
|
17
|
+
return Api({ authToken, apiOrigin: "" }).post(endpoint, JSON.stringify(payload));
|
|
19
18
|
}
|
|
20
19
|
}
|
|
21
20
|
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
|
-
import { P as PaymentService } from './payment.service-
|
|
2
|
+
import { P as PaymentService } from './payment.service-9359fe15.js';
|
|
3
3
|
import './Pagination-afc8f96d.js';
|
|
4
4
|
import { P as Payment } from './Payment-6bf26fe2.js';
|
|
5
5
|
import './Payout-dfe15b00.js';
|
|
6
6
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
7
7
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
8
8
|
import { E as ErrorState } from './utils-01413a95.js';
|
|
9
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
9
|
+
import { J as JustifiAnalytics } from './Analytics-7cb9826b.js';
|
|
10
10
|
import './Api-b09a2f6a.js';
|
|
11
|
-
import './
|
|
12
|
-
import './package-e2a7aa3f.js';
|
|
11
|
+
import './package-93884871.js';
|
|
13
12
|
|
|
14
13
|
const makeGetPayments = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
|
|
15
14
|
var _a, _b;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
|
-
import { m as makeGetPayoutCSV, P as PayoutService } from './get-payout-csv-
|
|
2
|
+
import { m as makeGetPayoutCSV, P as PayoutService } from './get-payout-csv-a702a0d9.js';
|
|
3
3
|
import './Pagination-afc8f96d.js';
|
|
4
4
|
import './Payment-6bf26fe2.js';
|
|
5
5
|
import { P as Payout } from './Payout-dfe15b00.js';
|
|
6
6
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
7
7
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
8
8
|
import { E as ErrorState } from './utils-01413a95.js';
|
|
9
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
9
|
+
import { J as JustifiAnalytics } from './Analytics-7cb9826b.js';
|
|
10
10
|
import './Api-b09a2f6a.js';
|
|
11
|
-
import './
|
|
12
|
-
import './package-e2a7aa3f.js';
|
|
11
|
+
import './package-93884871.js';
|
|
13
12
|
|
|
14
13
|
const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
15
14
|
var _a;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-57431c24.js';
|
|
2
2
|
import { t as tableExportedParts } from './exported-parts-abd4c027.js';
|
|
3
|
-
import { m as makeGetPayoutCSV, P as PayoutService } from './get-payout-csv-
|
|
3
|
+
import { m as makeGetPayoutCSV, P as PayoutService } from './get-payout-csv-a702a0d9.js';
|
|
4
4
|
import './Pagination-afc8f96d.js';
|
|
5
5
|
import './Payment-6bf26fe2.js';
|
|
6
6
|
import { P as Payout } from './Payout-dfe15b00.js';
|
|
7
7
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
8
8
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
9
9
|
import { E as ErrorState } from './utils-01413a95.js';
|
|
10
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
10
|
+
import { J as JustifiAnalytics } from './Analytics-7cb9826b.js';
|
|
11
11
|
import './Api-b09a2f6a.js';
|
|
12
|
-
import './
|
|
13
|
-
import './package-e2a7aa3f.js';
|
|
12
|
+
import './package-93884871.js';
|
|
14
13
|
|
|
15
14
|
const makeGetPayouts = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
|
|
16
15
|
var _a, _b;
|
|
@@ -4,7 +4,6 @@ import { A as Api } from './Api-b09a2f6a.js';
|
|
|
4
4
|
import './Pagination-afc8f96d.js';
|
|
5
5
|
import './Payment-6bf26fe2.js';
|
|
6
6
|
import './Payout-dfe15b00.js';
|
|
7
|
-
import { c as config } from './config-58e393e2.js';
|
|
8
7
|
import { C as CURRENCY_MASK } from './form-input-masks-0e18300f.js';
|
|
9
8
|
import { S as StyledHost } from './styled-host-ab9da520.js';
|
|
10
9
|
|
|
@@ -90,11 +89,11 @@ const RefundForm = class {
|
|
|
90
89
|
if (!this.authToken) {
|
|
91
90
|
console.warn('Warning: Missing auth-token.');
|
|
92
91
|
}
|
|
93
|
-
this.api = Api({ authToken: this.authToken, apiOrigin:
|
|
92
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: "" });
|
|
94
93
|
}
|
|
95
94
|
render() {
|
|
96
95
|
var _a;
|
|
97
|
-
return (h(StyledHost, { key: '
|
|
96
|
+
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))))));
|
|
98
97
|
}
|
|
99
98
|
};
|
|
100
99
|
RefundForm.style = JustifiRefundFormStyle0;
|
|
@@ -3,20 +3,19 @@ import { A as Api } from './Api-b09a2f6a.js';
|
|
|
3
3
|
import './Pagination-afc8f96d.js';
|
|
4
4
|
import './Payment-6bf26fe2.js';
|
|
5
5
|
import './Payout-dfe15b00.js';
|
|
6
|
-
import { c as config } from './config-58e393e2.js';
|
|
7
6
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
8
7
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
9
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
10
|
-
import './package-
|
|
8
|
+
import { J as JustifiAnalytics } from './Analytics-7cb9826b.js';
|
|
9
|
+
import './package-93884871.js';
|
|
11
10
|
|
|
12
11
|
class InsuranceService {
|
|
13
12
|
async fetchQuote(authToken, payload) {
|
|
14
13
|
const endpoint = 'insurance/quotes';
|
|
15
|
-
return Api({ authToken, apiOrigin:
|
|
14
|
+
return Api({ authToken, apiOrigin: "" }).post(endpoint, JSON.stringify(payload));
|
|
16
15
|
}
|
|
17
16
|
async toggleCoverage(authToken, quoteId, payload) {
|
|
18
17
|
const endpoint = `insurance/quotes/${quoteId}/toggle`;
|
|
19
|
-
return Api({ authToken, apiOrigin:
|
|
18
|
+
return Api({ authToken, apiOrigin: "" }).post(endpoint, JSON.stringify(payload));
|
|
20
19
|
}
|
|
21
20
|
}
|
|
22
21
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const name = "@justifi/webcomponents";
|
|
2
|
-
const version = "4.19.
|
|
2
|
+
const version = "4.19.3-rc";
|
|
3
3
|
const description = "JustiFi Web Components";
|
|
4
4
|
const collection = "dist/collection/collection-manifest.json";
|
|
5
5
|
const main = "dist/index.cjs.js";
|
|
@@ -24,7 +24,6 @@ const scripts = {
|
|
|
24
24
|
generate: "stencil generate",
|
|
25
25
|
test: "TZ=utc stencil test --spec",
|
|
26
26
|
"test:watch": "TZ=utc stencil test --spec --watchAll",
|
|
27
|
-
"test:e2e": "stencil test --e2e",
|
|
28
27
|
"test:file": "stencil test --spec --watch --"
|
|
29
28
|
};
|
|
30
29
|
const dependencies = {
|
|
@@ -45,16 +44,15 @@ const devDependencies = {
|
|
|
45
44
|
"@babel/preset-env": "^7.21.5",
|
|
46
45
|
"@babel/preset-react": "^7.18.6",
|
|
47
46
|
"@babel/preset-typescript": "^7.21.5",
|
|
47
|
+
"@rollup/plugin-replace": "^5.0.7",
|
|
48
48
|
"@stencil/sass": "^3.0.1",
|
|
49
49
|
"@types/jest": "27.0.3",
|
|
50
|
-
"@types/node": "^20.1.4",
|
|
51
50
|
"@types/react": "^18.0.37",
|
|
52
51
|
"@types/react-dom": "^18.0.11",
|
|
53
52
|
dotenv: "^16.3.1",
|
|
54
53
|
jest: "^29.7.0",
|
|
55
54
|
"jest-cli": "^29.7.0",
|
|
56
55
|
"jest-environment-node": "^29.7.0",
|
|
57
|
-
puppeteer: "^21.0.0",
|
|
58
56
|
"ts-jest": "^29.1.2"
|
|
59
57
|
};
|
|
60
58
|
const license = "MIT";
|
|
@@ -2,17 +2,16 @@ 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
|
|
|
7
6
|
class PaymentService {
|
|
8
7
|
async fetchPayments(accountId, authToken, params) {
|
|
9
|
-
const api = Api({ authToken, apiOrigin:
|
|
8
|
+
const api = Api({ authToken, apiOrigin: "" });
|
|
10
9
|
const endpoint = `account/${accountId}/payments`;
|
|
11
10
|
return api.get(endpoint, params);
|
|
12
11
|
}
|
|
13
12
|
async fetchPayment(paymentId, authToken) {
|
|
14
13
|
const endpoint = `payments/${paymentId}`;
|
|
15
|
-
return Api({ authToken, apiOrigin:
|
|
14
|
+
return Api({ authToken, apiOrigin: "" }).get(endpoint);
|
|
16
15
|
}
|
|
17
16
|
}
|
|
18
17
|
|
package/dist/module/Analytics.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { p as packageJson } from './package.js';
|
|
2
|
-
import { c as config } from './config.js';
|
|
3
2
|
import { A as Api } from './Api.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: "" }).post(endpoint, JSON.stringify(body));
|
|
9
8
|
}
|
|
10
9
|
}
|
|
11
10
|
|
|
@@ -7,7 +7,6 @@ import { A as Api } from './Api.js';
|
|
|
7
7
|
import './Pagination.js';
|
|
8
8
|
import './Payment.js';
|
|
9
9
|
import './Payout.js';
|
|
10
|
-
import { c as config } from './config.js';
|
|
11
10
|
import { n as numberOnlyHandler } from './utils4.js';
|
|
12
11
|
import { C as ComponentErrorCodes, a as ComponentErrorSeverity } from './ComponentError.js';
|
|
13
12
|
import { d as defineCustomElement$4 } from './form-control-error-text2.js';
|
|
@@ -148,7 +147,7 @@ const BusinessBankAccountFormStep = /*@__PURE__*/ proxyCustomElement(class Busin
|
|
|
148
147
|
;
|
|
149
148
|
componentWillLoad() {
|
|
150
149
|
this.formController = new FormController(businessBankAccountSchema(this.allowOptionalFields));
|
|
151
|
-
this.api = Api({ authToken: this.authToken, apiOrigin:
|
|
150
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: "" });
|
|
152
151
|
if (this.businessId && this.authToken) {
|
|
153
152
|
this.fetchData();
|
|
154
153
|
}
|
|
@@ -161,7 +160,7 @@ const BusinessBankAccountFormStep = /*@__PURE__*/ proxyCustomElement(class Busin
|
|
|
161
160
|
}
|
|
162
161
|
render() {
|
|
163
162
|
const bankAccountDefaultValue = this.formController.getInitialValues();
|
|
164
|
-
return (h("form", { key: '
|
|
163
|
+
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 }))))));
|
|
165
164
|
}
|
|
166
165
|
}, [0, "justifi-business-bank-account-form-step", {
|
|
167
166
|
"authToken": [1, "auth-token"],
|
|
@@ -3,7 +3,6 @@ import { c as create$3, F as FormController } from './form.js';
|
|
|
3
3
|
import { B as BusinessFormStep } from './business-form-types.js';
|
|
4
4
|
import { a as Business } from './Business.js';
|
|
5
5
|
import { A as Api } from './Api.js';
|
|
6
|
-
import { c as config } from './config.js';
|
|
7
6
|
import { B as voidedCheckValidation, C as governmentIdValidation, D as ss4Validation, E as otherDocumentValidation, F as balanceSheetValidation, G as bankStatementValidation, H as profitAndLossStatementValidation } from './schema-validations.js';
|
|
8
7
|
import { a as EntityDocument, b as EntityDocumentStorage } from './Document.js';
|
|
9
8
|
import { C as ComponentErrorCodes, a as ComponentErrorSeverity } from './ComponentError.js';
|
|
@@ -179,7 +178,7 @@ const BusinessDocumentFormStep = /*@__PURE__*/ proxyCustomElement(class Business
|
|
|
179
178
|
return 'entities/document';
|
|
180
179
|
}
|
|
181
180
|
componentWillLoad() {
|
|
182
|
-
this.api = Api({ authToken: this.authToken, apiOrigin:
|
|
181
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: "" });
|
|
183
182
|
if (this.businessId && this.authToken) {
|
|
184
183
|
this.fetchData();
|
|
185
184
|
}
|
|
@@ -212,7 +211,7 @@ const BusinessDocumentFormStep = /*@__PURE__*/ proxyCustomElement(class Business
|
|
|
212
211
|
return (h("justifi-business-document-upload-input-group", { paymentVolume: this.paymentVolume, inputHandler: this.inputHandler, storeFiles: this.storeFiles, errors: this.errors }));
|
|
213
212
|
}
|
|
214
213
|
render() {
|
|
215
|
-
return (h("form", { key: '
|
|
214
|
+
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))));
|
|
216
215
|
}
|
|
217
216
|
}, [0, "justifi-business-document-upload-form-step", {
|
|
218
217
|
"authToken": [1, "auth-token"],
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { c as create$3, d as create$7, F as FormController } from './form.js';
|
|
3
3
|
import { B as BusinessFormStep } from './business-form-types.js';
|
|
4
|
-
import { c as config } from './config.js';
|
|
5
4
|
import { A as Api } from './Api.js';
|
|
6
5
|
import './Pagination.js';
|
|
7
6
|
import './Payment.js';
|
|
@@ -95,7 +94,7 @@ const BusinessTermsConditionsFormStep = /*@__PURE__*/ proxyCustomElement(class B
|
|
|
95
94
|
};
|
|
96
95
|
}
|
|
97
96
|
async componentWillLoad() {
|
|
98
|
-
this.api = Api({ authToken: this.authToken, apiOrigin:
|
|
97
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: "" });
|
|
99
98
|
this.formController = new FormController(businessTermsConditionsSchema(this.allowOptionalFields));
|
|
100
99
|
if (this.businessId && this.authToken) {
|
|
101
100
|
this.fetchData();
|
|
@@ -131,7 +130,7 @@ const BusinessTermsConditionsFormStep = /*@__PURE__*/ proxyCustomElement(class B
|
|
|
131
130
|
});
|
|
132
131
|
}
|
|
133
132
|
render() {
|
|
134
|
-
return (h("form", { key: '
|
|
133
|
+
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 }))))));
|
|
135
134
|
}
|
|
136
135
|
}, [0, "justifi-business-terms-conditions-form-step", {
|
|
137
136
|
"authToken": [1, "auth-token"],
|
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
import { c as config } from './config.js';
|
|
2
1
|
import { A as Api } from './Api.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: "" }).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: "" }).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: "" }).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: "" }).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: "" }).post(endpoint, payload);
|
|
26
25
|
}
|
|
27
26
|
}
|
|
28
27
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { a as formatCurrency } from './utils2.js';
|
|
3
|
-
import { c as config } from './config.js';
|
|
4
3
|
import { a as ComponentErrorSeverity } from './ComponentError.js';
|
|
5
4
|
import { i as insuranceValuesOn, v as validateInsuranceValues, a as insuranceValues } from './insurance-state.js';
|
|
6
5
|
import { B as Button } from './button.js';
|
|
@@ -58,7 +57,7 @@ const CheckoutCore = /*@__PURE__*/ proxyCustomElement(class CheckoutCore extends
|
|
|
58
57
|
});
|
|
59
58
|
this.renderState = 'error';
|
|
60
59
|
};
|
|
61
|
-
this.iframeOrigin =
|
|
60
|
+
this.iframeOrigin = "";
|
|
62
61
|
this.authToken = undefined;
|
|
63
62
|
this.getCheckout = undefined;
|
|
64
63
|
this.complete = undefined;
|
|
@@ -154,7 +153,7 @@ const CheckoutCore = /*@__PURE__*/ proxyCustomElement(class CheckoutCore extends
|
|
|
154
153
|
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)))))));
|
|
155
154
|
}
|
|
156
155
|
render() {
|
|
157
|
-
return (h(StyledHost, { key: '
|
|
156
|
+
return (h(StyledHost, { key: '085e3582c88e06c650d0ad52407982f9d0f713d5' }, h("div", { key: '15ff263db1588472d8338599b39336c6be74e629', class: "row gy-3 jfi-checkout-core" }, h("div", { key: '19115dc64b5d232fa47c4976da5b1b450204d5c7', class: "col-12" }, h("h2", { key: 'f995a6510cec38c9742f095952e9d9ad54c4a95a', class: "fs-5 fw-bold pb-3 jfi-header" }, "Summary"), this.summary), h("div", { key: 'd14ce872c6fa7be272f279c02a571fa005828678', class: "col-12" }, h("slot", { key: '5dd8c141deeecdb1689f34728c491ac985b047b0', name: "insurance" })), h("div", { key: '33d821b9cb8fb975911b3c5dccd72bf6d6a9333a', class: "col-12 mt-4" }, h("h2", { key: '2c1be6ad9636a3cc9bbd2fd0b61b2e15444a66ab', class: "fs-5 fw-bold pb-3 jfi-header" }, "Payment"), h("h3", { key: 'ebdced7b60f3b5a390067f5eb685533360988f01', class: "fs-6 fw-bold lh-lg" }, "Select payment type"), h("div", { key: 'eb110ff64cf495542e732e8065b23167394bc5e2', class: "d-flex flex-column" }, this.paymentType)), h("div", { key: 'a2960051d744f1069a52b91090adaa90ed7053f3', class: "col-12" }, h("div", { key: '03f01d243ebfa1268ca6c24b076b133e14709bd6', class: "d-flex justify-content-end" }, h(Button, { key: '01dd57ac8cb2c6e496d70421e21fd70533e6b5f6', type: "submit", variant: "primary", onClick: (e) => this.submit(e), disabled: this.isLoading, isLoading: this.isLoading, style: { width: '100%' } }, "Pay"))))));
|
|
158
157
|
}
|
|
159
158
|
static get style() { return JustifiCheckoutCoreStyle0 + JustifiCheckoutCoreStyle1; }
|
|
160
159
|
}, [1, "justifi-checkout-core", {
|
|
@@ -2,23 +2,22 @@ import { A as Api } from './Api.js';
|
|
|
2
2
|
import './Pagination.js';
|
|
3
3
|
import './Payment.js';
|
|
4
4
|
import './Payout.js';
|
|
5
|
-
import { c as config } from './config.js';
|
|
6
5
|
import { a as ComponentErrorSeverity } from './ComponentError.js';
|
|
7
6
|
import { g as getErrorMessage, a as getErrorCode } from './utils3.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: "" });
|
|
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: "" });
|
|
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: "" });
|
|
22
21
|
const endpoint = `reports/payouts/${payoutId}`;
|
|
23
22
|
return api.get(endpoint);
|
|
24
23
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { c as config } from './config.js';
|
|
3
2
|
import { J as JustifiAnalytics } from './Analytics.js';
|
|
4
3
|
import { d as defineCustomElement$2 } from './payment-method-form.js';
|
|
5
4
|
|
|
@@ -12,7 +11,7 @@ const BankAccountForm = /*@__PURE__*/ proxyCustomElement(class BankAccountForm e
|
|
|
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 = "";
|
|
16
15
|
this.internalStyleOverrides = undefined;
|
|
17
16
|
}
|
|
18
17
|
readyHandler(event) {
|
|
@@ -64,7 +63,7 @@ const BankAccountForm = /*@__PURE__*/ proxyCustomElement(class BankAccountForm e
|
|
|
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
|
}
|