@swan-io/shared-business 13.7.3 → 13.7.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swan-io/shared-business",
3
- "version": "13.7.3",
3
+ "version": "13.7.4",
4
4
  "engines": {
5
5
  "node": ">22.12.0"
6
6
  },
@@ -25,7 +25,7 @@
25
25
  ],
26
26
  "license": "MIT",
27
27
  "peerDependencies": {
28
- "@swan-io/lake": "13.7.3"
28
+ "@swan-io/lake": "13.7.4"
29
29
  },
30
30
  "dependencies": {
31
31
  "@formatjs/intl": "^4.1.2",
@@ -50,6 +50,6 @@
50
50
  "@types/react-dom": "^19.2.3",
51
51
  "@types/react-native": "^0.72.8",
52
52
  "type-fest": "^5.4.3",
53
- "@swan-io/lake": "13.7.3"
53
+ "@swan-io/lake": "13.7.4"
54
54
  }
55
55
  }
@@ -45,6 +45,7 @@ const styles = StyleSheet.create({
45
45
  fontWeight: "600",
46
46
  paddingVertical: spacings[4],
47
47
  minWidth: spacings[96],
48
+ paddingRight: 10,
48
49
  },
49
50
  openingBalanceText: {
50
51
  ...getTextStyle("sans", 12),
@@ -56,6 +57,7 @@ const styles = StyleSheet.create({
56
57
  },
57
58
  textColumn: {
58
59
  paddingVertical: spacings[4],
60
+ paddingRight: 10,
59
61
  ...getTextStyle("sans", 11),
60
62
  lineHeight: 16,
61
63
  },
@@ -120,7 +122,7 @@ export const AccountStatementV1 = ({ style, accountHolderName, accountHolderAddr
120
122
  const t = useTranslation(language);
121
123
  return (_jsx(Box, { style: style, children: _jsx(Box, { style: styles.container, direction: "column", justifyContent: "spaceBetween", children: _jsxs(Box, { children: [_jsxs(Box, { direction: "row", justifyContent: "spaceBetween", children: [_jsxs(Box, { direction: "column", children: [_jsx(Text, { style: styles.sectionTitle, children: accountHolderName.toUpperCase() }), _jsx(Text, { style: styles.text, children: accountHolderAddress.street }), _jsxs(Text, { style: styles.text, children: [accountHolderAddress.city, ",", " ", isNotNullish(accountHolderAddress.country) && accountHolderAddress.country] }), _jsx(Space, { height: 24 }), isNotEmpty(iban) && (_jsxs(Text, { style: styles.textBold, children: [t("accountStatement.iban"), " ", _jsx(Text, { style: styles.text, children: iban })] })), _jsx(Space, { height: 4 }), isNotEmpty(bic) && (_jsxs(Text, { style: styles.textBold, children: [t("accountStatement.bic"), " ", _jsx(Text, { style: styles.text, children: bic })] }))] }), _jsxs(Box, { direction: "column", alignItems: "end", children: [_jsx(Text, { style: styles.pageTitle, children: t("accountStatement.titleDocument") }), _jsx(Text, { style: styles.pageSubTitle, children: accountHolderType === "Company"
122
124
  ? t("accountStatement.titleDocument.companyDescription")
123
- : t("accountStatement.titleDocument.individualDescription") }), _jsx(Space, { height: 24 }), _jsx(Text, { style: styles.textBold, children: t("accountStatement.contactSupport") }), _jsx(Text, { style: styles.text, children: "support.swan.io" })] })] }), _jsx(Space, { height: 48 }), _jsxs(Box, { direction: "row", justifyContent: "spaceBetween", alignItems: "center", children: [_jsx(Box, { style: styles.dateContainer, children: _jsxs(Text, { style: styles.dateText, children: [t("accountStatement.from"), " ", _jsx(Text, { style: styles.dateBold, children: openingDate }), " ", t("accountStatement.to"), " ", _jsx(Text, { style: styles.dateBold, children: closingDate })] }) }), _jsxs(Box, { direction: "column", children: [_jsx(Text, { style: styles.openingBalanceText, children: t("accountStatement.openingBalance") }), _jsx(Text, { style: styles.totalAmount, children: openingBalance.value })] })] }), _jsx(Space, { height: 24 }), _jsxs(_Fragment, { children: [_jsxs(Box, { direction: "row", style: styles.thead, children: [_jsx(Text, { style: [styles.titleColumn, { width: "13%" }], children: t("accountStatement.column.date") }), _jsx(Text, { style: [styles.titleColumn, { width: "17%" }], children: t("accountStatement.column.type") }), _jsx(Text, { style: [styles.titleColumn, { width: "40%" }], children: t("accountStatement.column.description") }), _jsx(Text, { style: [styles.titleColumn, { width: "15%", textAlign: "right" }], children: t("accountStatement.column.credit") }), _jsx(Text, { style: [styles.titleColumn, { width: "15%", textAlign: "right" }], children: t("accountStatement.column.debit") })] }), _jsx(Box, { direction: "column", children: transactions.map(transaction => (_jsxs(Box, { direction: "row", children: [_jsx(Text, { style: [styles.textColumn, { width: "13%" }], children: transaction.date }), _jsx(Text, { style: [styles.textColumn, { width: "17%" }], children: translateTransaction(transaction.type, t) }), _jsx(Text, { style: [styles.textColumn, { width: "40%" }], children: transaction.label }), _jsx(Text, { style: [styles.textColumn, { width: "15%", textAlign: "right" }], children: transaction.credit ? transaction.credit.value : "" }), _jsx(Text, { style: [styles.textColumn, { width: "15%", textAlign: "right" }], children: transaction.debit ? transaction.debit.value : "" })] }, transaction.id))) })] }), _jsx(Space, { height: 12 }), _jsxs(Box, { direction: "column", children: [_jsxs(Box, { direction: "row", justifyContent: "end", children: [_jsx(Text, { style: [styles.row, styles.textBold], children: t("accountStatement.column.fees") }), _jsx(Text, { style: [styles.row, styles.textBold], children: feesCredit.value }), _jsx(Text, { style: [styles.row, styles.textBold], children: feesDebit.value })] }), _jsxs(Box, { direction: "row", justifyContent: "end", children: [_jsx(Text, { style: [styles.row, styles.textBold], children: t("accountStatement.column.totals") }), _jsx(Text, { style: [styles.row, styles.textBold], children: totalsCredit.value }), _jsx(Text, { style: [styles.row, styles.textBold], children: totalsDebit.value })] })] }), _jsx(Space, { height: 12 }), _jsx(Box, { direction: "row", justifyContent: "end", children: _jsxs(Box, { direction: "row", alignItems: "center", style: styles.closingBalanceRow, justifyContent: "spaceBetween", children: [_jsx(Title, { style: styles.closingBalanceRowText, text: t("accountStatement.closingBalance") }), _jsx(Title, { text: closingBalance.value, style: styles.totalAmount, align: "right" })] }) })] }) }) }));
125
+ : t("accountStatement.titleDocument.individualDescription") }), _jsx(Space, { height: 24 }), _jsx(Text, { style: styles.textBold, children: t("accountStatement.contactSupport") }), _jsx(Text, { style: styles.text, children: "support.swan.io" })] })] }), _jsx(Space, { height: 48 }), _jsxs(Box, { direction: "row", justifyContent: "spaceBetween", alignItems: "center", children: [_jsx(Box, { style: styles.dateContainer, children: _jsxs(Text, { style: styles.dateText, children: [t("accountStatement.from"), " ", _jsx(Text, { style: styles.dateBold, children: openingDate }), " ", t("accountStatement.to"), " ", _jsx(Text, { style: styles.dateBold, children: closingDate })] }) }), _jsxs(Box, { direction: "column", children: [_jsx(Text, { style: styles.openingBalanceText, children: t("accountStatement.openingBalance") }), _jsx(Text, { style: styles.totalAmount, children: openingBalance.value })] })] }), _jsx(Space, { height: 24 }), _jsxs(_Fragment, { children: [_jsxs(Box, { direction: "row", style: styles.thead, children: [_jsx(Text, { style: [styles.titleColumn, { width: "13%" }], children: t("accountStatement.column.date") }), _jsx(Text, { style: [styles.titleColumn, { width: "21%" }], children: t("accountStatement.column.type") }), _jsx(Text, { style: [styles.titleColumn, { width: "42%" }], children: t("accountStatement.column.description") }), _jsx(Text, { style: [styles.titleColumn, { width: "15%", textAlign: "right" }], children: t("accountStatement.column.credit") }), _jsx(Text, { style: [styles.titleColumn, { width: "15%", textAlign: "right" }], children: t("accountStatement.column.debit") })] }), _jsx(Box, { direction: "column", children: transactions.map(transaction => (_jsxs(Box, { direction: "row", children: [_jsx(Text, { style: [styles.textColumn, { width: "13%" }], children: transaction.date }), _jsx(Text, { style: [styles.textColumn, { width: "20%" }], children: translateTransaction(transaction.type, t) }), _jsx(Text, { style: [styles.textColumn, { width: "40%" }], children: transaction.label }), _jsx(Text, { style: [styles.textColumn, { width: "15%", textAlign: "right" }], children: transaction.credit ? transaction.credit.value : "" }), _jsx(Text, { style: [styles.textColumn, { width: "15%", textAlign: "right" }], children: transaction.debit ? transaction.debit.value : "" })] }, transaction.id))) })] }), _jsx(Space, { height: 12 }), _jsxs(Box, { direction: "column", children: [_jsxs(Box, { direction: "row", justifyContent: "end", children: [_jsx(Text, { style: [styles.row, styles.textBold], children: t("accountStatement.column.fees") }), _jsx(Text, { style: [styles.row, styles.textBold], children: feesCredit.value }), _jsx(Text, { style: [styles.row, styles.textBold], children: feesDebit.value })] }), _jsxs(Box, { direction: "row", justifyContent: "end", children: [_jsx(Text, { style: [styles.row, styles.textBold], children: t("accountStatement.column.totals") }), _jsx(Text, { style: [styles.row, styles.textBold], children: totalsCredit.value }), _jsx(Text, { style: [styles.row, styles.textBold], children: totalsDebit.value })] })] }), _jsx(Space, { height: 12 }), _jsx(Box, { direction: "row", justifyContent: "end", children: _jsxs(Box, { direction: "row", alignItems: "center", style: styles.closingBalanceRow, justifyContent: "spaceBetween", children: [_jsx(Title, { style: styles.closingBalanceRowText, text: t("accountStatement.closingBalance") }), _jsx(Title, { text: closingBalance.value, style: styles.totalAmount, align: "right" })] }) })] }) }) }));
124
126
  };
