@justifi/webcomponents 4.19.2-rc → 4.19.2
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-66574423.js → Analytics-c866f471.js} +4 -3
- package/dist/cjs/{Api-3bc6e43f.js → Api-b98b256f.js} +3 -3
- package/dist/cjs/{Business-aacbe893.js → Business-aa799fec.js} +104 -9
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
- package/dist/cjs/{business-additional-questions-schema-cf545610.js → business-additional-questions-schema-26b0eecb.js} +1 -1
- package/dist/cjs/{business-form-options-582467fe.js → business-form-options-5db0bd5e.js} +2 -2
- package/dist/cjs/{payload-parsers-1cbc3b57.js → business-identity-schema-503ecb77.js} +1 -47
- package/dist/cjs/{business.service-090a21e1.js → business.service-65b0dbc8.js} +7 -6
- package/dist/cjs/config-ff2dda66.js +15 -0
- package/dist/cjs/form-alert_5.cjs.entry.js +2 -2
- package/dist/cjs/form-control-checkbox_9.cjs.entry.js +26 -26
- package/dist/cjs/{get-payout-csv-238e839a.js → get-payout-csv-b98b0651.js} +5 -4
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +15 -14
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +6 -5
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +3 -3
- package/dist/cjs/justifi-business-details.cjs.entry.js +6 -5
- package/dist/cjs/justifi-business-form.cjs.entry.js +14 -13
- package/dist/cjs/justifi-card-form.cjs.entry.js +6 -5
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +4 -3
- package/dist/cjs/justifi-checkout.cjs.entry.js +6 -5
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -4
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +10 -9
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +12 -11
- package/dist/cjs/justifi-payment-details.cjs.entry.js +5 -4
- package/dist/cjs/justifi-payment-form.cjs.entry.js +8 -7
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +7 -6
- package/dist/cjs/justifi-payments-list.cjs.entry.js +5 -4
- package/dist/cjs/justifi-payout-details.cjs.entry.js +5 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +5 -4
- package/dist/cjs/justifi-refund-form.cjs.entry.js +4 -3
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +6 -5
- package/dist/cjs/{package-0b65a049.js → package-0c613220.js} +4 -2
- package/dist/cjs/payment-details-core.cjs.entry.js +1 -1
- package/dist/cjs/{payment.service-c92635c8.js → payment.service-33d6ac16.js} +4 -3
- package/dist/cjs/payments-list-core.cjs.entry.js +1 -1
- package/dist/cjs/payout-details-core.cjs.entry.js +1 -1
- package/dist/cjs/payouts-list-core.cjs.entry.js +1 -1
- package/dist/cjs/{schema-validations-2733de42.js → schema-validations-0a7e46a3.js} +1 -1
- package/dist/cjs/{utils-89d86e29.js → utils-af1b60a9.js} +0 -16
- package/dist/collection/api/Api.js +3 -3
- package/dist/collection/api/Business.js +66 -7
- package/dist/collection/api/Identity.js +39 -3
- package/dist/collection/api/services/analytics.service.js +2 -1
- package/dist/collection/api/services/business.service.js +6 -5
- package/dist/collection/api/services/checkout.service.js +3 -2
- package/dist/collection/api/services/insurance.service.js +3 -2
- package/dist/collection/api/services/payment.service.js +3 -2
- package/dist/collection/api/services/payout.service.js +4 -3
- package/dist/collection/api/services/provision.service.js +4 -2
- package/dist/collection/api/services/reports.service.js +2 -1
- package/dist/collection/components/bank-account-form/bank-account-form.js +4 -3
- package/dist/collection/components/business-forms/business-form/business-form.js +5 -5
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +4 -5
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +4 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +3 -5
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +3 -4
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +4 -3
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +3 -4
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +4 -3
- package/dist/collection/components/business-forms/utils/business-form-options.js +1 -1
- package/dist/collection/components/card-form/card-form.js +4 -3
- package/dist/collection/components/checkout/checkout-core.js +4 -3
- package/dist/collection/components/checkout/new-payment-method.js +4 -3
- package/dist/collection/components/checkout/payment-method-options.js +4 -3
- package/dist/collection/components/checkout/saved-payment-method.js +4 -3
- package/dist/collection/components/checkout/sezzle-payment-method.js +4 -3
- package/dist/collection/components/payment-form/payment-form.js +4 -3
- package/dist/collection/components/refund-form/refund-form.js +3 -2
- package/dist/config.js +11 -0
- package/dist/docs.json +9 -9
- package/dist/esm/{Analytics-6f321899.js → Analytics-3e74964a.js} +4 -3
- package/dist/esm/{Api-b09a2f6a.js → Api-c8abc2e0.js} +3 -3
- package/dist/esm/{Business-e218b4f4.js → Business-b73d5055.js} +104 -9
- package/dist/esm/additional-questions-details_5.entry.js +1 -1
- package/dist/esm/{business-additional-questions-schema-956e3caf.js → business-additional-questions-schema-a5583cf8.js} +1 -1
- package/dist/esm/{business-form-options-7a9a74fc.js → business-form-options-d790973e.js} +2 -2
- package/dist/esm/{payload-parsers-acb719d1.js → business-identity-schema-9e3269fb.js} +2 -44
- package/dist/esm/{business.service-37d0cc72.js → business.service-6f139c2b.js} +7 -6
- package/dist/esm/config-476c7241.js +13 -0
- package/dist/esm/form-alert_5.entry.js +2 -2
- package/dist/esm/form-control-checkbox_9.entry.js +21 -21
- package/dist/esm/{get-payout-csv-a702a0d9.js → get-payout-csv-383d96c1.js} +5 -4
- package/dist/esm/gross-payment-chart-core.entry.js +1 -1
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +15 -14
- package/dist/esm/justifi-bank-account-form.entry.js +6 -5
- package/dist/esm/justifi-billing-form_2.entry.js +3 -3
- package/dist/esm/justifi-business-details.entry.js +6 -5
- package/dist/esm/justifi-business-form.entry.js +13 -12
- package/dist/esm/justifi-card-form.entry.js +6 -5
- package/dist/esm/justifi-checkout-core.entry.js +4 -3
- package/dist/esm/justifi-checkout.entry.js +6 -5
- package/dist/esm/justifi-gross-payment-chart.entry.js +5 -4
- package/dist/esm/justifi-new-payment-method_4.entry.js +10 -9
- package/dist/esm/justifi-owner-form_3.entry.js +11 -10
- package/dist/esm/justifi-payment-details.entry.js +5 -4
- package/dist/esm/justifi-payment-form.entry.js +8 -7
- package/dist/esm/justifi-payment-method-form.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +7 -6
- package/dist/esm/justifi-payments-list.entry.js +5 -4
- package/dist/esm/justifi-payout-details.entry.js +5 -4
- package/dist/esm/justifi-payouts-list.entry.js +5 -4
- package/dist/esm/justifi-refund-form.entry.js +4 -3
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +6 -5
- package/dist/esm/{package-9f727069.js → package-925a0fdd.js} +4 -2
- package/dist/esm/payment-details-core.entry.js +1 -1
- package/dist/esm/{payment.service-9359fe15.js → payment.service-e4fb5953.js} +4 -3
- package/dist/esm/payments-list-core.entry.js +1 -1
- package/dist/esm/payout-details-core.entry.js +1 -1
- package/dist/esm/payouts-list-core.entry.js +1 -1
- package/dist/esm/{schema-validations-a83ff220.js → schema-validations-e725d701.js} +2 -2
- package/dist/esm/{utils-3c1dd2fa.js → utils-e66d8bca.js} +1 -16
- package/dist/module/Analytics.js +2 -1
- package/dist/module/Api.js +3 -3
- package/dist/module/Business.js +104 -9
- package/dist/module/business-additional-questions-form-step-core.js +3 -3
- package/dist/module/business-bank-account-form-step.js +4 -3
- package/dist/module/business-core-info-form-step-core.js +3 -5
- package/dist/module/business-document-upload-form-step.js +4 -3
- package/dist/module/business-document-upload-input-group.js +1 -1
- package/dist/module/business-documents-on-file.js +1 -1
- package/dist/module/business-form-options.js +1 -1
- package/dist/module/business-owners-form-step-core.js +3 -3
- package/dist/module/business-representative-form-step-core.js +3 -4
- package/dist/module/business-terms-conditions-form-step.js +4 -3
- package/dist/module/business.service.js +6 -5
- package/dist/module/checkout-core.js +3 -2
- package/dist/module/config.js +13 -0
- package/dist/module/get-payout-csv.js +4 -3
- package/dist/module/justifi-bank-account-form.js +3 -2
- package/dist/module/justifi-business-form.js +5 -5
- package/dist/module/justifi-card-form.js +3 -2
- package/dist/module/justifi-checkout.js +3 -2
- package/dist/module/justifi-gross-payment-chart.js +2 -1
- package/dist/module/justifi-payment-form.js +4 -3
- package/dist/module/justifi-payment-provisioning.js +3 -2
- package/dist/module/justifi-refund-form.js +3 -2
- package/dist/module/justifi-season-interruption-insurance.js +3 -2
- package/dist/module/legal-address-form-step-core.js +3 -4
- package/dist/module/new-payment-method.js +3 -2
- package/dist/module/owner-form-core2.js +4 -5
- package/dist/module/package.js +4 -2
- package/dist/module/payment-details-core2.js +1 -1
- package/dist/module/payment-method-options.js +3 -2
- package/dist/module/payment.service.js +3 -2
- package/dist/module/payments-list-core2.js +1 -1
- package/dist/module/payout-details-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/saved-payment-method.js +4 -3
- package/dist/module/sezzle-payment-method.js +3 -2
- package/dist/module/utils2.js +1 -16
- package/dist/types/api/Business.d.ts +87 -1
- package/dist/types/api/Identity.d.ts +45 -1
- package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +44 -1
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +11 -1
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +11 -1
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +24 -1
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +11 -1
- package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +11 -0
- package/dist/webcomponents/p-0052db77.js +1 -0
- package/dist/webcomponents/p-039183f1.entry.js +1 -0
- package/dist/webcomponents/p-08a39a65.entry.js +1 -0
- package/dist/webcomponents/{p-462dc522.entry.js → p-124c1ecd.entry.js} +1 -1
- package/dist/webcomponents/p-1647f06b.entry.js +1 -0
- package/dist/webcomponents/p-1815a43b.js +1 -0
- package/dist/webcomponents/p-1cb2a51c.entry.js +1 -0
- package/dist/webcomponents/{p-1a43e355.entry.js → p-1eee25f3.entry.js} +1 -1
- package/dist/webcomponents/p-20cee11b.entry.js +1 -0
- package/dist/webcomponents/{p-3fd13ca3.js → p-277aee05.js} +1 -1
- package/dist/webcomponents/p-2a5cc4ee.entry.js +1 -0
- package/dist/webcomponents/p-3b1340dc.js +1 -0
- package/dist/webcomponents/p-43eff822.entry.js +1 -0
- package/dist/webcomponents/p-4e01fec8.entry.js +1 -0
- package/dist/webcomponents/{p-89887332.js → p-5022f21c.js} +1 -1
- package/dist/webcomponents/p-55182a59.js +1 -0
- package/dist/webcomponents/{p-83125497.js → p-5e2c9ec8.js} +1 -1
- package/dist/webcomponents/p-5e7c60d8.js +1 -0
- package/dist/webcomponents/p-6ac806ff.entry.js +1 -0
- package/dist/webcomponents/p-6c2fc744.entry.js +1 -0
- package/dist/webcomponents/{p-62b32c4c.entry.js → p-721dcf51.entry.js} +1 -1
- package/dist/webcomponents/p-77e55bfc.entry.js +1 -0
- package/dist/webcomponents/{p-29c0b182.js → p-7d3be485.js} +1 -1
- package/dist/webcomponents/{p-52021fa1.entry.js → p-817da23c.entry.js} +1 -1
- package/dist/webcomponents/p-82cff30c.js +1 -0
- package/dist/webcomponents/p-8eb10f02.js +1 -0
- package/dist/webcomponents/p-8f9fb5c3.entry.js +1 -0
- package/dist/webcomponents/p-9649b022.entry.js +1 -0
- package/dist/webcomponents/p-9c076da2.entry.js +1 -0
- package/dist/webcomponents/p-ae263544.js +1 -0
- package/dist/webcomponents/p-af0aeba4.entry.js +1 -0
- package/dist/webcomponents/p-b1408dea.entry.js +1 -0
- package/dist/webcomponents/p-ba95679b.entry.js +1 -0
- package/dist/webcomponents/p-bd2bb302.entry.js +1 -0
- package/dist/webcomponents/p-d2af90c2.entry.js +1 -0
- package/dist/webcomponents/{p-4abc17f0.entry.js → p-d76002d5.entry.js} +1 -1
- package/dist/webcomponents/{p-8e541a32.entry.js → p-da1d174d.entry.js} +1 -1
- package/dist/webcomponents/{p-53e64f15.entry.js → p-e2b2213f.entry.js} +1 -1
- package/dist/webcomponents/{p-fe33151d.entry.js → p-eccf2e8e.entry.js} +1 -1
- package/dist/webcomponents/p-edab484a.entry.js +1 -0
- package/dist/webcomponents/p-f5b5e47b.js +1 -0
- package/dist/webcomponents/{p-d23e1960.entry.js → p-f844d67b.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +4 -2
- package/dist/collection/components/business-forms/utils/payload-parsers.js +0 -41
- package/dist/globals.d.ts +0 -2
- package/dist/module/payload-parsers.js +0 -43
- package/dist/types/components/business-forms/utils/payload-parsers.d.ts +0 -4
- package/dist/webcomponents/p-04a61500.entry.js +0 -1
- package/dist/webcomponents/p-0e1bc91e.js +0 -1
- package/dist/webcomponents/p-14fdc01c.entry.js +0 -1
- package/dist/webcomponents/p-17e4246f.entry.js +0 -1
- package/dist/webcomponents/p-2b79f265.entry.js +0 -1
- package/dist/webcomponents/p-30a493cd.entry.js +0 -1
- package/dist/webcomponents/p-32211b2f.entry.js +0 -1
- package/dist/webcomponents/p-3352353a.entry.js +0 -1
- package/dist/webcomponents/p-3c6a8a36.entry.js +0 -1
- package/dist/webcomponents/p-47d79529.js +0 -1
- package/dist/webcomponents/p-72d42a01.entry.js +0 -1
- package/dist/webcomponents/p-77cf6f75.entry.js +0 -1
- package/dist/webcomponents/p-7c0002c6.js +0 -1
- package/dist/webcomponents/p-85960c15.entry.js +0 -1
- package/dist/webcomponents/p-85fc69e5.js +0 -1
- package/dist/webcomponents/p-8a038cd9.js +0 -1
- package/dist/webcomponents/p-8e7d4df4.entry.js +0 -1
- package/dist/webcomponents/p-af244664.js +0 -1
- package/dist/webcomponents/p-b29f5084.entry.js +0 -1
- package/dist/webcomponents/p-b4b8b531.js +0 -1
- package/dist/webcomponents/p-ba5fae28.js +0 -1
- package/dist/webcomponents/p-bd2ecd23.entry.js +0 -1
- package/dist/webcomponents/p-c8c3a97d.entry.js +0 -1
- package/dist/webcomponents/p-cd37a87e.entry.js +0 -1
- package/dist/webcomponents/p-e14c133e.entry.js +0 -1
- package/dist/webcomponents/p-e789152a.entry.js +0 -1
- package/dist/webcomponents/p-ecdf60f6.entry.js +0 -1
- package/dist/webcomponents/p-f117d1d1.entry.js +0 -1
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
|
-
import {
|
|
2
|
+
import { c as config } from './config-476c7241.js';
|
|
3
|
+
import { A as Api } from './Api-c8abc2e0.js';
|
|
3
4
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
4
5
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
5
6
|
import { E as ErrorState } from './utils-01413a95.js';
|
|
6
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
7
|
-
import './package-
|
|
7
|
+
import { J as JustifiAnalytics } from './Analytics-3e74964a.js';
|
|
8
|
+
import './package-925a0fdd.js';
|
|
8
9
|
|
|
9
10
|
class ReportsService {
|
|
10
11
|
async fetchGrossVolumeChartData(accountId, authToken) {
|
|
11
|
-
const api = Api({ authToken: authToken, apiOrigin:
|
|
12
|
+
const api = Api({ authToken: authToken, apiOrigin: config.proxyApiOrigin });
|
|
12
13
|
const endpoint = `account/${accountId}/reports/gross_volume`;
|
|
13
14
|
return api.get(endpoint);
|
|
14
15
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
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-476c7241.js';
|
|
2
3
|
import { a as PaymentMethodTypes } from './Payment-6bf26fe2.js';
|
|
3
|
-
import { g as snakeToCamel, f as formatCurrency } from './utils-
|
|
4
|
+
import { g as snakeToCamel, f as formatCurrency } from './utils-e66d8bca.js';
|
|
4
5
|
|
|
5
6
|
const PaymentMethodTypeLabels = {
|
|
6
7
|
bankAccount: 'New bank account',
|
|
@@ -13,7 +14,7 @@ const NewPaymentMethod = class {
|
|
|
13
14
|
this.onPaymentMethodOptionClick = () => {
|
|
14
15
|
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
15
16
|
};
|
|
16
|
-
this.iframeOrigin =
|
|
17
|
+
this.iframeOrigin = config.iframeOrigin;
|
|
17
18
|
this.authToken = undefined;
|
|
18
19
|
this.accountId = undefined;
|
|
19
20
|
this.paymentMethodOption = undefined;
|
|
@@ -73,7 +74,7 @@ const NewPaymentMethod = class {
|
|
|
73
74
|
}
|
|
74
75
|
render() {
|
|
75
76
|
var _a, _b, _c, _d;
|
|
76
|
-
return (h("div", { key: '
|
|
77
|
+
return (h("div", { key: '93c3e6d38d1e18be54006bf82cd6c8148df3518d', class: "payment-method" }, h("div", { key: '6dbb687fbd3e33a6095be7c39ec0974bcc4809b8', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '6c5be962cf5d357211c6716b53d0d8dd3fcf0bb0', 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: '796868afd192703a81d94897872dd9c0504cbc1e', 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));
|
|
77
78
|
}
|
|
78
79
|
};
|
|
79
80
|
|
|
@@ -116,7 +117,7 @@ const PaymentMethodOptions = class {
|
|
|
116
117
|
this.insuranceToggled = undefined;
|
|
117
118
|
this.authToken = undefined;
|
|
118
119
|
this.accountId = undefined;
|
|
119
|
-
this.iframeOrigin =
|
|
120
|
+
this.iframeOrigin = config.iframeOrigin;
|
|
120
121
|
this.savedPaymentMethods = [];
|
|
121
122
|
this.paymentAmount = undefined;
|
|
122
123
|
this.selectedPaymentMethodId = undefined;
|
|
@@ -162,7 +163,7 @@ const PaymentMethodOptions = class {
|
|
|
162
163
|
}
|
|
163
164
|
render() {
|
|
164
165
|
var _a;
|
|
165
|
-
return (h(Host, { key: '
|
|
166
|
+
return (h(Host, { key: '86e309b90ab00f530dd803b00e5aab511f92300f' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
|
|
166
167
|
const newCard = paymentMethodOption.id === PaymentMethodTypes.card;
|
|
167
168
|
const newBankAccount = paymentMethodOption.id === PaymentMethodTypes.bankAccount;
|
|
168
169
|
const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
|
|
@@ -203,7 +204,7 @@ const SavedPaymentMethod = class {
|
|
|
203
204
|
this.onPaymentMethodOptionClick = () => {
|
|
204
205
|
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
205
206
|
};
|
|
206
|
-
this.iframeOrigin =
|
|
207
|
+
this.iframeOrigin = config.iframeOrigin;
|
|
207
208
|
this.paymentMethodOption = undefined;
|
|
208
209
|
this.isSelected = undefined;
|
|
209
210
|
}
|
|
@@ -217,7 +218,7 @@ const SavedPaymentMethod = class {
|
|
|
217
218
|
;
|
|
218
219
|
render() {
|
|
219
220
|
var _a, _b, _c, _d, _e;
|
|
220
|
-
return (h(Fragment, { key: '
|
|
221
|
+
return (h(Fragment, { key: '9c2174123f1675d60bc48d8109821c0bc2ad7682' }, h("div", { key: '07bffce2603110d44f38ffb2f57a60f07faddb3b', class: "payment-method" }, h("div", { key: 'f489d3a05db45c2b2581bc8f0fc093afed453d91', class: "payment-method-header p-3", onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '70681612520aa621c39a017b72b25a7dd3211282', 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: 'a58e14ae9d199b0e0eb01b4c0a4a8bd9c8fec41d', 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 :
|
|
221
222
|
_e.acct_last_four)))));
|
|
222
223
|
}
|
|
223
224
|
};
|
|
@@ -262,7 +263,7 @@ const SezzlePaymentMethod = class {
|
|
|
262
263
|
this.sezzleCheckout = checkout;
|
|
263
264
|
this.installmentPlan = this.sezzleCheckout.getInstallmentPlan(amount);
|
|
264
265
|
};
|
|
265
|
-
this.iframeOrigin =
|
|
266
|
+
this.iframeOrigin = config.iframeOrigin;
|
|
266
267
|
this.bnpl = undefined;
|
|
267
268
|
this.clientId = undefined;
|
|
268
269
|
this.accountId = undefined;
|
|
@@ -288,7 +289,7 @@ const SezzlePaymentMethod = class {
|
|
|
288
289
|
}
|
|
289
290
|
render() {
|
|
290
291
|
var _a, _b, _c, _d, _e;
|
|
291
|
-
return (h("div", { key: '
|
|
292
|
+
return (h("div", { key: '4deca512311cd98d358c7099141b15538857a4e5', class: "payment-method" }, h("script", { key: '94b232291153bba85efebb101e7e6e816857da96', src: "https://checkout-sdk.sezzle.com/checkout.min.js", async: true, ref: (el) => (this.scriptRef = el) }), h("div", { key: '7cd9052ae6613fe7f187f3a51b7d6ac7087fdeb1', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '1e15e6c2ddced23b049e2559da27532f9be94fb5', 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: '0a3637002ef373c05424d6769b070d9db0e66ce8', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, h("div", { key: '6398e2f00088edf8a1a3699e149760744dda4cb1' }, "Buy now, pay later with ", sezzleLogo), this.installmentPlan && (h("small", { key: 'bfd33da875aa5e9f5b649ac8fc7aa5758393b6e8' }, h("span", { key: 'c07fd5d32fe897a45a67140e2cb81b1f4d537c4a' }, (_d = this.installmentPlan) === null || _d === void 0 ? void 0 : _d.installments.length), "\u00A0", h("span", { key: '2b11e4aa6389a4b98cd003c031aed8f01ec8a4df' }, this.installmentPlan.schedule, " payments of"), "\u00A0", h("span", { key: '90cf3bfa1f0d36c8d4719f164d436407d7fc692b', class: "fw-bold" }, formatCurrency((_e = this.installmentPlan) === null || _e === void 0 ? void 0 : _e.installments[0].amountInCents))))))));
|
|
292
293
|
}
|
|
293
294
|
};
|
|
294
295
|
|
|
@@ -1,20 +1,21 @@
|
|
|
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-6f139c2b.js';
|
|
4
4
|
import { F as FormController } from './index.esm-fc4f5c0c.js';
|
|
5
|
-
import { O as Owner } from './Business-
|
|
5
|
+
import { O as Owner } from './Business-b73d5055.js';
|
|
6
6
|
import { a as BusinessFormClickActions } from './business-form-types-1bc5fe08.js';
|
|
7
|
-
import {
|
|
7
|
+
import { i as identitySchema } from './business-identity-schema-9e3269fb.js';
|
|
8
8
|
import { B as Button } from './button-34e75e0f.js';
|
|
9
9
|
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 './
|
|
13
|
+
import './config-476c7241.js';
|
|
14
|
+
import './Api-c8abc2e0.js';
|
|
14
15
|
import './helpers-96ea3464.js';
|
|
15
16
|
import './state-options-a356fb11.js';
|
|
16
|
-
import './schema-validations-
|
|
17
|
-
import './business-form-options-
|
|
17
|
+
import './schema-validations-e725d701.js';
|
|
18
|
+
import './business-form-options-d790973e.js';
|
|
18
19
|
|
|
19
20
|
const BusinessOwnerForm = class {
|
|
20
21
|
constructor(hostRef) {
|
|
@@ -196,12 +197,12 @@ const BusinessOwnerFormCore = class {
|
|
|
196
197
|
}
|
|
197
198
|
}
|
|
198
199
|
get payload() {
|
|
199
|
-
let formValues =
|
|
200
|
+
let formValues = new Owner(this.formController.values.getValue()).payload;
|
|
200
201
|
if (this.ownerId) {
|
|
201
|
-
return
|
|
202
|
+
return formValues;
|
|
202
203
|
}
|
|
203
204
|
else {
|
|
204
|
-
return
|
|
205
|
+
return Object.assign(Object.assign({}, formValues), { business_id: this.businessId });
|
|
205
206
|
}
|
|
206
207
|
}
|
|
207
208
|
get formTitle() {
|
|
@@ -232,7 +233,7 @@ const BusinessOwnerFormCore = class {
|
|
|
232
233
|
this.formController.errors.subscribe(errors => (this.errors = Object.assign({}, errors)));
|
|
233
234
|
}
|
|
234
235
|
render() {
|
|
235
|
-
return (h("form", { key: '
|
|
236
|
+
return (h("form", { key: '27f0d989f017bd03b84cf8c994fa96f9a65aad08', onSubmit: this.validateAndSubmit }, h("fieldset", { key: '2c793f1f8777181e5db0a4cae5b9994d9188685e' }, h("legend", { key: 'a8951fcd990c8136cf6672424869f5c96def3cef', class: "fw-semibold fs-5" }, this.formTitle), h("br", { key: 'faaf0cc27c448452a5172ad7fcfcf510ec586d2b' }), h("div", { key: '486638ad24414a05f84ada3f37a89d0cc12e7ffb', class: "row gy-3" }, h("owner-form-inputs", { key: 'bdfe7cb3305f31d93321319ef14eee3e5b331381', ownerDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }), h("div", { key: '9e5c63e0637e0bffe5ab77a1f73c203704115479', class: "d-flex gap-2 justify-content-start" }, h(Button, { key: '85de4b69c697ebf96778f538b1535bd1fb2c43e7', variant: "secondary", type: "button", onClick: this.handleRemoveOwner, hidden: !this.showRemoveButton }, "Remove"), h(Button, { key: '1dd026432f19f84ae2142101191e511ebd62c2b3', variant: "primary", type: "submit", onClick: this.handleAddOwner, disabled: this.isLoading }, this.submitButtonText))), h("hr", { key: '2570611bbe663e2e128f03806ecb036ce750c80b' }))));
|
|
236
237
|
}
|
|
237
238
|
static get watchers() { return {
|
|
238
239
|
"isLoading": ["loadingWatcher"]
|
|
@@ -1,14 +1,15 @@
|
|
|
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-e4fb5953.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-
|
|
10
|
-
import './Api-
|
|
11
|
-
import './
|
|
9
|
+
import { J as JustifiAnalytics } from './Analytics-3e74964a.js';
|
|
10
|
+
import './Api-c8abc2e0.js';
|
|
11
|
+
import './config-476c7241.js';
|
|
12
|
+
import './package-925a0fdd.js';
|
|
12
13
|
|
|
13
14
|
const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
14
15
|
var _a;
|
|
@@ -2,14 +2,15 @@ import { r as registerInstance, c as createEvent, h } from './index-57431c24.js'
|
|
|
2
2
|
import './Pagination-afc8f96d.js';
|
|
3
3
|
import { a as PaymentMethodTypes } from './Payment-6bf26fe2.js';
|
|
4
4
|
import './Payout-dfe15b00.js';
|
|
5
|
-
import { l as loadFontsOnParent } from './utils-
|
|
5
|
+
import { l as loadFontsOnParent } from './utils-e66d8bca.js';
|
|
6
|
+
import { c as config } from './config-476c7241.js';
|
|
6
7
|
import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
|
|
7
8
|
import { g as getErrorMessage } from './utils-b10dae27.js';
|
|
8
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
9
|
+
import { J as JustifiAnalytics } from './Analytics-3e74964a.js';
|
|
9
10
|
import { B as Button } from './button-34e75e0f.js';
|
|
10
11
|
import { S as StyledHost } from './styled-host-ab9da520.js';
|
|
11
|
-
import './package-
|
|
12
|
-
import './Api-
|
|
12
|
+
import './package-925a0fdd.js';
|
|
13
|
+
import './Api-c8abc2e0.js';
|
|
13
14
|
|
|
14
15
|
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)}";
|
|
15
16
|
const JustifiPaymentFormStyle0 = paymentFormCss;
|
|
@@ -117,15 +118,15 @@ const PaymentForm = class {
|
|
|
117
118
|
}
|
|
118
119
|
}
|
|
119
120
|
render() {
|
|
120
|
-
return (h(StyledHost, { key: '
|
|
121
|
+
return (h(StyledHost, { key: '38bd6cca38d9068fa9277a8568a98f261a4cc616' }, h("form", { key: 'fec19f5e2f11934e6783124c4c437a2d3947f596', class: "row gy-3" }, this.showPaymentMethodTypeSelector() && (h("div", { key: '18001f78e03336d01de8473a57e3e228e9fce201', class: "col-12" }, h("justifi-payment-method-selector", { key: '260ac1ade3ccfe6baf518eb856bdf4d380025620', selectedPaymentMethodType: this.getSelectedPaymentMethodType(), onPaymentMethodSelected: event => this.paymentMethodSelectedHandler(event) }))), h("div", { key: 'f6ade2336314e05f2bdce75df8577939efe33e3b', class: "col-12" }, h("justifi-payment-method-form", { key: 'ad8e5b121b8425175f7ac7f38ab24dfba1801a28', "payment-method-form-type": this.getSelectedPaymentMethodType(), iframeOrigin: config.iframeOrigin, ref: el => {
|
|
121
122
|
if (el) {
|
|
122
123
|
this.paymentMethodFormRef = el;
|
|
123
124
|
}
|
|
124
|
-
} })), h("div", { key: '
|
|
125
|
+
} })), h("div", { key: '29f15f1cece3e07a569e514d08bf9996405699c6', class: "col-12" }, h("justifi-billing-form", { key: '9928924cc29bfa5c5e46ada294cb26da0c1d222b', legend: "Billing Info", ref: el => {
|
|
125
126
|
if (el) {
|
|
126
127
|
this.billingFormRef = el;
|
|
127
128
|
}
|
|
128
|
-
} })), h("slot", { key: '
|
|
129
|
+
} })), h("slot", { key: 'c36583ab34bc105b506df27aec02898455855cec', name: 'insurance' }), h("div", { key: 'cc38292ae8a59bc6f4624a8535e8b7c93e6f3a35', class: "col-12" }, h(Button, { key: 'e5fe0f50ee2322ab2a199a6229015c9daa198cc0', 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')))));
|
|
129
130
|
}
|
|
130
131
|
};
|
|
131
132
|
PaymentForm.style = JustifiPaymentFormStyle0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-57431c24.js';
|
|
2
|
-
import { p as packageJson } from './package-
|
|
3
|
-
import {
|
|
2
|
+
import { p as packageJson } from './package-925a0fdd.js';
|
|
3
|
+
import { k as composeQueryParams } from './utils-e66d8bca.js';
|
|
4
4
|
|
|
5
5
|
var iframeResizer = {exports: {}};
|
|
6
6
|
|
|
@@ -1,10 +1,11 @@
|
|
|
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-3e74964a.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 {
|
|
7
|
-
import './
|
|
5
|
+
import { B as BusinessService } from './business.service-6f139c2b.js';
|
|
6
|
+
import { c as config } from './config-476c7241.js';
|
|
7
|
+
import { A as Api } from './Api-c8abc2e0.js';
|
|
8
|
+
import './package-925a0fdd.js';
|
|
8
9
|
import './utils-b10dae27.js';
|
|
9
10
|
|
|
10
11
|
class ProvisionService {
|
|
@@ -12,9 +13,9 @@ class ProvisionService {
|
|
|
12
13
|
const endpoint = `entities/provisioning`;
|
|
13
14
|
const payload = {
|
|
14
15
|
business_id: businessId,
|
|
15
|
-
product_category: product
|
|
16
|
+
product_category: product
|
|
16
17
|
};
|
|
17
|
-
return Api({ authToken, apiOrigin:
|
|
18
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, payload);
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
21
|
|
|
@@ -1,14 +1,15 @@
|
|
|
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-e4fb5953.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-
|
|
10
|
-
import './Api-
|
|
11
|
-
import './
|
|
9
|
+
import { J as JustifiAnalytics } from './Analytics-3e74964a.js';
|
|
10
|
+
import './Api-c8abc2e0.js';
|
|
11
|
+
import './config-476c7241.js';
|
|
12
|
+
import './package-925a0fdd.js';
|
|
12
13
|
|
|
13
14
|
const makeGetPayments = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
|
|
14
15
|
var _a, _b;
|
|
@@ -1,14 +1,15 @@
|
|
|
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-383d96c1.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-
|
|
10
|
-
import './Api-
|
|
11
|
-
import './
|
|
9
|
+
import { J as JustifiAnalytics } from './Analytics-3e74964a.js';
|
|
10
|
+
import './Api-c8abc2e0.js';
|
|
11
|
+
import './config-476c7241.js';
|
|
12
|
+
import './package-925a0fdd.js';
|
|
12
13
|
|
|
13
14
|
const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
14
15
|
var _a;
|
|
@@ -1,15 +1,16 @@
|
|
|
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-383d96c1.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-
|
|
11
|
-
import './Api-
|
|
12
|
-
import './
|
|
10
|
+
import { J as JustifiAnalytics } from './Analytics-3e74964a.js';
|
|
11
|
+
import './Api-c8abc2e0.js';
|
|
12
|
+
import './config-476c7241.js';
|
|
13
|
+
import './package-925a0fdd.js';
|
|
13
14
|
|
|
14
15
|
const makeGetPayouts = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
|
|
15
16
|
var _a, _b;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
2
|
import { c as create$3, d as create$5, F as FormController } from './index.esm-fc4f5c0c.js';
|
|
3
|
-
import { A as Api } from './Api-
|
|
3
|
+
import { A as Api } from './Api-c8abc2e0.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-476c7241.js';
|
|
7
8
|
import { C as CURRENCY_MASK } from './form-input-masks-0e18300f.js';
|
|
8
9
|
import { S as StyledHost } from './styled-host-ab9da520.js';
|
|
9
10
|
|
|
@@ -89,11 +90,11 @@ const RefundForm = class {
|
|
|
89
90
|
if (!this.authToken) {
|
|
90
91
|
console.warn('Warning: Missing auth-token.');
|
|
91
92
|
}
|
|
92
|
-
this.api = Api({ authToken: this.authToken, apiOrigin:
|
|
93
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
|
|
93
94
|
}
|
|
94
95
|
render() {
|
|
95
96
|
var _a;
|
|
96
|
-
return (h(StyledHost, { key: '
|
|
97
|
+
return (h(StyledHost, { key: 'd0d0962eaecab749aa1eb124e86701a2fb4dfd53' }, h("h1", { key: 'cb3071d89c291b1664e551fcf2808a64569ba5eb' }, "Refund"), this.refundInfoText && (h("div", { key: '01a6f4567f882d2eec492ef6d98db7d04747ecb4', class: "d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3", role: "alert" }, h("img", { key: '8ae5928aaf8ead35a7ad180a01bdde05ebec3d5f', src: "/info-icon.svg", alt: "Information", height: "30", width: "30" }), h("p", { key: '425a7dfe9d8b886b55fd0878f3989373733c1758', class: "m-0", innerHTML: this.refundInfoText }))), h("form", { key: '5516d2ac500611d2410b9b4c2a4d0d15e417b2d1', onSubmit: e => this.handleSubmit(e), class: "d-grid gap-4" }, h("div", { key: 'b67a7c56f070a5a25d91aa0cc77755b27d420fdc', class: "form-group" }, h("form-control-monetary", { key: '76b6cfdf2b39674434f4d880333dd5d5f603f0b6', 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: '5e581cdea69d2ce9dbad774214cd904923d199b3', class: "form-group" }, h("form-control-text", { key: '926ae888676a4089d3381bd4d650e6f84f6e206a', name: "notes", label: "Additional Notes", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.notes })), this.withButton && (h("div", { key: 'de5df506b7b64a69a16241f117bf9bea4fd79b57', class: "form-group d-flex flex-row-reverse" }, h("button", { key: '92ad4d43677587c2c20dc03c6f03a6cf1f20ac12', type: "submit", disabled: !!this.isSubmitting, class: "btn btn-primary ml-auto" }, this.submitButtonText))))));
|
|
97
98
|
}
|
|
98
99
|
};
|
|
99
100
|
RefundForm.style = JustifiRefundFormStyle0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
|
-
import { f as formatCurrency } from './utils-
|
|
2
|
+
import { f as formatCurrency } from './utils-e66d8bca.js';
|
|
3
3
|
import { v as validateInsuranceValues, a as insuranceValues, b as insuranceErrors } from './insurance-state-8ce01e59.js';
|
|
4
4
|
import { S as StyledHost } from './styled-host-ab9da520.js';
|
|
5
5
|
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
|
-
import { A as Api } from './Api-
|
|
2
|
+
import { A as Api } from './Api-c8abc2e0.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-476c7241.js';
|
|
6
7
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
7
8
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
8
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
9
|
-
import './package-
|
|
9
|
+
import { J as JustifiAnalytics } from './Analytics-3e74964a.js';
|
|
10
|
+
import './package-925a0fdd.js';
|
|
10
11
|
|
|
11
12
|
class InsuranceService {
|
|
12
13
|
async fetchQuote(authToken, payload) {
|
|
13
14
|
const endpoint = 'insurance/quotes';
|
|
14
|
-
return Api({ authToken, apiOrigin:
|
|
15
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, payload);
|
|
15
16
|
}
|
|
16
17
|
async toggleCoverage(authToken, quoteId, payload) {
|
|
17
18
|
const endpoint = `insurance/quotes/${quoteId}/toggle`;
|
|
18
|
-
return Api({ authToken, apiOrigin:
|
|
19
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, payload);
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const name = "@justifi/webcomponents";
|
|
2
|
-
const version = "4.19.2
|
|
2
|
+
const version = "4.19.2";
|
|
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,6 +24,7 @@ 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",
|
|
27
28
|
"test:file": "stencil test --spec --watch --"
|
|
28
29
|
};
|
|
29
30
|
const dependencies = {
|
|
@@ -44,15 +45,16 @@ const devDependencies = {
|
|
|
44
45
|
"@babel/preset-env": "^7.21.5",
|
|
45
46
|
"@babel/preset-react": "^7.18.6",
|
|
46
47
|
"@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",
|
|
50
51
|
"@types/react": "^18.0.37",
|
|
51
52
|
"@types/react-dom": "^18.0.11",
|
|
52
53
|
dotenv: "^16.3.1",
|
|
53
54
|
jest: "^29.7.0",
|
|
54
55
|
"jest-cli": "^29.7.0",
|
|
55
56
|
"jest-environment-node": "^29.7.0",
|
|
57
|
+
puppeteer: "^21.0.0",
|
|
56
58
|
"ts-jest": "^29.1.2"
|
|
57
59
|
};
|
|
58
60
|
const license = "MIT";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
|
-
import { M as MapPaymentStatusToBadge, f as formatCurrency, b as formatDate, c as formatTime, s as snakeCaseToHumanReadable } from './utils-
|
|
2
|
+
import { M as MapPaymentStatusToBadge, f as formatCurrency, b as formatDate, c as formatTime, s as snakeCaseToHumanReadable } from './utils-e66d8bca.js';
|
|
3
3
|
import { a as EntityHeadInfo, b as EntityHeadInfoItem, D as DetailSectionTitle, c as DetailItem, C as CodeBlock, E as ErrorState, L as LoadingState } from './utils-01413a95.js';
|
|
4
4
|
import { S as StyledHost } from './styled-host-ab9da520.js';
|
|
5
5
|
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { A as Api } from './Api-
|
|
1
|
+
import { A as Api } from './Api-c8abc2e0.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-476c7241.js';
|
|
5
6
|
|
|
6
7
|
class PaymentService {
|
|
7
8
|
async fetchPayments(accountId, authToken, params) {
|
|
8
|
-
const api = Api({ authToken, apiOrigin:
|
|
9
|
+
const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
|
|
9
10
|
const endpoint = `account/${accountId}/payments`;
|
|
10
11
|
return api.get(endpoint, params);
|
|
11
12
|
}
|
|
12
13
|
async fetchPayment(paymentId, authToken) {
|
|
13
14
|
const endpoint = `payments/${paymentId}`;
|
|
14
|
-
return Api({ authToken, apiOrigin:
|
|
15
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
18
|
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h } from './index-57431c24.js'
|
|
|
2
2
|
import { p as pagingDefaults } from './Pagination-afc8f96d.js';
|
|
3
3
|
import './Payment-6bf26fe2.js';
|
|
4
4
|
import './Payout-dfe15b00.js';
|
|
5
|
-
import { b as formatDate, c as formatTime, f as formatCurrency, M as MapPaymentStatusToBadge } from './utils-
|
|
5
|
+
import { b as formatDate, c as formatTime, f as formatCurrency, M as MapPaymentStatusToBadge } from './utils-e66d8bca.js';
|
|
6
6
|
import { t as tableExportedParts } from './exported-parts-abd4c027.js';
|
|
7
7
|
import { S as StyledHost } from './styled-host-ab9da520.js';
|
|
8
8
|
import { T as TableLoadingState, a as TableEmptyState, b as TableErrorState } from './table-loading-state-356c7215.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
|
-
import { d as MapPayoutStatusToBadge, f as formatCurrency, b as formatDate, c as formatTime } from './utils-
|
|
2
|
+
import { d as MapPayoutStatusToBadge, f as formatCurrency, b as formatDate, c as formatTime } from './utils-e66d8bca.js';
|
|
3
3
|
import { a as EntityHeadInfo, b as EntityHeadInfoItem, D as DetailSectionTitle, c as DetailItem, C as CodeBlock, E as ErrorState, L as LoadingState } from './utils-01413a95.js';
|
|
4
4
|
import { S as StyledHost } from './styled-host-ab9da520.js';
|
|
5
5
|
|
|
@@ -2,7 +2,7 @@ import { h, r as registerInstance, c as createEvent } from './index-57431c24.js'
|
|
|
2
2
|
import { p as pagingDefaults } from './Pagination-afc8f96d.js';
|
|
3
3
|
import './Payment-6bf26fe2.js';
|
|
4
4
|
import { a as PayoutStatuses, b as PayoutStatusesSafeNames } from './Payout-dfe15b00.js';
|
|
5
|
-
import { b as formatDate, c as formatTime, f as formatCurrency } from './utils-
|
|
5
|
+
import { b as formatDate, c as formatTime, f as formatCurrency } from './utils-e66d8bca.js';
|
|
6
6
|
import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
|
|
7
7
|
import { t as tableExportedParts } from './exported-parts-abd4c027.js';
|
|
8
8
|
import { S as StyledHost } from './styled-host-ab9da520.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as create$6, b as create$8 } from './index.esm-fc4f5c0c.js';
|
|
2
2
|
import { S as StateOptions } from './state-options-a356fb11.js';
|
|
3
|
-
import { b as businessClassificationOptions, a as businessServiceReceivedOptions, r as recurringPaymentsOptions, s as seasonalBusinessOptions, c as bankAccountTypeOptions } from './business-form-options-
|
|
3
|
+
import { b as businessClassificationOptions, a as businessServiceReceivedOptions, r as recurringPaymentsOptions, s as seasonalBusinessOptions, c as bankAccountTypeOptions } from './business-form-options-d790973e.js';
|
|
4
4
|
|
|
5
5
|
const transformEmptyString = (value) => {
|
|
6
6
|
return value === '' ? null : value;
|
|
@@ -298,4 +298,4 @@ const profitAndLossStatementValidation = (volume, documents, allowOptionalFields
|
|
|
298
298
|
}
|
|
299
299
|
};
|
|
300
300
|
|
|
301
|
-
export { nicknameValidation as A, accountTypeValidation as B, accountNumberValidation as C, routingNumberValidation as D, voidedCheckValidation as E, governmentIdValidation as F, ss4Validation as G, otherDocumentValidation as H, balanceSheetValidation as I, bankStatementValidation as J, profitAndLossStatementValidation as K, EntityDocument as L, EntityDocumentStorage as M, EntityDocumentType as N,
|
|
301
|
+
export { nicknameValidation as A, accountTypeValidation as B, accountNumberValidation as C, routingNumberValidation as D, voidedCheckValidation as E, governmentIdValidation as F, ss4Validation as G, otherDocumentValidation as H, balanceSheetValidation as I, bankStatementValidation as J, profitAndLossStatementValidation as K, EntityDocument as L, EntityDocumentStorage as M, EntityDocumentType as N, businessClassificationValidation as a, businessNameValidation as b, dateOfIncorporationValidation as c, doingBusinessAsValidation as d, emailValidation as e, paymentVolumeValidation as f, whenServiceReceivedValidation as g, recurringPaymentsValidation as h, industryValidation as i, recurringPaymentsPercentageValidation as j, lineTwoValidation as k, lineOneValidation as l, cityValidation as m, stateValidation as n, otherPaymentDetailsValidation as o, phoneValidation as p, postalValidation as q, revenueValidation as r, seasonalBusinessValidation as s, taxIdValidation as t, identityNameValidation as u, identityTitleValidation as v, websiteUrlValidation as w, dobValidation as x, ssnValidation as y, bankNameValidation as z };
|
|
@@ -3971,21 +3971,6 @@ function snakeToCamel(str) {
|
|
|
3971
3971
|
return '';
|
|
3972
3972
|
return str.replace(/([-_][a-z])/g, (group) => group.toUpperCase().replace('-', '').replace('_', ''));
|
|
3973
3973
|
}
|
|
3974
|
-
function flattenNestedObject(obj) {
|
|
3975
|
-
const result = {};
|
|
3976
|
-
for (const key in obj) {
|
|
3977
|
-
if (typeof obj[key] === 'object' && obj[key] !== null) {
|
|
3978
|
-
const nestedObj = flattenNestedObject(obj[key]);
|
|
3979
|
-
for (const nestedKey in nestedObj) {
|
|
3980
|
-
result[nestedKey] = nestedObj[nestedKey];
|
|
3981
|
-
}
|
|
3982
|
-
}
|
|
3983
|
-
else {
|
|
3984
|
-
result[key] = obj[key];
|
|
3985
|
-
}
|
|
3986
|
-
}
|
|
3987
|
-
return result;
|
|
3988
|
-
}
|
|
3989
3974
|
function composeQueryParams(values) {
|
|
3990
3975
|
const queryParams = values.map((value) => {
|
|
3991
3976
|
if (value === values[0]) {
|
|
@@ -4024,4 +4009,4 @@ const isInRange = (num, min, max) => {
|
|
|
4024
4009
|
return num >= min && num <= max;
|
|
4025
4010
|
};
|
|
4026
4011
|
|
|
4027
|
-
export { MapPaymentStatusToBadge as M, formatDisplayDate as a, formatDate as b, formatTime as c, MapPayoutStatusToBadge as d, formatMediumDate as e, formatCurrency as f, snakeToCamel as g,
|
|
4012
|
+
export { MapPaymentStatusToBadge as M, formatDisplayDate as a, formatDate as b, formatTime as c, MapPayoutStatusToBadge as d, formatMediumDate as e, formatCurrency as f, snakeToCamel as g, isInRange as h, isEmptyObject as i, formatTimeSeconds as j, composeQueryParams as k, loadFontsOnParent as l, snakeCaseToHumanReadable as s };
|
package/dist/module/Analytics.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { p as packageJson } from './package.js';
|
|
2
|
+
import { c as config } from './config.js';
|
|
2
3
|
import { A as Api } from './Api.js';
|
|
3
4
|
|
|
4
5
|
class AnalyticsService {
|
|
5
6
|
async record(body) {
|
|
6
7
|
const endpoint = 'analytics';
|
|
7
|
-
return Api({ apiOrigin:
|
|
8
|
+
return Api({ apiOrigin: config.proxyApiOrigin }).post(endpoint, body);
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
11
|
|
package/dist/module/Api.js
CHANGED
|
@@ -94,13 +94,13 @@ const Api = ({ authToken, apiOrigin }) => {
|
|
|
94
94
|
return makeRequest(endpoint, 'GET', params, null, signal);
|
|
95
95
|
}
|
|
96
96
|
async function post(endpoint, body, params, signal) {
|
|
97
|
-
return makeRequest(endpoint, 'POST', params, body, signal);
|
|
97
|
+
return makeRequest(endpoint, 'POST', params, JSON.stringify(body), signal);
|
|
98
98
|
}
|
|
99
99
|
async function put(endpoint, body, params, signal) {
|
|
100
|
-
return makeRequest(endpoint, 'PUT', params, body, signal);
|
|
100
|
+
return makeRequest(endpoint, 'PUT', params, JSON.stringify(body), signal);
|
|
101
101
|
}
|
|
102
102
|
async function patch(endpoint, body, params, signal) {
|
|
103
|
-
return makeRequest(endpoint, 'PATCH', params, body, signal);
|
|
103
|
+
return makeRequest(endpoint, 'PATCH', params, JSON.stringify(body), signal);
|
|
104
104
|
}
|
|
105
105
|
async function destroy(endpoint, params, signal) {
|
|
106
106
|
return makeRequest(endpoint, 'DELETE', params, null, signal);
|