@justifi/webcomponents 6.12.1 → 6.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Analytics-BhduX1FR.js → Analytics-DcqsdFaD.js} +2 -2
- package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/card-form.cjs.entry.js +2 -2
- package/dist/cjs/{check-pkg-version-Bd2yxoh4.js → check-pkg-version-DFTQGZz1.js} +1 -1
- package/dist/cjs/{get-business-CKC1P4Qs.js → get-business-TFzhaBXn.js} +4 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
- package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +74 -36
- package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +3 -3
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-business-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-business-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-card-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkout.cjs.entry.js +5 -6
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +4 -4
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +7 -7
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -3
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +8 -7
- package/dist/cjs/justifi-payment-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +6 -4
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payments-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payout-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +3 -3
- package/dist/cjs/{package-CjFkmEML.js → package-bM0MyhTf.js} +1 -1
- package/dist/collection/actions/business/get-business.js +4 -1
- package/dist/collection/api/Analytics.js +1 -1
- package/dist/collection/collection-manifest.json +6 -6
- package/dist/collection/components/business-forms/payment-provisioning/justifi-payment-provisioning.js +3 -1
- package/dist/collection/components/checkout/justifi-checkout.js +2 -3
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-dispute-response.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-shipping-details.js +1 -1
- package/dist/collection/components/dispute-management/justifi-dispute-management.js +1 -1
- package/dist/collection/components/dispute-management/justifi-dispute-notification.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/justifi-apple-pay.js +34 -14
- package/dist/collection/components/modular-checkout/sub-components/justifi-google-pay.js +4 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-plaid-payment-method.js +27 -14
- package/dist/collection/components/modular-checkout/sub-components/justifi-saved-payment-methods.js +7 -5
- package/dist/collection/components/order-terminals/justifi-order-terminals.js +4 -3
- package/dist/docs.json +6 -6
- package/dist/esm/{Analytics-4PEV3c9V.js → Analytics-Cyc3ZLPx.js} +2 -2
- package/dist/esm/bank-account-form.entry.js +2 -2
- package/dist/esm/card-form.entry.js +2 -2
- package/dist/esm/{check-pkg-version-BmgaID9z.js → check-pkg-version-6iGDh82c.js} +1 -1
- package/dist/esm/{get-business-DpFRs5dE.js → get-business-DIpEbczl.js} +4 -1
- package/dist/esm/hidden-input_2.entry.js +1 -1
- package/dist/esm/justifi-additional-statement_8.entry.js +8 -8
- package/dist/esm/justifi-apple-pay_11.entry.js +75 -37
- package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +3 -3
- package/dist/esm/justifi-bank-account-form.entry.js +3 -3
- package/dist/esm/justifi-business-details.entry.js +4 -4
- package/dist/esm/justifi-business-form.entry.js +3 -3
- package/dist/esm/justifi-card-form.entry.js +3 -3
- package/dist/esm/justifi-checkout.entry.js +5 -6
- package/dist/esm/justifi-checkouts-list.entry.js +3 -3
- package/dist/esm/justifi-dispute-management.entry.js +4 -4
- package/dist/esm/justifi-dispute-notification_3.entry.js +7 -7
- package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
- package/dist/esm/justifi-order-terminals.entry.js +8 -7
- package/dist/esm/justifi-payment-details.entry.js +3 -3
- package/dist/esm/justifi-payment-provisioning.entry.js +6 -4
- package/dist/esm/justifi-payment-transactions-list.entry.js +3 -3
- package/dist/esm/justifi-payments-list.entry.js +3 -3
- package/dist/esm/justifi-payout-details.entry.js +3 -3
- package/dist/esm/justifi-payout-transactions-list.entry.js +3 -3
- package/dist/esm/justifi-payouts-list.entry.js +3 -3
- package/dist/esm/justifi-refund-payment.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list.entry.js +3 -3
- package/dist/esm/justifi-terminals-list.entry.js +3 -3
- package/dist/esm/{package-CXKOe1m5.js → package-beXEDfB9.js} +1 -1
- package/dist/module/Analytics.js +1 -1
- package/dist/module/dispute-response-core.js +1 -1
- package/dist/module/get-business.js +4 -1
- package/dist/module/justifi-additional-statement2.js +1 -1
- package/dist/module/justifi-apple-pay2.js +34 -14
- package/dist/module/justifi-cancellation-policy2.js +1 -1
- package/dist/module/justifi-checkout.js +2 -3
- package/dist/module/justifi-customer-details2.js +1 -1
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-dispute-notification2.js +2 -2
- package/dist/module/justifi-dispute-response2.js +1 -1
- package/dist/module/justifi-duplicate-charge2.js +1 -1
- package/dist/module/justifi-electronic-evidence2.js +1 -1
- package/dist/module/justifi-google-pay2.js +4 -1
- package/dist/module/justifi-order-terminals.js +4 -3
- package/dist/module/justifi-payment-provisioning.js +3 -1
- package/dist/module/justifi-plaid-payment-method2.js +27 -14
- package/dist/module/justifi-product-or-service2.js +1 -1
- package/dist/module/justifi-refund-policy2.js +1 -1
- package/dist/module/justifi-saved-payment-methods2.js +7 -5
- package/dist/module/justifi-shipping-details2.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/types/actions/business/get-business.d.ts +2 -1
- package/dist/types/components/business-forms/payment-provisioning/justifi-payment-provisioning.d.ts +1 -1
- package/dist/types/components/modular-checkout/sub-components/justifi-apple-pay.d.ts +3 -0
- package/dist/types/components/modular-checkout/sub-components/justifi-plaid-payment-method.d.ts +2 -2
- package/dist/webcomponents/{p-647668b6.entry.js → p-1c4f5f1d.entry.js} +1 -1
- package/dist/webcomponents/{p-f4b390bc.entry.js → p-1e8135f0.entry.js} +1 -1
- package/dist/webcomponents/{p-017edf85.entry.js → p-2a755daf.entry.js} +1 -1
- package/dist/webcomponents/{p-0e9cb724.entry.js → p-31e74a5a.entry.js} +1 -1
- package/dist/webcomponents/{p-2b25c768.entry.js → p-3488951f.entry.js} +1 -1
- package/dist/webcomponents/p-437a99dc.entry.js +1 -0
- package/dist/webcomponents/p-49c0cd3a.entry.js +1 -0
- package/dist/webcomponents/p-4d21df48.entry.js +1 -0
- package/dist/webcomponents/p-50f5e313.entry.js +1 -0
- package/dist/webcomponents/{p-06e88d51.entry.js → p-5ef854e0.entry.js} +1 -1
- package/dist/webcomponents/{p-cd267d76.entry.js → p-67498c25.entry.js} +1 -1
- package/dist/webcomponents/{p-61ebdd8b.entry.js → p-6f0c582a.entry.js} +1 -1
- package/dist/webcomponents/{p-f481695c.entry.js → p-94306884.entry.js} +1 -1
- package/dist/webcomponents/{p-b76b743e.entry.js → p-9937e2e7.entry.js} +1 -1
- package/dist/webcomponents/{p-b6d59ff4.entry.js → p-9dca1331.entry.js} +1 -1
- package/dist/webcomponents/{p-GP5gWjhc.js → p-DgH-jcIo.js} +1 -1
- package/dist/webcomponents/p-a75d76ff.entry.js +1 -0
- package/dist/webcomponents/p-a7778957.entry.js +1 -0
- package/dist/webcomponents/p-a9d7cdae.entry.js +1 -0
- package/dist/webcomponents/p-b060a9c9.entry.js +1 -0
- package/dist/webcomponents/p-bdf21f71.entry.js +1 -0
- package/dist/webcomponents/{p-259ea5e0.entry.js → p-be5d1005.entry.js} +1 -1
- package/dist/webcomponents/p-beXEDfB9.js +1 -0
- package/dist/webcomponents/{p-d3829e18.entry.js → p-c09fccd3.entry.js} +1 -1
- package/dist/webcomponents/p-c827cbc9.entry.js +1 -0
- package/dist/webcomponents/{p-1e080e95.entry.js → p-c9e1df15.entry.js} +1 -1
- package/dist/webcomponents/p-cc5b7c27.entry.js +1 -0
- package/dist/webcomponents/{p-1e66d430.entry.js → p-e0b3735f.entry.js} +1 -1
- package/dist/webcomponents/p-ef89824b.entry.js +1 -0
- package/dist/webcomponents/p-qrNmDp6K.js +1 -0
- package/dist/webcomponents/{p-cXPhRFs-.js → p-zi3ljCdQ.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-11faee45.entry.js +0 -1
- package/dist/webcomponents/p-238163d8.entry.js +0 -1
- package/dist/webcomponents/p-4f57368a.entry.js +0 -1
- package/dist/webcomponents/p-608a41d2.entry.js +0 -1
- package/dist/webcomponents/p-6ecb3ef9.entry.js +0 -1
- package/dist/webcomponents/p-87a4b33f.entry.js +0 -1
- package/dist/webcomponents/p-9870fff0.entry.js +0 -1
- package/dist/webcomponents/p-CXKOe1m5.js +0 -1
- package/dist/webcomponents/p-GJyHX3us.js +0 -1
- package/dist/webcomponents/p-b8c59954.entry.js +0 -1
- package/dist/webcomponents/p-cf31ccdd.entry.js +0 -1
- package/dist/webcomponents/p-d58a330d.entry.js +0 -1
- package/dist/webcomponents/p-ed580b3c.entry.js +0 -1
- package/dist/webcomponents/p-f91c49a2.entry.js +0 -1
package/dist/collection/components/dispute-management/dispute-response/justifi-customer-details.js
CHANGED
|
@@ -28,7 +28,7 @@ export class JustifiCustomerDetails {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
var _a, _b, _c, _d, _e;
|
|
31
|
-
return (h("div", { key: '
|
|
31
|
+
return (h("div", { key: '8bc10877cfabb168cd717d463a1ae252809275f5' }, h("div", { key: '12dc083ba94dfbb7b20671c636a0be03f3b67070', class: "row gy-3" }, h("div", { key: '429c91062e19b12711baa35d14b1337f8fbfc9d6', class: "col-12" }, h("h2", { key: '406723145d3bdbaa52b2897a5dc4347be34e7eea', class: "h5", part: heading5 }, "Customer Details")), h("div", { key: '40d5e8bd7c2b1fe8786c38fc2b7a3789278f3497', class: "col-12" }, h("form-control-text", { key: 'ade5ccaf5a45ba5f3f81c68196bfc7879da03315', label: "Full Name", name: "customer_name", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_name, inputHandler: this.inputHandler, errorText: this.errors.customer_name })), h("div", { key: 'baf8a129aa64d4507bce0d1f9ed7077f0911715e', class: "col-12" }, h("form-control-text", { key: '786f84b55ffec13cc937dff50e587e28865c7114', label: "Email", name: "customer_email_address", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.customer_email_address, inputHandler: this.inputHandler, errorText: this.errors.customer_email_address })), h("div", { key: '2805d754316314934648955b34e8c6da5f709192', class: "col-12" }, h("form-control-textarea", { key: '95a7a8a9d1d9ea70478021110808545c0730ffec', label: "Billing Address", name: "customer_billing_address", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.customer_billing_address, inputHandler: this.inputHandler, errorText: this.errors.customer_billing_address })), h("div", { key: '78fa90926cc11695379a95dde849cfb28cf829f5', class: "col-12" }, h("form-control-file-v2", { key: '984ab42f7742afcb0b74ccf65f313ead0542f75d', label: "Customer Signature", name: "customer_signature", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.customer_signature })), h("div", { key: 'de0bf546a3e767ec1e362446f14edea449643b2b', class: "col-12" }, h("form-control-file-v2", { key: '4124feba010476d48ab052142b7fb962d1550934', label: "Customer Communication", name: "customer_communication", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.customer_communication })))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "justifi-customer-details"; }
|
|
34
34
|
static get properties() {
|
package/dist/collection/components/dispute-management/dispute-response/justifi-dispute-response.js
CHANGED
|
@@ -55,7 +55,7 @@ export class JustifiDisputeResponse {
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
|
-
return (h(StyledHost, { key: '
|
|
58
|
+
return (h(StyledHost, { key: 'fb08d6796fe7740f292eff620d04e943adb30b22' }, h("justifi-dispute-response-core", { key: 'cb1859a262749d3e11c14844e5a9a5909970ee06', "onError-event": this.handleErrorEvent, "dispute-id": this.disputeId, disputeResponse: this.disputeResponse, createDisputeEvidence: this.createDisputeEvidence, updateDisputeResponse: this.updateDisputeResponse, submitDisputeResponse: this.submitDisputeResponse })));
|
|
59
59
|
}
|
|
60
60
|
;
|
|
61
61
|
static get is() { return "justifi-dispute-response"; }
|
package/dist/collection/components/dispute-management/dispute-response/justifi-duplicate-charge.js
CHANGED
|
@@ -28,7 +28,7 @@ export class JustifiDuplicateCharge {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
var _a, _b, _c;
|
|
31
|
-
return (h("div", { key: '
|
|
31
|
+
return (h("div", { key: 'a34d10b642c601ff1a2e6109bdad5550afef0dc7' }, h("div", { key: '65dfe9ecb13d4038fbceb5b3f88313e473ad0f2f', class: "row gy-3" }, h("div", { key: '5ec12191f9e56396ff1e67b53dcdfecdca8f21e9', class: "col-12" }, h("h2", { key: 'b5bf89077f1ae3dcbb6c37e28b2728a0c88ed1b4', class: "h5", part: heading5 }, "Duplicate Charge")), h("div", { key: '52cdf5962d03f1724dc610a4525a4bf09a68fe4e', class: "col-12" }, h("form-control-text", { key: '785cc51d4491326c3e7555404e47726cb6f6f0ea', label: "Original Payment ID", name: "duplicate_charge_original_payment_id", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.duplicate_charge_original_payment_id, inputHandler: this.inputHandler, errorText: this.errors.duplicate_charge_original_payment_id })), h("div", { key: 'c3142d3b716cb3a191d930a5961d8361e4ef6204', class: "col-12" }, h("form-control-textarea", { key: 'd6cd675e958cd0685a89812891c599393a309fef', label: "Duplicate Charge Explanation", name: "duplicate_charge_explanation", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.duplicate_charge_explanation, inputHandler: this.inputHandler, errorText: this.errors.duplicate_charge_explanation })), h("div", { key: 'e805678d04d01f4763ee663590e89e96be9fcfb4', class: "col-12" }, h("form-control-file-v2", { key: 'c83c4e91ebba42be4a6e640aa73186f6b461c42f', label: "Duplicate Charge Documentation", name: "duplicate_charge_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.duplicate_charge_documentation })))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "justifi-duplicate-charge"; }
|
|
34
34
|
static get properties() {
|
|
@@ -28,7 +28,7 @@ export class JustifiElectronicEvidence {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
var _a, _b;
|
|
31
|
-
return (h("div", { key: '
|
|
31
|
+
return (h("div", { key: '3b0122e517065a72f2d7b8411d75067db093e284' }, h("div", { key: '3f6b7c42a8e6419a4890ae29c41afd98ecdd8f11', class: "row gy-3" }, h("div", { key: 'f807c043be7f75e7f9befd24cb80fd93f56678d5', class: "col-12" }, h("h2", { key: '3c4315f405ab5cead5eebe48975f26e9d93e0d84', class: "h5", part: heading5 }, "Electronic Evidence")), h("div", { key: 'd84fa8fcc504137031181fdb1974f50d1bc49ef8', class: "col-12" }, h("form-control-text", { key: 'db3862f6a1ebd5afcf5e1ff2943de3d977e56bbe', label: "Purchase IP Address", name: "customer_purchase_ip_address", helpText: "The IP address used by the customer during the purchase.", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_purchase_ip_address, inputHandler: this.inputHandler, errorText: this.errors.customer_purchase_ip_address })), h("div", { key: '4e882539af79b200962740ae5645df663c82bde9', class: "col-12" }, h("form-control-file-v2", { key: '2be5e0f0d1ad5b47d41fabb1f2fe25397e7cc69f', label: "Activity Logs", name: "activity_log", helpText: "Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_b = this.documentErrors) === null || _b === void 0 ? void 0 : _b.activity_log })))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "justifi-electronic-evidence"; }
|
|
34
34
|
static get properties() {
|
package/dist/collection/components/dispute-management/dispute-response/justifi-product-or-service.js
CHANGED
|
@@ -28,7 +28,7 @@ export class JustifiProductOrService {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
var _a, _b, _c;
|
|
31
|
-
return (h("div", { key: '
|
|
31
|
+
return (h("div", { key: '4587b32b05500749ada539467d8eb2409d0180bd' }, h("div", { key: 'b6696b8324fff8752b227ae3ba41a13ba1ac9063', class: "row gy-3" }, h("div", { key: '013ea18c3848964f098d18c13caf3dde4670093a', class: "col-12" }, h("h2", { key: '6329d4950881a7856b8b47c9e047c8d25e48aaac', class: "h5", part: heading5 }, "Product & Service Details")), h("div", { key: 'c30067cffb73b64e57ee0189ef53ef04337a8cf3', class: "col-12" }, h("form-control-text", { key: '23060ee222508fe8ef1e4063bd19a95cb4fab288', label: "Product Description", name: "product_description", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.product_description, inputHandler: this.inputHandler, errorText: this.errors.product_description })), h("div", { key: '05902305859cbbfa5572fdc2303ef27c4533cbda', class: "col-12" }, h("form-control-date", { key: 'cc4ca8d15ab2d04863323fdb73f4f3cde363b61d', label: "Service Date", name: "service_date", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.service_date, inputHandler: this.inputHandler, errorText: this.errors.service_date })), h("div", { key: 'a0986336639e8ff22cfa7fd10eb761fa5159e8e7', class: "col-12" }, h("form-control-file-v2", { key: '352467c92329bbf22535a38ee4c2a14d9a9110c6', label: "Service Documentation", name: "service_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.service_documentation })))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "justifi-product-or-service"; }
|
|
34
34
|
static get properties() {
|
package/dist/collection/components/dispute-management/dispute-response/justifi-refund-policy.js
CHANGED
|
@@ -28,7 +28,7 @@ export class JustifiRefundPolicy {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
var _a, _b, _c, _d;
|
|
31
|
-
return (h("div", { key: '
|
|
31
|
+
return (h("div", { key: 'e59738a3425e348d989077da9353aa12293cea2f' }, h("div", { key: '32365305802a0584b959e04268796b21ca73fe21', class: "row gy-3" }, h("div", { key: 'ab46282525e6afb9b4db2f82ea6a716e1bd32649', class: "col-12" }, h("h2", { key: 'b1c9fbfccf63eee921a734e0e82cc868ddfb6652', class: "h5", part: heading5 }, "Refund Policy and Receipt")), h("div", { key: '1287269e5c352018fd289c64e876b985137c36c8', class: "col-12" }, h("form-control-textarea", { key: '217292c1ea3a92c3a1cfb68c6d1cbe5b4c532262', label: "Refund Policy Disclosure", name: "refund_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.refund_policy_disclosure, inputHandler: this.inputHandler })), h("div", { key: '7b54f191e06110c1c186ae316558d7617bd3fc93', class: "col-12" }, h("form-control-textarea", { key: 'ec77cd98d1c77c88e74655b430f89bb2e79bb125', label: "Refund Refusal Explanation", name: "refund_refusal_explanation", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.refund_refusal_explanation, inputHandler: this.inputHandler })), h("div", { key: '68971eb2d792f9f733e68b6e9bcab8965cc51412', class: "col-12" }, h("form-control-file-v2", { key: '991ef9fa96a95a52caf72b723d854f17d2c76a0c', label: "Upload Refund Policy", name: "refund_policy", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.refund_policy })), h("div", { key: '22528492e08a56f5b72ad11ef754d1a46884093f', class: "col-12" }, h("form-control-file-v2", { key: '4ea877eeef562dd232bdf5d1359d54cc4e030365', label: "Upload Receipt", name: "receipt", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.receipt })))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "justifi-refund-policy"; }
|
|
34
34
|
static get properties() {
|
package/dist/collection/components/dispute-management/dispute-response/justifi-shipping-details.js
CHANGED
|
@@ -29,7 +29,7 @@ export class JustifiShippingDetails {
|
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
31
|
var _a, _b, _c, _d, _e;
|
|
32
|
-
return (h("div", { key: '
|
|
32
|
+
return (h("div", { key: '66ab4f496a037d4724fcc127803d2fd4c72ad2a8' }, h("div", { key: 'a650a56e124ecc55aaa383a32e27cad862801d01', class: "row gy-3" }, h("div", { key: 'aedaacba104b8540eedafcbc8f7c776fa99ab387', class: "col-12" }, h("h2", { key: 'b4e2dc10ef6cbdab47143f2cc64a484050bfc416', class: "h5", part: heading5 }, "Shipping Details")), h("div", { key: '7110551e0ecf98b149f008eb7105235b8d601454', class: "col-12" }, h("form-control-text", { key: '2c17294567ff47b181c8d11cfda7651671adac92', label: "Shipping Carrier Name", name: "shipping_carrier", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.shipping_carrier, inputHandler: this.inputHandler, errorText: this.errors.shipping_carrier })), h("div", { key: '031476a2435c80b8ae27fb50303f14797d84a801', class: "col-12" }, h("form-control-text", { key: '67441fbba00af48235867763561cf8adf66b9e69', label: "Tracking Number", name: "shipping_tracking_number", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.shipping_tracking_number, inputHandler: this.inputHandler, errorText: this.errors.shipping_tracking_number })), h("div", { key: '1fcc1bf129d3ec577f4f36a2801422044ec0a59e', class: "col-12" }, h("form-control-date", { key: 'aa0464427d083dceba8e1604e045c707366d6046', label: "Date Shipped", name: "shipping_date", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.shipping_date, inputHandler: this.inputHandler, errorText: this.errors.shipping_date })), h("div", { key: 'f61850943df4c9d6605cde9d86b2e8275ced0af4', class: "col-12" }, h("form-control-textarea", { key: 'a1d4997810348a93f26a9f4932890ffd911ea062', label: "Shipping Address", name: "shipping_address", defaultValue: (_d = this.disputeResponse) === null || _d === void 0 ? void 0 : _d.shipping_address, inputHandler: this.inputHandler, errorText: this.errors.shipping_address })), h("div", { key: '9dd41ee3436d63e0c89318129e811630e4aad75d', class: "col-12" }, h("form-control-file-v2", { key: 'fe1879caad49f44f1abd312a3925a20e6bdc11bf', label: "Shipping Documentation", name: "shipping_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.shipping_documentation })))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "justifi-shipping-details"; }
|
|
35
35
|
static get properties() {
|
|
@@ -43,7 +43,7 @@ export class JustifiDisputeManagement {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
|
-
return (h("justifi-dispute-management-core", { key: '
|
|
46
|
+
return (h("justifi-dispute-management-core", { key: 'db9bf0998d45a71d9c2a72f4cedbe4276e67a238', getDispute: this.getDispute, disputeId: this.disputeId, authToken: this.authToken, "onError-event": this.handleErrorEvent }));
|
|
47
47
|
}
|
|
48
48
|
static get is() { return "justifi-dispute-management"; }
|
|
49
49
|
static get properties() {
|
|
@@ -44,8 +44,8 @@ export class JustifiDisputeNotification {
|
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
46
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
47
|
-
return (h(StyledHost, { key: '
|
|
48
|
-
_b.due_date, ") for this dispute has passed"), h("p", { key: '
|
|
47
|
+
return (h(StyledHost, { key: '736e9c381309e08926162292fdbf7b62cc2087e9' }, this.isLoading && (h("div", { key: '21bdc2b142c32d00323211dda36074976b63dbb4', style: { marginBottom: '8px' } }, h(Skeleton, { key: 'e73b642a8c2a02b397affeb1fff5e5c35a3d87fb', height: '28px', width: '70%', styles: { marginBottom: '16px' } }), h(Skeleton, { key: '8ba58aa2227e88903a3eccc2bb8b577c05515139', height: '18px', styles: { marginBottom: '8px' } }), h(Skeleton, { key: 'fb88ccd69ee44cf8af5e9093906fc21016a2a5b6', height: '18px', styles: { marginBottom: '8px' } }))), ((_a = this.dispute) === null || _a === void 0 ? void 0 : _a.needsResponse) && this.isDueDatePassed() && (h("div", { key: 'e1fb6db600ef9418b47eb5e51ef8c62f4b005183', part: text }, h("h1", { key: 'ac2e9efc93c68d30f2a20ce2816c668826adfe6d', class: "h4", part: heading4 }, "The due date (", (_b = this.dispute) === null || _b === void 0 ? void 0 :
|
|
48
|
+
_b.due_date, ") for this dispute has passed"), h("p", { key: '6d189ad1eaa6c9e144749a5bab6aefcf3541e382' }, "You can no longer submit evidence to counter this dispute."))), ((_c = this.dispute) === null || _c === void 0 ? void 0 : _c.needsResponse) && !this.isDueDatePassed() && (h("div", { key: '2212952890d5fedb650c15d6e526e3fbf9ab9a68', part: text }, h("h1", { key: '67426dbff584f957e89a8d86570fab038de53f8d', class: "h4", part: heading4 }, "This payment is disputed"), h("p", { key: '513490e2c25f4b12d1400d74862618aaf9794bd3' }, "The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."), h("h2", { key: '352898d8cae890914bf8feffd0ca913b71cd6c18', class: "h5" }, "Dispute details"), h("div", { key: 'b2b00e53e015d2cfb7a58ee66220af6dbb22467a', class: "d-table gap-2" }, h("div", { key: 'ee7162b5c176c1d334f09cdda553a1ef6e9b1dd0', class: "d-table-row gap-2" }, h("span", { key: '863e381c1610481ae609e4f9e3bc4d4cba6981cb', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Amount"), h("span", { key: 'a4860c2b8b4f9f79cea5b45e8da37509368e02fd', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, formatCurrency((_d = this.dispute) === null || _d === void 0 ? void 0 : _d.amount))), h("div", { key: '15b6c3183065af7771ffd31971e9c120c28cb285', class: "d-table-row gap-2" }, h("span", { key: '1a43935f1a8fa71dbd7b511430d5b29179a00d40', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Reason"), h("span", { key: '6351bb9fcc392700e52f6a19a5b7796f0db81b7c', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_e = this.dispute) === null || _e === void 0 ? void 0 : _e.reason)), h("div", { key: '07badb71175a086399c2cd7e21f20eef2dc71547', class: "d-table-row gap-2" }, h("span", { key: '7f000a4206424cd4808d5cd9a20c339bf3ecaf18', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Due Date"), h("span", { key: 'a768799fd24012e11c9a3907f9da9959c815d475', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_f = this.dispute) === null || _f === void 0 ? void 0 : _f.due_date))), h("div", { key: 'b077e8d4e7c446db5c46f41174dbbf18647da81d', class: "d-flex gap-2 mt-4 justify-content-end" }, h(Button, { key: 'b113557e1ebabd4d787d95d3cf65c50c66085f0b', variant: "secondary", onClick: () => this.acceptDispute() }, "Accept dispute"), h(Button, { key: '8fc56615440cd75503c7ce9324670592e1c88068', variant: "primary", onClick: () => this.initiateRespondToDispute() }, "Counter dispute")))), ((_g = this.dispute) === null || _g === void 0 ? void 0 : _g.underReview) && (h("div", { key: '1419d80deb612294fe979d8cbf2fb76eab05c30c', part: text }, h("h1", { key: 'd77570d765ec7c1161c29f667911df1a40004c5b', class: "h4", part: heading4 }, "This payment is disputed and under review"), h("p", { key: 'b4e258895b34f062b244d710a0b947e08bb5bbea' }, "The cardholder is disputing this payment. A counter dispute has been submitted and is under review."))), ((_h = this.dispute) === null || _h === void 0 ? void 0 : _h.won) && (h("div", { key: '7e32157b5bcdc02bfd125b9b03607f67488ab48e', part: text }, h("h1", { key: 'd087b4fcb56468bd8aa9904286f858591af94ba1', class: "h4", part: heading4 }, "This payment was disputed"), h("p", { key: '0aa0f4003d253874c6bd639afffba2ca37c9985e' }, "The cardholder disputed this payment and the card issuer has settled it in your favor."))), ((_j = this.dispute) === null || _j === void 0 ? void 0 : _j.lost) && (h("div", { key: 'f3855957e8222a4837f5cee6026b0c56df3ed185', part: text }, h("h1", { key: '1c0261b5d45e54b26982be2112b92d8585933b7a', class: "h4", part: heading4 }, "This payment was disputed"), h("p", { key: 'f8ae5063b7254794687af55b989a5f282846fbfb' }, "The cardholder disputed this payment and the card issuer has settled it in their favor.")))));
|
|
49
49
|
}
|
|
50
50
|
static get is() { return "justifi-dispute-notification"; }
|
|
51
51
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,9 +4,10 @@ import { ApplePayButtonType, ApplePayButtonStyle, ApplePayHelpers, ApplePayMerch
|
|
|
4
4
|
import { StyledHost } from "../../../ui-components";
|
|
5
5
|
import ApplePaySkeleton from "./apple-pay-skeleton";
|
|
6
6
|
import { ApplePayButton } from "../../../ui-components/apple-pay-button";
|
|
7
|
-
import { checkoutStore } from "../../../store/checkout.store";
|
|
7
|
+
import { checkoutStore, onChange } from "../../../store/checkout.store";
|
|
8
8
|
export class JustifiApplePay {
|
|
9
9
|
constructor() {
|
|
10
|
+
this.sdkLoaded = false;
|
|
10
11
|
this.countryCode = "US";
|
|
11
12
|
this.merchantIdentifier = "merchant.com.staging-justifi.checkout-dev";
|
|
12
13
|
this.merchantDisplayName = "JustiFi Checkout";
|
|
@@ -81,6 +82,32 @@ export class JustifiApplePay {
|
|
|
81
82
|
}
|
|
82
83
|
};
|
|
83
84
|
}
|
|
85
|
+
componentWillLoad() {
|
|
86
|
+
this.isAvailable = ApplePayHelpers.isApplePaySupported();
|
|
87
|
+
if (!this.isAvailable) {
|
|
88
|
+
this.isLoading = false;
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
if (checkoutStore.checkoutLoaded) {
|
|
92
|
+
this.loadApplePaySDK();
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
onChange('checkoutLoaded', (loaded) => {
|
|
96
|
+
if (loaded)
|
|
97
|
+
this.loadApplePaySDK();
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
loadApplePaySDK() {
|
|
102
|
+
if (this.sdkLoaded)
|
|
103
|
+
return;
|
|
104
|
+
this.sdkLoaded = true;
|
|
105
|
+
const script = document.createElement('script');
|
|
106
|
+
script.src = 'https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js';
|
|
107
|
+
script.async = true;
|
|
108
|
+
script.onload = () => this.initializeApplePay();
|
|
109
|
+
document.head.appendChild(script);
|
|
110
|
+
}
|
|
84
111
|
async initializeApplePay() {
|
|
85
112
|
try {
|
|
86
113
|
this.isLoading = true;
|
|
@@ -92,12 +119,6 @@ export class JustifiApplePay {
|
|
|
92
119
|
if (!hasRequiredConfig) {
|
|
93
120
|
this.error = "Missing required Apple Pay configuration";
|
|
94
121
|
this.isConfigValid = false;
|
|
95
|
-
console.error("Apple Pay config error: missing required values", {
|
|
96
|
-
paymentAmount: checkoutStore.paymentAmount,
|
|
97
|
-
paymentCurrency: checkoutStore.paymentCurrency,
|
|
98
|
-
hasAuthToken: Boolean(checkoutStore.authToken),
|
|
99
|
-
accountId: checkoutStore.accountId,
|
|
100
|
-
});
|
|
101
122
|
this.applePayError.emit({ error: this.error, code: JustifiApplePay.ErrorCode.CONFIG_ERROR });
|
|
102
123
|
this.isLoading = false;
|
|
103
124
|
return;
|
|
@@ -106,14 +127,12 @@ export class JustifiApplePay {
|
|
|
106
127
|
this.canMakePayments = ApplePayHelpers.canMakePayments();
|
|
107
128
|
if (!this.isAvailable) {
|
|
108
129
|
this.error = "Apple Pay is not supported on this device";
|
|
109
|
-
console.error(this.error);
|
|
110
130
|
this.applePayError.emit({ error: this.error, code: JustifiApplePay.ErrorCode.NOT_SUPPORTED });
|
|
111
131
|
this.isLoading = false;
|
|
112
132
|
return;
|
|
113
133
|
}
|
|
114
134
|
if (!this.canMakePayments) {
|
|
115
135
|
this.error = "Apple Pay is not available";
|
|
116
|
-
console.error(this.error);
|
|
117
136
|
this.applePayError.emit({ error: this.error, code: JustifiApplePay.ErrorCode.NOT_AVAILABLE });
|
|
118
137
|
this.isLoading = false;
|
|
119
138
|
return;
|
|
@@ -134,7 +153,6 @@ export class JustifiApplePay {
|
|
|
134
153
|
}
|
|
135
154
|
}
|
|
136
155
|
catch (error) {
|
|
137
|
-
console.error("Apple Pay initialization error:", error);
|
|
138
156
|
this.error =
|
|
139
157
|
error instanceof Error
|
|
140
158
|
? error.message
|
|
@@ -155,7 +173,8 @@ export class JustifiApplePay {
|
|
|
155
173
|
return ApplePayHelpers.getDefaultSupportedNetworks();
|
|
156
174
|
}
|
|
157
175
|
async abort() {
|
|
158
|
-
|
|
176
|
+
var _a;
|
|
177
|
+
(_a = this.applePayService) === null || _a === void 0 ? void 0 : _a.abortPaymentSession();
|
|
159
178
|
this.isProcessing = false;
|
|
160
179
|
this.applePayCancelled.emit();
|
|
161
180
|
}
|
|
@@ -164,13 +183,14 @@ export class JustifiApplePay {
|
|
|
164
183
|
// Render nothing when Apple Pay is disabled at the checkout settings level
|
|
165
184
|
return null;
|
|
166
185
|
}
|
|
186
|
+
if (!this.isAvailable) {
|
|
187
|
+
return null;
|
|
188
|
+
}
|
|
167
189
|
const isReady = !this.isLoading &&
|
|
168
190
|
this.isAvailable &&
|
|
169
191
|
this.canMakePayments &&
|
|
170
192
|
this.isConfigValid;
|
|
171
|
-
return (h(StyledHost, null,
|
|
172
|
-
this.initializeApplePay();
|
|
173
|
-
} })), h("div", { class: 'apple-pay-container' }, h(ApplePaySkeleton, { isLoading: this.isLoading }), isReady && (h(ApplePayButton, { buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick, width: this.width, height: this.height }))), h("style", null, `
|
|
193
|
+
return (h(StyledHost, null, h("div", { class: 'apple-pay-container' }, h(ApplePaySkeleton, { isLoading: this.isLoading }), isReady && (h(ApplePayButton, { buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick, width: this.width, height: this.height }))), h("style", null, `
|
|
174
194
|
.apple-pay-container {
|
|
175
195
|
width: 100%;
|
|
176
196
|
}
|
|
@@ -106,11 +106,14 @@ export class JustifiGooglePay {
|
|
|
106
106
|
}, this.iframeOrigin);
|
|
107
107
|
}
|
|
108
108
|
render() {
|
|
109
|
+
if (!checkoutStore.checkoutLoaded) {
|
|
110
|
+
return null;
|
|
111
|
+
}
|
|
109
112
|
if (!checkoutStore.googlePayEnabled) {
|
|
110
113
|
console.warn("Google Pay is not enabled for this checkout");
|
|
111
114
|
return null;
|
|
112
115
|
}
|
|
113
|
-
return (h(Host, null, h(GooglePaySkeleton, { isLoading: !this.isReadyToPay }), h("iframe", { ref: (el) => (this.iframeElement = el), src: `${this.iframeOrigin}/v2/googlePay`, style: {
|
|
116
|
+
return (h(Host, null, h(GooglePaySkeleton, { isLoading: !this.isReadyToPay }), h("iframe", { ref: (el) => (this.iframeElement = el), src: `${this.iframeOrigin}/v2/googlePay`, allow: "payment", style: {
|
|
114
117
|
border: "none",
|
|
115
118
|
width: "100%",
|
|
116
119
|
height: "48px",
|
package/dist/collection/components/modular-checkout/sub-components/justifi-plaid-payment-method.js
CHANGED
|
@@ -17,6 +17,7 @@ export class JustifiPlaidPaymentMethod {
|
|
|
17
17
|
this.isSelected = false;
|
|
18
18
|
this.retryCount = 0;
|
|
19
19
|
this.isRetrying = false;
|
|
20
|
+
this.sdkLoaded = false;
|
|
20
21
|
this.plaidService = new PlaidService();
|
|
21
22
|
this.maxRetries = 3;
|
|
22
23
|
this.retryDelay = 2000; // 2 seconds
|
|
@@ -380,15 +381,31 @@ export class JustifiPlaidPaymentMethod {
|
|
|
380
381
|
this.openPlaidLink();
|
|
381
382
|
}
|
|
382
383
|
}
|
|
383
|
-
|
|
384
|
-
|
|
384
|
+
componentWillLoad() {
|
|
385
|
+
var _a;
|
|
386
|
+
this.isSelected = ((_a = checkoutStore.selectedPaymentMethod) === null || _a === void 0 ? void 0 : _a.type) === PAYMENT_METHODS.PLAID;
|
|
387
|
+
if (checkoutStore.bankAccountVerification !== true)
|
|
385
388
|
return;
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
389
|
+
if (checkoutStore.checkoutLoaded) {
|
|
390
|
+
this.loadPlaidSDK();
|
|
391
|
+
}
|
|
392
|
+
else {
|
|
393
|
+
onChange('checkoutLoaded', (loaded) => {
|
|
394
|
+
if (loaded && checkoutStore.bankAccountVerification === true) {
|
|
395
|
+
this.loadPlaidSDK();
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
loadPlaidSDK() {
|
|
401
|
+
if (this.sdkLoaded)
|
|
402
|
+
return;
|
|
403
|
+
this.sdkLoaded = true;
|
|
404
|
+
const script = document.createElement('script');
|
|
405
|
+
script.src = 'https://cdn.plaid.com/link/v2/stable/link-initialize.js';
|
|
406
|
+
script.async = true;
|
|
407
|
+
script.onload = () => this.initializePlaidLink();
|
|
408
|
+
script.onerror = () => {
|
|
392
409
|
this.handleError({
|
|
393
410
|
code: PlaidErrorCodes.PLAID_SDK_LOAD_FAILED,
|
|
394
411
|
message: PLAID_ERROR_MESSAGES[PlaidErrorCodes.PLAID_SDK_LOAD_FAILED],
|
|
@@ -397,11 +414,7 @@ export class JustifiPlaidPaymentMethod {
|
|
|
397
414
|
userAction: 'Refresh the page and try again'
|
|
398
415
|
});
|
|
399
416
|
};
|
|
400
|
-
|
|
401
|
-
componentWillLoad() {
|
|
402
|
-
var _a;
|
|
403
|
-
// Initialize selection state based on store
|
|
404
|
-
this.isSelected = ((_a = checkoutStore.selectedPaymentMethod) === null || _a === void 0 ? void 0 : _a.type) === PAYMENT_METHODS.PLAID;
|
|
417
|
+
document.head.appendChild(script);
|
|
405
418
|
}
|
|
406
419
|
async resolvePaymentMethod() {
|
|
407
420
|
if (!this.publicToken) {
|
|
@@ -547,7 +560,7 @@ export class JustifiPlaidPaymentMethod {
|
|
|
547
560
|
}
|
|
548
561
|
return null;
|
|
549
562
|
};
|
|
550
|
-
return (h(StyledHost, { class: "payment-method" }, h("
|
|
563
|
+
return (h(StyledHost, { class: "payment-method" }, h("div", { title: "Pay with Plaid" }, h("div", { onClick: (event) => { event.preventDefault(); this.handleSelectionClick(); } }, "Pay with Bank Account ", plaidLogo, " "), renderErrorState(), renderStatusState())));
|
|
551
564
|
}
|
|
552
565
|
static get is() { return "justifi-plaid-payment-method"; }
|
|
553
566
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/modular-checkout/sub-components/justifi-saved-payment-methods.js
CHANGED
|
@@ -24,11 +24,13 @@ export class JustifiSavedPaymentMethods {
|
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
componentWillLoad() {
|
|
27
|
-
if (
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
if (checkoutStore.checkoutLoaded) {
|
|
28
|
+
if (!checkoutStore.paymentMethods.length) {
|
|
29
|
+
console.warn('No saved payment methods available.');
|
|
30
|
+
}
|
|
31
|
+
if (checkoutStore.disablePaymentMethodGroup) {
|
|
32
|
+
console.warn('Payment method group is disabled.');
|
|
33
|
+
}
|
|
32
34
|
}
|
|
33
35
|
}
|
|
34
36
|
render() {
|
|
@@ -61,12 +61,13 @@ export class JustifiOrderTerminals {
|
|
|
61
61
|
})({
|
|
62
62
|
onSuccess: ({ business }) => {
|
|
63
63
|
this.business = new Business(business);
|
|
64
|
-
this.loading.business = false;
|
|
65
64
|
},
|
|
66
65
|
onError: ({ error, code, severity }) => {
|
|
67
66
|
this.handleError(error, code, severity);
|
|
67
|
+
},
|
|
68
|
+
final: () => {
|
|
68
69
|
this.loading.business = false;
|
|
69
|
-
}
|
|
70
|
+
},
|
|
70
71
|
});
|
|
71
72
|
}
|
|
72
73
|
initializeGetTerminalModels() {
|
|
@@ -126,7 +127,7 @@ export class JustifiOrderTerminals {
|
|
|
126
127
|
return (h("div", { class: "mt-3" }, h("div", { class: "text-end" }, "Order limit: ", this.orderLimit), h("div", { class: "d-flex justify-content-end mt-3" }, h("button", { class: "btn btn-primary submit-btn", onClick: this.submitOrder.bind(this), disabled: this.order.totalQuantity === 0 || this.submitting, part: buttonPrimary }, this.submitting ? 'Submitting...' : this.submitButtonText))));
|
|
127
128
|
}
|
|
128
129
|
render() {
|
|
129
|
-
return (h(StyledHost, { key: '
|
|
130
|
+
return (h(StyledHost, { key: '3f0f23fdf6a5f5f7e8ef527ea28e6fcfcdc70a3a' }, h("div", { key: 'd69fe7a14eaaa468c45b6fa6967298ba1a387e6b', part: text }, this.renderLoading(), this.renderBusinessDetails(), this.renderTerminals(), this.renderOrderSection())));
|
|
130
131
|
}
|
|
131
132
|
static get is() { return "justifi-order-terminals"; }
|
|
132
133
|
static get encapsulation() { return "shadow"; }
|
package/dist/docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-03-
|
|
2
|
+
"timestamp": "2026-03-19T17:05:21",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.38.3",
|
|
@@ -21599,6 +21599,11 @@
|
|
|
21599
21599
|
"docstring": "",
|
|
21600
21600
|
"path": "src/api/Dispute.ts"
|
|
21601
21601
|
},
|
|
21602
|
+
"src/api/index.ts::DisputeResponse": {
|
|
21603
|
+
"declaration": "any",
|
|
21604
|
+
"docstring": "",
|
|
21605
|
+
"path": "src/api/index.ts"
|
|
21606
|
+
},
|
|
21602
21607
|
"src/api/index.ts::IApiResponse": {
|
|
21603
21608
|
"declaration": "any",
|
|
21604
21609
|
"docstring": "",
|
|
@@ -21619,11 +21624,6 @@
|
|
|
21619
21624
|
"docstring": "",
|
|
21620
21625
|
"path": "src/components/dispute-management/dispute-response/dispute-response-form-types.ts"
|
|
21621
21626
|
},
|
|
21622
|
-
"src/api/index.ts::DisputeResponse": {
|
|
21623
|
-
"declaration": "any",
|
|
21624
|
-
"docstring": "",
|
|
21625
|
-
"path": "src/api/index.ts"
|
|
21626
|
-
},
|
|
21627
21627
|
"src/components/modular-checkout/ModularCheckout.ts::CheckoutChangedEventDetail": {
|
|
21628
21628
|
"declaration": "export interface CheckoutChangedEventDetail {\n availablePaymentMethodTypes: PAYMENT_METHODS[];\n selectedPaymentMethod: SelectedPaymentMethod | undefined;\n savedPaymentMethods: SavedPaymentMethod[];\n}",
|
|
21629
21629
|
"docstring": "",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as packageJson } from './package-
|
|
1
|
+
import { p as packageJson } from './package-beXEDfB9.js';
|
|
2
2
|
import { A as Api } from './Api-DMd8hTI-.js';
|
|
3
3
|
import './Plaid-BuKEVgbB.js';
|
|
4
4
|
import './Pagination-CLHwhyvu.js';
|
|
@@ -63,7 +63,7 @@ class JustifiAnalytics {
|
|
|
63
63
|
if (typeof this.componentInstance.addEventListener === 'function') {
|
|
64
64
|
const boundHandler = (event) => this.handleCustomEvent({
|
|
65
65
|
event_type: eventName,
|
|
66
|
-
data: Object.assign(Object.assign({}, this.basicData), { error: event.detail }),
|
|
66
|
+
data: Object.assign(Object.assign({}, this.basicData), (eventName === 'error-event' && { error: event.detail })),
|
|
67
67
|
});
|
|
68
68
|
this.eventListeners.set(eventName, boundHandler);
|
|
69
69
|
this.componentInstance.addEventListener(eventName, boundHandler);
|
|
@@ -2,11 +2,11 @@ import { h, r as registerInstance } from './index-CV0Pyo1O.js';
|
|
|
2
2
|
import { S as Skeleton } from './skeleton-CXGFVqDf.js';
|
|
3
3
|
import { w as waitForConfig, c as configState } from './config-state-kKn89dp1.js';
|
|
4
4
|
import { e as generateTabId } from './utils-BTtxWI2r.js';
|
|
5
|
-
import { c as checkPkgVersion } from './check-pkg-version-
|
|
5
|
+
import { c as checkPkgVersion } from './check-pkg-version-6iGDh82c.js';
|
|
6
6
|
import './parts-DnrawQn3.js';
|
|
7
7
|
import './index-cDVGjRkU.js';
|
|
8
8
|
import './dinero-HXpYMWUU.js';
|
|
9
|
-
import './package-
|
|
9
|
+
import './package-beXEDfB9.js';
|
|
10
10
|
|
|
11
11
|
const BankAccountFormSkeleton = (props) => {
|
|
12
12
|
const { isReady } = props;
|
|
@@ -2,11 +2,11 @@ import { h, r as registerInstance } from './index-CV0Pyo1O.js';
|
|
|
2
2
|
import { S as Skeleton } from './skeleton-CXGFVqDf.js';
|
|
3
3
|
import { w as waitForConfig, c as configState } from './config-state-kKn89dp1.js';
|
|
4
4
|
import { e as generateTabId } from './utils-BTtxWI2r.js';
|
|
5
|
-
import { c as checkPkgVersion } from './check-pkg-version-
|
|
5
|
+
import { c as checkPkgVersion } from './check-pkg-version-6iGDh82c.js';
|
|
6
6
|
import './parts-DnrawQn3.js';
|
|
7
7
|
import './index-cDVGjRkU.js';
|
|
8
8
|
import './dinero-HXpYMWUU.js';
|
|
9
|
-
import './package-
|
|
9
|
+
import './package-beXEDfB9.js';
|
|
10
10
|
|
|
11
11
|
const CardFormSkeleton = (props) => {
|
|
12
12
|
const { isReady } = props;
|
|
@@ -2,7 +2,7 @@ import { B as Business } from './Business-BcNb9bVO.js';
|
|
|
2
2
|
import { C as ComponentErrorSeverity } from './Plaid-BuKEVgbB.js';
|
|
3
3
|
import { g as getErrorCode, a as getErrorMessage } from './utils-DcfpJGDZ.js';
|
|
4
4
|
|
|
5
|
-
const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
5
|
+
const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onError, final }) => {
|
|
6
6
|
var _a;
|
|
7
7
|
try {
|
|
8
8
|
const response = await service.fetchBusiness(id, authToken);
|
|
@@ -27,6 +27,9 @@ const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onEr
|
|
|
27
27
|
severity: ComponentErrorSeverity.ERROR,
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
+
finally {
|
|
31
|
+
final();
|
|
32
|
+
}
|
|
30
33
|
};
|
|
31
34
|
|
|
32
35
|
export { makeGetBusiness as m };
|
|
@@ -3,7 +3,7 @@ import { c as createStore } from './index-cDVGjRkU.js';
|
|
|
3
3
|
import { a7 as inputInvalidAndFocused, q as inputInvalid, v as inputFocused, w as input, x as label } from './parts-DnrawQn3.js';
|
|
4
4
|
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-BFTU3MAI.js';
|
|
5
5
|
import { F as FormControlErrorText } from './form-control-error-text-DVedKyhp.js';
|
|
6
|
-
import { p as packageJson } from './package-
|
|
6
|
+
import { p as packageJson } from './package-beXEDfB9.js';
|
|
7
7
|
|
|
8
8
|
const iframeInputStylesStore = createStore({
|
|
9
9
|
focused: {
|