125
127
  export const AccountStatement = (props) => match(props)
126
128
  .with({ version: "v1" }, props => _jsx(AccountStatementV1, { ...props }))
@@ -11,7 +11,7 @@
11
11
  "accountStatement.column.total": "Summe",
12
12
  "accountStatement.column.totals": "Summen",
13
13
  "accountStatement.column.type": "Typ",
14
- "accountStatement.contactSupport": "Kontaktiere Swan",
14
+ "accountStatement.contactSupport": "Swan Kontaktiere",
15
15
  "accountStatement.creditTransfer": "Überweisung",
16
16
  "accountStatement.date": "Von {openingDate} bis {closingDate}",
17
17
  "accountStatement.directDebit": "Lastschrift",
@@ -21,13 +21,13 @@
21
21
  "accountStatement.from": "Von",
22
22
  "accountStatement.iban": "IBAN",
23
23
  "accountStatement.internationalCreditTransfer": "Internationale Überweisung",
24
- "accountStatement.openingBalance": "Eröffnungssaldo",
24
+ "accountStatement.openingBalance": "Anfangssaldo",
25
25
  "accountStatement.operationCount": "# Vorgang",
26
26
  "accountStatement.page": "Seite",
27
27
  "accountStatement.partnership": "In Partnerschaft mit",
