@justifi/webcomponents 4.19.1-rc-6 → 4.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Analytics-54b8e890.js → Analytics-f870b3ee.js} +3 -2
- package/dist/cjs/{business-additional-questions-schema-cf545610.js → business-additional-questions-schema-11ce0005.js} +1 -1
- package/dist/cjs/{business-form-options-582467fe.js → business-form-options-26f9900c.js} +1 -1
- package/dist/cjs/{business.service-6bb7ac82.js → business.service-f63650f5.js} +6 -5
- package/dist/cjs/config-ff2dda66.js +15 -0
- package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
- package/dist/cjs/form-control-checkbox_9.cjs.entry.js +4 -4
- package/dist/cjs/{get-payout-csv-1391ff3e.js → get-payout-csv-f3aee6d0.js} +4 -3
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +10 -9
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +5 -4
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-details.cjs.entry.js +4 -3
- package/dist/cjs/justifi-business-form.cjs.entry.js +9 -8
- package/dist/cjs/justifi-card-form.cjs.entry.js +5 -4
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkout.cjs.entry.js +5 -4
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -3
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +9 -11
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +5 -4
- package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -3
- package/dist/cjs/justifi-payment-form.cjs.entry.js +6 -5
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +6 -5
- package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -3
- package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +4 -3
- package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -4
- package/dist/cjs/{package-b75f8267.js → package-1321b070.js} +4 -2
- package/dist/cjs/{payload-parsers-1cbc3b57.js → payload-parsers-969ab9b6.js} +1 -1
- package/dist/cjs/{payment.service-dfcfa19b.js → payment.service-0a64f9cd.js} +3 -2
- package/dist/cjs/{schema-validations-2733de42.js → schema-validations-f3db892c.js} +1 -1
- 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 +3 -2
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +3 -2
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +3 -2
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +3 -2
- 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 -4
- package/dist/collection/components/checkout/new-payment-method.js +4 -6
- 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 +8 -8
- package/dist/esm/{Analytics-25ef1b60.js → Analytics-262cdde5.js} +3 -2
- package/dist/esm/{business-additional-questions-schema-956e3caf.js → business-additional-questions-schema-e39bc781.js} +1 -1
- package/dist/esm/{business-form-options-7a9a74fc.js → business-form-options-0b08e08c.js} +1 -1
- package/dist/esm/{business.service-f45decfc.js → business.service-74bd1212.js} +6 -5
- package/dist/esm/config-476c7241.js +13 -0
- package/dist/esm/form-alert_5.entry.js +1 -1
- package/dist/esm/form-control-checkbox_9.entry.js +4 -4
- package/dist/esm/{get-payout-csv-e784a2ab.js → get-payout-csv-b494abfe.js} +4 -3
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +10 -9
- package/dist/esm/justifi-bank-account-form.entry.js +5 -4
- package/dist/esm/justifi-billing-form_2.entry.js +2 -2
- package/dist/esm/justifi-business-details.entry.js +4 -3
- package/dist/esm/justifi-business-form.entry.js +9 -8
- package/dist/esm/justifi-card-form.entry.js +5 -4
- package/dist/esm/justifi-checkout-core.entry.js +3 -3
- package/dist/esm/justifi-checkout.entry.js +5 -4
- package/dist/esm/justifi-gross-payment-chart.entry.js +4 -3
- package/dist/esm/justifi-new-payment-method_4.entry.js +9 -11
- package/dist/esm/justifi-owner-form_3.entry.js +5 -4
- package/dist/esm/justifi-payment-details.entry.js +4 -3
- package/dist/esm/justifi-payment-form.entry.js +6 -5
- package/dist/esm/justifi-payment-method-form.entry.js +1 -1
- package/dist/esm/justifi-payment-provisioning.entry.js +6 -5
- package/dist/esm/justifi-payments-list.entry.js +4 -3
- package/dist/esm/justifi-payout-details.entry.js +4 -3
- package/dist/esm/justifi-payouts-list.entry.js +4 -3
- package/dist/esm/justifi-refund-form.entry.js +3 -2
- package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -4
- package/dist/esm/{package-478b028a.js → package-d88677e9.js} +4 -2
- package/dist/esm/{payload-parsers-acb719d1.js → payload-parsers-62f443e1.js} +1 -1
- package/dist/esm/{payment.service-dad5153b.js → payment.service-3ca4a492.js} +3 -2
- package/dist/esm/{schema-validations-a83ff220.js → schema-validations-2f4fdebb.js} +1 -1
- package/dist/module/Analytics.js +2 -1
- package/dist/module/business-bank-account-form-step.js +3 -2
- package/dist/module/business-document-upload-form-step.js +3 -2
- package/dist/module/business-form-options.js +1 -1
- package/dist/module/business-terms-conditions-form-step.js +3 -2
- package/dist/module/business.service.js +6 -5
- package/dist/module/checkout-core.js +3 -3
- 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 +3 -2
- 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/new-payment-method.js +3 -5
- package/dist/module/package.js +4 -2
- package/dist/module/payment-method-options.js +3 -2
- package/dist/module/payment.service.js +3 -2
- package/dist/module/saved-payment-method.js +3 -2
- package/dist/module/sezzle-payment-method.js +3 -2
- package/dist/types/components/checkout/new-payment-method.d.ts +0 -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/index.esm.js +0 -1
- package/dist/webcomponents/p-04a0dbb6.js +1 -0
- package/dist/webcomponents/p-061dcb79.entry.js +1 -0
- package/dist/webcomponents/p-07109641.entry.js +1 -0
- package/dist/webcomponents/p-08b0fb31.js +1 -41
- package/dist/webcomponents/p-0f7b9555.entry.js +1 -0
- package/dist/webcomponents/p-14c91ffd.js +1 -20
- package/dist/webcomponents/p-198994c0.entry.js +1 -0
- package/dist/webcomponents/p-1a43e355.entry.js +19 -0
- package/dist/webcomponents/p-1ad5995e.js +1 -3599
- package/dist/webcomponents/p-1f70fa27.entry.js +1 -0
- package/dist/webcomponents/p-1ff8810b.js +1 -29
- package/dist/webcomponents/p-2338affa.js +1 -213
- package/dist/webcomponents/p-241b0ed9.js +1 -0
- package/dist/webcomponents/p-2799383d.entry.js +1 -0
- package/dist/webcomponents/p-29c0b182.js +1 -114
- package/dist/webcomponents/p-2b6c9c4f.js +1 -7
- package/dist/webcomponents/p-2eab3c90.js +1 -3052
- package/dist/webcomponents/p-3affadfc.entry.js +1 -0
- package/dist/webcomponents/p-3d4d566d.entry.js +1 -0
- package/dist/webcomponents/p-3dd4c6c3.entry.js +1 -0
- package/dist/webcomponents/p-462dc522.entry.js +1 -0
- package/dist/webcomponents/p-46f679a9.js +1 -0
- package/dist/webcomponents/p-487b72a8.entry.js +1 -0
- package/dist/webcomponents/p-48ae16e0.entry.js +1 -0
- package/dist/webcomponents/p-4abc17f0.entry.js +1 -0
- package/dist/webcomponents/p-4bac636e.entry.js +1 -0
- package/dist/webcomponents/p-52021fa1.entry.js +1 -0
- package/dist/webcomponents/p-525db3e8.js +1 -22
- package/dist/webcomponents/p-53948ff8.entry.js +1 -0
- package/dist/webcomponents/p-53e64f15.entry.js +1 -0
- package/dist/webcomponents/p-554a3c18.js +1 -0
- package/dist/webcomponents/p-56f6ce4c.js +1 -10
- package/dist/webcomponents/p-5968ff8a.js +1 -178
- package/dist/webcomponents/p-6078a370.js +1 -244
- package/dist/webcomponents/p-60a370fc.entry.js +1 -0
- package/dist/webcomponents/p-62b32c4c.entry.js +1 -0
- package/dist/webcomponents/p-65b561da.entry.js +1 -0
- package/dist/webcomponents/p-72c9e6b3.entry.js +1 -0
- package/dist/webcomponents/p-75b4daef.js +1 -0
- package/dist/webcomponents/p-7d85af5c.js +1 -16
- package/dist/webcomponents/p-8115b2f4.js +1 -28
- package/dist/webcomponents/p-83125497.js +1 -4027
- package/dist/webcomponents/p-8603348a.js +1 -0
- package/dist/webcomponents/p-890b3254.entry.js +1 -0
- package/dist/webcomponents/p-8df7bde8.js +1 -27
- package/dist/webcomponents/p-92bb1e5f.entry.js +1 -0
- package/dist/webcomponents/p-9c9c7dac.js +1 -24
- package/dist/webcomponents/p-9ccfa1c9.entry.js +1 -0
- package/dist/webcomponents/p-9dc36f76.entry.js +1 -0
- package/dist/webcomponents/p-ad41c8c7.entry.js +1 -0
- package/dist/webcomponents/p-ae263544.js +1 -0
- package/dist/webcomponents/p-af244664.js +1 -126
- package/dist/webcomponents/p-b16dfd5d.entry.js +1 -0
- package/dist/webcomponents/p-ba4bae6f.js +1 -12
- package/dist/webcomponents/p-bbed6107.entry.js +1 -0
- package/dist/webcomponents/p-bc92235c.entry.js +1 -0
- package/dist/webcomponents/p-be39c802.entry.js +1 -0
- package/dist/webcomponents/p-c9f8f7ec.entry.js +1 -0
- package/dist/webcomponents/p-d101c5db.js +1 -0
- package/dist/webcomponents/p-d1c8d794.entry.js +1 -0
- package/dist/webcomponents/p-d25c2f12.js +1 -0
- package/dist/webcomponents/p-d2a5054f.entry.js +1 -0
- package/dist/webcomponents/p-d765d638.js +1 -0
- package/dist/webcomponents/p-d8355f91.entry.js +1 -0
- package/dist/webcomponents/p-d89bad72.js +1 -39
- package/dist/webcomponents/p-dce846bf.js +1 -27
- package/dist/webcomponents/p-df21aaad.js +1 -120
- package/dist/webcomponents/p-e1255160.js +1 -3
- package/dist/webcomponents/p-e2c88817.entry.js +1 -0
- package/dist/webcomponents/p-e31f0f3e.entry.js +1 -0
- package/dist/webcomponents/p-e333620e.js +1 -34
- package/dist/webcomponents/p-e3fab0e2.js +1 -43
- package/dist/webcomponents/p-f0866375.entry.js +1 -0
- package/dist/webcomponents/p-fad19d75.js +2 -1638
- package/dist/webcomponents/p-fb58feb5.entry.js +1 -0
- package/dist/webcomponents/p-fe33151d.entry.js +1 -0
- package/dist/webcomponents/webcomponents.css +4 -362
- package/dist/webcomponents/webcomponents.esm.js +1 -20
- package/package.json +4 -2
- package/dist/globals.d.ts +0 -2
- package/dist/webcomponents/p-01a404ca.entry.js +0 -44
- package/dist/webcomponents/p-03d35880.entry.js +0 -130
- package/dist/webcomponents/p-06ff0429.entry.js +0 -65
- package/dist/webcomponents/p-0e2384b5.entry.js +0 -1684
- package/dist/webcomponents/p-1bbbf15d.js +0 -79
- package/dist/webcomponents/p-20abace7.js +0 -77
- package/dist/webcomponents/p-258b1ee2.entry.js +0 -149
- package/dist/webcomponents/p-25d8cd65.entry.js +0 -102
- package/dist/webcomponents/p-3b5948ea.entry.js +0 -133
- package/dist/webcomponents/p-3c50942c.entry.js +0 -94
- package/dist/webcomponents/p-3e9ef4a8.js +0 -28
- package/dist/webcomponents/p-3fd13ca3.js +0 -52
- package/dist/webcomponents/p-40236338.entry.js +0 -80
- package/dist/webcomponents/p-5482d030.entry.js +0 -21
- package/dist/webcomponents/p-576826b1.entry.js +0 -43
- package/dist/webcomponents/p-5cb3f0b2.entry.js +0 -261
- package/dist/webcomponents/p-5f835b89.entry.js +0 -606
- package/dist/webcomponents/p-70a2aa74.entry.js +0 -76
- package/dist/webcomponents/p-73210c03.entry.js +0 -75
- package/dist/webcomponents/p-7582b554.entry.js +0 -18
- package/dist/webcomponents/p-79646550.entry.js +0 -61
- package/dist/webcomponents/p-800d31fe.entry.js +0 -162
- package/dist/webcomponents/p-8371f61c.entry.js +0 -94
- package/dist/webcomponents/p-85fc69e5.js +0 -90
- package/dist/webcomponents/p-890088fc.entry.js +0 -298
- package/dist/webcomponents/p-89887332.js +0 -301
- package/dist/webcomponents/p-8eb774df.entry.js +0 -54
- package/dist/webcomponents/p-9f94bbb6.entry.js +0 -118
- package/dist/webcomponents/p-a096bc5b.entry.js +0 -145
- package/dist/webcomponents/p-a5a225d9.entry.js +0 -125
- package/dist/webcomponents/p-a5c5821e.entry.js +0 -101
- package/dist/webcomponents/p-a5fb51dc.entry.js +0 -131
- package/dist/webcomponents/p-a64f0ebe.entry.js +0 -117
- package/dist/webcomponents/p-a6d04afc.js +0 -44
- package/dist/webcomponents/p-ac086069.entry.js +0 -58
- package/dist/webcomponents/p-b233d1e2.entry.js +0 -74
- package/dist/webcomponents/p-b82c146f.entry.js +0 -111
- package/dist/webcomponents/p-ba5fae28.js +0 -90
- package/dist/webcomponents/p-ba6661f2.entry.js +0 -73
- package/dist/webcomponents/p-c636f563.entry.js +0 -791
- package/dist/webcomponents/p-cb26f708.js +0 -18
- package/dist/webcomponents/p-d17aee2b.entry.js +0 -26
- package/dist/webcomponents/p-e26541b9.entry.js +0 -98
- package/dist/webcomponents/p-e356f280.entry.js +0 -29
- package/dist/webcomponents/p-e78af6d3.entry.js +0 -97
- package/dist/webcomponents/p-e7b8199d.entry.js +0 -131
- package/dist/webcomponents/p-ec854a3e.entry.js +0 -11053
- package/dist/webcomponents/p-f02b75dc.entry.js +0 -96
- package/dist/webcomponents/p-fd7918c2.entry.js +0 -99
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './p-fad19d75.js';
|
|
2
|
-
import { p as pagingDefaults } from './p-56f6ce4c.js';
|
|
3
|
-
import './p-df21aaad.js';
|
|
4
|
-
import './p-e3fab0e2.js';
|
|
5
|
-
import { b as formatDate, c as formatTime, f as formatCurrency, M as MapPaymentStatusToBadge } from './p-83125497.js';
|
|
6
|
-
import { t as tableExportedParts } from './p-2b6c9c4f.js';
|
|
7
|
-
import { S as StyledHost } from './p-ba4bae6f.js';
|
|
8
|
-
import { T as TableLoadingState, a as TableEmptyState, b as TableErrorState } from './p-e333620e.js';
|
|
9
|
-
|
|
10
|
-
const PaymentsListCore = class {
|
|
11
|
-
constructor(hostRef) {
|
|
12
|
-
registerInstance(this, hostRef);
|
|
13
|
-
this.rowClicked = createEvent(this, "payment-row-clicked", 7);
|
|
14
|
-
this.errorEvent = createEvent(this, "error-event", 7);
|
|
15
|
-
this.handleClickPrevious = (beforeCursor) => {
|
|
16
|
-
const newParams = Object.assign({}, this.params);
|
|
17
|
-
delete newParams.after_cursor;
|
|
18
|
-
this.params = Object.assign(Object.assign({}, newParams), { before_cursor: beforeCursor });
|
|
19
|
-
};
|
|
20
|
-
this.handleClickNext = (afterCursor) => {
|
|
21
|
-
const newParams = Object.assign({}, this.params);
|
|
22
|
-
delete newParams.before_cursor;
|
|
23
|
-
this.params = Object.assign(Object.assign({}, newParams), { after_cursor: afterCursor });
|
|
24
|
-
};
|
|
25
|
-
this.rowClickHandler = (e) => {
|
|
26
|
-
const clickedPaymentID = e.target.closest('tr').dataset.rowEntityId;
|
|
27
|
-
if (!clickedPaymentID)
|
|
28
|
-
return;
|
|
29
|
-
this.rowClicked.emit(this.payments.find((payment) => payment.id === clickedPaymentID));
|
|
30
|
-
};
|
|
31
|
-
this.handleDateChange = (name, value) => {
|
|
32
|
-
this.params = Object.assign(Object.assign({}, this.params), { [name]: value });
|
|
33
|
-
};
|
|
34
|
-
this.getPayments = undefined;
|
|
35
|
-
this.payments = [];
|
|
36
|
-
this.loading = true;
|
|
37
|
-
this.errorMessage = undefined;
|
|
38
|
-
this.paging = pagingDefaults;
|
|
39
|
-
this.params = undefined;
|
|
40
|
-
}
|
|
41
|
-
updateOnPropChange() {
|
|
42
|
-
this.fetchData();
|
|
43
|
-
}
|
|
44
|
-
componentWillLoad() {
|
|
45
|
-
if (this.getPayments) {
|
|
46
|
-
this.fetchData();
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
fetchData() {
|
|
50
|
-
this.loading = true;
|
|
51
|
-
this.getPayments({
|
|
52
|
-
params: this.params,
|
|
53
|
-
onSuccess: ({ payments, pagingInfo }) => {
|
|
54
|
-
this.payments = payments;
|
|
55
|
-
this.paging = pagingInfo;
|
|
56
|
-
this.loading = false;
|
|
57
|
-
},
|
|
58
|
-
onError: ({ error, code, severity }) => {
|
|
59
|
-
this.errorMessage = error;
|
|
60
|
-
this.errorEvent.emit({
|
|
61
|
-
errorCode: code,
|
|
62
|
-
message: error,
|
|
63
|
-
severity,
|
|
64
|
-
});
|
|
65
|
-
this.loading = false;
|
|
66
|
-
},
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
get entityId() {
|
|
70
|
-
return this.payments.map((payment) => payment.id);
|
|
71
|
-
}
|
|
72
|
-
get columnData() {
|
|
73
|
-
return [
|
|
74
|
-
['Made On', 'The date and time each payment was made'],
|
|
75
|
-
['Amount', 'The dollar amount of each payment'],
|
|
76
|
-
['Description', 'The payment description, if you provided one'],
|
|
77
|
-
['Cardholder', 'The name associated with the payment method'],
|
|
78
|
-
['Payment Method', 'The brand and last 4 digits of the payment method'],
|
|
79
|
-
['Status', 'The current status of each payment'],
|
|
80
|
-
['Payment ID', 'The unique identifier of each payment'],
|
|
81
|
-
];
|
|
82
|
-
}
|
|
83
|
-
get rowData() {
|
|
84
|
-
return this.payments.map((payment) => [
|
|
85
|
-
{
|
|
86
|
-
type: 'head',
|
|
87
|
-
value: `
|
|
88
|
-
<div class='fw-bold'>${formatDate(payment.created_at)}</div>
|
|
89
|
-
<div class='fw-bold'>${formatTime(payment.created_at)}</div>
|
|
90
|
-
`,
|
|
91
|
-
},
|
|
92
|
-
formatCurrency(payment.amount),
|
|
93
|
-
payment.description,
|
|
94
|
-
payment.payment_method.payersName,
|
|
95
|
-
payment.payment_method.lastFourDigits,
|
|
96
|
-
{
|
|
97
|
-
type: 'inner',
|
|
98
|
-
value: MapPaymentStatusToBadge(payment.status),
|
|
99
|
-
},
|
|
100
|
-
payment.id,
|
|
101
|
-
]);
|
|
102
|
-
}
|
|
103
|
-
get showEmptyState() {
|
|
104
|
-
return !this.loading && !this.errorMessage && this.rowData.length < 1;
|
|
105
|
-
}
|
|
106
|
-
get showErrorState() {
|
|
107
|
-
return !this.loading && !!this.errorMessage;
|
|
108
|
-
}
|
|
109
|
-
get showRowData() {
|
|
110
|
-
return !this.showEmptyState && !this.showErrorState;
|
|
111
|
-
}
|
|
112
|
-
render() {
|
|
113
|
-
var _a, _b;
|
|
114
|
-
return (h(StyledHost, { key: 'e4a4b64b2927a009f7ad4e9e2ebb4c020401423c', exportparts: tableExportedParts }, h("div", { key: '6ac1c84338b84972ca9b001ecd2b90134c99de6b', class: "row gy-3 mb-4" }, h("div", { key: '1d279ec66bc0755b876e29f06ac24d51baa77caa', class: "col-2" }, h("form-control-date", { key: '65b29c031021f3f782c9a4597167dc5e3a44e7da', name: "created_after", label: "Start Date", inputHandler: this.handleDateChange })), h("div", { key: 'a032497a94cc8108fda6efbb741069407e1a5afe', class: "col-2" }, h("form-control-date", { key: '5dd62ebdbf3836567a9ccb03dec850ebe675cb79', name: "created_before", label: "End Date", inputHandler: this.handleDateChange }))), h("div", { key: 'be4094afd3aec1d742d9d3245c2f6fc50cb95fa0', class: "table-wrapper" }, h("table", { key: 'ed493e35f2bddd59d1034dffe2bcd8b54a6390d6', class: "table table-hover" }, h("thead", { key: 'fae77bda1ffc35ac5414743ab51c2fe1dfbbc29e', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: '5be3b1e9883d337046c386046565fb6ac3366324', class: "table-light text-nowrap", part: "table-head-row" }, (_a = this.columnData) === null || _a === void 0 ? void 0 : _a.map((column) => (h("th", { part: "table-head-cell", scope: "col", title: Array.isArray(column) ? column[1] : '' }, !Array.isArray(column) ? column : column[0]))))), h("tbody", { key: 'ba950a1da1ec0dffd7bc8457cdb3ce65d0f8b69b', class: "table-body", part: "table-body" }, h(TableLoadingState, { key: '8d13d8f6b64377f560d06410c09d24293708b6a8', columnSpan: this.columnData.length, isLoading: this.loading }), h(TableEmptyState, { key: 'c75d61977b26ca5d4aa3711bae1ce6e571b3e3b2', isEmpty: this.showEmptyState, columnSpan: this.columnData.length }), h(TableErrorState, { key: '08e3f88116de5783f018a0c06d21d0d9cc4f5feb', columnSpan: this.columnData.length, errorMessage: this.errorMessage }), this.showRowData &&
|
|
115
|
-
this.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler, part: `table-row ${index % 2 ? 'table-row-even' : 'table-row-odd'}` }, data.map((dataEntry) => {
|
|
116
|
-
let nestedHtml = dataEntry === null || dataEntry === void 0 ? void 0 : dataEntry.type;
|
|
117
|
-
if (nestedHtml) {
|
|
118
|
-
return h("td", { part: "table-cell", innerHTML: dataEntry.value });
|
|
119
|
-
}
|
|
120
|
-
else {
|
|
121
|
-
return h("td", { part: "table-cell" }, dataEntry);
|
|
122
|
-
}
|
|
123
|
-
}))))), this.paging && (h("tfoot", { key: '728f671ab03923c90e11901a0d3aac4bc30e72a7', class: "sticky-bottom" }, h("tr", { key: 'd0df9b7c857287eec9568157ecf8f547a01f2fc5', class: "table-light align-middle" }, h("td", { key: 'e0de54912240b3e812f37ea675b2eef50d9545c4', part: "pagination-bar", colSpan: (_b = this.columnData) === null || _b === void 0 ? void 0 : _b.length }, h("pagination-menu", { key: 'f2d7846030a5aaa0c2311cad61f4d5865440a904', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
|
|
124
|
-
}
|
|
125
|
-
static get watchers() { return {
|
|
126
|
-
"params": ["updateOnPropChange"],
|
|
127
|
-
"getPayments": ["updateOnPropChange"]
|
|
128
|
-
}; }
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
export { PaymentsListCore as payments_list_core };
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './p-fad19d75.js';
|
|
2
|
-
import { c as create$3, F as FormController } from './p-2eab3c90.js';
|
|
3
|
-
import { b as businessCoreInfoSchema, a as additionalQuestionsSchema } from './p-3fd13ca3.js';
|
|
4
|
-
import { a as addressSchema, i as identitySchema, p as parseBusiness } from './p-85fc69e5.js';
|
|
5
|
-
import { A as Api } from './p-29c0b182.js';
|
|
6
|
-
import './p-56f6ce4c.js';
|
|
7
|
-
import './p-df21aaad.js';
|
|
8
|
-
import './p-e3fab0e2.js';
|
|
9
|
-
import { B as BusinessFormServerErrors, a as BusinessFormClickActions } from './p-d89bad72.js';
|
|
10
|
-
import { B as Business } from './p-af244664.js';
|
|
11
|
-
import { J as JustifiAnalytics } from './p-20abace7.js';
|
|
12
|
-
import { S as StyledHost } from './p-ba4bae6f.js';
|
|
13
|
-
import './p-89887332.js';
|
|
14
|
-
import './p-6078a370.js';
|
|
15
|
-
import './p-ba5fae28.js';
|
|
16
|
-
import './p-1ff8810b.js';
|
|
17
|
-
import './p-1bbbf15d.js';
|
|
18
|
-
|
|
19
|
-
const businessFormSchema = create$3(Object.assign(Object.assign({}, businessCoreInfoSchema().fields), { legal_address: addressSchema(), additional_questions: additionalQuestionsSchema(), representative: identitySchema('representative') }));
|
|
20
|
-
|
|
21
|
-
const businessFormCss = ":host{display:block}*::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-checkbox){font-family:var(--jfi-layout-font-family);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-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);line-height:var(--jfi-form-control-line-height)}*::part(input-checkbox):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-checkbox-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-checkbox-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-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)}";
|
|
22
|
-
const JustifiBusinessFormStyle0 = businessFormCss;
|
|
23
|
-
|
|
24
|
-
const BusinessForm = class {
|
|
25
|
-
constructor(hostRef) {
|
|
26
|
-
registerInstance(this, hostRef);
|
|
27
|
-
this.submitted = createEvent(this, "submitted", 7);
|
|
28
|
-
this.clickEventNew = createEvent(this, "click-event", 7);
|
|
29
|
-
this.clickEventOld = createEvent(this, "clickEvent", 7);
|
|
30
|
-
this.instantiateBusiness = (data) => {
|
|
31
|
-
const business = new Business(data);
|
|
32
|
-
this.formController.setInitialValues(Object.assign({}, business));
|
|
33
|
-
};
|
|
34
|
-
this.sendData = async () => {
|
|
35
|
-
this.isLoading = true;
|
|
36
|
-
try {
|
|
37
|
-
const values = this.formController.values.getValue();
|
|
38
|
-
const initialValues = this.formController.getInitialValues();
|
|
39
|
-
const payload = parseBusiness(values, initialValues);
|
|
40
|
-
const response = await this.api.patch(this.businessEndpoint, JSON.stringify(payload));
|
|
41
|
-
this.handleReponse(response);
|
|
42
|
-
}
|
|
43
|
-
catch (error) {
|
|
44
|
-
this.errorMessage = BusinessFormServerErrors.patchData;
|
|
45
|
-
}
|
|
46
|
-
finally {
|
|
47
|
-
this.isLoading = false;
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
this.fetchData = async () => {
|
|
51
|
-
this.isLoading = true;
|
|
52
|
-
try {
|
|
53
|
-
const response = await this.api.get(this.businessEndpoint);
|
|
54
|
-
this.instantiateBusiness(response.data);
|
|
55
|
-
}
|
|
56
|
-
catch (error) {
|
|
57
|
-
this.errorMessage = BusinessFormServerErrors.fetchData;
|
|
58
|
-
}
|
|
59
|
-
finally {
|
|
60
|
-
this.isLoading = false;
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
this.validateAndSubmit = (event) => {
|
|
64
|
-
event.preventDefault();
|
|
65
|
-
this.formController.validateAndSubmit(this.sendData);
|
|
66
|
-
};
|
|
67
|
-
this.authToken = undefined;
|
|
68
|
-
this.businessId = undefined;
|
|
69
|
-
this.hideErrors = false;
|
|
70
|
-
this.formTitle = 'Business Information';
|
|
71
|
-
this.removeTitle = false;
|
|
72
|
-
this.isLoading = false;
|
|
73
|
-
this.errorMessage = undefined;
|
|
74
|
-
}
|
|
75
|
-
componentWillLoad() {
|
|
76
|
-
this.analytics = new JustifiAnalytics(this);
|
|
77
|
-
const missingAuthTokenMessage = 'Warning: Missing auth-token. The form will not be functional without it.';
|
|
78
|
-
const missingBusinessIdMessage = 'Warning: Missing business-id. The form requires an existing business-id to function.';
|
|
79
|
-
if (!this.authToken)
|
|
80
|
-
console.error(missingAuthTokenMessage);
|
|
81
|
-
if (!this.businessId)
|
|
82
|
-
console.error(missingBusinessIdMessage);
|
|
83
|
-
this.formController = new FormController(businessFormSchema);
|
|
84
|
-
this.api = Api({ authToken: this.authToken, apiOrigin: undefined });
|
|
85
|
-
this.fetchData();
|
|
86
|
-
}
|
|
87
|
-
disconnectedCallback() {
|
|
88
|
-
this.analytics.cleanup();
|
|
89
|
-
}
|
|
90
|
-
fireClickEvents(event) {
|
|
91
|
-
console.warn('`clickEvent` is deprecated and will be removed in the next major release. Please use `click-event` instead.');
|
|
92
|
-
this.clickEventNew.emit(event);
|
|
93
|
-
this.clickEventOld.emit(event);
|
|
94
|
-
}
|
|
95
|
-
get title() {
|
|
96
|
-
return this.removeTitle ? '' : this.formTitle;
|
|
97
|
-
}
|
|
98
|
-
get disabledState() {
|
|
99
|
-
return this.isLoading;
|
|
100
|
-
}
|
|
101
|
-
get businessEndpoint() {
|
|
102
|
-
return `entities/business/${this.businessId}`;
|
|
103
|
-
}
|
|
104
|
-
handleReponse(response) {
|
|
105
|
-
if (response.error) {
|
|
106
|
-
this.errorMessage = BusinessFormServerErrors.patchData;
|
|
107
|
-
}
|
|
108
|
-
this.submitted.emit({ data: response });
|
|
109
|
-
this.instantiateBusiness(response.data);
|
|
110
|
-
}
|
|
111
|
-
render() {
|
|
112
|
-
return (h(StyledHost, { key: '8fb79d577c13246fcf3ec1ee8460713fee07d01a', exportparts: "label,input,input-invalid" }, h("form", { key: '1fe23a8cc8714aee257b6c73c6b7b096d684ea1c', onSubmit: this.validateAndSubmit }, h("div", { key: 'e501f6963ed5bfd9eb80f67df13108289db6eba7', class: "row gap-3" }, h("h1", { key: 'f81f22704bda1480c467b872cd3fd309505b0e94' }, this.title), h("form-alert", { key: '15b2ff75d4db6447bfd1892542e8e972ede0ac7e', text: this.errorMessage, hideAlert: this.hideErrors }), h("div", { key: 'fd6a375fd187426940df3f28262be7aec3fedbe5', class: "col-12 mb-4" }, h("justifi-business-core-info", { key: 'd16818a2124cb04dd5a5e84ea40639991fb04a80', formController: this.formController })), h("div", { key: 'd48b04718cf938484cf65cc956bf798f44ed17a7', class: "col-12 mb-4" }, h("justifi-legal-address-form", { key: '3a2bc6babfe8a0a265b2a7f9e7bea1abebd3eb43', formController: this.formController })), h("div", { key: '5c4d5d1fa1e2aba32f42c2bb9e97c0d796ecf709', class: "col-12 mb-4" }, h("justifi-additional-questions", { key: 'c888fb627380d05302cb106c5642e39b1f2652fa', formController: this.formController })), h("div", { key: '623e94d84976cfe29f4501a781c750d1bb537605', class: "col-12 mb-4" }, h("justifi-business-representative", { key: '594c893c0976b58a309679a031f6f1c787e66f48', formController: this.formController })), h("div", { key: '9fbc36ed183b1ebf171da14276092195c7aaf3a9', class: "col-12 d-flex flex-row-reverse" }, h("button", { key: 'a60da6fdda5193d3c41c589b00b040c05ae425ac', type: "submit", class: "btn btn-primary jfi-submit-button", disabled: this.disabledState, onClick: () => this.fireClickEvents({ name: BusinessFormClickActions.submit }) }, this.isLoading ? 'Loading...' : 'Submit'))))));
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
BusinessForm.style = JustifiBusinessFormStyle0;
|
|
116
|
-
|
|
117
|
-
export { BusinessForm as justifi_business_form };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { A as Api } from './p-29c0b182.js';
|
|
2
|
-
import './p-56f6ce4c.js';
|
|
3
|
-
import './p-df21aaad.js';
|
|
4
|
-
import './p-e3fab0e2.js';
|
|
5
|
-
import { C as ComponentErrorSeverity } from './p-14c91ffd.js';
|
|
6
|
-
import { g as getErrorMessage, a as getErrorCode } from './p-8115b2f4.js';
|
|
7
|
-
|
|
8
|
-
class PayoutService {
|
|
9
|
-
async fetchPayouts(accountId, authToken, params) {
|
|
10
|
-
const api = Api({ authToken, apiOrigin: undefined });
|
|
11
|
-
const endpoint = `account/${accountId}/payouts`;
|
|
12
|
-
return api.get(endpoint, params);
|
|
13
|
-
}
|
|
14
|
-
async fetchPayout(payoutId, authToken) {
|
|
15
|
-
const api = Api({ authToken, apiOrigin: undefined });
|
|
16
|
-
const endpoint = `payouts/${payoutId}`;
|
|
17
|
-
return api.get(endpoint);
|
|
18
|
-
}
|
|
19
|
-
async fetchCSV(payoutId, authToken) {
|
|
20
|
-
const api = Api({ authToken, apiOrigin: undefined });
|
|
21
|
-
const endpoint = `reports/payouts/${payoutId}`;
|
|
22
|
-
return api.get(endpoint);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const makeGetPayoutCSV = ({ authToken, service }) => async ({ payoutId, onError }) => {
|
|
27
|
-
try {
|
|
28
|
-
const { data } = await service.fetchCSV(payoutId, authToken);
|
|
29
|
-
const a = document.createElement('a');
|
|
30
|
-
a.href = data.csv_url;
|
|
31
|
-
a.click();
|
|
32
|
-
}
|
|
33
|
-
catch (error) {
|
|
34
|
-
const errorMessage = getErrorMessage(error);
|
|
35
|
-
const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
|
|
36
|
-
onError({
|
|
37
|
-
error: errorMessage,
|
|
38
|
-
code,
|
|
39
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
export { PayoutService as P, makeGetPayoutCSV as m };
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './p-fad19d75.js';
|
|
2
|
-
import { M as MapPaymentStatusToBadge, f as formatCurrency, b as formatDate, c as formatTime, s as snakeCaseToHumanReadable } from './p-83125497.js';
|
|
3
|
-
import { a as EntityHeadInfo, b as EntityHeadInfoItem, D as DetailSectionTitle, c as DetailItem, C as CodeBlock, E as ErrorState, L as LoadingState } from './p-dce846bf.js';
|
|
4
|
-
import { S as StyledHost } from './p-ba4bae6f.js';
|
|
5
|
-
|
|
6
|
-
const PaymentDetailsCore = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
this.errorEvent = createEvent(this, "error-event", 7);
|
|
10
|
-
this.getPaymentDetails = undefined;
|
|
11
|
-
this.payment = undefined;
|
|
12
|
-
this.loading = true;
|
|
13
|
-
this.errorMessage = undefined;
|
|
14
|
-
}
|
|
15
|
-
componentWillLoad() {
|
|
16
|
-
if (this.getPaymentDetails) {
|
|
17
|
-
this.fetchData();
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
updateOnPropChange() {
|
|
21
|
-
this.fetchData();
|
|
22
|
-
}
|
|
23
|
-
fetchData() {
|
|
24
|
-
this.loading = true;
|
|
25
|
-
this.getPaymentDetails({
|
|
26
|
-
onSuccess: ({ payment }) => {
|
|
27
|
-
this.payment = payment;
|
|
28
|
-
this.loading = false;
|
|
29
|
-
this.errorMessage = null;
|
|
30
|
-
},
|
|
31
|
-
onError: ({ error, code, severity }) => {
|
|
32
|
-
this.errorMessage = error;
|
|
33
|
-
this.errorEvent.emit({
|
|
34
|
-
errorCode: code,
|
|
35
|
-
message: error,
|
|
36
|
-
severity,
|
|
37
|
-
});
|
|
38
|
-
this.loading = false;
|
|
39
|
-
},
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
render() {
|
|
43
|
-
var _a;
|
|
44
|
-
return (h(StyledHost, { key: 'aaaea4076938af5a74197256dba1093265f0e2d6' }, this.loading && LoadingState(), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && !this.errorMessage &&
|
|
45
|
-
this.payment && (h("justifi-details", { key: '12f06fa05915380403e244cbed053d0c04bfa1d4', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: '4d496def6abfc728e6f184fb0729ac648fb2deaf', slot: "head-info", badge: h("span", { slot: 'badge', innerHTML: MapPaymentStatusToBadge(this.payment.status) }), title: `${formatCurrency(this.payment.amount)} ${(_a = this.payment) === null || _a === void 0 ? void 0 : _a.currency.toUpperCase()}` }, h(EntityHeadInfoItem, { key: '78dcff13206646d594bdc80f6297d45dc9932694', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payment.updated_at)} ${formatTime(this.payment.updated_at)}` }), h(EntityHeadInfoItem, { key: 'dfa0de667ebd28efd217b6bdf548b9b1b728b57e', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payment.created_at)} ${formatTime(this.payment.created_at)}` }), h(EntityHeadInfoItem, { key: 'b449b180034f28504007a9c2fb0598607dc00efb', title: "ID", value: this.payment.id })), h("div", { key: '62af84e244e38b24b32f791d13f1b21b49942597', slot: 'detail-sections' }, h(DetailSectionTitle, { key: '0ddb0366b4ab737c7b08a37764b8ce2f7ec4a1e9', sectionTitle: "Details" }), h("div", { key: 'cb699194db16cb8608834779f560e882f6f9da7c', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '3b6eb4a8b782668951bba90be3b5d522f3f7c69b', title: "Amount", value: formatCurrency(this.payment.amount) }), h(DetailItem, { key: '7a59ab0b12a263c38c40a98acbff6492d370b28b', title: "Fees", value: formatCurrency(this.payment.fee_amount) }), h(DetailItem, { key: 'a9eaa5d1959425205c144dc2aa7c7fad77014290', title: "Refunded", value: formatCurrency(this.payment.amount_refunded) }), h(DetailItem, { key: 'd70c3a4bf48c9c69625d5f27f1095f9b0744a71e', title: "Net", value: formatCurrency(this.payment.balance) }), h(DetailItem, { key: '28f526b1adcd475c2ae88a8bf09ae4aea7935df6', title: "Status", value: MapPaymentStatusToBadge(this.payment.status) }), h(DetailItem, { key: '700f51d787f20f575e3e11aa72a8da29a9587c2a', title: "Payment ID", value: this.payment.id }), h(DetailItem, { key: 'ea72ecc9c2f5055d4b0f6b37cd16cb318f9a797c', title: "Processing Fees", value: formatCurrency(this.payment.fee_amount) }), h(DetailItem, { key: '9d66af2c0c0baef4e8b7b021daf0b4d6adb267d2', title: "Statement Descriptor", value: this.payment.statement_descriptor }), h(DetailItem, { key: '3f21501c1e08feeee1e7427a42faf1c5d1d9c84d', title: "Description", value: this.payment.description })), this.payment.payment_method.card && [
|
|
46
|
-
h(DetailSectionTitle, { key: 'b7767b93e090c0195aca6c99b66b48d61b6134b3', sectionTitle: "Payment Method" }),
|
|
47
|
-
h("div", { key: 'a363c7a7e69932a8ffeddb5e0d53f7df13119a9a', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'fb0e1f64fcec23e513590b3048593565685d8400', title: "ID", value: this.payment.payment_method.card.id }), h(DetailItem, { key: 'bc181b1b94039e1aad341a8e563ba923976c806b', title: "Payment Type", value: "Card" }), h(DetailItem, { key: '88b21dd2368b88232cd0f464c381d4423fe3c774', title: "Last 4 Numbers", value: this.payment.payment_method.lastFourDigits }), h(DetailItem, { key: '040fd71315ead633f9c89e9a9dad906889759d77', title: "Brand", value: snakeCaseToHumanReadable(this.payment.payment_method.card.brand) }), h(DetailItem, { key: '35ebc74de2c5c8fafd95fc5b15ff4f2ca85220cc', title: "Cardholder", value: this.payment.payment_method.payersName }))
|
|
48
|
-
], this.payment.payment_method.bank_account && [
|
|
49
|
-
h(DetailSectionTitle, { key: 'f10eef0b4e4067fb78dbff16719a6f266f4e6bab', sectionTitle: "Payment Method" }),
|
|
50
|
-
h("div", { key: '6c1ef713b5dcabba5b516f3cbbd088d098873303', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '8880fd0fb2b16ee6f177aba15d6f4485c95af252', title: "ID", value: this.payment.payment_method.bank_account.id }), h(DetailItem, { key: 'baa70304d2972f69ce8a5d077a076b16f986745b', title: "Last 4 Numbers", value: this.payment.payment_method.lastFourDigits }), h(DetailItem, { key: 'dcb63b9258bea698bf2d165c611dfa05cb320f30', title: "Bank Name", value: this.payment.payment_method.bank_account.brand }), h(DetailItem, { key: '806696c15aa5ef242c230d9c9aea642ddfdfd93d', title: "Account Owner", value: this.payment.payment_method.payersName }))
|
|
51
|
-
], h(DetailSectionTitle, { key: '83289d8f2cf57a624678260555f00af4ea96a566', sectionTitle: 'Metadata' }), h("div", { key: '02e248b962e0c06f4d83bae75a5759b234fea36b', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: '5d81879c7815102219ed010dab9f573ad6b7985d', metadata: this.payment.metadata })))))));
|
|
52
|
-
}
|
|
53
|
-
static get watchers() { return {
|
|
54
|
-
"getPaymentDetails": ["updateOnPropChange"]
|
|
55
|
-
}; }
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
export { PaymentDetailsCore as payment_details_core };
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './p-fad19d75.js';
|
|
2
|
-
import { J as JustifiAnalytics } from './p-20abace7.js';
|
|
3
|
-
import './p-1bbbf15d.js';
|
|
4
|
-
import './p-29c0b182.js';
|
|
5
|
-
|
|
6
|
-
const BankAccountForm = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
this.bankAccountFormReady = createEvent(this, "bankAccountFormReady", 7);
|
|
10
|
-
this.ready = createEvent(this, "ready", 7);
|
|
11
|
-
this.bankAccountFormTokenized = createEvent(this, "bankAccountFormTokenize", 7);
|
|
12
|
-
this.bankAccountFormValidated = createEvent(this, "bankAccountFormValidate", 7);
|
|
13
|
-
this.validationMode = undefined;
|
|
14
|
-
this.iframeOrigin = undefined;
|
|
15
|
-
this.internalStyleOverrides = undefined;
|
|
16
|
-
}
|
|
17
|
-
readyHandler(event) {
|
|
18
|
-
console.warn(`The 'bankAccountFormReady' event is deprecated in the next major release and will be renamed to 'ready'`);
|
|
19
|
-
this.bankAccountFormReady.emit(event);
|
|
20
|
-
this.ready.emit(event);
|
|
21
|
-
}
|
|
22
|
-
tokenizeHandler(event) {
|
|
23
|
-
console.warn(`The 'bankAccountFormTokenized' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future.`);
|
|
24
|
-
this.bankAccountFormTokenized.emit(event);
|
|
25
|
-
}
|
|
26
|
-
validateHandler(event) {
|
|
27
|
-
console.warn(`The 'bankAccountFormValidate' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future.`);
|
|
28
|
-
this.bankAccountFormValidated.emit(event);
|
|
29
|
-
}
|
|
30
|
-
componentWillLoad() {
|
|
31
|
-
this.analytics = new JustifiAnalytics(this);
|
|
32
|
-
}
|
|
33
|
-
disconnectedCallback() {
|
|
34
|
-
this.analytics.cleanup();
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Makes a tokenization request to the iframe
|
|
38
|
-
*/
|
|
39
|
-
async tokenize(...args) {
|
|
40
|
-
if (!this.childRef) {
|
|
41
|
-
throw new Error('Cannot call tokenize');
|
|
42
|
-
}
|
|
43
|
-
return this.childRef.tokenize(...args);
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Runs a validation on the form and shows errors if any
|
|
47
|
-
*/
|
|
48
|
-
async validate() {
|
|
49
|
-
if (!this.childRef) {
|
|
50
|
-
throw new Error('Cannot call validate');
|
|
51
|
-
}
|
|
52
|
-
return this.childRef.validate();
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Manually resizes the iframe to fit the contents of the iframe
|
|
56
|
-
* @deprecated This method will be removed in future releases.
|
|
57
|
-
*/
|
|
58
|
-
async resize() {
|
|
59
|
-
console.warn(`The 'resize' method is deprecated and will be removed in the next major release. Please refer to the documentation for the migration process and alternative approach.`);
|
|
60
|
-
if (!this.childRef) {
|
|
61
|
-
throw new Error('Cannot call validate');
|
|
62
|
-
}
|
|
63
|
-
return this.childRef.resize();
|
|
64
|
-
}
|
|
65
|
-
render() {
|
|
66
|
-
return (h("justifi-payment-method-form", { key: '646e392c1a9ed38e73780ed6a01b6f019767794c', ref: el => {
|
|
67
|
-
if (el) {
|
|
68
|
-
this.childRef = el;
|
|
69
|
-
}
|
|
70
|
-
}, "iframe-origin": this.iframeOrigin, "payment-method-form-type": "bankAccount", "payment-method-form-ready": this.bankAccountFormReady, "payment-method-form-validated": this.bankAccountFormValidated, "payment-method-form-tokenize": this.bankAccountFormTokenized, "payment-method-form-validation-mode": this.validationMode || 'onSubmit' }));
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
export { BankAccountForm as justifi_bank_account_form };
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, c as createEvent, H as Host, g as getElement } from './p-fad19d75.js';
|
|
2
|
-
|
|
3
|
-
const FormControlErrorText = class {
|
|
4
|
-
constructor(hostRef) {
|
|
5
|
-
registerInstance(this, hostRef);
|
|
6
|
-
this.errorText = undefined;
|
|
7
|
-
this.name = undefined;
|
|
8
|
-
}
|
|
9
|
-
render() {
|
|
10
|
-
if (!this.errorText) {
|
|
11
|
-
return null;
|
|
12
|
-
}
|
|
13
|
-
return (h("small", { class: 'form-text text-danger', id: `form-error-text-${this.name}` }, this.errorText));
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
const FormControlHelpText = class {
|
|
18
|
-
constructor(hostRef) {
|
|
19
|
-
registerInstance(this, hostRef);
|
|
20
|
-
this.helpText = undefined;
|
|
21
|
-
this.name = undefined;
|
|
22
|
-
}
|
|
23
|
-
render() {
|
|
24
|
-
if (!this.helpText) {
|
|
25
|
-
return null;
|
|
26
|
-
}
|
|
27
|
-
return (h("small", { class: 'form-text text-muted', id: `form-help-text-${this.name}` }, this.helpText));
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
const SelectInput = class {
|
|
32
|
-
constructor(hostRef) {
|
|
33
|
-
registerInstance(this, hostRef);
|
|
34
|
-
this.formControlInput = createEvent(this, "formControlInput", 7);
|
|
35
|
-
this.formControlBlur = createEvent(this, "formControlBlur", 7);
|
|
36
|
-
this.handleFormControlInput = (event) => {
|
|
37
|
-
const target = event.target;
|
|
38
|
-
const name = target.getAttribute('name');
|
|
39
|
-
this.inputHandler(name, target.value);
|
|
40
|
-
this.formControlInput.emit(target.value);
|
|
41
|
-
};
|
|
42
|
-
this.updateInput = (newValue) => {
|
|
43
|
-
this.selectElement.value = newValue;
|
|
44
|
-
};
|
|
45
|
-
this.label = undefined;
|
|
46
|
-
this.name = undefined;
|
|
47
|
-
this.helpText = undefined;
|
|
48
|
-
this.errorText = undefined;
|
|
49
|
-
this.defaultValue = undefined;
|
|
50
|
-
this.inputHandler = undefined;
|
|
51
|
-
this.options = undefined;
|
|
52
|
-
this.disabled = undefined;
|
|
53
|
-
}
|
|
54
|
-
handleDefaultValueChange(newValue) {
|
|
55
|
-
this.updateInput(newValue);
|
|
56
|
-
}
|
|
57
|
-
componentDidLoad() {
|
|
58
|
-
this.updateInput(this.defaultValue);
|
|
59
|
-
}
|
|
60
|
-
render() {
|
|
61
|
-
var _a;
|
|
62
|
-
return (h(Host, { key: '99449e3724103b12af7f2a4573831961074a484a', exportparts: "label,input,input-invalid" }, h("div", { key: 'd73e89d43da9968b687afece24794d9472fec6b5', class: "form-group d-flex flex-column" }, h("label", { key: '6964c55858fc3cf96a137e1061c7f66831105348', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("select", { key: '5b1a09a607ad9638915f5e70f2164f6010020438', ref: el => (this.selectElement = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText ? 'input-invalid' : ''}`, class: this.errorText ? 'form-select is-invalid' : 'form-select', disabled: this.disabled }, (_a = this.options) === null || _a === void 0 ? void 0 : _a.map(option => (h("option", { value: option.value }, option.label)))), h("form-control-help-text", { key: '62d862921d463c98e56888293c878624f7311548', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '0b1c4d4752965fb058208c72c7f1c3872d1e0561', errorText: this.errorText, name: this.name }))));
|
|
63
|
-
}
|
|
64
|
-
static get watchers() { return {
|
|
65
|
-
"defaultValue": ["handleDefaultValueChange"]
|
|
66
|
-
}; }
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
const TextInput = class {
|
|
70
|
-
constructor(hostRef) {
|
|
71
|
-
registerInstance(this, hostRef);
|
|
72
|
-
this.formControlInput = createEvent(this, "formControlInput", 7);
|
|
73
|
-
this.formControlBlur = createEvent(this, "formControlBlur", 7);
|
|
74
|
-
this.handleFormControlInput = (event) => {
|
|
75
|
-
const target = event.target;
|
|
76
|
-
const name = target.getAttribute('name');
|
|
77
|
-
this.inputHandler(name, target.value);
|
|
78
|
-
this.formControlInput.emit({ name, value: target.value });
|
|
79
|
-
};
|
|
80
|
-
this.updateInput = (newValue) => {
|
|
81
|
-
const inputElement = this.el.querySelector('input');
|
|
82
|
-
if (inputElement) {
|
|
83
|
-
inputElement.value = newValue || '';
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
this.label = undefined;
|
|
87
|
-
this.name = undefined;
|
|
88
|
-
this.helpText = undefined;
|
|
89
|
-
this.errorText = undefined;
|
|
90
|
-
this.defaultValue = undefined;
|
|
91
|
-
this.maxLength = undefined;
|
|
92
|
-
this.inputHandler = undefined;
|
|
93
|
-
this.keyDownHandler = undefined;
|
|
94
|
-
this.disabled = undefined;
|
|
95
|
-
}
|
|
96
|
-
handleDefaultValueChange(newValue) {
|
|
97
|
-
this.updateInput(newValue);
|
|
98
|
-
}
|
|
99
|
-
componentDidLoad() {
|
|
100
|
-
this.updateInput(this.defaultValue);
|
|
101
|
-
}
|
|
102
|
-
render() {
|
|
103
|
-
return (h(Host, { key: '1194532f81831734543bad80860da14f8a5ad856', exportparts: "label,input,input-invalid" }, h("div", { key: '296538cf90b62f8041e21620aa06b4074f68b71a', class: "form-group d-flex flex-column" }, h("label", { key: '7c009ce96124e58f9657dba2565ef298225f10f7', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: '4b33cb700aecf4d0a359366ba2e0d248c602d904', id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: `input ${this.errorText ? 'input-invalid ' : ''}${this.disabled ? ' input-disabled' : ''}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h("form-control-help-text", { key: '7a279d72bb262fcb044b5b0cc31703878ce9f444', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '00bea288a99f626806697a98b6dca3f3298dc0b3', errorText: this.errorText, name: this.name }))));
|
|
104
|
-
}
|
|
105
|
-
get el() { return getElement(this); }
|
|
106
|
-
static get watchers() { return {
|
|
107
|
-
"defaultValue": ["handleDefaultValueChange"]
|
|
108
|
-
}; }
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
export { FormControlErrorText as form_control_error_text, FormControlHelpText as form_control_help_text, SelectInput as form_control_select, TextInput as form_control_text };
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { a as BusinessClassification } from './p-af244664.js';
|
|
2
|
-
|
|
3
|
-
const businessClassificationOptions = [
|
|
4
|
-
{
|
|
5
|
-
label: 'Choose business classification',
|
|
6
|
-
value: '',
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
label: 'Sole Proprietor',
|
|
10
|
-
value: BusinessClassification.sole_proprietor,
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
label: 'Partnership',
|
|
14
|
-
value: BusinessClassification.partnership,
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
label: 'Corporation',
|
|
18
|
-
value: BusinessClassification.corporation,
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
label: 'Public Company',
|
|
22
|
-
value: BusinessClassification.public_company,
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
label: 'Limited',
|
|
26
|
-
value: BusinessClassification.limited,
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
label: 'Non Profit',
|
|
30
|
-
value: BusinessClassification.non_profit,
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
label: 'Government',
|
|
34
|
-
value: BusinessClassification.government,
|
|
35
|
-
},
|
|
36
|
-
];
|
|
37
|
-
const businessServiceReceivedOptions = [
|
|
38
|
-
{
|
|
39
|
-
label: 'Within 7 days',
|
|
40
|
-
value: 'Within 7 days',
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
label: 'Within 30 days',
|
|
44
|
-
value: 'Within 30 days',
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
label: 'Within 90 days',
|
|
48
|
-
value: 'Within 90 days',
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
label: 'Within 120 days',
|
|
52
|
-
value: 'Within 120 days',
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
label: 'More than 120 days',
|
|
56
|
-
value: 'More than 120 days',
|
|
57
|
-
}
|
|
58
|
-
];
|
|
59
|
-
const recurringPaymentsOptions = [
|
|
60
|
-
{
|
|
61
|
-
label: 'Yes',
|
|
62
|
-
value: 'Yes',
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
label: 'No',
|
|
66
|
-
value: 'No',
|
|
67
|
-
}
|
|
68
|
-
];
|
|
69
|
-
const seasonalBusinessOptions = [
|
|
70
|
-
{
|
|
71
|
-
label: 'Yes. The majority of the business revenue is generated in 3-6 months.',
|
|
72
|
-
value: 'Yes',
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
label: 'No. The business revenue is generated evenly throughout the year.',
|
|
76
|
-
value: 'No',
|
|
77
|
-
}
|
|
78
|
-
];
|
|
79
|
-
const bankAccountTypeOptions = [
|
|
80
|
-
{
|
|
81
|
-
label: 'Checking',
|
|
82
|
-
value: 'checking',
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
label: 'Savings',
|
|
86
|
-
value: 'savings',
|
|
87
|
-
}
|
|
88
|
-
];
|
|
89
|
-
|
|
90
|
-
export { businessServiceReceivedOptions as a, businessClassificationOptions as b, bankAccountTypeOptions as c, recurringPaymentsOptions as r, seasonalBusinessOptions as s };
|