@alma/widgets 3.3.12 → 4.0.0
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/README.md +1 -1
- package/dist/types/{Widgets → src/Widgets}/EligibilityModal/DesktopModal/index.d.ts +9 -9
- package/dist/types/{Widgets → src/Widgets}/EligibilityModal/MobileModal/index.d.ts +9 -9
- package/dist/types/{Widgets → src/Widgets}/EligibilityModal/ModalContainer.d.ts +16 -16
- package/dist/types/{Widgets → src/Widgets}/EligibilityModal/ModalContainer.test.d.ts +1 -1
- package/dist/types/{Widgets/PaymentPlans → src/Widgets/EligibilityModal}/__tests__/Basics.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/EligibilityModal/__tests__/Cards.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/EligibilityModal/__tests__/ModalContainer.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/EligibilityModal/__tests__/Plans.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/EligibilityModal/__tests__/Schedule.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/EligibilityModal/classNames.const.d.ts +23 -23
- package/dist/types/src/Widgets/EligibilityModal/components/Cards/index.d.ts +7 -0
- package/dist/types/{Widgets → src/Widgets}/EligibilityModal/components/EligibilityPlansButtons/index.d.ts +8 -8
- package/dist/types/{Widgets → src/Widgets}/EligibilityModal/components/Info/index.d.ts +5 -5
- package/dist/types/src/Widgets/EligibilityModal/components/Schedule/index.d.ts +6 -0
- package/dist/types/{Widgets → src/Widgets}/EligibilityModal/components/Title/index.d.ts +6 -6
- package/dist/types/{Widgets → src/Widgets}/EligibilityModal/index.d.ts +11 -11
- package/dist/types/{Widgets/EligibilityModal → src/Widgets/PaymentPlans}/__tests__/Basics.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/PaymentPlans/__tests__/Credit.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/PaymentPlans/__tests__/CustomTransitionDelay.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/PaymentPlans/__tests__/HideBorder.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/PaymentPlans/__tests__/HideWidget.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/PaymentPlans/__tests__/IneligibleOptions.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/PaymentPlans/__tests__/LanguageCheck.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/PaymentPlans/__tests__/LaunchModal.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/PaymentPlans/__tests__/Monochrome.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/PaymentPlans/__tests__/PaymentPlanContainer.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/PaymentPlans/__tests__/SuggestedPaymentPlan.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/PaymentPlans/__tests__/WithoutPlans.test.d.ts +1 -1
- package/dist/types/{Widgets → src/Widgets}/PaymentPlans/classNames.const.d.ts +13 -13
- package/dist/types/{Widgets → src/Widgets}/PaymentPlans/index.d.ts +18 -18
- package/dist/types/{assets → src/assets}/Cross.d.ts +5 -6
- package/dist/types/{assets → src/assets}/almaLogo.d.ts +6 -6
- package/dist/types/{assets → src/assets}/cards/amex.d.ts +3 -3
- package/dist/types/{assets → src/assets}/cards/cb.d.ts +3 -3
- package/dist/types/{assets → src/assets}/cards/mastercard.d.ts +3 -3
- package/dist/types/{assets → src/assets}/cards/visa.d.ts +3 -3
- package/dist/types/{components → src/components}/Installments/Installment/index.d.ts +8 -8
- package/dist/types/src/components/Installments/TotalBlock/index.d.ts +6 -0
- package/dist/types/src/components/Loader/index.d.ts +5 -0
- package/dist/types/src/components/LoadingIndicator/LoadingIndicator.d.ts +4 -0
- package/dist/types/{components → src/components}/Modal/index.d.ts +12 -12
- package/dist/types/{consts.d.ts → src/consts.d.ts} +6 -6
- package/dist/types/{hooks → src/hooks}/useButtonAnimation.d.ts +7 -7
- package/dist/types/src/hooks/useFetchEligibility.d.ts +3 -0
- package/dist/types/{hooks → src/hooks}/useSessionStorage.d.ts +20 -20
- package/dist/types/{hooks → src/hooks}/useSessionStorage.test.d.ts +1 -1
- package/dist/types/{index.d.ts → src/index.d.ts} +16 -18
- package/dist/types/{intl → src/intl}/IntlProvider.d.ts +8 -8
- package/dist/types/src/intl/messages/messages.de.json.d.ts +35 -0
- package/dist/types/src/intl/messages/messages.en.json.d.ts +35 -0
- package/dist/types/src/intl/messages/messages.es.json.d.ts +35 -0
- package/dist/types/src/intl/messages/messages.fr.json.d.ts +35 -0
- package/dist/types/src/intl/messages/messages.it.json.d.ts +35 -0
- package/dist/types/src/intl/messages/messages.nl.json.d.ts +35 -0
- package/dist/types/src/intl/messages/messages.pt.json.d.ts +35 -0
- package/dist/types/{intl → src/intl}/utils.d.ts +2 -2
- package/dist/types/src/setupTests.d.ts +0 -0
- package/dist/types/{types.d.ts → src/types.d.ts} +97 -97
- package/dist/types/src/utils/fetch.d.ts +6 -0
- package/dist/types/{utils → src/utils}/filterEligibility.d.ts +3 -3
- package/dist/types/{utils → src/utils}/index.d.ts +7 -7
- package/dist/types/{utils → src/utils}/index.test.d.ts +1 -1
- package/dist/types/{utils → src/utils}/merchantOrderPreferences.d.ts +14 -14
- package/dist/types/{utils → src/utils}/paymentPlanStrings.d.ts +4 -4
- package/dist/types/{utils → src/utils}/utilsForStorage.d.ts +2 -2
- package/dist/types/{utils → src/utils}/utilsForStorage.test.d.ts +1 -1
- package/dist/types/src/widgets_controller.d.ts +15 -0
- package/dist/types/vite.config.d.ts +2 -0
- package/dist/widgets-wc.umd.js +55 -1
- package/dist/widgets-wc.umd.js.map +1 -1
- package/dist/widgets.css +1 -15
- package/dist/widgets.js +7332 -1
- package/dist/widgets.js.map +1 -1
- package/dist/widgets.min.css +1 -0
- package/dist/widgets.umd.js +55 -1
- package/dist/widgets.umd.js.map +1 -1
- package/package.json +14 -8
- package/dist/raw/widgets-wc.umd.js +0 -17907
- package/dist/raw/widgets.css +0 -557
- package/dist/raw/widgets.js +0 -3358
- package/dist/raw/widgets.js.map +0 -1
- package/dist/raw/widgets.m.js +0 -3362
- package/dist/raw/widgets.m.js.map +0 -1
- package/dist/raw/widgets.modern.js +0 -3296
- package/dist/raw/widgets.modern.js.map +0 -1
- package/dist/raw/widgets.umd.js +0 -17907
- package/dist/raw/widgets.umd.js.map +0 -1
- package/dist/types/Widgets/EligibilityModal/components/Cards/index.d.ts +0 -7
- package/dist/types/Widgets/EligibilityModal/components/Schedule/index.d.ts +0 -6
- package/dist/types/components/Installments/TotalBlock/index.d.ts +0 -6
- package/dist/types/components/Loader/index.d.ts +0 -5
- package/dist/types/components/LoadingIndicator/LoadingIndicator.d.ts +0 -4
- package/dist/types/hooks/useFetchEligibility.d.ts +0 -3
- package/dist/types/setupTests.d.ts +0 -1
- package/dist/types/utils/fetch.d.ts +0 -6
- package/dist/types/widgets_controller.d.ts +0 -15
- package/dist/widgets.m.js +0 -2
- package/dist/widgets.m.js.map +0 -1
- package/dist/widgets.modern.js +0 -2
- package/dist/widgets.modern.js.map +0 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"credit-features.credit-cost-display": "{creditCost} (APR {taegPercentage})",
|
|
3
|
+
"credit-features.information": "Überprüfen Sie Ihre Rückzahlungsmöglichkeiten, bevor Sie eine Verpflichtung eingehen.",
|
|
4
|
+
"credit-features.information.title": "Ein Kredit verpflichtet Sie und muss zurückgezahlt werden.",
|
|
5
|
+
"credit-features.legal-text": "Kredit in Höhe von {totalWithoutFirstInstallment} zu einem festen Sollzinssatz von {taegPercentage} über eine Laufzeit von {installmeentsCountWithoutFirst} Monaten. Ermöglicht, zusätzlich zu einer Anzahlung von {firstInstallmentAmount}, die Finanzierung eines Kaufs in Höhe von {productPriceWithoutCreditCost}. Vorbehaltlich der Prüfung und Annahme durch Alma. Gesetzliche Widerrufsfrist von 14 Tagen. Simulation präsentiert von Alma, eingetragen im RCS Nanterre unter der Nummer 839 100 575, Zahlungsinstitut und Finanzierungsgesellschaft, zugelassen von der ACPR unter der Nummer 17408 (IPC-Nummer / Bankcode).",
|
|
6
|
+
"credit-features.total-credit-cost": "Davon Kreditkosten",
|
|
7
|
+
"eligibility-modal.bullet-1": "Wählen Sie <strong>Alma</strong> beim Check-out. ",
|
|
8
|
+
"eligibility-modal.bullet-2": "Lassen Sie sich führen und bestätigen Sie Ihre Zahlung in <strong>2 Minuten.</strong>",
|
|
9
|
+
"eligibility-modal.bullet-3": "<strong>Behalten Sie die Kontrolle</strong> , indem Sie Ihre Fälligkeitstermine in Ihrem eigenen Tempo vor- oder zurückverlegen.",
|
|
10
|
+
"eligibility-modal.no-eligibility": "Ups, die Prüfung hat anscheinend nicht funktioniert.",
|
|
11
|
+
"eligibility-modal.p1x-bullet-1": "Wählen Sie <strong>Alma - Jetzt bezahlen</strong> zum Zeitpunkt der Zahlung.",
|
|
12
|
+
"eligibility-modal.p1x-bullet-2": "Tragen Sie Ihre <strong>Kreditkarteninformationen ein.</strong>",
|
|
13
|
+
"eligibility-modal.p1x-bullet-3": "<strong> Die Bestätigung </strong> Ihrer Zahlung erfolgt sofort !",
|
|
14
|
+
"eligibility-modal.title-deferred-plan": "Zahlen Sie mit Alma in Raten oder später.",
|
|
15
|
+
"eligibility-modal.title-normal": "Zahlen Sie mit Alma in mehreren Raten.",
|
|
16
|
+
"eligibility-modal.title-pay-now": "Bezahlen Sie auf einmal mit Alma per Kreditkarte.",
|
|
17
|
+
"installments.today": "Heute",
|
|
18
|
+
"installments.total-amount": "Gesamtsumme",
|
|
19
|
+
"installments.total-fees": "Davon Kosten",
|
|
20
|
+
"payment-plan-strings.credit": "Klicken Sie, um mehr zu erfahren",
|
|
21
|
+
"payment-plan-strings.day-abbreviation": "T{deferredDays}",
|
|
22
|
+
"payment-plan-strings.default-message": "Bezahlen Sie zinsfrei in mehreren Raten mit Alma.",
|
|
23
|
+
"payment-plan-strings.deferred": "{totalAmount} zu zahlen am {dueDate}",
|
|
24
|
+
"payment-plan-strings.ineligible-greater-than-max": "Bis zu {maxAmount}",
|
|
25
|
+
"payment-plan-strings.ineligible-lower-than-min": "Ab {minAmount}",
|
|
26
|
+
"payment-plan-strings.month-abbreviation": "M{deferredMonths}",
|
|
27
|
+
"payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",
|
|
28
|
+
"payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
|
|
29
|
+
"payment-plan-strings.no-fee": "(0% Finanzierung)",
|
|
30
|
+
"payment-plan-strings.pay-now": "Zahlen Sie jetzt {totalAmount}",
|
|
31
|
+
"payment-plan-strings.pay.now.button": "Jetzt bezahlen"
|
|
32
|
+
}
|
|
33
|
+
;
|
|
34
|
+
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"credit-features.credit-cost-display": "{creditCost} (APR {taegPercentage})",
|
|
3
|
+
"credit-features.information": "Check your repayment capacity before committing yourself.",
|
|
4
|
+
"credit-features.information.title": "Credit is a commitment and must be repaid.",
|
|
5
|
+
"credit-features.legal-text": "Loan of {totalWithoutFirstInstallment} at a fixed interest rate of {taegPercentage} over a period of {installmeentsCountWithoutFirst} months. In addition to a down payment of {firstInstallmentAmount}, this loan can be used to finance a purchase of {productPriceWithoutCreditCost}. Subject to review and acceptance by Alma. Legal cooling-off period of 14 days. Simulation presented by Alma, registered with the RCS Nanterre under number 839 100 575, payment and finance company approved by the ACPR under number 17408 (CIB number / Bank code).",
|
|
6
|
+
"credit-features.total-credit-cost": "Of which cost of credit",
|
|
7
|
+
"eligibility-modal.bullet-1": "Choose <strong>Alma</strong> at checkout.",
|
|
8
|
+
"eligibility-modal.bullet-2": "Let us guide you and validate your payment in <strong>2 minutes.</strong>",
|
|
9
|
+
"eligibility-modal.bullet-3": "<strong>Stay in control</strong> by advancing or postponing your deadlines at your own pace.",
|
|
10
|
+
"eligibility-modal.no-eligibility": "Oops, looks like the simulation didn't work.",
|
|
11
|
+
"eligibility-modal.p1x-bullet-1": "Choose <strong>Alma - Pay now</strong> at checkout.",
|
|
12
|
+
"eligibility-modal.p1x-bullet-2": "Enter your <strong>credit card details.</strong>",
|
|
13
|
+
"eligibility-modal.p1x-bullet-3": "<strong>Your payment is instantly validated at </strong> !",
|
|
14
|
+
"eligibility-modal.title-deferred-plan": "Pay in installments or later by credit card with Alma.",
|
|
15
|
+
"eligibility-modal.title-normal": "Pay in installments by credit card with Alma.",
|
|
16
|
+
"eligibility-modal.title-pay-now": "Pay cash by credit card with Alma.",
|
|
17
|
+
"installments.today": "Today",
|
|
18
|
+
"installments.total-amount": "Total",
|
|
19
|
+
"installments.total-fees": "Of which costs (incl. VAT)",
|
|
20
|
+
"payment-plan-strings.credit": "Click to find out more",
|
|
21
|
+
"payment-plan-strings.day-abbreviation": "D{deferredDays}",
|
|
22
|
+
"payment-plan-strings.default-message": "Pay in installments with Alma",
|
|
23
|
+
"payment-plan-strings.deferred": "{totalAmount} to pay the {dueDate}",
|
|
24
|
+
"payment-plan-strings.ineligible-greater-than-max": "Until {maxAmount}",
|
|
25
|
+
"payment-plan-strings.ineligible-lower-than-min": "From {minAmount}",
|
|
26
|
+
"payment-plan-strings.month-abbreviation": "M{deferredMonths}",
|
|
27
|
+
"payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} then {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} then {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",
|
|
28
|
+
"payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
|
|
29
|
+
"payment-plan-strings.no-fee": "(free of charge)",
|
|
30
|
+
"payment-plan-strings.pay-now": "Pay now {totalAmount}",
|
|
31
|
+
"payment-plan-strings.pay.now.button": "Pay now"
|
|
32
|
+
}
|
|
33
|
+
;
|
|
34
|
+
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"credit-features.credit-cost-display": "{creditCost} (TAE {taegPercentage})",
|
|
3
|
+
"credit-features.information": "Compruebe tu capacidad de reembolso antes de comprometerte.",
|
|
4
|
+
"credit-features.information.title": "El crédito y/o pago a plazos es un compromiso y debe devolverse.",
|
|
5
|
+
"credit-features.legal-text": "{totalWithoutFirstInstallment} {taegPercentage} {installmeentsCountWithoutFirst} Préstamo de a un tipo deudor fijo de a lo largo de un periodo de meses. {firstInstallmentAmount} {productPriceWithoutCreditCost}Además de un depósito de , esto le permitirá financiar una compra de . Sujeto a revisión y aceptación por parte de Alma. Plazo legal de retractación de 14 días. Simulación presentada por Alma, inscrita en el Registro Mercantil de Nanterre con el número 839 100 575, sociedad de pago y financiación autorizada por la ACPR con el número 17408 (número CIB / código bancario).",
|
|
6
|
+
"credit-features.total-credit-cost": "Coste de crédito (incl. en el total)",
|
|
7
|
+
"eligibility-modal.bullet-1": "Elige <strong>Alma</strong> como método de pago.",
|
|
8
|
+
"eligibility-modal.bullet-2": "Déjate guiar y válida tu pago en <strong>2 minutos.</strong>",
|
|
9
|
+
"eligibility-modal.bullet-3": "<strong>Mantén el control</strong> adelantando o aplazando los plazos a su propio ritmo.",
|
|
10
|
+
"eligibility-modal.no-eligibility": "Uy, parece que la simulación no ha funcionado.",
|
|
11
|
+
"eligibility-modal.p1x-bullet-1": "Elije <strong>Alma - Pagar ahora</strong> al momento de la compra.",
|
|
12
|
+
"eligibility-modal.p1x-bullet-2": "Introduce los datos de tu tarjeta bancaria en <strong>.</strong>",
|
|
13
|
+
"eligibility-modal.p1x-bullet-3": "<strong>¡La validación </strong> de tu pago es instantánea!",
|
|
14
|
+
"eligibility-modal.title-deferred-plan": "Paga a plazos o posteriormente con tarjeta bancaria con Alma.",
|
|
15
|
+
"eligibility-modal.title-normal": "Pagar a plazos con tarjeta bancaria con Alma.",
|
|
16
|
+
"eligibility-modal.title-pay-now": "Paga de contado con tu tarjeta bancaria a través de alma.",
|
|
17
|
+
"installments.today": "Hoy",
|
|
18
|
+
"installments.total-amount": "Total",
|
|
19
|
+
"installments.total-fees": "De los cuales, costes (IVA incluido)",
|
|
20
|
+
"payment-plan-strings.credit": "Haz click para más información",
|
|
21
|
+
"payment-plan-strings.day-abbreviation": "D{deferredDays}",
|
|
22
|
+
"payment-plan-strings.default-message": "Pagar a plazos con Alma",
|
|
23
|
+
"payment-plan-strings.deferred": "{totalAmount} a pagar el {dueDate}",
|
|
24
|
+
"payment-plan-strings.ineligible-greater-than-max": "Hasta {maxAmount}",
|
|
25
|
+
"payment-plan-strings.ineligible-lower-than-min": "Desde {minAmount}",
|
|
26
|
+
"payment-plan-strings.month-abbreviation": "M{deferredMonths}",
|
|
27
|
+
"payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} hoy, después {numberOfRemainingInstallments} mensualidad de {othersInstallmentAmount}} other {{firstInstallmentAmount} hoy, después {numberOfRemainingInstallments} mensualidades de {othersInstallmentAmount}}}",
|
|
28
|
+
"payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} plazos de {totalAmount}",
|
|
29
|
+
"payment-plan-strings.no-fee": "(sin intereses)",
|
|
30
|
+
"payment-plan-strings.pay-now": "Pague ahora {totalAmount}",
|
|
31
|
+
"payment-plan-strings.pay.now.button": "Pagar ahora"
|
|
32
|
+
}
|
|
33
|
+
;
|
|
34
|
+
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"credit-features.credit-cost-display": "{creditCost} (TAEG {taegPercentage})",
|
|
3
|
+
"credit-features.information": "Vérifiez vos capacités de remboursement avant de vous engager.",
|
|
4
|
+
"credit-features.information.title": "Un crédit vous engage et doit être remboursé.",
|
|
5
|
+
"credit-features.legal-text": "Crédit d'un montant de {totalWithoutFirstInstallment} au taux débiteur fixe de {taegPercentage} sur une durée de {installmeentsCountWithoutFirst} mois. Permettant, en complément d'un acompte de {firstInstallmentAmount}, de financer un achat d'un montant de {productPriceWithoutCreditCost}. Sous réserve d'étude et d'acceptation par Alma. Délai légal de rétractation de 14 jours. Simulation présentée par Alma, immatriculée au RCS Nanterre sous le numéro 839 100 575, établissement de paiement et société de financement agréée par l’ACPR sous le n° 17408 (numéro CIB / Code banque).",
|
|
6
|
+
"credit-features.total-credit-cost": "Dont coût du crédit",
|
|
7
|
+
"eligibility-modal.bullet-1": "Choisissez <strong>Alma</strong> au moment du paiement.",
|
|
8
|
+
"eligibility-modal.bullet-2": "Laissez-vous guider et validez votre paiement en <strong>2 minutes.</strong>",
|
|
9
|
+
"eligibility-modal.bullet-3": "<strong>Gardez le contrôle</strong> en avançant ou reculant vos échéances à votre rythme.",
|
|
10
|
+
"eligibility-modal.no-eligibility": "Oups, il semblerait que la simulation n'ait pas fonctionné.",
|
|
11
|
+
"eligibility-modal.p1x-bullet-1": "Choisissez <strong>Alma - Payer maintenant</strong> au moment du paiement.",
|
|
12
|
+
"eligibility-modal.p1x-bullet-2": "Renseignez les informations de votre <strong>carte bancaire.</strong>",
|
|
13
|
+
"eligibility-modal.p1x-bullet-3": "<strong>La validation </strong> de votre paiement est instantanée !",
|
|
14
|
+
"eligibility-modal.title-deferred-plan": "Payez en plusieurs fois ou plus tard par carte bancaire avec Alma.",
|
|
15
|
+
"eligibility-modal.title-normal": "Payez en plusieurs fois par carte bancaire avec Alma.",
|
|
16
|
+
"eligibility-modal.title-pay-now": "Payez comptant par carte bancaire avec Alma.",
|
|
17
|
+
"installments.today": "Aujourd'hui",
|
|
18
|
+
"installments.total-amount": "Total",
|
|
19
|
+
"installments.total-fees": "Dont frais (TTC)",
|
|
20
|
+
"payment-plan-strings.credit": "Cliquez pour en savoir plus",
|
|
21
|
+
"payment-plan-strings.day-abbreviation": "J{deferredDays}",
|
|
22
|
+
"payment-plan-strings.default-message": "Payez en plusieurs fois avec Alma",
|
|
23
|
+
"payment-plan-strings.deferred": "{totalAmount} à payer le {dueDate}",
|
|
24
|
+
"payment-plan-strings.ineligible-greater-than-max": "Jusqu'à {maxAmount}",
|
|
25
|
+
"payment-plan-strings.ineligible-lower-than-min": "À partir de {minAmount}",
|
|
26
|
+
"payment-plan-strings.month-abbreviation": "M{deferredMonths}",
|
|
27
|
+
"payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",
|
|
28
|
+
"payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
|
|
29
|
+
"payment-plan-strings.no-fee": "(sans frais)",
|
|
30
|
+
"payment-plan-strings.pay-now": "Payer maintenant {totalAmount}",
|
|
31
|
+
"payment-plan-strings.pay.now.button": "Payer maintenant"
|
|
32
|
+
}
|
|
33
|
+
;
|
|
34
|
+
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"credit-features.credit-cost-display": "{creditCost} (TAEG {taegPercentage})",
|
|
3
|
+
"credit-features.information": "Verificate la vostra capacità di rimborso prima di prendere un impegno.",
|
|
4
|
+
"credit-features.information.title": "Il credito è un impegno e deve essere ripagato.",
|
|
5
|
+
"credit-features.legal-text": "{totalWithoutFirstInstallment} {taegPercentage} {installmeentsCountWithoutFirst} Prestito a tasso fisso per un periodo di mesi. {firstInstallmentAmount} {productPriceWithoutCreditCost}Oltre a un deposito di , questo vi permetterà di finanziare un acquisto di . Soggetto a revisione e accettazione da parte di Alma. Periodo di recesso legale di 14 giorni. Simulazione presentata da Alma, iscritta al Registro del Commercio e delle Imprese di Nanterre con il numero 839 100 575, società di pagamento e di finanziamento approvata dall'ACPR con il numero 17408 (numero CIB / codice bancario).",
|
|
6
|
+
"credit-features.total-credit-cost": "Di cui commissioni",
|
|
7
|
+
"eligibility-modal.bullet-1": "Seleziona <strong>Alma</strong> come metodo di pagamento.",
|
|
8
|
+
"eligibility-modal.bullet-2": "Segui le istruzioni e completa l'acquisto <strong>in meno di 2 minuti.</strong>",
|
|
9
|
+
"eligibility-modal.bullet-3": "<strong>Gestisci il tuo piano di pagamento</strong> e modifica le scadenze secondo le tue esigenze.",
|
|
10
|
+
"eligibility-modal.no-eligibility": "Ops, sembra che qualcosa non abbia funzionato.",
|
|
11
|
+
"eligibility-modal.p1x-bullet-1": "Scegli <strong>Alma - Paga ora</strong> alla cassa.",
|
|
12
|
+
"eligibility-modal.p1x-bullet-2": "Inserisci i dati della tua <strong>carta bancaria.</strong>",
|
|
13
|
+
"eligibility-modal.p1x-bullet-3": "Ricevi la <strong>conferma di pagamento</strong> istantaneamente!",
|
|
14
|
+
"eligibility-modal.title-deferred-plan": "Paga a rate con Alma, senza registrazione.",
|
|
15
|
+
"eligibility-modal.title-normal": "Paga a rate con Alma, senza registrazione.",
|
|
16
|
+
"eligibility-modal.title-pay-now": "Paga ora con carta tramite Alma.",
|
|
17
|
+
"installments.today": "Oggi",
|
|
18
|
+
"installments.total-amount": "Totale",
|
|
19
|
+
"installments.total-fees": "Di cui commissioni",
|
|
20
|
+
"payment-plan-strings.credit": "Clicca qui per saperne di più",
|
|
21
|
+
"payment-plan-strings.day-abbreviation": "G{deferredDays}",
|
|
22
|
+
"payment-plan-strings.default-message": "Paga a rate con Alma, senza registrazione.",
|
|
23
|
+
"payment-plan-strings.deferred": "{totalAmount} da pagare il {dueDate}",
|
|
24
|
+
"payment-plan-strings.ineligible-greater-than-max": "Disponibile fino a {maxAmount}",
|
|
25
|
+
"payment-plan-strings.ineligible-lower-than-min": "Pagamento rateale disponibile a partire da {minAmount}",
|
|
26
|
+
"payment-plan-strings.month-abbreviation": "M{deferredMonths}",
|
|
27
|
+
"payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {Oggi paghi {firstInstallmentAmount} poi tra {numberOfRemainingInstallments} mese {othersInstallmentAmount}} other {Oggi paghi {firstInstallmentAmount} poi {numberOfRemainingInstallments} rate mensili di {othersInstallmentAmount}}}",
|
|
28
|
+
"payment-plan-strings.multiple-installments-same-amount": "In {installmentsCount} rate mensili di {totalAmount}",
|
|
29
|
+
"payment-plan-strings.no-fee": "(senza interessi)",
|
|
30
|
+
"payment-plan-strings.pay-now": "Paga ora {totalAmount}",
|
|
31
|
+
"payment-plan-strings.pay.now.button": "Paga ora"
|
|
32
|
+
}
|
|
33
|
+
;
|
|
34
|
+
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"credit-features.credit-cost-display": "{creditCost} (gemiddeld rente percentage {taegPercentage})",
|
|
3
|
+
"credit-features.information": "Controleer uw terugbetalingscapaciteit voordat u een toezegging doet.",
|
|
4
|
+
"credit-features.information.title": "Krediet is een verplichting en moet worden terugbetaald.",
|
|
5
|
+
"credit-features.legal-text": "{totalWithoutFirstInstallment} {taegPercentage} {installmeentsCountWithoutFirst} Lening van tegen een vaste rentevoet van over een periode van maanden. {firstInstallmentAmount} {productPriceWithoutCreditCost}Naast een aanbetaling van , kun je hiermee een aankoop financieren van . Onder voorbehoud van beoordeling en aanvaarding door Alma. Wettelijke herroepingstermijn van 14 dagen. Simulatie aangeboden door Alma, ingeschreven in het handels- en bedrijvenregister van Nanterre onder nummer 839 100 575, betalings- en financieringsmaatschappij erkend door de ACPR onder nummer 17408 (CIB-nummer / bankcode).",
|
|
6
|
+
"credit-features.total-credit-cost": "Waarvan kredietkosten",
|
|
7
|
+
"eligibility-modal.bullet-1": "Kies <strong>Alma</strong> bij het afrekenen om de eerste termijnbetaling te voldoen. Dit kan gemakkelijk via jouw favoriete betaalmethode.",
|
|
8
|
+
"eligibility-modal.bullet-2": "Betaal gemakkelijk <strong>binnen 1 minuut </strong>. Je hebt hier geen account voor nodig.",
|
|
9
|
+
"eligibility-modal.bullet-3": "<strong>Behoud de controle </strong> en bepaal je eigen tempo. Bij Alma schuif je de deadlines gemakkelijk vooruit of achteruit. Zonder bijkomende kosten.",
|
|
10
|
+
"eligibility-modal.no-eligibility": "Oeps, het lijkt erop dat de simulatie niet werkte.",
|
|
11
|
+
"eligibility-modal.p1x-bullet-1": "Kies <strong>Alma - Betaal nu</strong> bij het afrekenen om de eerste termijnbetaling te voldoen. Dit kan gemakkelijk via jouw favoriete betaalmethode.",
|
|
12
|
+
"eligibility-modal.p1x-bullet-2": "Vul je <strong>gegevens </strong> in",
|
|
13
|
+
"eligibility-modal.p1x-bullet-3": "<strong>De bevestiging </strong> van jouw betaling is direct!",
|
|
14
|
+
"eligibility-modal.title-deferred-plan": "Betaal in termijnen bij Alma - helemaal rentevrij.",
|
|
15
|
+
"eligibility-modal.title-normal": "Betaal in termijnen bij Alma - helemaal rentevrij.",
|
|
16
|
+
"eligibility-modal.title-pay-now": "Betaal met iDEAL of per creditcard bij Alma.",
|
|
17
|
+
"installments.today": "Vandaag",
|
|
18
|
+
"installments.total-amount": "Totaal",
|
|
19
|
+
"installments.total-fees": "Waarvan kosten (incl. BTW)",
|
|
20
|
+
"payment-plan-strings.credit": "Klik hier voor meer informatie",
|
|
21
|
+
"payment-plan-strings.day-abbreviation": "D{deferredDays}",
|
|
22
|
+
"payment-plan-strings.default-message": "Betaal in termijnen bij Alma - helemaal rentevrij",
|
|
23
|
+
"payment-plan-strings.deferred": "{totalAmount} te betalen op {dueDate}",
|
|
24
|
+
"payment-plan-strings.ineligible-greater-than-max": "Tot {maxAmount}",
|
|
25
|
+
"payment-plan-strings.ineligible-lower-than-min": "Vanaf {minAmount}",
|
|
26
|
+
"payment-plan-strings.month-abbreviation": "M{deferredMonths}",
|
|
27
|
+
"payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dan {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dan {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",
|
|
28
|
+
"payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
|
|
29
|
+
"payment-plan-strings.no-fee": "(zonder kosten)",
|
|
30
|
+
"payment-plan-strings.pay-now": "Betaal nu {totalAmount}",
|
|
31
|
+
"payment-plan-strings.pay.now.button": "Betaal nu"
|
|
32
|
+
}
|
|
33
|
+
;
|
|
34
|
+
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"credit-features.credit-cost-display": "{creditCost} (TAEG {taegPercentage})",
|
|
3
|
+
"credit-features.information": "Verifique a sua capacidade de reembolso antes de assumir um compromisso.",
|
|
4
|
+
"credit-features.information.title": "O crédito é um compromisso e deve ser reembolsado.",
|
|
5
|
+
"credit-features.legal-text": "{totalWithoutFirstInstallment} {taegPercentage} {installmeentsCountWithoutFirst} Empréstimo de a uma taxa de juro fixa de durante um período de meses. {firstInstallmentAmount} {productPriceWithoutCreditCost}Para além de um depósito de , isto permitir-lhe-á financiar uma compra de . Sujeito a análise e aceitação pela Alma. Prazo legal de retratação de 14 dias. Simulação apresentada pela Alma, inscrita na Conservatória do Registo Comercial e das Sociedades de Nanterre sob o número 839 100 575, sociedade de pagamento e de financiamento aprovada pela ACPR sob o número 17408 (número CIB / código bancário).",
|
|
6
|
+
"credit-features.total-credit-cost": "Incluindo comissões de crédito",
|
|
7
|
+
"eligibility-modal.bullet-1": "Seleccionar <strong>Alma - Pay Now</strong> no final da compra.",
|
|
8
|
+
"eligibility-modal.bullet-2": "Siga as instruções e valide o seu pagamento em <strong>2 minutos.</strong>",
|
|
9
|
+
"eligibility-modal.bullet-3": "<strong>Mantenha o controlo</strong> adiando as datas de pagamento ao seu próprio ritmo.",
|
|
10
|
+
"eligibility-modal.no-eligibility": "Ups, parece que a simulação não funcionou.",
|
|
11
|
+
"eligibility-modal.p1x-bullet-1": "Escolha <strong>Alma - Pague agora</strong> no checkout.",
|
|
12
|
+
"eligibility-modal.p1x-bullet-2": "Preencha os dados do seu <strong>cartão de bancário.</strong>",
|
|
13
|
+
"eligibility-modal.p1x-bullet-3": "<strong>A validação </strong> do seu pagamento é instantânea!",
|
|
14
|
+
"eligibility-modal.title-deferred-plan": "Pagar em prestações ou mais tarde por cartão de crédito com Alma.",
|
|
15
|
+
"eligibility-modal.title-normal": "Pagar em prestações por cartão bancário com a Alma.",
|
|
16
|
+
"eligibility-modal.title-pay-now": "Pague na integralidade com a Alma por cartão bancário.",
|
|
17
|
+
"installments.today": "Hoje",
|
|
18
|
+
"installments.total-amount": "Total",
|
|
19
|
+
"installments.total-fees": "Das quais comissões (incl. IVA)",
|
|
20
|
+
"payment-plan-strings.credit": "Clique aqui para saber mais",
|
|
21
|
+
"payment-plan-strings.day-abbreviation": "D{deferredDays}",
|
|
22
|
+
"payment-plan-strings.default-message": "Pagamento em prestações com a Alma",
|
|
23
|
+
"payment-plan-strings.deferred": "{totalAmount} a pagar em {dueDate}",
|
|
24
|
+
"payment-plan-strings.ineligible-greater-than-max": "Até {maxAmount}",
|
|
25
|
+
"payment-plan-strings.ineligible-lower-than-min": "A partir de {minAmount}",
|
|
26
|
+
"payment-plan-strings.month-abbreviation": "M{deferredMonths}",
|
|
27
|
+
"payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} depois {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} depois {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",
|
|
28
|
+
"payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
|
|
29
|
+
"payment-plan-strings.no-fee": "(sem encargos)",
|
|
30
|
+
"payment-plan-strings.pay-now": "Pagar agora {totalAmount}",
|
|
31
|
+
"payment-plan-strings.pay.now.button": "Pagar agora"
|
|
32
|
+
}
|
|
33
|
+
;
|
|
34
|
+
|
|
35
|
+
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Locale } from 'types';
|
|
2
|
-
export declare const getTranslationsByLocale: (locale: Locale) => Record<string, string>;
|
|
1
|
+
import { Locale } from '../types';
|
|
2
|
+
export declare const getTranslationsByLocale: (locale: Locale) => Record<string, string>;
|
|
File without changes
|
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
export
|
|
4
|
-
domain: ApiMode;
|
|
5
|
-
merchantId: string;
|
|
6
|
-
};
|
|
7
|
-
export declare enum widgetTypes {
|
|
8
|
-
PaymentPlans = "PaymentPlans",
|
|
9
|
-
Modal = "Modal"
|
|
10
|
-
}
|
|
11
|
-
export declare enum statusResponse {
|
|
12
|
-
PENDING = "pending",
|
|
13
|
-
SUCCESS = "success",
|
|
14
|
-
FAILED = "failed"
|
|
15
|
-
}
|
|
16
|
-
export
|
|
17
|
-
installmentsCount: number;
|
|
18
|
-
deferredDays?: number;
|
|
19
|
-
deferredMonths?: number;
|
|
20
|
-
minAmount: number;
|
|
21
|
-
maxAmount: number;
|
|
22
|
-
};
|
|
23
|
-
export
|
|
24
|
-
customer_fee: number;
|
|
25
|
-
customer_interest: number;
|
|
26
|
-
due_date: number;
|
|
27
|
-
purchase_amount: number;
|
|
28
|
-
total_amount: number;
|
|
29
|
-
refunded_interest?: number;
|
|
30
|
-
};
|
|
31
|
-
export
|
|
32
|
-
annual_interest_rate?: number;
|
|
33
|
-
customer_total_cost_amount: number;
|
|
34
|
-
customer_total_cost_bps: number;
|
|
35
|
-
deferred_days: number;
|
|
36
|
-
deferred_months: number;
|
|
37
|
-
eligible: boolean;
|
|
38
|
-
reasons?: Record<string, unknown>;
|
|
39
|
-
installments_count: number;
|
|
40
|
-
payment_plan?: PaymentPlan[];
|
|
41
|
-
purchase_amount: number;
|
|
42
|
-
constraints?: {
|
|
43
|
-
purchase_amount?: {
|
|
44
|
-
minimum: number;
|
|
45
|
-
maximum: number;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
export
|
|
50
|
-
minAmount?: number;
|
|
51
|
-
maxAmount?: number;
|
|
52
|
-
};
|
|
53
|
-
export declare enum Locale {
|
|
54
|
-
en = "en",
|
|
55
|
-
'fr-FR' = "fr-FR",
|
|
56
|
-
fr = "fr",
|
|
57
|
-
'de-DE' = "de-DE",
|
|
58
|
-
de = "de",
|
|
59
|
-
it = "it",
|
|
60
|
-
'it-IT' = "it-IT",
|
|
61
|
-
es = "es",
|
|
62
|
-
'es-ES' = "es-ES",
|
|
63
|
-
pt = "pt",
|
|
64
|
-
'pt-PT' = "pt-PT",
|
|
65
|
-
nl = "nl",
|
|
66
|
-
'nl-NL' = "nl-NL",
|
|
67
|
-
'nl-BE' = "nl-BE"
|
|
68
|
-
}
|
|
69
|
-
export
|
|
70
|
-
export
|
|
71
|
-
container: string;
|
|
72
|
-
hideIfNotEligible?: boolean;
|
|
73
|
-
locale?: Locale;
|
|
74
|
-
cards?: Card[];
|
|
75
|
-
monochrome?: boolean;
|
|
76
|
-
plans?: ConfigPlan[];
|
|
77
|
-
purchaseAmount: number;
|
|
78
|
-
suggestedPaymentPlan?: number | number[];
|
|
79
|
-
transitionDelay?: number;
|
|
80
|
-
hideBorder?: boolean;
|
|
81
|
-
customerBillingCountry?: string;
|
|
82
|
-
customerShippingCountry?: string;
|
|
83
|
-
onModalClose?: (event: React.MouseEvent | React.KeyboardEvent) => void;
|
|
84
|
-
};
|
|
85
|
-
export
|
|
86
|
-
container: string;
|
|
87
|
-
clickableSelector: string;
|
|
88
|
-
purchaseAmount: number;
|
|
89
|
-
customerBillingCountry?: string;
|
|
90
|
-
customerShippingCountry?: string;
|
|
91
|
-
plans?: ConfigPlan[];
|
|
92
|
-
locale?: Locale;
|
|
93
|
-
cards?: Card[];
|
|
94
|
-
onClose?: (event: React.MouseEvent | React.KeyboardEvent) => void;
|
|
95
|
-
};
|
|
96
|
-
export
|
|
97
|
-
export
|
|
1
|
+
import { default as React } from '../preact/compat';
|
|
2
|
+
import { ApiMode } from './consts';
|
|
3
|
+
export type ApiConfig = {
|
|
4
|
+
domain: ApiMode;
|
|
5
|
+
merchantId: string;
|
|
6
|
+
};
|
|
7
|
+
export declare enum widgetTypes {
|
|
8
|
+
PaymentPlans = "PaymentPlans",
|
|
9
|
+
Modal = "Modal"
|
|
10
|
+
}
|
|
11
|
+
export declare enum statusResponse {
|
|
12
|
+
PENDING = "pending",
|
|
13
|
+
SUCCESS = "success",
|
|
14
|
+
FAILED = "failed"
|
|
15
|
+
}
|
|
16
|
+
export type ConfigPlan = {
|
|
17
|
+
installmentsCount: number;
|
|
18
|
+
deferredDays?: number;
|
|
19
|
+
deferredMonths?: number;
|
|
20
|
+
minAmount: number;
|
|
21
|
+
maxAmount: number;
|
|
22
|
+
};
|
|
23
|
+
export type PaymentPlan = {
|
|
24
|
+
customer_fee: number;
|
|
25
|
+
customer_interest: number;
|
|
26
|
+
due_date: number;
|
|
27
|
+
purchase_amount: number;
|
|
28
|
+
total_amount: number;
|
|
29
|
+
refunded_interest?: number;
|
|
30
|
+
};
|
|
31
|
+
export type EligibilityPlan = {
|
|
32
|
+
annual_interest_rate?: number;
|
|
33
|
+
customer_total_cost_amount: number;
|
|
34
|
+
customer_total_cost_bps: number;
|
|
35
|
+
deferred_days: number;
|
|
36
|
+
deferred_months: number;
|
|
37
|
+
eligible: boolean;
|
|
38
|
+
reasons?: Record<string, unknown>;
|
|
39
|
+
installments_count: number;
|
|
40
|
+
payment_plan?: PaymentPlan[];
|
|
41
|
+
purchase_amount: number;
|
|
42
|
+
constraints?: {
|
|
43
|
+
purchase_amount?: {
|
|
44
|
+
minimum: number;
|
|
45
|
+
maximum: number;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export type EligibilityPlanToDisplay = EligibilityPlan & {
|
|
50
|
+
minAmount?: number;
|
|
51
|
+
maxAmount?: number;
|
|
52
|
+
};
|
|
53
|
+
export declare enum Locale {
|
|
54
|
+
en = "en",
|
|
55
|
+
'fr-FR' = "fr-FR",
|
|
56
|
+
fr = "fr",
|
|
57
|
+
'de-DE' = "de-DE",
|
|
58
|
+
de = "de",
|
|
59
|
+
it = "it",
|
|
60
|
+
'it-IT' = "it-IT",
|
|
61
|
+
es = "es",
|
|
62
|
+
'es-ES' = "es-ES",
|
|
63
|
+
pt = "pt",
|
|
64
|
+
'pt-PT' = "pt-PT",
|
|
65
|
+
nl = "nl",
|
|
66
|
+
'nl-NL' = "nl-NL",
|
|
67
|
+
'nl-BE' = "nl-BE"
|
|
68
|
+
}
|
|
69
|
+
export type Card = 'cb' | 'amex' | 'mastercard' | 'visa';
|
|
70
|
+
export type PaymentPlanWidgetOptions = {
|
|
71
|
+
container: string;
|
|
72
|
+
hideIfNotEligible?: boolean;
|
|
73
|
+
locale?: Locale;
|
|
74
|
+
cards?: Card[];
|
|
75
|
+
monochrome?: boolean;
|
|
76
|
+
plans?: ConfigPlan[];
|
|
77
|
+
purchaseAmount: number;
|
|
78
|
+
suggestedPaymentPlan?: number | number[];
|
|
79
|
+
transitionDelay?: number;
|
|
80
|
+
hideBorder?: boolean;
|
|
81
|
+
customerBillingCountry?: string;
|
|
82
|
+
customerShippingCountry?: string;
|
|
83
|
+
onModalClose?: (event: React.MouseEvent | React.KeyboardEvent) => void;
|
|
84
|
+
};
|
|
85
|
+
export type ModalOptions = {
|
|
86
|
+
container: string;
|
|
87
|
+
clickableSelector: string;
|
|
88
|
+
purchaseAmount: number;
|
|
89
|
+
customerBillingCountry?: string;
|
|
90
|
+
customerShippingCountry?: string;
|
|
91
|
+
plans?: ConfigPlan[];
|
|
92
|
+
locale?: Locale;
|
|
93
|
+
cards?: Card[];
|
|
94
|
+
onClose?: (event: React.MouseEvent | React.KeyboardEvent) => void;
|
|
95
|
+
};
|
|
96
|
+
export type WidgetNames = keyof typeof widgetTypes;
|
|
97
|
+
export type WidgetOptions = PaymentPlanWidgetOptions | ModalOptions;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ConfigPlan, EligibilityPlan, EligibilityPlanToDisplay } from 'types';
|
|
2
|
-
declare const filterEligibility: (eligibilities: EligibilityPlan[], configPlans?: ConfigPlan[]
|
|
3
|
-
export default filterEligibility;
|
|
1
|
+
import { ConfigPlan, EligibilityPlan, EligibilityPlanToDisplay } from '../types';
|
|
2
|
+
declare const filterEligibility: (eligibilities: EligibilityPlan[], configPlans?: ConfigPlan[]) => EligibilityPlanToDisplay[];
|
|
3
|
+
export default filterEligibility;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EligibilityPlan } from '../types';
|
|
2
|
-
export declare function priceToCents(price: number): number;
|
|
3
|
-
export declare function priceFromCents(cents: number): number;
|
|
4
|
-
export declare function formatCents(cents: number): string;
|
|
5
|
-
export declare const secondsToMilliseconds: (date: number) => number;
|
|
6
|
-
export declare const desktopWidth = 800;
|
|
7
|
-
export declare const isP1X: (plan: EligibilityPlan) => boolean;
|
|
1
|
+
import { EligibilityPlan } from '../types';
|
|
2
|
+
export declare function priceToCents(price: number): number;
|
|
3
|
+
export declare function priceFromCents(cents: number): number;
|
|
4
|
+
export declare function formatCents(cents: number): string;
|
|
5
|
+
export declare const secondsToMilliseconds: (date: number) => number;
|
|
6
|
+
export declare const desktopWidth = 800;
|
|
7
|
+
export declare const isP1X: (plan: EligibilityPlan) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { EligibilityPlan } from 'types';
|
|
2
|
-
|
|
3
|
-
suggestedPaymentPlan: number | number[];
|
|
4
|
-
eligibilityPlans: EligibilityPlan[];
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* It returns the **index** of the **first eligible plan** that matches the default installments count
|
|
8
|
-
*
|
|
9
|
-
* @param {number | number[]} suggestedPaymentPlan
|
|
10
|
-
* @param {EligibilityPlan[]} eligibilityPlans
|
|
11
|
-
* @returns number (index of the first eligible plan that matches the default installments count)
|
|
12
|
-
*/
|
|
13
|
-
export declare const getIndexOfActivePlan: ({ suggestedPaymentPlan, eligibilityPlans }: Args) => number;
|
|
14
|
-
export {};
|
|
1
|
+
import { EligibilityPlan } from '../types';
|
|
2
|
+
type Args = {
|
|
3
|
+
suggestedPaymentPlan: number | number[];
|
|
4
|
+
eligibilityPlans: EligibilityPlan[];
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* It returns the **index** of the **first eligible plan** that matches the default installments count
|
|
8
|
+
*
|
|
9
|
+
* @param {number | number[]} suggestedPaymentPlan
|
|
10
|
+
* @param {EligibilityPlan[]} eligibilityPlans
|
|
11
|
+
* @returns number (index of the first eligible plan that matches the default installments count)
|
|
12
|
+
*/
|
|
13
|
+
export declare const getIndexOfActivePlan: ({ suggestedPaymentPlan, eligibilityPlans }: Args) => number;
|
|
14
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from '
|
|
2
|
-
import { EligibilityPlan, EligibilityPlanToDisplay } from 'types';
|
|
3
|
-
export declare const paymentPlanShorthandName: (payment: EligibilityPlan) => ReactNode;
|
|
4
|
-
export declare const paymentPlanInfoText: (payment: EligibilityPlanToDisplay) => ReactNode;
|
|
1
|
+
import { ReactNode } from '../../preact/compat';
|
|
2
|
+
import { EligibilityPlan, EligibilityPlanToDisplay } from '../types';
|
|
3
|
+
export declare const paymentPlanShorthandName: (payment: EligibilityPlan) => ReactNode;
|
|
4
|
+
export declare const paymentPlanInfoText: (payment: EligibilityPlanToDisplay) => ReactNode;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const hashStringForStorage: (str: string) => string;
|
|
2
|
-
export declare const isMoreThanOneHourAgo: (date: number) => boolean;
|
|
1
|
+
export declare const hashStringForStorage: (str: string) => string;
|
|
2
|
+
export declare const isMoreThanOneHourAgo: (date: number) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from '../preact/compat';
|
|
2
|
+
import { ApiMode } from './consts';
|
|
3
|
+
import { WidgetNames, WidgetOptions } from './types';
|
|
4
|
+
export type AddReturnType = {
|
|
5
|
+
open: () => void;
|
|
6
|
+
close: (event: React.MouseEvent | React.KeyboardEvent) => void;
|
|
7
|
+
} | undefined;
|
|
8
|
+
type ApiData = {
|
|
9
|
+
domain: ApiMode;
|
|
10
|
+
merchantId: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const WidgetsController: (apiData: ApiData) => {
|
|
13
|
+
add: (widget: WidgetNames, options: WidgetOptions) => AddReturnType;
|
|
14
|
+
};
|
|
15
|
+
export {};
|