28
28
  "accountStatement.titleDocument": "Kontoauszug",
29
29
  "accountStatement.titleDocument.companyDescription": "Geschäftskonto - in Euro",
30
- "accountStatement.titleDocument.individualDescription": "Persönliches Konto - in Euro",
30
+ "accountStatement.titleDocument.individualDescription": "Individuelles Konto - in Euro",
31
31
  "accountStatement.to": "bis",
32
32
  "accountStatement.total": "Summen",
33
33
  "addressFormPart.addressLabel": "Schreiben Sie Ihre Adresse",
@@ -7,11 +7,11 @@
7
7
  "accountStatement.column.date": "Fecha",
8
8
  "accountStatement.column.debit": "Débito (€)",
9
9
  "accountStatement.column.description": "Descripción",
10
- "accountStatement.column.fees": "Tasas",
10
+ "accountStatement.column.fees": "Comisiones",
11
11
  "accountStatement.column.total": "Total",
12
- "accountStatement.column.totals": "Totales",
12
+ "accountStatement.column.totals": "Total",
13
13
  "accountStatement.column.type": "Tipo",
14
- "accountStatement.contactSupport": "Contactar con Swan",
14
+ "accountStatement.contactSupport": "Contacta con Swan",
15
15
  "accountStatement.creditTransfer": "Transferencia de crédito",
16
16
  "accountStatement.date": "Desde {openingDate} hasta {closingDate}",
17
17
  "accountStatement.directDebit": "Domiciliación bancaria",
@@ -20,7 +20,7 @@
20
20
  "accountStatement.fees": "Comisión",
21
21
  "accountStatement.from": "De",
