rebill-web-components-sdk 1.8.6 → 1.8.7
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/rebill-button.cjs.entry.js +2 -2
- package/dist/cjs/rebill-button.entry.cjs.js.map +1 -1
- package/dist/cjs/rebill-checkout.cjs.entry.js +14 -13
- package/dist/cjs/rebill-checkout.entry.cjs.js.map +1 -1
- package/dist/collection/components/checkout/rebill-checkout.js +14 -13
- package/dist/collection/components/checkout/rebill-checkout.js.map +1 -1
- package/dist/collection/components/shared/button/button.css +8 -8
- package/dist/collection/components/shared/button/button.js +1 -1
- package/dist/collection/components/shared/button/button.js.map +1 -1
- package/dist/components/apm-checkout.js +1 -1
- package/dist/components/discount-coupon.js +1 -1
- package/dist/components/otp-component.js +1 -1
- package/dist/components/{p-DZI13wtJ.js → p-C9MOJKD4.js} +3 -3
- package/dist/components/{p-DZI13wtJ.js.map → p-C9MOJKD4.js.map} +1 -1
- package/dist/components/{p-BwpjM0Zf.js → p-CG7X0Z3m.js} +3 -3
- package/dist/components/{p-BwpjM0Zf.js.map → p-CG7X0Z3m.js.map} +1 -1
- package/dist/components/{p-CcZQGsZ8.js → p-CL6COaBj.js} +3 -3
- package/dist/components/{p-CcZQGsZ8.js.map → p-CL6COaBj.js.map} +1 -1
- package/dist/components/{p-C69QonMT.js → p-Cb9WV_NL.js} +3 -3
- package/dist/components/{p-C69QonMT.js.map → p-Cb9WV_NL.js.map} +1 -1
- package/dist/components/{p-C1THyrZh.js → p-D6oZSjpl.js} +3 -3
- package/dist/components/{p-C1THyrZh.js.map → p-D6oZSjpl.js.map} +1 -1
- package/dist/components/{p-W2zrB3tA.js → p-D6rWKLL8.js} +3 -3
- package/dist/components/{p-W2zrB3tA.js.map → p-D6rWKLL8.js.map} +1 -1
- package/dist/components/{p-ByRz5YWN.js → p-DavSndum.js} +3 -3
- package/dist/components/{p-ByRz5YWN.js.map → p-DavSndum.js.map} +1 -1
- package/dist/components/{p-Cp7iacZh.js → p-DgIOuUN1.js} +4 -4
- package/dist/components/p-DgIOuUN1.js.map +1 -0
- package/dist/components/{p-CHIajnDg.js → p-DljAUFZC.js} +3 -3
- package/dist/components/{p-CHIajnDg.js.map → p-DljAUFZC.js.map} +1 -1
- package/dist/components/{p-djD6Hoxd.js → p-Dum_FpHV.js} +3 -3
- package/dist/components/{p-djD6Hoxd.js.map → p-Dum_FpHV.js.map} +1 -1
- package/dist/components/{p-DJEotc3n.js → p-FFCF5_17.js} +4 -4
- package/dist/components/{p-DJEotc3n.js.map → p-FFCF5_17.js.map} +1 -1
- package/dist/components/{p-BBiYeY9C.js → p-LoXXimMi.js} +3 -3
- package/dist/components/{p-BBiYeY9C.js.map → p-LoXXimMi.js.map} +1 -1
- package/dist/components/payment-button.js +1 -1
- package/dist/components/rebill-button.js +1 -1
- package/dist/components/rebill-checkout.js +25 -24
- package/dist/components/rebill-checkout.js.map +1 -1
- package/dist/components/rebill-mode-sandbox-mobile.js +1 -1
- package/dist/components/rebill-mode-sandbox.js +1 -1
- package/dist/components/rebill-renewal.js +5 -5
- package/dist/components/rebill-summary.js +1 -1
- package/dist/components/renewal-success-page.js +1 -1
- package/dist/components/root-component.js +1 -1
- package/dist/components/success-page.js +1 -1
- package/dist/components/user-information-static.js +1 -1
- package/dist/components/user-information.js +1 -1
- package/dist/esm/rebill-button.entry.js +2 -2
- package/dist/esm/rebill-button.entry.js.map +1 -1
- package/dist/esm/rebill-checkout.entry.js +14 -13
- package/dist/esm/rebill-checkout.entry.js.map +1 -1
- package/dist/rebill-web-components-sdk/{p-91a86735.entry.js → p-297a5c76.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-91a86735.entry.js.map → p-297a5c76.entry.js.map} +1 -1
- package/dist/rebill-web-components-sdk/p-738fbc04.entry.js +2 -0
- package/dist/rebill-web-components-sdk/{p-b3837047.entry.js.map → p-738fbc04.entry.js.map} +1 -1
- package/dist/rebill-web-components-sdk/rebill-button.entry.esm.js.map +1 -1
- package/dist/rebill-web-components-sdk/rebill-checkout.entry.esm.js.map +1 -1
- package/dist/rebill-web-components-sdk/rebill-web-components-sdk.esm.js +1 -1
- package/package.json +1 -1
- package/dist/components/p-Cp7iacZh.js.map +0 -1
- package/dist/rebill-web-components-sdk/p-b3837047.entry.js +0 -2
|
@@ -2,31 +2,31 @@ import { proxyCustomElement, H, createEvent, h } from './p-8BpuJ_V5.js';
|
|
|
2
2
|
import { c as create$6 } from './p-MMCcKmy_.js';
|
|
3
3
|
import { a as api } from './p-Dh-yfb0D.js';
|
|
4
4
|
import { m as mapRequiredFields, g as generateIdempotencyKey, P as PaymentMessageE, C as CheckoutStatusE, i as isFieldRequired, a as PaymentErrorMapper, b as getFieldValues } from './p-CfXDDNW3.js';
|
|
5
|
-
import { P as PaymentMethodMapper, S as STATUS_REQ_CHECKOUT_APM, d as defineCustomElement$M } from './p-
|
|
6
|
-
import { d as defineCustomElement$C } from './p-
|
|
5
|
+
import { P as PaymentMethodMapper, S as STATUS_REQ_CHECKOUT_APM, d as defineCustomElement$M } from './p-Cb9WV_NL.js';
|
|
6
|
+
import { d as defineCustomElement$C } from './p-Dum_FpHV.js';
|
|
7
7
|
import { d as defineCustomElement$d } from './p-DFtMrdcs.js';
|
|
8
|
-
import { d as defineCustomElement$c } from './p-
|
|
9
|
-
import { d as defineCustomElement$2 } from './p-
|
|
8
|
+
import { d as defineCustomElement$c } from './p-FFCF5_17.js';
|
|
9
|
+
import { d as defineCustomElement$2 } from './p-CL6COaBj.js';
|
|
10
10
|
import { d as defineCustomElement$E } from './p-DSgE2Das.js';
|
|
11
11
|
import { s as state, S as SESSION_TYPE_ENUM, I as I18nService, a as SessionStore, i as initializeI18nWithSessionLanguage, P as PAYMENT_METHOD_ENUM, o as onChange, b as SESSION_ITEM_TYPE_ENUM } from './p-DRQAoEdx.js';
|
|
12
12
|
import { B as BREAKPOINT_ENUM, g as getBreakpoint, i as isBreakpointBelow } from './p-Do_vNuMa.js';
|
|
13
13
|
import { G as GoogleMapsService, d as defineCustomElement$x } from './p-ViIABC0h.js';
|
|
14
|
-
import { d as defineCustomElement$f } from './p-
|
|
14
|
+
import { d as defineCustomElement$f } from './p-DljAUFZC.js';
|
|
15
15
|
import { d as defineCustomElement$L } from './p-BPX70kE2.js';
|
|
16
16
|
import { d as defineCustomElement$K } from './p-B9KR0Gso.js';
|
|
17
17
|
import { d as defineCustomElement$J } from './p-Bfdj_YPW.js';
|
|
18
18
|
import { d as defineCustomElement$I } from './p-DypoldDs.js';
|
|
19
19
|
import { d as defineCustomElement$H } from './p-D-dSMSHx.js';
|
|
20
|
-
import { d as defineCustomElement$G } from './p-
|
|
20
|
+
import { d as defineCustomElement$G } from './p-LoXXimMi.js';
|
|
21
21
|
import { d as defineCustomElement$F } from './p-CjLCcaJT.js';
|
|
22
|
-
import { d as defineCustomElement$D } from './p-
|
|
22
|
+
import { d as defineCustomElement$D } from './p-D6rWKLL8.js';
|
|
23
23
|
import { d as defineCustomElement$B } from './p-CHFChfES.js';
|
|
24
24
|
import { d as defineCustomElement$A } from './p-fkYjxgpL.js';
|
|
25
25
|
import { d as defineCustomElement$z } from './p-CQSATXJ-.js';
|
|
26
26
|
import { d as defineCustomElement$y } from './p-DtCi6pm2.js';
|
|
27
27
|
import { d as defineCustomElement$w } from './p-Dnq2iRjk.js';
|
|
28
28
|
import { d as defineCustomElement$v } from './p-B8YfMPTn.js';
|
|
29
|
-
import { d as defineCustomElement$u } from './p-
|
|
29
|
+
import { d as defineCustomElement$u } from './p-DgIOuUN1.js';
|
|
30
30
|
import { d as defineCustomElement$t } from './p-DwxaSzBh.js';
|
|
31
31
|
import { d as defineCustomElement$s } from './p-N5kDm5Y3.js';
|
|
32
32
|
import { d as defineCustomElement$r } from './p-0Ns-UIj8.js';
|
|
@@ -41,15 +41,15 @@ import { d as defineCustomElement$j } from './p-B8nKYf89.js';
|
|
|
41
41
|
import { d as defineCustomElement$i } from './p-CCuYHwTH.js';
|
|
42
42
|
import { d as defineCustomElement$h } from './p-B9tMhFPq.js';
|
|
43
43
|
import { d as defineCustomElement$g } from './p-CJdwlE8H.js';
|
|
44
|
-
import { d as defineCustomElement$e } from './p-
|
|
44
|
+
import { d as defineCustomElement$e } from './p-CG7X0Z3m.js';
|
|
45
45
|
import { d as defineCustomElement$b } from './p-Z6xuPDXH.js';
|
|
46
46
|
import { d as defineCustomElement$a } from './p-DR4cbxRb.js';
|
|
47
47
|
import { d as defineCustomElement$9 } from './p-DJX9uT_Q.js';
|
|
48
48
|
import { d as defineCustomElement$8 } from './p-FQYyAgg1.js';
|
|
49
49
|
import { d as defineCustomElement$7 } from './p-DnaF5giI.js';
|
|
50
50
|
import { d as defineCustomElement$6 } from './p-CJfuw7NA.js';
|
|
51
|
-
import { d as defineCustomElement$5 } from './p-
|
|
52
|
-
import { d as defineCustomElement$4 } from './p-
|
|
51
|
+
import { d as defineCustomElement$5 } from './p-D6oZSjpl.js';
|
|
52
|
+
import { d as defineCustomElement$4 } from './p-DavSndum.js';
|
|
53
53
|
import { d as defineCustomElement$3 } from './p-DGFQ0O94.js';
|
|
54
54
|
|
|
55
55
|
/**
|
|
@@ -366,36 +366,36 @@ const RebillCheckout$1 = /*@__PURE__*/ proxyCustomElement(class RebillCheckout e
|
|
|
366
366
|
const customerInformation = this.parsedCustomerInformation;
|
|
367
367
|
return {
|
|
368
368
|
// Email
|
|
369
|
-
'email': formData
|
|
369
|
+
'email': formData?.email || customerInformation?.email || sessionUserInfo.email,
|
|
370
370
|
// Full name
|
|
371
|
-
'fullName': formData
|
|
371
|
+
'fullName': formData?.fullName || customerInformation?.fullName || sessionUserInfo.fullName,
|
|
372
372
|
// Phone
|
|
373
|
-
'countryCodePhoneNumber': formData
|
|
373
|
+
'countryCodePhoneNumber': formData?.countryCodePhoneNumber ||
|
|
374
374
|
customerInformation?.phoneNumber?.countryCode ||
|
|
375
375
|
customerInformation?.countryCode ||
|
|
376
376
|
sessionUserInfo.countryCode,
|
|
377
|
-
'phoneNumber': formData
|
|
377
|
+
'phoneNumber': formData?.phoneNumber ||
|
|
378
378
|
customerInformation?.phoneNumber?.number ||
|
|
379
379
|
sessionUserInfo.phoneNumber,
|
|
380
380
|
// Document
|
|
381
|
-
'documentType': formData
|
|
382
|
-
'documentNumber': formData
|
|
381
|
+
'documentType': formData?.documentType || customerInformation?.documentType || sessionUserInfo.documentType,
|
|
382
|
+
'documentNumber': formData?.documentNumber ||
|
|
383
383
|
customerInformation?.documentNumber ||
|
|
384
384
|
sessionUserInfo.documentNumber,
|
|
385
385
|
// Billing address
|
|
386
|
-
'billing-country': formData['billing-country'] ||
|
|
386
|
+
'billing-country': formData?.['billing-country'] ||
|
|
387
387
|
customerInformation?.address?.billingAddress?.country ||
|
|
388
388
|
sessionUserInfo.address?.billingAddress?.country,
|
|
389
|
-
'billing-state': formData['billing-state'] ||
|
|
389
|
+
'billing-state': formData?.['billing-state'] ||
|
|
390
390
|
customerInformation?.address?.billingAddress?.state ||
|
|
391
391
|
sessionUserInfo.address?.billingAddress?.state,
|
|
392
|
-
'billing-address': formData['billing-address'] ||
|
|
392
|
+
'billing-address': formData?.['billing-address'] ||
|
|
393
393
|
customerInformation?.address?.billingAddress?.address ||
|
|
394
394
|
sessionUserInfo.address?.billingAddress?.address,
|
|
395
|
-
'billing-city': formData['billing-city'] ||
|
|
395
|
+
'billing-city': formData?.['billing-city'] ||
|
|
396
396
|
customerInformation?.address?.billingAddress?.city ||
|
|
397
397
|
sessionUserInfo.address?.billingAddress?.city,
|
|
398
|
-
'billing-zip': formData['billing-zip'] ||
|
|
398
|
+
'billing-zip': formData?.['billing-zip'] ||
|
|
399
399
|
customerInformation?.address?.billingAddress?.zip ||
|
|
400
400
|
sessionUserInfo.address?.billingAddress?.zip,
|
|
401
401
|
};
|
|
@@ -759,6 +759,7 @@ const RebillCheckout$1 = /*@__PURE__*/ proxyCustomElement(class RebillCheckout e
|
|
|
759
759
|
}
|
|
760
760
|
async handleSubmitAPM(data) {
|
|
761
761
|
// Only handle cash and transfer payments for now
|
|
762
|
+
console.log('handleSubmitAPM', this.currentPaymentMethod);
|
|
762
763
|
if (this.currentPaymentMethod !== PAYMENT_METHOD_ENUM.CASH &&
|
|
763
764
|
this.currentPaymentMethod !== PAYMENT_METHOD_ENUM.BANK_TRANSFER) {
|
|
764
765
|
return;
|
|
@@ -1056,8 +1057,8 @@ const RebillCheckout$1 = /*@__PURE__*/ proxyCustomElement(class RebillCheckout e
|
|
|
1056
1057
|
label: country.country,
|
|
1057
1058
|
value: country.isoCountryCode,
|
|
1058
1059
|
}));
|
|
1059
|
-
const renderRebillSummary = (props = {}) => (h("rebill-summary", { key: '
|
|
1060
|
-
return (state.isInitialized && (h(h.Fragment, null, this.showRefreshModal && h("rebill-modal-overlay", { key: '
|
|
1060
|
+
const renderRebillSummary = (props = {}) => (h("rebill-summary", { key: '6b146657e3d9f93d213fafd3b09738ec48b89dd0', totalAmount: state.data.pricing.total, currency: state.data.pricing.currency, itemTitle: state._session?.getTitle(), itemDescription: state._session?.getDescription(), itemAmount: state.data.pricing.subtotal, subtotal: state.data.pricing.subtotal, allowCoupon: state._session?.getAllowCoupon(this.displayConfig), currentBreakpoint: this.breakpoint, planFrequency: state._session?.getPlanFrequency(), planFrequencyCount: state._session?.getPlanFrequencyCount(), discountType: state.data.discount.discountType, discountedPercentage: state.data.discount.discountedPercentage, discountDuration: state.data.discount.discountDuration, discountAmount: state.data.discount.discountAmount, ...props }));
|
|
1061
|
+
return (state.isInitialized && (h(h.Fragment, null, this.showRefreshModal && h("rebill-modal-overlay", { key: 'd13b30218fbe185f4971e58b5af195c5fda576d0' }), this.displayConfig.processingPayment && (h("rebill-processing-payment", { key: '18f514e8c1382affe1155ec74332d592a5d8ac39', style: { display: this.isCardSubmitting ? 'block' : 'none' } })), this.displayConfig.successPage &&
|
|
1061
1062
|
this.isPaymentApproved() &&
|
|
1062
1063
|
state.isInitialized ? (h("success-page", { typePaymentMethod: state.data.paymentMethodSelected, paymentMethodName: PaymentMethodMapper.mapToAPMPaymentMethod(state.data.paymentMethodSelected ||
|
|
1063
1064
|
state.data.payment?.paymentMethodType, state.data?.pricing?.country), country: state.data?.pricing?.country, bank: state.data.payment?.paymentMethodMetadata?.bank ||
|