@alma/widgets 4.0.3 → 4.0.4

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.
@@ -0,0 +1 @@
1
+ export {};
@@ -4,6 +4,8 @@ type CreateKeyType = {
4
4
  plans?: ConfigPlan[];
5
5
  customerBillingCountry?: string;
6
6
  customerShippingCountry?: string;
7
+ domain?: string;
8
+ merchantId?: string;
7
9
  };
8
10
  type StorageType = {
9
11
  value: EligibilityPlan[];
@@ -2,7 +2,7 @@ declare const _default: {
2
2
  "credit-features.credit-cost-display": "{creditCost} (TAE {taegPercentage})",
3
3
  "credit-features.information": "Compruebe tu capacidad de reembolso antes de comprometerte.",
4
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).",
5
+ "credit-features.legal-text": " Préstamo de {totalWithoutFirstInstallment} a un tipo deudor fijo a {taegPercentage} a lo largo de un periodo de {installmeentsCountWithoutFirst} meses. Además de un depósito de {firstInstallmentAmount}, esto te permitirá financiar una compra de {productPriceWithoutCreditCost}. 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
6
  "credit-features.total-credit-cost": "Coste de crédito (incl. en el total)",
7
7
  "eligibility-modal.bullet-1": "Elige <strong>Alma</strong> como método de pago.",
8
8
  "eligibility-modal.bullet-2": "Déjate guiar y válida tu pago en <strong>2 minutos.</strong>",
@@ -2,7 +2,7 @@ declare const _default: {
2
2
  "credit-features.credit-cost-display": "{creditCost} (gemiddeld rente percentage {taegPercentage})",
3
3
  "credit-features.information": "Controleer uw terugbetalingscapaciteit voordat u een toezegging doet.",
4
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).",
5
+ "credit-features.legal-text": "Krediet van {totalWithoutFirstInstallment} tegen een vaste rentevoet van {taegPercentage} over een periode van {installmeentsCountWithoutFirst} maanden. Naast een aanbetaling van {firstInstallmentAmount}, kun je hiermee een aankoop financieren van {productPriceWithoutCreditCost}. Onder voorbehoud van beoordeling en aanvaarding door Alma. Wettelijke herroepingsrecht van 14 dagen. Simulatie aangeboden door Alma, ingeschreven in het handels- en bedrijvenregister van Nanterre onder het nummer 839 100 575, betalings- en financieringsmaatschappij erkend door de ACPR onder nummer 17408 (CIB-nummer / bankcode).",
6
6
  "credit-features.total-credit-cost": "Waarvan kredietkosten",
7
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
8
  "eligibility-modal.bullet-2": "Betaal gemakkelijk <strong>binnen 1 minuut </strong>. Je hebt hier geen account voor nodig.",
@@ -46,6 +46,10 @@ export type EligibilityPlan = {
46
46
  };
47
47
  };
48
48
  };
49
+ export type ErrorResponse = {
50
+ message?: string;
51
+ error_code?: string;
52
+ };
49
53
  export type EligibilityPlanToDisplay = EligibilityPlan & {
50
54
  minAmount?: number;
51
55
  maxAmount?: number;
@@ -1,6 +1,6 @@
1
- import { EligibilityPlan } from '../types';
1
+ import { EligibilityPlan, ErrorResponse } from '../types';
2
2
  export declare function fetchFromApi(data: {
3
3
  [key: string]: unknown;
4
4
  }, headers?: {
5
5
  [key: string]: unknown;
6
- }, url?: string): Promise<EligibilityPlan[]>;
6
+ }, url?: string): Promise<EligibilityPlan[] | ErrorResponse>;