22
22
  "accountStatement.iban": "IBAN",
23
- "accountStatement.internationalCreditTransfer": "Transferencia de crédito internacional",
23
+ "accountStatement.internationalCreditTransfer": "Transferencia internacional",
24
24
  "accountStatement.openingBalance": "Saldo de apertura",
25
25
  "accountStatement.operationCount": "# operación",
26
26
  "accountStatement.page": "Página",
@@ -11,7 +11,7 @@
11
11
  "accountStatement.column.total": "Total",
12
12
  "accountStatement.column.totals": "Total",
13
13
  "accountStatement.column.type": "Type",
14
- "accountStatement.contactSupport": "Contacter Swan",
14
+ "accountStatement.contactSupport": "Contactez Swan",
15
15
  "accountStatement.creditTransfer": "Virement",
16
16
  "accountStatement.date": "Du {openingDate} au {closingDate}",
17
17
  "accountStatement.directDebit": "Prélèvement",
@@ -330,9 +330,9 @@
330
330
  "supportingDocuments.purpose.Banking": "Estratto conto bancario (risalente meno di 3 mesi)",
331
331
  "supportingDocuments.purpose.Banking.description": "Un estratto conto bancario intestato all'organizzazione.",
332
332
  "supportingDocuments.purpose.CapitalShareDepositCertificate": "Certificato di deposito del capitale azionario",
333
- "supportingDocuments.purpose.CompanyFormationRegistration": "Registrazione della costituzione della società",
333
+ "supportingDocuments.purpose.CompanyFormationRegistration": "Certificato di costituzione della società",
334
334
  "supportingDocuments.purpose.CompanyLeaseAgreement": "Contratto di affitto d'azienda",
335
- "supportingDocuments.purpose.CompanyObligations": "Obblighi aziendali",
335
+ "supportingDocuments.purpose.CompanyObligations": "Obblighi societari",
336
336
  "supportingDocuments.purpose.CompanyRegistration": "Prova di registrazione (risalente a meno di 3 mesi)",
337
337
  "supportingDocuments.purpose.CompanyRegistration.description": "Un documento che attesti la registrazione legale di un'azienda o entità commerciale presso l'autorità governativa competente. Il documento deve essere risalente a meno di 3 mesi.",
338
338
  "supportingDocuments.purpose.CompanyTreasury": "Tesoreria aziendale",
@@ -376,7 +376,7 @@
376
376
  "supportingDocuments.purpose.SwornStatement.description": "Si prega di completare la dichiarazione giurata che dichiara esattamente come è strutturata l'azienda e chi possiede più del 25% del capitale.\n\nSi prega di utilizzare il modello allegato.",
377
377
  "supportingDocuments.purpose.UBODeclaration": "Prova del certificato del Beneficiario Effettivo Ultimo (UBO)",
378
378
  "supportingDocuments.purpose.UBODeclaration.description": "Un documento che identifica e verifica gli individui che possiedono o controllano in ultima istanza un'azienda o un'entità commerciale. Gli azionari effettivi sono individui che possiedono più del 25% delle azioni o dei diritti di voto dell'azienda. Se non ce ne sono, i Beneficiari Effettivi Ultimi sono i rappresentanti legali dell'organizzazione.",
379
- "supportingDocuments.purpose.USPersonStatusDeclaration": "Dichiarazione dello Status di Persona Statunitense",
379
+ "supportingDocuments.purpose.USPersonStatusDeclaration": "Dichiarazione relativa allo status di persona statunitense",
380
380
  "supportingDocuments.purpose.UltimateBeneficialOwnerProofOfAddress": "Prova dell'indirizzo per ciascun beneficiario effettivo",
381
381
  "supportingDocuments.purpose.UltimateBeneficialOwnerProofOfAddress.description": "Si prega di allegare un documento per ogni persona che possiede almeno il 25% del capitale o dei diritti di voto, o per qualsiasi persona che controlla gli organi esecutivi o la direzione della sua azienda. Qualsiasi documento che attesti l'indirizzo di residenza della persona. I documenti devono includere il nome e l'indirizzo della persona ed essere stati emessi da meno di 3 mesi.\n\nDocumenti accettabili:\n- Documenti relativi all'abitazione (contratto di locazione, estratto conto del mutuo, ecc.)\n- Bollette delle utenze domestiche (elettricità, telefono, servizi Internet, gas, acqua, ecc.)\n- Busta paga (se include l'indirizzo del lavoratore)",
382
382
  "supportingDocuments.purpose.UltimateBeneficialOwnerProofOfIdentity": "Documento di identità per ciascun azionario effettivo",
