@justifi/webcomponents 4.19.3 → 4.20.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-a0a86d82.js → Analytics-3c89cfb4.js} +1 -1
- package/dist/cjs/business-details-core.cjs.entry.js +1 -1
- package/dist/cjs/check-pkg-version-4fa0367d.js +24 -0
- package/dist/cjs/custom-popper.cjs.entry.js +1894 -0
- package/dist/cjs/form-control-date_3.cjs.entry.js +4 -4
- package/dist/cjs/form-control-error-text_4.cjs.entry.js +9 -9
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-details.cjs.entry.js +4 -2
- package/dist/cjs/justifi-business-form.cjs.entry.js +6 -4
- package/dist/cjs/justifi-card-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout.cjs.entry.js +6 -4
- package/dist/cjs/justifi-details.cjs.entry.js +1 -1
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +5 -3
- package/dist/cjs/justifi-payment-form.cjs.entry.js +8 -6
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -3
- package/dist/cjs/justifi-payments-list.cjs.entry.js +12 -8
- package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +4 -2
- package/dist/cjs/justifi-refund-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-99f4d813.js → package-3a9ac89d.js} +3 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +1 -1
- package/dist/cjs/{payment.service-4b1c0a20.js → payment.service-47e2d84e.js} +5 -2
- package/dist/cjs/payments-list-core.cjs.entry.js +18 -13
- package/dist/cjs/payments-list-filters_2.cjs.entry.js +17266 -0
- package/dist/cjs/payout-details-core.cjs.entry.js +2 -2
- package/dist/cjs/payouts-list-core.cjs.entry.js +3 -3
- package/dist/cjs/styled-host-9e0b67b3.js +14 -0
- package/dist/cjs/utils-f8a6962c.js +25 -0
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/services/payment.service.js +5 -2
- package/dist/collection/collection-manifest.json +4 -1
- package/dist/collection/components/business-details/business-details.js +2 -0
- package/dist/collection/components/business-forms/business-form/business-form.js +3 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +3 -1
- package/dist/collection/components/checkout/checkout.js +4 -2
- package/dist/collection/components/form/form-control-date.js +26 -28
- package/dist/collection/components/form/form-control-select.js +45 -45
- package/dist/collection/components/form/form-control-text.js +34 -34
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +2 -0
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +3 -1
- package/dist/collection/components/payment-details/payment-details.js +2 -0
- package/dist/collection/components/payment-form/payment-form.js +5 -3
- package/dist/collection/components/payments-list/get-payments.js +2 -2
- package/dist/collection/components/payments-list/payments-list-core.js +14 -9
- package/dist/collection/components/payments-list/payments-list-filters.js +84 -0
- package/dist/collection/components/payments-list/payments-list.js +25 -2
- package/dist/collection/components/payout-details/payout-details-core.js +1 -1
- package/dist/collection/components/payout-details/payout-details.js +2 -0
- package/dist/collection/components/payouts-list/payouts-list-core.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +2 -0
- package/dist/collection/components/refund-form/refund-form.js +1 -1
- package/dist/collection/ui-components/custom-popper/custom-popper.js +239 -0
- package/dist/collection/ui-components/filters/table-filters-menu.js +89 -0
- package/dist/collection/ui-components/filters/utils.js +20 -0
- package/dist/collection/utils/check-pkg-version.js +19 -0
- package/dist/docs.json +545 -19
- package/dist/esm/{Analytics-e460ab05.js → Analytics-b0f6936a.js} +1 -1
- package/dist/esm/business-details-core.entry.js +1 -1
- package/dist/esm/check-pkg-version-10cadb08.js +22 -0
- package/dist/esm/custom-popper.entry.js +1890 -0
- package/dist/esm/form-control-date_3.entry.js +4 -4
- package/dist/esm/form-control-error-text_4.entry.js +9 -9
- package/dist/esm/justifi-bank-account-form.entry.js +2 -2
- package/dist/esm/justifi-billing-form_2.entry.js +1 -1
- package/dist/esm/justifi-business-details.entry.js +4 -2
- package/dist/esm/justifi-business-form.entry.js +6 -4
- package/dist/esm/justifi-card-form.entry.js +2 -2
- package/dist/esm/justifi-checkout-core.entry.js +1 -1
- package/dist/esm/justifi-checkout.entry.js +6 -4
- package/dist/esm/justifi-details.entry.js +1 -1
- package/dist/esm/justifi-gross-payment-chart.entry.js +4 -2
- package/dist/esm/justifi-payment-details.entry.js +5 -3
- package/dist/esm/justifi-payment-form.entry.js +8 -6
- package/dist/esm/justifi-payment-method-form.entry.js +1 -1
- package/dist/esm/justifi-payment-provisioning-core.entry.js +1 -1
- package/dist/esm/justifi-payment-provisioning.entry.js +5 -3
- package/dist/esm/justifi-payments-list.entry.js +12 -8
- package/dist/esm/justifi-payout-details.entry.js +4 -2
- package/dist/esm/justifi-payouts-list.entry.js +4 -2
- package/dist/esm/justifi-refund-form.entry.js +2 -2
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-0935c5e5.js → package-2ef16e2c.js} +3 -1
- package/dist/esm/payment-details-core.entry.js +1 -1
- package/dist/esm/{payment.service-02c596b9.js → payment.service-21a3e2d3.js} +5 -2
- package/dist/esm/payments-list-core.entry.js +15 -10
- package/dist/esm/payments-list-filters_2.entry.js +17261 -0
- package/dist/esm/payout-details-core.entry.js +2 -2
- package/dist/esm/payouts-list-core.entry.js +3 -3
- package/dist/esm/styled-host-3171ae1f.js +12 -0
- package/dist/esm/utils-3a4d8f3a.js +22 -0
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/check-pkg-version.js +22 -0
- package/dist/module/custom-popper.d.ts +11 -0
- package/dist/module/custom-popper.js +6 -0
- package/dist/module/custom-popper2.js +1912 -0
- package/dist/module/form-control-date2.js +7 -7
- package/dist/module/form-control-select2.js +9 -9
- package/dist/module/form-control-text2.js +7 -7
- package/dist/module/justifi-business-details.js +2 -0
- package/dist/module/justifi-business-form.js +3 -1
- package/dist/module/justifi-checkout.js +4 -2
- package/dist/module/justifi-gross-payment-chart.js +2 -0
- package/dist/module/justifi-payment-details.js +2 -0
- package/dist/module/justifi-payment-form.js +5 -3
- package/dist/module/justifi-payment-provisioning.js +3 -1
- package/dist/module/justifi-payments-list.js +50 -14
- package/dist/module/justifi-payout-details.js +2 -0
- package/dist/module/justifi-payouts-list.js +2 -0
- package/dist/module/justifi-refund-form.js +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +3 -1
- package/dist/module/package.js +3 -1
- package/dist/module/payment.service.js +5 -2
- package/dist/module/payments-list-core2.js +51 -17
- package/dist/module/payments-list-filters.d.ts +11 -0
- package/dist/module/payments-list-filters.js +6 -0
- package/dist/module/payments-list-filters2.js +17294 -0
- package/dist/module/payout-details-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +2 -2
- package/dist/module/styled-host.js +1 -1
- package/dist/module/table-filters-menu.d.ts +11 -0
- package/dist/module/table-filters-menu.js +6 -0
- package/dist/module/table-filters-menu2.js +80 -0
- package/dist/types/api/Payment.d.ts +9 -0
- package/dist/types/api/services/payment.service.d.ts +2 -2
- package/dist/types/components/form/form-control-date.d.ts +4 -4
- package/dist/types/components/form/form-control-select.d.ts +6 -6
- package/dist/types/components/form/form-control-text.d.ts +4 -4
- package/dist/types/components/payments-list/get-payments.d.ts +2 -1
- package/dist/types/components/payments-list/payments-list-core.d.ts +6 -5
- package/dist/types/components/payments-list/payments-list-filters.d.ts +13 -0
- package/dist/types/components/payments-list/payments-list.d.ts +3 -2
- package/dist/types/components.d.ts +91 -10
- package/dist/types/ui-components/custom-popper/custom-popper.d.ts +21 -0
- package/dist/types/ui-components/filters/table-filters-menu.d.ts +11 -0
- package/dist/types/ui-components/filters/utils.d.ts +2 -0
- package/dist/types/utils/check-pkg-version.d.ts +1 -0
- package/dist/webcomponents/p-034fc302.entry.js +1 -0
- package/dist/webcomponents/{p-f5ebca3e.entry.js → p-1c04aacd.entry.js} +1 -1
- package/dist/webcomponents/{p-b676bca5.entry.js → p-232016ba.entry.js} +1 -1
- package/dist/webcomponents/p-2c51d29f.js +1 -0
- package/dist/webcomponents/p-35846553.js +1 -0
- package/dist/webcomponents/{p-bd278ff4.entry.js → p-37888614.entry.js} +1 -1
- package/dist/webcomponents/{p-be39c802.entry.js → p-3c7fac29.entry.js} +1 -1
- package/dist/webcomponents/{p-edb62047.entry.js → p-430f81c6.entry.js} +1 -1
- package/dist/webcomponents/p-44055818.js +1 -0
- package/dist/webcomponents/p-538fd427.entry.js +1 -0
- package/dist/webcomponents/{p-fb58feb5.entry.js → p-570a0f02.entry.js} +1 -1
- package/dist/webcomponents/p-57d7534f.entry.js +1 -0
- package/dist/webcomponents/{p-c9f8f7ec.entry.js → p-59cf5391.entry.js} +1 -1
- package/dist/webcomponents/p-60d3571e.entry.js +1 -0
- package/dist/webcomponents/{p-4e017b58.js → p-707bdf68.js} +1 -1
- package/dist/webcomponents/p-75139399.entry.js +1 -0
- package/dist/webcomponents/p-7771f64b.entry.js +1 -0
- package/dist/webcomponents/p-7ddfce86.entry.js +1 -0
- package/dist/webcomponents/p-8a7112a0.entry.js +1 -0
- package/dist/webcomponents/p-9add7d3e.entry.js +1 -0
- package/dist/webcomponents/p-9b154d98.entry.js +1 -0
- package/dist/webcomponents/p-ab92abb1.entry.js +1 -0
- package/dist/webcomponents/{p-4e01fec8.entry.js → p-b14da2fd.entry.js} +1 -1
- package/dist/webcomponents/p-b91bcbfc.js +1 -0
- package/dist/webcomponents/{p-124c1ecd.entry.js → p-bdc91c61.entry.js} +1 -1
- package/dist/webcomponents/{p-eccf2e8e.entry.js → p-c1772671.entry.js} +1 -1
- package/dist/webcomponents/{p-487b72a8.entry.js → p-c64ce69d.entry.js} +1 -1
- package/dist/webcomponents/{p-b6c3b7bc.entry.js → p-c740b6ca.entry.js} +1 -1
- package/dist/webcomponents/p-ce5fe369.entry.js +10 -0
- package/dist/webcomponents/p-d9579cd6.entry.js +1 -0
- package/dist/webcomponents/p-d99a5f30.entry.js +1 -0
- package/dist/webcomponents/p-dc048c3c.entry.js +1 -0
- package/dist/webcomponents/p-f2924369.js +1 -0
- package/dist/webcomponents/p-fb7f7a8c.entry.js +1 -0
- package/dist/webcomponents/p-ffddac99.entry.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +3 -1
- package/dist/cjs/styled-host-cc053016.js +0 -14
- package/dist/esm/styled-host-ab9da520.js +0 -12
- package/dist/webcomponents/p-07109641.entry.js +0 -1
- package/dist/webcomponents/p-11b6ed0c.entry.js +0 -1
- package/dist/webcomponents/p-15976984.entry.js +0 -1
- package/dist/webcomponents/p-1cf90026.entry.js +0 -1
- package/dist/webcomponents/p-3423ddfd.entry.js +0 -1
- package/dist/webcomponents/p-39c6f36a.entry.js +0 -1
- package/dist/webcomponents/p-421ed39d.entry.js +0 -1
- package/dist/webcomponents/p-69c18f39.entry.js +0 -1
- package/dist/webcomponents/p-6abb2a04.entry.js +0 -1
- package/dist/webcomponents/p-721dcf51.entry.js +0 -1
- package/dist/webcomponents/p-817da23c.entry.js +0 -1
- package/dist/webcomponents/p-a99032e1.entry.js +0 -1
- package/dist/webcomponents/p-ba4bae6f.js +0 -1
- package/dist/webcomponents/p-d4a44a1e.entry.js +0 -1
- package/dist/webcomponents/p-d78eb6ce.js +0 -1
- package/dist/webcomponents/p-e2b2213f.entry.js +0 -1
- package/dist/webcomponents/p-e3f4a2a6.js +0 -1
- package/dist/webcomponents/p-e7fd1357.entry.js +0 -1
|
@@ -13,13 +13,13 @@ export class TextInput {
|
|
|
13
13
|
inputElement.value = newValue || '';
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
|
-
this.label = undefined;
|
|
17
16
|
this.name = undefined;
|
|
17
|
+
this.label = undefined;
|
|
18
|
+
this.inputHandler = undefined;
|
|
19
|
+
this.defaultValue = undefined;
|
|
18
20
|
this.helpText = undefined;
|
|
19
21
|
this.errorText = undefined;
|
|
20
|
-
this.defaultValue = undefined;
|
|
21
22
|
this.maxLength = undefined;
|
|
22
|
-
this.inputHandler = undefined;
|
|
23
23
|
this.keyDownHandler = undefined;
|
|
24
24
|
this.disabled = undefined;
|
|
25
25
|
}
|
|
@@ -30,11 +30,28 @@ export class TextInput {
|
|
|
30
30
|
this.updateInput(this.defaultValue);
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
return (h(Host, { key: '
|
|
33
|
+
return (h(Host, { key: 'fddfb4134747c8d8caf6594f5450e57fa4c2dc3e', exportparts: "label,input,input-invalid" }, h("div", { key: 'bbd0174fb56d911992907e0a2c453b9d1412b636', class: "form-group d-flex flex-column" }, h("label", { key: 'f5d9d3d6c4694d08d86963df37adbd1b334593b3', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: 'ae49e4c86782fd0901c1a0e8530981cf1b0b7c65', 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: '1e1bbc8d39e5caeca559515f72eb17ca9b3ab0b1', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '44c121cb0eb69840440e696e784c7a73689a42f2', errorText: this.errorText, name: this.name }))));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "form-control-text"; }
|
|
36
36
|
static get properties() {
|
|
37
37
|
return {
|
|
38
|
+
"name": {
|
|
39
|
+
"type": "any",
|
|
40
|
+
"mutable": false,
|
|
41
|
+
"complexType": {
|
|
42
|
+
"original": "any",
|
|
43
|
+
"resolved": "any",
|
|
44
|
+
"references": {}
|
|
45
|
+
},
|
|
46
|
+
"required": false,
|
|
47
|
+
"optional": false,
|
|
48
|
+
"docs": {
|
|
49
|
+
"tags": [],
|
|
50
|
+
"text": ""
|
|
51
|
+
},
|
|
52
|
+
"attribute": "name",
|
|
53
|
+
"reflect": false
|
|
54
|
+
},
|
|
38
55
|
"label": {
|
|
39
56
|
"type": "string",
|
|
40
57
|
"mutable": false,
|
|
@@ -52,12 +69,12 @@ export class TextInput {
|
|
|
52
69
|
"attribute": "label",
|
|
53
70
|
"reflect": false
|
|
54
71
|
},
|
|
55
|
-
"
|
|
56
|
-
"type": "
|
|
72
|
+
"inputHandler": {
|
|
73
|
+
"type": "unknown",
|
|
57
74
|
"mutable": false,
|
|
58
75
|
"complexType": {
|
|
59
|
-
"original": "
|
|
60
|
-
"resolved": "
|
|
76
|
+
"original": "(name: string, value: string) => void",
|
|
77
|
+
"resolved": "(name: string, value: string) => void",
|
|
61
78
|
"references": {}
|
|
62
79
|
},
|
|
63
80
|
"required": false,
|
|
@@ -65,11 +82,9 @@ export class TextInput {
|
|
|
65
82
|
"docs": {
|
|
66
83
|
"tags": [],
|
|
67
84
|
"text": ""
|
|
68
|
-
}
|
|
69
|
-
"attribute": "name",
|
|
70
|
-
"reflect": false
|
|
85
|
+
}
|
|
71
86
|
},
|
|
72
|
-
"
|
|
87
|
+
"defaultValue": {
|
|
73
88
|
"type": "string",
|
|
74
89
|
"mutable": false,
|
|
75
90
|
"complexType": {
|
|
@@ -83,10 +98,10 @@ export class TextInput {
|
|
|
83
98
|
"tags": [],
|
|
84
99
|
"text": ""
|
|
85
100
|
},
|
|
86
|
-
"attribute": "
|
|
101
|
+
"attribute": "default-value",
|
|
87
102
|
"reflect": false
|
|
88
103
|
},
|
|
89
|
-
"
|
|
104
|
+
"helpText": {
|
|
90
105
|
"type": "string",
|
|
91
106
|
"mutable": false,
|
|
92
107
|
"complexType": {
|
|
@@ -100,10 +115,10 @@ export class TextInput {
|
|
|
100
115
|
"tags": [],
|
|
101
116
|
"text": ""
|
|
102
117
|
},
|
|
103
|
-
"attribute": "
|
|
118
|
+
"attribute": "help-text",
|
|
104
119
|
"reflect": false
|
|
105
120
|
},
|
|
106
|
-
"
|
|
121
|
+
"errorText": {
|
|
107
122
|
"type": "string",
|
|
108
123
|
"mutable": false,
|
|
109
124
|
"complexType": {
|
|
@@ -112,12 +127,12 @@ export class TextInput {
|
|
|
112
127
|
"references": {}
|
|
113
128
|
},
|
|
114
129
|
"required": false,
|
|
115
|
-
"optional":
|
|
130
|
+
"optional": true,
|
|
116
131
|
"docs": {
|
|
117
132
|
"tags": [],
|
|
118
133
|
"text": ""
|
|
119
134
|
},
|
|
120
|
-
"attribute": "
|
|
135
|
+
"attribute": "error-text",
|
|
121
136
|
"reflect": false
|
|
122
137
|
},
|
|
123
138
|
"maxLength": {
|
|
@@ -137,21 +152,6 @@ export class TextInput {
|
|
|
137
152
|
"attribute": "max-length",
|
|
138
153
|
"reflect": false
|
|
139
154
|
},
|
|
140
|
-
"inputHandler": {
|
|
141
|
-
"type": "unknown",
|
|
142
|
-
"mutable": false,
|
|
143
|
-
"complexType": {
|
|
144
|
-
"original": "(name: string, value: string) => void",
|
|
145
|
-
"resolved": "(name: string, value: string) => void",
|
|
146
|
-
"references": {}
|
|
147
|
-
},
|
|
148
|
-
"required": false,
|
|
149
|
-
"optional": false,
|
|
150
|
-
"docs": {
|
|
151
|
-
"tags": [],
|
|
152
|
-
"text": ""
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
155
|
"keyDownHandler": {
|
|
156
156
|
"type": "unknown",
|
|
157
157
|
"mutable": false,
|
|
@@ -176,7 +176,7 @@ export class TextInput {
|
|
|
176
176
|
"references": {}
|
|
177
177
|
},
|
|
178
178
|
"required": false,
|
|
179
|
-
"optional":
|
|
179
|
+
"optional": true,
|
|
180
180
|
"docs": {
|
|
181
181
|
"tags": [],
|
|
182
182
|
"text": ""
|
|
@@ -4,6 +4,7 @@ import { makeGetGrossPaymentChartData } from "./get-gross-payment-chart-data";
|
|
|
4
4
|
import { ErrorState } from "../details/utils";
|
|
5
5
|
import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/ComponentError";
|
|
6
6
|
import JustifiAnalytics from "../../api/Analytics";
|
|
7
|
+
import { checkPkgVersion } from "../../utils/check-pkg-version";
|
|
7
8
|
export class GrossPaymentChart {
|
|
8
9
|
constructor() {
|
|
9
10
|
this.handleErrorEvent = (event) => {
|
|
@@ -16,6 +17,7 @@ export class GrossPaymentChart {
|
|
|
16
17
|
this.errorMessage = null;
|
|
17
18
|
}
|
|
18
19
|
componentWillLoad() {
|
|
20
|
+
checkPkgVersion();
|
|
19
21
|
this.analytics = new JustifiAnalytics(this);
|
|
20
22
|
this.initializeGetGrossPayment();
|
|
21
23
|
}
|
package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js
CHANGED
|
@@ -3,6 +3,7 @@ import { InsuranceService } from "../../../api/services/insurance.service";
|
|
|
3
3
|
import { makeGetQuote, makeToggleCoverage } from "../insurance-actions";
|
|
4
4
|
import { ComponentErrorCodes, ComponentErrorSeverity } from "../../../api/ComponentError";
|
|
5
5
|
import JustifiAnalytics from "../../../api/Analytics";
|
|
6
|
+
import { checkPkgVersion } from "../../../utils/check-pkg-version";
|
|
6
7
|
export class SeasonInterruptionInsurance {
|
|
7
8
|
constructor() {
|
|
8
9
|
this.authToken = undefined;
|
|
@@ -26,6 +27,7 @@ export class SeasonInterruptionInsurance {
|
|
|
26
27
|
return this.seasonInterruptionCoreRef.validate();
|
|
27
28
|
}
|
|
28
29
|
componentWillLoad() {
|
|
30
|
+
checkPkgVersion();
|
|
29
31
|
this.analytics = new JustifiAnalytics(this);
|
|
30
32
|
this.initializeServiceMethods();
|
|
31
33
|
}
|
|
@@ -51,7 +53,7 @@ export class SeasonInterruptionInsurance {
|
|
|
51
53
|
});
|
|
52
54
|
}
|
|
53
55
|
render() {
|
|
54
|
-
return (h("justifi-season-interruption-insurance-core", { key: '
|
|
56
|
+
return (h("justifi-season-interruption-insurance-core", { key: '0ef99882f70c9886e8a5b49da5fe89dd4421067a', ref: (el) => (this.seasonInterruptionCoreRef = el), "checkout-id": this.checkoutId, getQuote: this.getQuote, toggleCoverage: this.toggleCoverage, "primary-identity-first-name": this.primaryIdentityFirstName, "primary-identity-last-name": this.primaryIdentityLastName, "primary-identity-state": this.primaryIdentityState, "primary-identity-postal-code": this.primaryIdentityPostalCode, "primary-identity-country": this.primaryIdentityCountry, "primary-identity-email-address": this.primaryIdentityEmailAddress, "policy-attributes-insurable-amount": this.policyAttributesInsurableAmount, "policy-attributes-start-date": this.policyAttributesStartDate, "policy-attributes-end-date": this.policyAttributesEndDate, "covered-identity-first-name": this.coveredIdentityFirstName, "covered-identity-last-name": this.coveredIdentityLastName }));
|
|
55
57
|
}
|
|
56
58
|
static get is() { return "justifi-season-interruption-insurance"; }
|
|
57
59
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,6 +4,7 @@ import { makeGetPaymentDetails } from "./get-payment-details";
|
|
|
4
4
|
import { ErrorState } from "../details/utils";
|
|
5
5
|
import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/ComponentError";
|
|
6
6
|
import JustifiAnalytics from "../../api/Analytics";
|
|
7
|
+
import { checkPkgVersion } from "../../utils/check-pkg-version";
|
|
7
8
|
/**
|
|
8
9
|
* @exportedPart detail-loading-spinner
|
|
9
10
|
* @exportedPart detail-loading-state
|
|
@@ -40,6 +41,7 @@ export class PaymentDetails {
|
|
|
40
41
|
this.errorMessage = null;
|
|
41
42
|
}
|
|
42
43
|
componentWillLoad() {
|
|
44
|
+
checkPkgVersion();
|
|
43
45
|
this.analytics = new JustifiAnalytics(this);
|
|
44
46
|
this.initializeGetPaymentDetails();
|
|
45
47
|
}
|
|
@@ -6,6 +6,7 @@ import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/Component
|
|
|
6
6
|
import { getErrorMessage } from "../../api/services/utils";
|
|
7
7
|
import JustifiAnalytics from "../../api/Analytics";
|
|
8
8
|
import { Button, StyledHost } from "../../ui-components";
|
|
9
|
+
import { checkPkgVersion } from "../../utils/check-pkg-version";
|
|
9
10
|
export class PaymentForm {
|
|
10
11
|
constructor() {
|
|
11
12
|
this.bankAccount = undefined;
|
|
@@ -20,6 +21,7 @@ export class PaymentForm {
|
|
|
20
21
|
this.selectedPaymentMethodType = PaymentMethodTypes.card;
|
|
21
22
|
}
|
|
22
23
|
componentWillLoad() {
|
|
24
|
+
checkPkgVersion();
|
|
23
25
|
this.analytics = new JustifiAnalytics(this);
|
|
24
26
|
if (!this.validateProps()) {
|
|
25
27
|
this.errorEvent.emit({
|
|
@@ -106,15 +108,15 @@ export class PaymentForm {
|
|
|
106
108
|
}
|
|
107
109
|
}
|
|
108
110
|
render() {
|
|
109
|
-
return (h(StyledHost, { key: '
|
|
111
|
+
return (h(StyledHost, { key: 'f7d035a9ed8b16016493aa07a85a6b4d6d83b5f5' }, h("form", { key: 'fb9354b439332ef4ee67e915f27b60b9b744e6e2', class: "row gy-3" }, this.showPaymentMethodTypeSelector() && (h("div", { key: '303fbccf9beb30c1d822f0ac148128dfba9d158f', class: "col-12" }, h("justifi-payment-method-selector", { key: 'f71353d3f90ab50461a57ce3738ea853ca4d1cc3', selectedPaymentMethodType: this.getSelectedPaymentMethodType(), onPaymentMethodSelected: event => this.paymentMethodSelectedHandler(event) }))), h("div", { key: 'd9024a406dcde487ff2bb7d34385da0a1be8aef5', class: "col-12" }, h("justifi-payment-method-form", { key: '010488c96f1b6b5af049b89151cea9ce61f263bb', "payment-method-form-type": this.getSelectedPaymentMethodType(), iframeOrigin: config.iframeOrigin, ref: el => {
|
|
110
112
|
if (el) {
|
|
111
113
|
this.paymentMethodFormRef = el;
|
|
112
114
|
}
|
|
113
|
-
} })), h("div", { key: '
|
|
115
|
+
} })), h("div", { key: 'c8b41e9d6bc0d21db4bc1efa12852480ed4a0bbd', class: "col-12" }, h("justifi-billing-form", { key: '2226122296e6b9da8359b90fe563b6c4342c72f3', legend: "Billing Info", ref: el => {
|
|
114
116
|
if (el) {
|
|
115
117
|
this.billingFormRef = el;
|
|
116
118
|
}
|
|
117
|
-
} })), h("slot", { key: '
|
|
119
|
+
} })), h("slot", { key: '5aa12164db0d1ac4570db49b7a1bc527d974a8ab', name: 'insurance' }), h("div", { key: '5b0ad786dcf96a4c83696b1e3d1cd09345313807', class: "col-12" }, h(Button, { key: 'b3a55eaf9403d33a0e0769ca2c6c42b086f4da9a', variant: "primary", type: "submit", onClick: event => this.submit(event), disabled: !this.submitButtonEnabled || this.isLoading, isLoading: this.isLoading, "data-testid": "submit-button", style: { width: '100%' } }, this.submitButtonText || 'Submit')))));
|
|
118
120
|
}
|
|
119
121
|
static get is() { return "justifi-payment-form"; }
|
|
120
122
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Payment } from "../../api";
|
|
2
2
|
import { ComponentErrorSeverity } from "../../api/ComponentError";
|
|
3
3
|
import { getErrorCode, getErrorMessage } from "../../api/services/utils";
|
|
4
|
-
export const makeGetPayments = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
|
|
4
|
+
export const makeGetPayments = ({ id, authToken, service, apiOrigin }) => async ({ params, onSuccess, onError }) => {
|
|
5
5
|
var _a, _b;
|
|
6
6
|
try {
|
|
7
|
-
const response = await service.fetchPayments(id, authToken, params);
|
|
7
|
+
const response = await service.fetchPayments(id, authToken, params, apiOrigin);
|
|
8
8
|
if (!response.error) {
|
|
9
9
|
const pagingInfo = Object.assign({}, response.page_info);
|
|
10
10
|
const payments = ((_a = response.data) === null || _a === void 0 ? void 0 : _a.map((dataItem) => new Payment(dataItem))) || [];
|
|
@@ -3,6 +3,7 @@ import { pagingDefaults } from "../../api";
|
|
|
3
3
|
import { MapPaymentStatusToBadge, formatCurrency, formatDate, formatTime } from "../../utils/utils";
|
|
4
4
|
import { tableExportedParts } from "../table/exported-parts";
|
|
5
5
|
import { StyledHost, TableEmptyState, TableErrorState, TableLoadingState } from "../../ui-components";
|
|
6
|
+
import { onFilterChange } from "../../ui-components/filters/utils";
|
|
6
7
|
export class PaymentsListCore {
|
|
7
8
|
constructor() {
|
|
8
9
|
this.handleClickPrevious = (beforeCursor) => {
|
|
@@ -21,15 +22,19 @@ export class PaymentsListCore {
|
|
|
21
22
|
return;
|
|
22
23
|
this.rowClicked.emit(this.payments.find((payment) => payment.id === clickedPaymentID));
|
|
23
24
|
};
|
|
24
|
-
this.
|
|
25
|
-
|
|
25
|
+
this.setParamsOnChange = (name, value) => {
|
|
26
|
+
let newParams = { [name]: value };
|
|
27
|
+
this.params = onFilterChange(newParams, this.params);
|
|
28
|
+
};
|
|
29
|
+
this.clearParams = () => {
|
|
30
|
+
this.params = {};
|
|
26
31
|
};
|
|
27
|
-
this.getPayments = undefined;
|
|
28
32
|
this.payments = [];
|
|
29
33
|
this.loading = true;
|
|
30
34
|
this.errorMessage = undefined;
|
|
31
35
|
this.paging = pagingDefaults;
|
|
32
|
-
this.params =
|
|
36
|
+
this.params = {};
|
|
37
|
+
this.getPayments = undefined;
|
|
33
38
|
}
|
|
34
39
|
updateOnPropChange() {
|
|
35
40
|
this.fetchData();
|
|
@@ -78,8 +83,8 @@ export class PaymentsListCore {
|
|
|
78
83
|
{
|
|
79
84
|
type: 'head',
|
|
80
85
|
value: `
|
|
81
|
-
<div class=
|
|
82
|
-
<div class=
|
|
86
|
+
<div class="fw-bold">${formatDate(payment.created_at)}</div>
|
|
87
|
+
<div class="fw-bold">${formatTime(payment.created_at)}</div>
|
|
83
88
|
`,
|
|
84
89
|
},
|
|
85
90
|
formatCurrency(payment.amount),
|
|
@@ -104,8 +109,8 @@ export class PaymentsListCore {
|
|
|
104
109
|
}
|
|
105
110
|
render() {
|
|
106
111
|
var _a, _b;
|
|
107
|
-
return (h(StyledHost, { key: '
|
|
108
|
-
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 ?
|
|
112
|
+
return (h(StyledHost, { key: 'aa139e92669ea06532373a64f08a9926f9ddb4d0', exportparts: tableExportedParts }, h("payments-list-filters", { key: 'd5338eb8899dc99a9633cd892400fc4749edb4b6', params: this.params, setParamsOnChange: this.setParamsOnChange, clearParams: this.clearParams }), h("div", { key: 'dd452f6a2920ef50fb24324efdf65407f7d964f7', class: "table-wrapper" }, h("table", { key: '64d2d4304549595b80a45ee5684f7ac3cd296245', class: "table table-hover" }, h("thead", { key: '256145c2eea8ac35f1c83663cba68d85287f33fc', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: '43a9d75516e80bb5cd04f2575370c863f6413528', 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: 'f95b3b11a9fe046a14a78aaa9f08a5522bead677', class: "table-body", part: "table-body" }, h(TableLoadingState, { key: 'f92ed5822f5f3946463b89ed746ab641cbf3b2b3', columnSpan: this.columnData.length, isLoading: this.loading }), h(TableEmptyState, { key: 'ddd2a229c0bb493480504ddcd855d2957b5acedd', isEmpty: this.showEmptyState, columnSpan: this.columnData.length }), h(TableErrorState, { key: '0a42c24d04d0cb23804e4a55d185cb9da4b205ab', columnSpan: this.columnData.length, errorMessage: this.errorMessage }), this.showRowData &&
|
|
113
|
+
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) => {
|
|
109
114
|
let nestedHtml = dataEntry === null || dataEntry === void 0 ? void 0 : dataEntry.type;
|
|
110
115
|
if (nestedHtml) {
|
|
111
116
|
return h("td", { part: "table-cell", innerHTML: dataEntry.value });
|
|
@@ -113,7 +118,7 @@ export class PaymentsListCore {
|
|
|
113
118
|
else {
|
|
114
119
|
return h("td", { part: "table-cell" }, dataEntry);
|
|
115
120
|
}
|
|
116
|
-
}))))), this.paging && (h("tfoot", { key: '
|
|
121
|
+
}))))), this.paging && (h("tfoot", { key: '20f135407c3d167359b1e2dd1f12b751b31ac80e', class: "sticky-bottom" }, h("tr", { key: 'dae4f695a77846739f2cc80f1e210f0d24d4671e', class: "table-light align-middle" }, h("td", { key: '6f2ed8b9b062a008f521aad3fe7f2ac923316955', part: "pagination-bar", colSpan: (_b = this.columnData) === null || _b === void 0 ? void 0 : _b.length }, h("pagination-menu", { key: '18c83657e78378ce8b59d6216479047f7728691f', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
|
|
117
122
|
}
|
|
118
123
|
static get is() { return "payments-list-core"; }
|
|
119
124
|
static get properties() {
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { debounce } from "lodash";
|
|
3
|
+
export class PaymentsListFilters {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.params = {};
|
|
6
|
+
this.setParamsOnChange = undefined;
|
|
7
|
+
this.clearParams = undefined;
|
|
8
|
+
}
|
|
9
|
+
componentWillLoad() {
|
|
10
|
+
// debounced input handler for text input
|
|
11
|
+
this.debouncedSetParamsOnChange = debounce(this.setParamsOnChange, 300);
|
|
12
|
+
}
|
|
13
|
+
get paymentStatusOptions() {
|
|
14
|
+
return [
|
|
15
|
+
{ label: 'All', value: '' },
|
|
16
|
+
{ label: 'Pending', value: 'pending' },
|
|
17
|
+
{ label: 'Authorized', value: 'authorized' },
|
|
18
|
+
{ label: 'Succeeded', value: 'succeeded' },
|
|
19
|
+
{ label: 'Failed', value: 'failed' },
|
|
20
|
+
{ label: 'Disputed', value: 'disputed' },
|
|
21
|
+
{ label: 'Refunded', value: 'refunded' }
|
|
22
|
+
];
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
return (h("table-filters-menu", { key: '490bab461b6e9f7d3d6296e0d7b59cd0379750a9', params: this.params, clearParams: this.clearParams }, h("div", { key: '03541b6698c5c7fd3f82133e5c391c1a88516a09', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'da16493e48e338b7a44acdfd8adfc74536580c76', class: "p-2" }, h("form-control-text", { key: '5c3c66c184bc1753ce8a8c9dd8644a15338dba27', name: "payment_id", label: "Payment ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.params.payment_id })), h("div", { key: 'cc1637833295948df93b3fc5e3a9240b8c401840', class: "p-2" }, h("form-control-text", { key: '9201deffdc08ddadbcb4b1b817550116ce5e4eb9', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.params.terminal_id })), h("div", { key: '8bba67af45d8ae3427c0df2fd7e3e01bfb081ade', class: "p-2" }, h("form-control-select", { key: '9744947523c0ba7f840946b9d21574d93b239efe', name: "payment_status", label: "Status", options: this.paymentStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.params.payment_status })), h("div", { key: '3e15042ad46b11ea1ba086a284a32b7a661362d9', class: "p-2" }, h("form-control-date", { key: '4cb7f7356fb9a3e86834511eefd16c5b3334b976', name: "created_after", label: "Start Date", inputHandler: this.setParamsOnChange, defaultValue: this.params.created_after })), h("div", { key: '88315cc708c3e4e526e0a80f04a114bf0f9600bf', class: "p-2" }, h("form-control-date", { key: '537eee72fc813d0c73d830641db73eadabef5d18', name: "created_before", label: "End Date", inputHandler: this.setParamsOnChange, defaultValue: this.params.created_before })))));
|
|
26
|
+
}
|
|
27
|
+
static get is() { return "payments-list-filters"; }
|
|
28
|
+
static get properties() {
|
|
29
|
+
return {
|
|
30
|
+
"params": {
|
|
31
|
+
"type": "unknown",
|
|
32
|
+
"mutable": false,
|
|
33
|
+
"complexType": {
|
|
34
|
+
"original": "PaymentsParams",
|
|
35
|
+
"resolved": "PaymentsParams",
|
|
36
|
+
"references": {
|
|
37
|
+
"PaymentsParams": {
|
|
38
|
+
"location": "import",
|
|
39
|
+
"path": "../../api",
|
|
40
|
+
"id": "src/api/index.ts::PaymentsParams"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"required": false,
|
|
45
|
+
"optional": false,
|
|
46
|
+
"docs": {
|
|
47
|
+
"tags": [],
|
|
48
|
+
"text": ""
|
|
49
|
+
},
|
|
50
|
+
"defaultValue": "{}"
|
|
51
|
+
},
|
|
52
|
+
"setParamsOnChange": {
|
|
53
|
+
"type": "unknown",
|
|
54
|
+
"mutable": false,
|
|
55
|
+
"complexType": {
|
|
56
|
+
"original": "(name: string, value: string) => void",
|
|
57
|
+
"resolved": "(name: string, value: string) => void",
|
|
58
|
+
"references": {}
|
|
59
|
+
},
|
|
60
|
+
"required": false,
|
|
61
|
+
"optional": false,
|
|
62
|
+
"docs": {
|
|
63
|
+
"tags": [],
|
|
64
|
+
"text": ""
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"clearParams": {
|
|
68
|
+
"type": "unknown",
|
|
69
|
+
"mutable": false,
|
|
70
|
+
"complexType": {
|
|
71
|
+
"original": "() => void",
|
|
72
|
+
"resolved": "() => void",
|
|
73
|
+
"references": {}
|
|
74
|
+
},
|
|
75
|
+
"required": false,
|
|
76
|
+
"optional": false,
|
|
77
|
+
"docs": {
|
|
78
|
+
"tags": [],
|
|
79
|
+
"text": ""
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -4,6 +4,8 @@ import { makeGetPayments } from "./get-payments";
|
|
|
4
4
|
import { ErrorState } from "../details/utils";
|
|
5
5
|
import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/ComponentError";
|
|
6
6
|
import JustifiAnalytics from "../../api/Analytics";
|
|
7
|
+
import { checkPkgVersion } from "../../utils/check-pkg-version";
|
|
8
|
+
import { config } from "../../../config";
|
|
7
9
|
/**
|
|
8
10
|
* @exportedPart label: Label for inputs
|
|
9
11
|
* @exportedPart input: The input fields
|
|
@@ -32,12 +34,14 @@ export class PaymentsList {
|
|
|
32
34
|
this.errorMessage = event.detail.message;
|
|
33
35
|
this.errorEvent.emit(event.detail);
|
|
34
36
|
};
|
|
35
|
-
this.accountId = undefined;
|
|
36
|
-
this.authToken = undefined;
|
|
37
37
|
this.getPayments = undefined;
|
|
38
38
|
this.errorMessage = null;
|
|
39
|
+
this.accountId = undefined;
|
|
40
|
+
this.authToken = undefined;
|
|
41
|
+
this.apiOrigin = config.proxyApiOrigin;
|
|
39
42
|
}
|
|
40
43
|
componentWillLoad() {
|
|
44
|
+
checkPkgVersion();
|
|
41
45
|
this.analytics = new JustifiAnalytics(this);
|
|
42
46
|
this.initializeGetPayments();
|
|
43
47
|
}
|
|
@@ -53,6 +57,7 @@ export class PaymentsList {
|
|
|
53
57
|
id: this.accountId,
|
|
54
58
|
authToken: this.authToken,
|
|
55
59
|
service: new PaymentService(),
|
|
60
|
+
apiOrigin: this.apiOrigin,
|
|
56
61
|
});
|
|
57
62
|
}
|
|
58
63
|
else {
|
|
@@ -107,6 +112,24 @@ export class PaymentsList {
|
|
|
107
112
|
},
|
|
108
113
|
"attribute": "auth-token",
|
|
109
114
|
"reflect": false
|
|
115
|
+
},
|
|
116
|
+
"apiOrigin": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"mutable": false,
|
|
119
|
+
"complexType": {
|
|
120
|
+
"original": "string",
|
|
121
|
+
"resolved": "string",
|
|
122
|
+
"references": {}
|
|
123
|
+
},
|
|
124
|
+
"required": false,
|
|
125
|
+
"optional": true,
|
|
126
|
+
"docs": {
|
|
127
|
+
"tags": [],
|
|
128
|
+
"text": ""
|
|
129
|
+
},
|
|
130
|
+
"attribute": "api-origin",
|
|
131
|
+
"reflect": false,
|
|
132
|
+
"defaultValue": "config.proxyApiOrigin"
|
|
110
133
|
}
|
|
111
134
|
};
|
|
112
135
|
}
|
|
@@ -52,7 +52,7 @@ export class PayoutDetailsCore {
|
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
54
|
var _a;
|
|
55
|
-
return (h(StyledHost, { key: '
|
|
55
|
+
return (h(StyledHost, { key: '3ab39ca75aa7f1db8daf8442d2ae9131085375ae' }, this.loading && LoadingState(), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && this.payout && (h("justifi-details", { key: 'c423b3e994e2ceb3b9f641752f1747aa8d8e7b4e', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: 'e39f07636edbe3527707c538f296133a24a92aa1', slot: "head-info", badge: h("span", { slot: 'badge', innerHTML: MapPayoutStatusToBadge((_a = this.payout) === null || _a === void 0 ? void 0 : _a.status) }), title: `${formatCurrency(this.payout.amount)} ${this.payout.currency.toUpperCase()}` }, h(EntityHeadInfoItem, { key: '3424ff97b7a41fdbd784a982617af0ab2ff004e7', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payout.updated_at)} ${formatTime(this.payout.updated_at)}` }), h(EntityHeadInfoItem, { key: 'c2584993d369514e2413c7d23a9b731eb2c9135a', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payout.created_at)} ${formatTime(this.payout.created_at)}` }), h(EntityHeadInfoItem, { key: '958856c1acbc34394d2fbc453d9e2dd1f437fe38', title: "ID", value: this.payout.id }), h("div", { key: 'dd097a51e1b02a7624614cb7f554789302e36bcd', class: "m-4" }, h("button", { key: 'f565ec22830ea1fd53e9f14d4f184a4a97e975ea', class: "btn btn-outline-secondary d-flex align-items-center", onClick: this.downloadCSV }, "Export CSV"))), h("div", { key: 'a12b5c5a78c1e21d905a8049537d8775765766d1', slot: 'detail-sections' }, h(DetailSectionTitle, { key: 'b3ef435e2cce25f91e3d015098c199a95acfd76e', sectionTitle: "Details" }), h("div", { key: '585f9454474ce9b5691265cfe44309220b737a8a', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '20deb7901ee526c84966e43e020b7aec9ce2d014', title: "Date paid", value: formatDate(this.payout.deposits_at) }), h(DetailItem, { key: 'e0f17db65ed53f3c4b3eff511dcf44784e9d0be5', title: "Statement Description", value: this.payout.description }), h(DetailItem, { key: '5c665c9b5eca28d09c46367156a586b64bb20ee5', title: "Payout Method", value: this.payout.delivery_method }), h(DetailItem, { key: 'e0a39aad45a06185498256859947f8f64312bbc4', title: "Amount", value: formatCurrency(this.payout.amount) }), h(DetailItem, { key: 'd0fcad35843acf001cc73c0fe3f67ca85fa99007', title: "Fee", value: formatCurrency(this.payout.fees_total) })), h(DetailSectionTitle, { key: '08d127690a8e63e852cd23ed53cc83da77c9de46', sectionTitle: "Account" }), h("div", { key: '1ebc113b76f30abd208374a0cfaa60c3ac6c30d2', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'f61baf5b0e38d0e1c31d9f32109d4eb87a1dcc51', title: "ID", value: this.payout.account_id }), h(DetailItem, { key: '01aa558d404b8bb3d170812828ee0929e60bc2c9', title: "Account Type", value: this.payout.bank_account.account_type }), h(DetailItem, { key: '8298458ba6dc9bcdaa7f992d530e179e3d8a3bc3', title: "Institution", value: this.payout.bank_account.account_type }), h(DetailItem, { key: 'b15a016b489bd61f55670beec610f49c56659b87', title: "Routing Number", value: this.payout.bank_account.routing_number }), h(DetailItem, { key: 'cd9e466eaadf645fcabad56c1ee2493e6f5ac11c', title: "Account Number", value: this.payout.bank_account.account_number_last4 })), h(DetailSectionTitle, { key: 'b30058d0ebd67c91ba182e1e2231ff72d9adf5c5', sectionTitle: 'Metadata' }), h("div", { key: '02876e9c23abea853218c78b99e1b46795af7a93', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: '9e6dee3bda335ff836e650741a00b75800da7dab', metadata: this.payout.metadata })))))));
|
|
56
56
|
}
|
|
57
57
|
static get is() { return "payout-details-core"; }
|
|
58
58
|
static get properties() {
|
|
@@ -5,6 +5,7 @@ import { ErrorState } from "../details/utils";
|
|
|
5
5
|
import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/ComponentError";
|
|
6
6
|
import JustifiAnalytics from "../../api/Analytics";
|
|
7
7
|
import { makeGetPayoutCSV } from "./get-payout-csv";
|
|
8
|
+
import { checkPkgVersion } from "../../utils/check-pkg-version";
|
|
8
9
|
export class PayoutDetails {
|
|
9
10
|
constructor() {
|
|
10
11
|
this.handleErrorEvent = (event) => {
|
|
@@ -18,6 +19,7 @@ export class PayoutDetails {
|
|
|
18
19
|
this.errorMessage = null;
|
|
19
20
|
}
|
|
20
21
|
componentWillLoad() {
|
|
22
|
+
checkPkgVersion();
|
|
21
23
|
this.analytics = new JustifiAnalytics(this);
|
|
22
24
|
this.initializeServices();
|
|
23
25
|
}
|
|
@@ -139,8 +139,8 @@ export class PayoutsListCore {
|
|
|
139
139
|
return !this.showEmptyState && !this.showErrorState;
|
|
140
140
|
}
|
|
141
141
|
render() {
|
|
142
|
-
return (h(StyledHost, { key: '
|
|
143
|
-
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) => ((dataEntry === null || dataEntry === void 0 ? void 0 : dataEntry.type) ? (h("td", { part: "table-cell", innerHTML: dataEntry.value })) : (h("td", { part: "table-cell" }, dataEntry)))))))), this.paging && (h("tfoot", { key: '
|
|
142
|
+
return (h(StyledHost, { key: 'c160bca06a40b0bde1d0ecf3bbbf081535c23487', exportedparts: tableExportedParts }, h("div", { key: 'ba6b1418212fc79f2eb4a2c4835de9f2df7fd8e9', class: "row gy-3 mb-4" }, h("div", { key: '0c7323ec2551a29df6a9e273e53ca965b4422ce5', class: "col-2" }, h("form-control-date", { key: 'f3cd038ef750e1022e29dba96e201e669f0d2f84', name: "created_after", label: "Date from:", inputHandler: this.handleDateChange })), h("div", { key: '46f0a88e563ace9d4476940abec758721e40d217', class: "col-2" }, h("form-control-date", { key: 'c80de9111c3b4fb9c526c0668b4154753fd78ebd', name: "created_before", label: "Date to:", inputHandler: this.handleDateChange }))), h("div", { key: '570a74e2c87f2d685f932c5a0182a77a7cf296c0', class: "table-wrapper" }, h("table", { key: 'dba141a302aeb90c45bb64171870bf1cd097576b', class: "table table-hover" }, h("thead", { key: 'ea6fb0e3d3aecf89216d310bc66874602a64af40', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: 'daa4eab66cdaad6af240704f24c1e22f9d1ff999', class: "table-light text-nowrap", part: "table-head-row" }, this.columnData.map((column) => (h("th", { part: "table-head-cell", scope: "col", title: Array.isArray(column) ? column[1] : '' }, Array.isArray(column) ? column[0] : column))))), h("tbody", { key: '1f7ffd08ce54fe4b47560e3465e18bd163065be0', class: "table-body", part: "table-body" }, h(TableLoadingState, { key: '8a2668b61449c0a16183bff5a2de120cb8898922', columnSpan: this.columnData.length, isLoading: this.loading }), h(TableEmptyState, { key: 'a419e933f349cc126afac309c0647a985590dfc5', isEmpty: this.showEmptyState, columnSpan: this.columnData.length }), h(TableErrorState, { key: 'b3a0267af5bdfdf7ca28caa4b2427437fb6f806f', columnSpan: this.columnData.length, errorMessage: this.errorMessage }), this.showRowData &&
|
|
143
|
+
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) => ((dataEntry === null || dataEntry === void 0 ? void 0 : dataEntry.type) ? (h("td", { part: "table-cell", innerHTML: dataEntry.value })) : (h("td", { part: "table-cell" }, dataEntry)))))))), this.paging && (h("tfoot", { key: '11aabf956abf100c8988c7fc0dc6fe1327b0a45d', class: "sticky-bottom" }, h("tr", { key: '37bf8a636469e15cb73d0730e2a2269decc83693', class: "table-light align-middle" }, h("td", { key: '785d2f4b39153842a9a9a0ab40ace7c2a35c6b6c', part: "pagination-bar", colSpan: this.columnData.length }, h("pagination-menu", { key: 'f39e621434687eab1b7fccdfda56cbecfe59d64d', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
|
|
144
144
|
}
|
|
145
145
|
static get is() { return "payouts-list-core"; }
|
|
146
146
|
static get properties() {
|
|
@@ -6,6 +6,7 @@ import { ErrorState } from "../details/utils";
|
|
|
6
6
|
import { ComponentErrorCodes } from "../../api/ComponentError";
|
|
7
7
|
import JustifiAnalytics from "../../api/Analytics";
|
|
8
8
|
import { makeGetPayoutCSV } from "../payout-details/get-payout-csv";
|
|
9
|
+
import { checkPkgVersion } from "../../utils/check-pkg-version";
|
|
9
10
|
/**
|
|
10
11
|
* @exportedPart label: Label for inputs
|
|
11
12
|
* @exportedPart input: The input fields
|
|
@@ -41,6 +42,7 @@ export class PayoutsList {
|
|
|
41
42
|
this.errorMessage = null;
|
|
42
43
|
}
|
|
43
44
|
componentWillLoad() {
|
|
45
|
+
checkPkgVersion();
|
|
44
46
|
this.analytics = new JustifiAnalytics(this);
|
|
45
47
|
this.initializeServices();
|
|
46
48
|
}
|
|
@@ -75,7 +75,7 @@ export class RefundForm {
|
|
|
75
75
|
}
|
|
76
76
|
render() {
|
|
77
77
|
var _a;
|
|
78
|
-
return (h(StyledHost, { key: '
|
|
78
|
+
return (h(StyledHost, { key: 'bb3d26c841a9697e5881426fb92027e1fff62e9f' }, h("h1", { key: 'b89354d3dec27b3e496af20957fa4d30b7c2e99e' }, "Refund"), this.refundInfoText && (h("div", { key: '493ff3e052c5b28bb382355dd32ebf407446346d', class: "d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3", role: "alert" }, h("img", { key: '72211dc3be8aef8bb87aaff278455170a2be0ed4', src: "/info-icon.svg", alt: "Information", height: "30", width: "30" }), h("p", { key: 'fa22ea217cbb789cd6a4d2798903df20c7a99c3a', class: "m-0", innerHTML: this.refundInfoText }))), h("form", { key: 'd698a190fbc5f92375cda2707ea54a0b7d7ca4c3', onSubmit: e => this.handleSubmit(e), class: "d-grid gap-4" }, h("div", { key: '68796a301cea039ba86eaba91e4a63f7db800f47', class: "form-group" }, h("form-control-monetary", { key: '7a03e3d50bad0f932ca69ba7bb8c20cf80d62bc7', 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: 'b4c548b884d7b537a8caa8c91da505af6f6bd6ad', class: "form-group" }, h("form-control-text", { key: '936fb7ee8ce365311c9f368fc7a3c4f183d675ba', name: "notes", label: "Additional Notes", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.notes })), this.withButton && (h("div", { key: '9b8c5c4175279e8ce5d4d5c10de9ac1e3249bae7', class: "form-group d-flex flex-row-reverse" }, h("button", { key: '8f8a0a878a541d1740d63927d36ad7f2982f83cb', type: "submit", disabled: !!this.isSubmitting, class: "btn btn-primary ml-auto" }, this.submitButtonText))))));
|
|
79
79
|
}
|
|
80
80
|
static get is() { return "justifi-refund-form"; }
|
|
81
81
|
static get encapsulation() { return "shadow"; }
|