@@ -11,7 +11,7 @@
11
11
  "accountStatement.column.total": "Totaal",
12
12
  "accountStatement.column.totals": "Totalen",
13
13
  "accountStatement.column.type": "Soort",
14
- "accountStatement.contactSupport": "Neem contact op met Swan",
14
+ "accountStatement.contactSupport": "Contact opnemen met Swan",
15
15
  "accountStatement.creditTransfer": "Creditoverboeking",
16
16
  "accountStatement.date": "Van {openingDate} tot {closingDate}",
17
17
  "accountStatement.directDebit": "Automatische incasso",
@@ -27,7 +27,7 @@
27
27
  "accountStatement.partnership": "In samenwerking met",
28
28
  "accountStatement.titleDocument": "Rekeningafschrift",
29
29
  "accountStatement.titleDocument.companyDescription": "Zakelijke rekening - in euro's",
30
- "accountStatement.titleDocument.individualDescription": "Persoonlijke rekening - in euro's",
30
+ "accountStatement.titleDocument.individualDescription": "Privérekening - in euro's",
31
31
  "accountStatement.to": "naar",
32
32
  "accountStatement.total": "Totalen",
33
33
  "addressFormPart.addressLabel": "Typ uw adres",
@@ -73,7 +73,7 @@
73
73
  "common.showLess": "Toon minder",
74
74
  "common.showMore": "Toon meer",
75
75
  "common.skipToContent": "Doorgaan naar artikel",
76
- "common.statement.footer": "SWAN is een vereenvoudigde naamloze vennootschap (SAS) die is geregistreerd bij het handels- en bedrijvenregister van Paris onder nummer 853 827 103, met een kapitaal van 951.164,50 euro, btw-nummer FR90853827103 en met maatschappelijke zetel te 91 rue du Faubourg Saint-Honoré, 75008 Parijs, FRANKRIJK.\n\nAls elektronischgeldinstelling die betalingsdiensten aanbiedt volgens de Franse wetgeving en goedgekeurd door de ACPR, staat SWAN bij deze laatste geregistreerd onder nummer 17328.",
76
+ "common.statement.footer": "SWAN is een vereenvoudigde naamloze vennootschap (SAS) die is geregistreerd bij het handels- en bedrijvenregister van Paris onder nummer 853 827 103, met een kapitaal van 951.164,50 euro, btw-nummer FR90853827103 en met maatschappelijke zetel te 91 rue du Faubourg Saint-Honoré, 75008 Paris, FRANKRIJK.\n\nAls elektronischgeldinstelling die betalingsdiensten aanbiedt volgens de Franse wetgeving en goedgekeurd door de ACPR, staat SWAN bij deze laatste geregistreerd onder nummer 17328.",
77
77
  "copyButton.copiedTooltip": "Gekopieerd naar klembord",
78
78
  "copyButton.copyTooltip": "Klik om te kopiëren",
79
79
  "creditStatement.additionalDetails": "De afrekening van bold>{openingDate}</bold> tot <bold>{closingDate}</bold> bevat alle kosten en betalingen die we tot {closingDate} hebben ontvangen. De volgende automatische afschrijving gebeurt vanaf {repaymentDate}.\n\n\nAls een automatische incasso wordt geweigerd omdat er niet genoeg geld op je rekening staat, kunnen we deze incasso minstens <bold>3 tot 4 dagen</bold> na de weigering door je bank opnieuw proberen.",
@@ -11,7 +11,7 @@
11
11
  "accountStatement.column.total": "Total",
12
12
  "accountStatement.column.totals": "Totais",
13
13
  "accountStatement.column.type": "Tipo",
14
- "accountStatement.contactSupport": "Contacte a Swan",
14
+ "accountStatement.contactSupport": "Contactar a Swan",
15
15
  "accountStatement.creditTransfer": "Transferência à crédito",
16
16
  "accountStatement.date": "De {openingDate} até {closingDate}",
17
17
  "accountStatement.directDebit": "Débito direto",
@@ -27,7 +27,7 @@
27
27
  "accountStatement.partnership": "Em parceria com",
28
28
  "accountStatement.titleDocument": "Extrato de conta",
29
29
  "accountStatement.titleDocument.companyDescription": "Conta empresarial - em euros",
30
- "accountStatement.titleDocument.individualDescription": "Conta pessoal - em euros",
30
+ "accountStatement.titleDocument.individualDescription": "Conta individual - em euros",
31
31
  "accountStatement.to": "para",
32
32
  "accountStatement.total": "Totais",
33
33
  "addressFormPart.addressLabel": "Introduza o seu endereço",