From c2866eed55f2d1c6112e8df7e910853015f8e752 Mon Sep 17 00:00:00 2001 From: Arthur Moreira Date: Fri, 22 Sep 2023 10:35:08 +0200 Subject: [PATCH] Fix both info showing on uk templates (#103) * Fix show both info when uk buyers * Update i18n and add changelog * Fix lint issues --- README.txt | 1 + changelog.txt | 1 + languages/mondu-de_AT.po | 114 +++++++++--------- languages/mondu-de_DE.po | 114 +++++++++--------- languages/mondu-fr_FR.po | 114 +++++++++--------- languages/mondu-nl_NL.po | 114 +++++++++--------- languages/mondu.pot | 110 ++++++++--------- .../Mondu/Controllers/WebhooksController.php | 2 +- src/Mondu/Mondu/MonduRequestWrapper.php | 7 +- src/Mondu/Mondu/Presenters/PaymentInfo.php | 51 ++++---- src/Mondu/Mondu/Support/Helper.php | 2 +- views/pdf/mondu-invoice-section.php | 51 ++++---- 12 files changed, 348 insertions(+), 333 deletions(-) diff --git a/README.txt b/README.txt index 2316511..d14286a 100644 --- a/README.txt +++ b/README.txt @@ -61,6 +61,7 @@ Check out [Frequently Asked Questions](https://www.mondu.ai/faq) in the Mondu we * Extend getting order by order number * Update order to on-hold when call Mondu confirm +* Fix EU and UK info showing when UK buyer = 2.0.5 = diff --git a/changelog.txt b/changelog.txt index 932e7bd..0996199 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,6 +4,7 @@ * Extend getting order by order number * Update order to on-hold when call Mondu confirm +* Fix EU and UK info showing when UK buyer = 2.0.5 = diff --git a/languages/mondu-de_AT.po b/languages/mondu-de_AT.po index 7058380..2b6eaf3 100644 --- a/languages/mondu-de_AT.po +++ b/languages/mondu-de_AT.po @@ -64,7 +64,7 @@ msgid "Production" msgstr "Production" #: src/Mondu/Admin/Option/Account.php:70 -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:216 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:220 #: src/Mondu/Plugin.php:328 #: src/Mondu/Plugin.php:379 msgid "Yes" @@ -75,7 +75,7 @@ msgid "Send line items only for orders" msgstr "Senden Sie nur Einzelposten für Bestellungen" #: src/Mondu/Admin/Option/Account.php:72 -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:216 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:220 msgid "No" msgstr "Nein" @@ -102,53 +102,53 @@ msgstr "Fehlende Credentials" msgid "Unexpected API response format." msgstr "Unerwartetes API-Antwortformat." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:48 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:47 msgid "Signature mismatch." msgstr "Signatur stimmt nicht überein." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:86 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:85 msgid "Something happened on our end." msgstr "Bei uns ist etwas passiert." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:98 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:117 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:136 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:159 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:178 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:196 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:214 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:97 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:116 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:135 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:158 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:177 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:195 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:213 msgid "Required params missing." msgstr "Erforderliche Parameter fehlen." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:107 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:106 msgid "Mondu order is on pending state." msgstr "Mondu Bestellung ist in manueller Prüfung." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:126 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:125 msgid "Mondu order is on authorized state." msgstr "Mondu Bestellung ist athorisiert." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:145 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:144 msgid "Mondu order is on confirmed state." msgstr "Mondu Bestellung ist bestätigt." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:168 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:167 msgid "Mondu order is on declined state." msgstr "Mondu Bestellung ist abgelehnt." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:187 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:186 msgid "Mondu invoice is on created state." msgstr "Mondu Rechnung ist erstellt." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:205 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:204 msgid "Mondu invoice is on complete state." msgstr "Mondu Rechnung ist vollständig bezahlt." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:223 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:222 msgid "Mondu invoice is on canceled state." msgstr "Mondu Rechnung ist storniert." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:241 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:240 msgid "Not Found" msgstr "Nicht gefunden" @@ -205,73 +205,73 @@ msgstr "Rechnung erstellen" msgid "Corrupt Mondu order!" msgstr "Fehlerhafte Mondu Bestellung!" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:144 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:145 #: views/pdf/mondu-invoice-section.php:36 msgid "Account holder" msgstr "Kontoinhaber" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:148 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:149 #: views/pdf/mondu-invoice-section.php:40 msgid "Bank" msgstr "Bankinstitut" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:153 -#: views/pdf/mondu-invoice-section.php:45 -msgid "IBAN" -msgstr "IBAN" - -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:159 -#: views/pdf/mondu-invoice-section.php:51 -msgid "BIC" -msgstr "BIC" - -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:165 -#: views/pdf/mondu-invoice-section.php:57 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:155 +#: views/pdf/mondu-invoice-section.php:46 msgid "Account number" msgstr "Kontonummer" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:171 -#: views/pdf/mondu-invoice-section.php:63 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:161 +#: views/pdf/mondu-invoice-section.php:52 msgid "Sort code" msgstr "Bankleitzahl" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:177 -#: views/pdf/mondu-invoice-section.php:73 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:168 +#: views/pdf/mondu-invoice-section.php:59 +msgid "IBAN" +msgstr "IBAN" + +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:174 +#: views/pdf/mondu-invoice-section.php:65 +msgid "BIC" +msgstr "BIC" + +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:181 +#: views/pdf/mondu-invoice-section.php:76 msgid "Payment term" msgstr "Zahlungsziel" #. translators: %s: Days -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:178 -#: views/pdf/mondu-invoice-section.php:74 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:182 +#: views/pdf/mondu-invoice-section.php:77 msgid "%s Days" msgstr "%s Tage" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:203 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:207 msgid "Invoice state" msgstr "Rechnungsstatus" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:207 -#: views/pdf/mondu-invoice-section.php:69 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:211 +#: views/pdf/mondu-invoice-section.php:72 msgid "Invoice number" msgstr "Rechnungsnummer" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:211 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:215 msgid "Total" msgstr "Gesamt" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:215 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:219 msgid "Paid out" msgstr "Ausgezahlt" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:231 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:235 msgid "Cancel Invoice" msgstr "Rechnung stornieren" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:244 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:248 msgid "Credit Notes" msgstr "Gutschriften" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:250 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:254 msgid "Tax" msgstr "Steuer" @@ -391,26 +391,26 @@ msgstr "Hinweise zur Verarbeitung Ihrer personenbezogenen Daten durch die %s and Mondu GmbH for the purchase on account payment model. Please pay debt-discharging to the following account:" msgstr "Diese Rechnung wurde abgetreten gemäß den Allgemeinen Bedingungen von %s und Mondu GmbH zum Modell Kauf auf Rechnung. Wir bitten um schuldbefreiende Zahlung auf folgendes Konto:" -#: views/pdf/mondu-invoice-section.php:68 +#: views/pdf/mondu-invoice-section.php:71 msgid "Purpose" msgstr "Verwendungszweck" -#: views/pdf/mondu-invoice-section.php:84 -#: views/pdf/mondu-invoice-section.php:101 -msgid "SEPA direct debit" -msgstr "SEPA-Lastschrift" - -#: views/pdf/mondu-invoice-section.php:84 -#: views/pdf/mondu-invoice-section.php:101 +#: views/pdf/mondu-invoice-section.php:87 +#: views/pdf/mondu-invoice-section.php:104 msgid "direct debit" msgstr "Lastschrift" +#: views/pdf/mondu-invoice-section.php:87 +#: views/pdf/mondu-invoice-section.php:104 +msgid "SEPA direct debit" +msgstr "SEPA-Lastschrift" + #. translators: %1$s: Company %2$s: direct debit -#: views/pdf/mondu-invoice-section.php:90 +#: views/pdf/mondu-invoice-section.php:93 msgid "This invoice was created in accordance with the general terms and conditions of %1$s and Mondu GmbH for the purchase on account payment model.

Since you have chosen the payment method to purchase on account with payment via %2$s through Mondu, the invoice amount will be debited from your bank account on the due date.

Before the amount is debited from your account, you will receive notice of the direct debit. Kindly make sure you have sufficient funds in your account." msgstr "Diese Rechnung wurde abgetreten gemäß den Allgemeinen Bedingungen von %1$s und Mondu GmbH zum Modell Kauf auf Rechnung.

Da Sie die Zahlart Rechnungskauf mit Begleichung via %2$s über Mondu gewählt haben, wird die Rechnungssumme am Fälligkeitstag von Ihrem Bankkonto abgebucht.

Bevor der Betrag von Ihrem Konto abgebucht wird, erhalten Sie eine Lastschriftankündigung. Bitte achten Sie auf eine ausreichende Kontodeckung." #. translators: %1$s: Company %2$s: direct debit -#: views/pdf/mondu-invoice-section.php:107 +#: views/pdf/mondu-invoice-section.php:110 msgid "This invoice was created in accordance with the general terms and conditions of %1$s and Mondu GmbH for the instalment payment model.

Since you have chosen the instalment payment method via %2$s through Mondu, the individual installments will be debited from your bank account on the due date.

Before the amounts are debited from your account, you will receive notice regarding the direct debit. Kindly make sure you have sufficient funds in your account. In the event of changes to your order, the instalment plan will be adjusted to reflect the new order total." msgstr "Diese Rechnung wurde gemäß den Allgemeinen Bedingungen von %1$s und Mondu GmbH zum Zahlungsmodell Ratenkauf abgetreten.

Da Sie die Zahlart Ratenkauf mit Begleichung via %2$s über Mondu gewählt haben, werden die einzelnen Raten an ihrem jeweiligen Fälligkeitstag von Ihrem Bankkonto abgebucht.

Bevor die Beträge von Ihrem Konto abgebucht werden, erhalten Sie bezüglich der Lastschrift eine Vorankündigung. Bitte achten Sie auf eine ausreichende Kontodeckung. Im Falle von Änderungen an Ihrer Bestellung wird der Ratenplan an die neue Bestellsumme angepasst." diff --git a/languages/mondu-de_DE.po b/languages/mondu-de_DE.po index 20695f0..012ef4f 100644 --- a/languages/mondu-de_DE.po +++ b/languages/mondu-de_DE.po @@ -64,7 +64,7 @@ msgid "Production" msgstr "Production" #: src/Mondu/Admin/Option/Account.php:70 -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:216 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:220 #: src/Mondu/Plugin.php:328 #: src/Mondu/Plugin.php:379 msgid "Yes" @@ -75,7 +75,7 @@ msgid "Send line items only for orders" msgstr "Senden Sie nur Einzelposten für Bestellungen" #: src/Mondu/Admin/Option/Account.php:72 -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:216 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:220 msgid "No" msgstr "Nein" @@ -102,53 +102,53 @@ msgstr "Fehlende Credentials" msgid "Unexpected API response format." msgstr "Unerwartetes API-Antwortformat." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:48 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:47 msgid "Signature mismatch." msgstr "Signatur stimmt nicht überein." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:86 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:85 msgid "Something happened on our end." msgstr "Bei uns ist etwas passiert." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:98 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:117 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:136 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:159 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:178 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:196 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:214 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:97 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:116 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:135 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:158 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:177 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:195 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:213 msgid "Required params missing." msgstr "Erforderliche Parameter fehlen." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:107 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:106 msgid "Mondu order is on pending state." msgstr "Mondu Bestellung ist in manueller Prüfung." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:126 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:125 msgid "Mondu order is on authorized state." msgstr "Mondu Bestellung ist athorisiert." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:145 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:144 msgid "Mondu order is on confirmed state." msgstr "Mondu Bestellung ist bestätigt." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:168 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:167 msgid "Mondu order is on declined state." msgstr "Mondu Bestellung ist abgelehnt." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:187 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:186 msgid "Mondu invoice is on created state." msgstr "Mondu Rechnung ist erstellt." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:205 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:204 msgid "Mondu invoice is on complete state." msgstr "Mondu Rechnung ist vollständig bezahlt." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:223 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:222 msgid "Mondu invoice is on canceled state." msgstr "Mondu Rechnung ist storniert." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:241 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:240 msgid "Not Found" msgstr "Nicht gefunden" @@ -205,73 +205,73 @@ msgstr "Rechnung erstellen" msgid "Corrupt Mondu order!" msgstr "Fehlerhafte Mondu Bestellung!" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:144 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:145 #: views/pdf/mondu-invoice-section.php:36 msgid "Account holder" msgstr "Kontoinhaber" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:148 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:149 #: views/pdf/mondu-invoice-section.php:40 msgid "Bank" msgstr "Bankinstitut" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:153 -#: views/pdf/mondu-invoice-section.php:45 -msgid "IBAN" -msgstr "IBAN" - -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:159 -#: views/pdf/mondu-invoice-section.php:51 -msgid "BIC" -msgstr "BIC" - -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:165 -#: views/pdf/mondu-invoice-section.php:57 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:155 +#: views/pdf/mondu-invoice-section.php:46 msgid "Account number" msgstr "Kontonummer" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:171 -#: views/pdf/mondu-invoice-section.php:63 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:161 +#: views/pdf/mondu-invoice-section.php:52 msgid "Sort code" msgstr "Bankleitzahl" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:177 -#: views/pdf/mondu-invoice-section.php:73 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:168 +#: views/pdf/mondu-invoice-section.php:59 +msgid "IBAN" +msgstr "IBAN" + +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:174 +#: views/pdf/mondu-invoice-section.php:65 +msgid "BIC" +msgstr "BIC" + +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:181 +#: views/pdf/mondu-invoice-section.php:76 msgid "Payment term" msgstr "Zahlungsziel" #. translators: %s: Days -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:178 -#: views/pdf/mondu-invoice-section.php:74 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:182 +#: views/pdf/mondu-invoice-section.php:77 msgid "%s Days" msgstr "%s Tage" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:203 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:207 msgid "Invoice state" msgstr "Rechnungsstatus" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:207 -#: views/pdf/mondu-invoice-section.php:69 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:211 +#: views/pdf/mondu-invoice-section.php:72 msgid "Invoice number" msgstr "Rechnungsnummer" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:211 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:215 msgid "Total" msgstr "Gesamt" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:215 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:219 msgid "Paid out" msgstr "Ausgezahlt" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:231 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:235 msgid "Cancel Invoice" msgstr "Rechnung stornieren" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:244 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:248 msgid "Credit Notes" msgstr "Gutschriften" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:250 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:254 msgid "Tax" msgstr "Steuer" @@ -391,26 +391,26 @@ msgstr "Hinweise zur Verarbeitung Ihrer personenbezogenen Daten durch die %s and Mondu GmbH for the purchase on account payment model. Please pay debt-discharging to the following account:" msgstr "Diese Rechnung wurde abgetreten gemäß den Allgemeinen Bedingungen von %s und Mondu GmbH zum Modell Kauf auf Rechnung. Wir bitten um schuldbefreiende Zahlung auf folgendes Konto:" -#: views/pdf/mondu-invoice-section.php:68 +#: views/pdf/mondu-invoice-section.php:71 msgid "Purpose" msgstr "Verwendungszweck" -#: views/pdf/mondu-invoice-section.php:84 -#: views/pdf/mondu-invoice-section.php:101 -msgid "SEPA direct debit" -msgstr "SEPA-Lastschrift" - -#: views/pdf/mondu-invoice-section.php:84 -#: views/pdf/mondu-invoice-section.php:101 +#: views/pdf/mondu-invoice-section.php:87 +#: views/pdf/mondu-invoice-section.php:104 msgid "direct debit" msgstr "Lastschrift" +#: views/pdf/mondu-invoice-section.php:87 +#: views/pdf/mondu-invoice-section.php:104 +msgid "SEPA direct debit" +msgstr "SEPA-Lastschrift" + #. translators: %1$s: Company %2$s: direct debit -#: views/pdf/mondu-invoice-section.php:90 +#: views/pdf/mondu-invoice-section.php:93 msgid "This invoice was created in accordance with the general terms and conditions of %1$s and Mondu GmbH for the purchase on account payment model.

Since you have chosen the payment method to purchase on account with payment via %2$s through Mondu, the invoice amount will be debited from your bank account on the due date.

Before the amount is debited from your account, you will receive notice of the direct debit. Kindly make sure you have sufficient funds in your account." msgstr "Diese Rechnung wurde abgetreten gemäß den Allgemeinen Bedingungen von %1$s und Mondu GmbH zum Modell Kauf auf Rechnung.

Da Sie die Zahlart Rechnungskauf mit Begleichung via %2$s über Mondu gewählt haben, wird die Rechnungssumme am Fälligkeitstag von Ihrem Bankkonto abgebucht.

Bevor der Betrag von Ihrem Konto abgebucht wird, erhalten Sie eine Lastschriftankündigung. Bitte achten Sie auf eine ausreichende Kontodeckung." #. translators: %1$s: Company %2$s: direct debit -#: views/pdf/mondu-invoice-section.php:107 +#: views/pdf/mondu-invoice-section.php:110 msgid "This invoice was created in accordance with the general terms and conditions of %1$s and Mondu GmbH for the instalment payment model.

Since you have chosen the instalment payment method via %2$s through Mondu, the individual installments will be debited from your bank account on the due date.

Before the amounts are debited from your account, you will receive notice regarding the direct debit. Kindly make sure you have sufficient funds in your account. In the event of changes to your order, the instalment plan will be adjusted to reflect the new order total." msgstr "Diese Rechnung wurde gemäß den Allgemeinen Bedingungen von %1$s und Mondu GmbH zum Zahlungsmodell Ratenkauf abgetreten.

Da Sie die Zahlart Ratenkauf mit Begleichung via %2$s über Mondu gewählt haben, werden die einzelnen Raten an ihrem jeweiligen Fälligkeitstag von Ihrem Bankkonto abgebucht.

Bevor die Beträge von Ihrem Konto abgebucht werden, erhalten Sie bezüglich der Lastschrift eine Vorankündigung. Bitte achten Sie auf eine ausreichende Kontodeckung. Im Falle von Änderungen an Ihrer Bestellung wird der Ratenplan an die neue Bestellsumme angepasst." diff --git a/languages/mondu-fr_FR.po b/languages/mondu-fr_FR.po index 3835a09..137cd47 100644 --- a/languages/mondu-fr_FR.po +++ b/languages/mondu-fr_FR.po @@ -64,7 +64,7 @@ msgid "Production" msgstr "Production" #: src/Mondu/Admin/Option/Account.php:70 -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:216 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:220 #: src/Mondu/Plugin.php:328 #: src/Mondu/Plugin.php:379 msgid "Yes" @@ -75,7 +75,7 @@ msgid "Send line items only for orders" msgstr "Envoyer la liste des articles uniquement pour les commandes" #: src/Mondu/Admin/Option/Account.php:72 -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:216 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:220 msgid "No" msgstr "Non" @@ -102,53 +102,53 @@ msgstr "Références Manquantes" msgid "Unexpected API response format." msgstr "Format de la réponse API inattendu." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:48 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:47 msgid "Signature mismatch." msgstr "La signature ne correspond pas." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:86 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:85 msgid "Something happened on our end." msgstr "Quelque chose s'est passé de notre côté." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:98 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:117 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:136 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:159 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:178 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:196 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:214 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:97 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:116 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:135 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:158 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:177 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:195 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:213 msgid "Required params missing." msgstr "Paramètres requis manquants." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:107 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:106 msgid "Mondu order is on pending state." msgstr "La commande Mondu est en attente." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:126 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:125 msgid "Mondu order is on authorized state." msgstr "La commande Mondu est en cours d'autorisation." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:145 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:144 msgid "Mondu order is on confirmed state." msgstr "La commande Mondu est dans l'état confirmé." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:168 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:167 msgid "Mondu order is on declined state." msgstr "La commande Mondu est dans l'état refusé." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:187 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:186 msgid "Mondu invoice is on created state." msgstr "La facture Mondu est à l'état créé." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:205 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:204 msgid "Mondu invoice is on complete state." msgstr "La facture Mondu est à l'état complet." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:223 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:222 msgid "Mondu invoice is on canceled state." msgstr "La facture Mondu est dans l'état annulé." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:241 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:240 msgid "Not Found" msgstr "Aucun résultat" @@ -205,73 +205,73 @@ msgstr "Créer une facture" msgid "Corrupt Mondu order!" msgstr "Commande Mondu corrompue!" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:144 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:145 #: views/pdf/mondu-invoice-section.php:36 msgid "Account holder" msgstr "Titulaire du compte" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:148 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:149 #: views/pdf/mondu-invoice-section.php:40 msgid "Bank" msgstr "Banque" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:153 -#: views/pdf/mondu-invoice-section.php:45 -msgid "IBAN" -msgstr "IBAN" - -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:159 -#: views/pdf/mondu-invoice-section.php:51 -msgid "BIC" -msgstr "BIC" - -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:165 -#: views/pdf/mondu-invoice-section.php:57 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:155 +#: views/pdf/mondu-invoice-section.php:46 msgid "Account number" msgstr "Numéro de compte" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:171 -#: views/pdf/mondu-invoice-section.php:63 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:161 +#: views/pdf/mondu-invoice-section.php:52 msgid "Sort code" msgstr "Code de tri" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:177 -#: views/pdf/mondu-invoice-section.php:73 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:168 +#: views/pdf/mondu-invoice-section.php:59 +msgid "IBAN" +msgstr "IBAN" + +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:174 +#: views/pdf/mondu-invoice-section.php:65 +msgid "BIC" +msgstr "BIC" + +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:181 +#: views/pdf/mondu-invoice-section.php:76 msgid "Payment term" msgstr "Délai de paiement" #. translators: %s: Days -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:178 -#: views/pdf/mondu-invoice-section.php:74 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:182 +#: views/pdf/mondu-invoice-section.php:77 msgid "%s Days" msgstr "%s Jours" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:203 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:207 msgid "Invoice state" msgstr "État de la facture" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:207 -#: views/pdf/mondu-invoice-section.php:69 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:211 +#: views/pdf/mondu-invoice-section.php:72 msgid "Invoice number" msgstr "Numéro de facture" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:211 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:215 msgid "Total" msgstr "Total" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:215 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:219 msgid "Paid out" msgstr "Payé" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:231 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:235 msgid "Cancel Invoice" msgstr "Annuler la facture" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:244 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:248 msgid "Credit Notes" msgstr "Notes de crédit" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:250 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:254 msgid "Tax" msgstr "Taxe" @@ -391,26 +391,26 @@ msgstr "Des informations sur la façon dont Mondu GmbH traite vos données perso msgid "This invoice was created in accordance with the general terms and conditions of %s and Mondu GmbH for the purchase on account payment model. Please pay debt-discharging to the following account:" msgstr "Cette facture a été cédée conformément aux conditions générales de %s et de Mondu GmbH pour le modèle d'achat sur facture. Nous vous demandons de verser le montant dû sur le compte suivant:" -#: views/pdf/mondu-invoice-section.php:68 +#: views/pdf/mondu-invoice-section.php:71 msgid "Purpose" msgstr "Objectif" -#: views/pdf/mondu-invoice-section.php:84 -#: views/pdf/mondu-invoice-section.php:101 -msgid "SEPA direct debit" -msgstr "prélèvement SEPA" - -#: views/pdf/mondu-invoice-section.php:84 -#: views/pdf/mondu-invoice-section.php:101 +#: views/pdf/mondu-invoice-section.php:87 +#: views/pdf/mondu-invoice-section.php:104 msgid "direct debit" msgstr "prélèvement" +#: views/pdf/mondu-invoice-section.php:87 +#: views/pdf/mondu-invoice-section.php:104 +msgid "SEPA direct debit" +msgstr "prélèvement SEPA" + #. translators: %1$s: Company %2$s: direct debit -#: views/pdf/mondu-invoice-section.php:90 +#: views/pdf/mondu-invoice-section.php:93 msgid "This invoice was created in accordance with the general terms and conditions of %1$s and Mondu GmbH for the purchase on account payment model.

Since you have chosen the payment method to purchase on account with payment via %2$s through Mondu, the invoice amount will be debited from your bank account on the due date.

Before the amount is debited from your account, you will receive notice of the direct debit. Kindly make sure you have sufficient funds in your account." msgstr "Cette facture a été cédée conformément aux conditions générales de %1$s et de Mondu GmbH pour le modèle d'achat sur facture.

Comme vous avez choisi le mode de paiement de l'achat sur facture avec règlement via %2$s via Mondu, le montant de la facture sera débité de votre compte bancaire à la date d'échéance.

Vous recevrez un avis avant le prélèvement automatique sur votre compte. Veuillez alors vous assurer que votre compte contient les fonds suffisants pour assurer la transaction à la date du prélèvement." #. translators: %1$s: Company %2$s: direct debit -#: views/pdf/mondu-invoice-section.php:107 +#: views/pdf/mondu-invoice-section.php:110 msgid "This invoice was created in accordance with the general terms and conditions of %1$s and Mondu GmbH for the instalment payment model.

Since you have chosen the instalment payment method via %2$s through Mondu, the individual installments will be debited from your bank account on the due date.

Before the amounts are debited from your account, you will receive notice regarding the direct debit. Kindly make sure you have sufficient funds in your account. In the event of changes to your order, the instalment plan will be adjusted to reflect the new order total." msgstr "Cette facture a été cédée conformément aux conditions générales de %1$s et de Mondu GmbH pour le modèle de paiement en plusieurs fois.

Comme vous avez choisi le mode de paiement en plusieurs fois avec règlement via %2$s via Mondu, chaque versement sera prélevé sur votre compte bancaire à sa date d'échéance.

Vous recevrez un avis avant le prélèvement automatique sur votre compte. Veuillez alors vous assurer que votre compte contient les fonds suffisants pour assurer la transaction à la date du prélèvement. En cas de modifications apportées à votre commande, le plan de versements sera adapté au nouveau montant de la commande." diff --git a/languages/mondu-nl_NL.po b/languages/mondu-nl_NL.po index 39081d1..0b76161 100644 --- a/languages/mondu-nl_NL.po +++ b/languages/mondu-nl_NL.po @@ -64,7 +64,7 @@ msgid "Production" msgstr "Productie" #: src/Mondu/Admin/Option/Account.php:70 -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:216 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:220 #: src/Mondu/Plugin.php:328 #: src/Mondu/Plugin.php:379 msgid "Yes" @@ -75,7 +75,7 @@ msgid "Send line items only for orders" msgstr "Stuur alleen regelitems voor bestellingen" #: src/Mondu/Admin/Option/Account.php:72 -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:216 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:220 msgid "No" msgstr "Nee" @@ -102,53 +102,53 @@ msgstr "Ontbrekende Credentials" msgid "Unexpected API response format." msgstr "Onverwachte API respons format." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:48 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:47 msgid "Signature mismatch." msgstr "Signature mismatch." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:86 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:85 msgid "Something happened on our end." msgstr "Er is iets gebeurd aan onze kant." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:98 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:117 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:136 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:159 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:178 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:196 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:214 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:97 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:116 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:135 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:158 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:177 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:195 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:213 msgid "Required params missing." msgstr "Vereiste params ontbreken." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:107 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:106 msgid "Mondu order is on pending state." msgstr "Mondu-bestelling is in behandeling." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:126 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:125 msgid "Mondu order is on authorized state." msgstr "Mondu-bestelling is geautoriseerd." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:145 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:144 msgid "Mondu order is on confirmed state." msgstr "Mondu-bestelling is bevestigd." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:168 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:167 msgid "Mondu order is on declined state." msgstr "Mondu-bestelling is geweigerd." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:187 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:186 msgid "Mondu invoice is on created state." msgstr "Mondu-factuur is aangemaakt." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:205 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:204 msgid "Mondu invoice is on complete state." msgstr "Mondu-factuur is voltooid." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:223 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:222 msgid "Mondu invoice is on canceled state." msgstr "Mondu-factuur is geannuleerd." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:241 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:240 msgid "Not Found" msgstr "Niet gevonden" @@ -205,73 +205,73 @@ msgstr "Factuur aanmaken" msgid "Corrupt Mondu order!" msgstr "Corrupte Mondu order!" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:144 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:145 #: views/pdf/mondu-invoice-section.php:36 msgid "Account holder" msgstr "Rekeninghouder" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:148 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:149 #: views/pdf/mondu-invoice-section.php:40 msgid "Bank" msgstr "Bank" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:153 -#: views/pdf/mondu-invoice-section.php:45 -msgid "IBAN" -msgstr "IBAN" - -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:159 -#: views/pdf/mondu-invoice-section.php:51 -msgid "BIC" -msgstr "BIC" - -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:165 -#: views/pdf/mondu-invoice-section.php:57 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:155 +#: views/pdf/mondu-invoice-section.php:46 msgid "Account number" msgstr "Rekeningnummer" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:171 -#: views/pdf/mondu-invoice-section.php:63 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:161 +#: views/pdf/mondu-invoice-section.php:52 msgid "Sort code" msgstr "Sorteercode" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:177 -#: views/pdf/mondu-invoice-section.php:73 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:168 +#: views/pdf/mondu-invoice-section.php:59 +msgid "IBAN" +msgstr "IBAN" + +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:174 +#: views/pdf/mondu-invoice-section.php:65 +msgid "BIC" +msgstr "BIC" + +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:181 +#: views/pdf/mondu-invoice-section.php:76 msgid "Payment term" msgstr "Betalingstermijn" #. translators: %s: Days -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:178 -#: views/pdf/mondu-invoice-section.php:74 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:182 +#: views/pdf/mondu-invoice-section.php:77 msgid "%s Days" msgstr "%s Dagen" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:203 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:207 msgid "Invoice state" msgstr "Factuurstatus" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:207 -#: views/pdf/mondu-invoice-section.php:69 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:211 +#: views/pdf/mondu-invoice-section.php:72 msgid "Invoice number" msgstr "Factuurnummer" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:211 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:215 msgid "Total" msgstr "Totaal" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:215 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:219 msgid "Paid out" msgstr "Uitbetaald" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:231 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:235 msgid "Cancel Invoice" msgstr "Factuur annuleren" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:244 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:248 msgid "Credit Notes" msgstr "Creditnota's" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:250 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:254 msgid "Tax" msgstr "Belasting" @@ -391,26 +391,26 @@ msgstr "Informatie over de verwerking van uw persoonlijke gegevens door msgid "This invoice was created in accordance with the general terms and conditions of %s and Mondu GmbH for the purchase on account payment model. Please pay debt-discharging to the following account:" msgstr "Deze factuur is opgesteld in overeenstemming met de algemene voorwaarden van %s en Mondu GmbH voor het betaalmodel aankoop op rekening. Gelieve te betalen op de volgende rekening:" -#: views/pdf/mondu-invoice-section.php:68 +#: views/pdf/mondu-invoice-section.php:71 msgid "Purpose" msgstr "Betalingsreferentie" -#: views/pdf/mondu-invoice-section.php:84 -#: views/pdf/mondu-invoice-section.php:101 -msgid "SEPA direct debit" -msgstr "SEPA automatische incasso" - -#: views/pdf/mondu-invoice-section.php:84 -#: views/pdf/mondu-invoice-section.php:101 +#: views/pdf/mondu-invoice-section.php:87 +#: views/pdf/mondu-invoice-section.php:104 msgid "direct debit" msgstr "automatische incasso" +#: views/pdf/mondu-invoice-section.php:87 +#: views/pdf/mondu-invoice-section.php:104 +msgid "SEPA direct debit" +msgstr "SEPA automatische incasso" + #. translators: %1$s: Company %2$s: direct debit -#: views/pdf/mondu-invoice-section.php:90 +#: views/pdf/mondu-invoice-section.php:93 msgid "This invoice was created in accordance with the general terms and conditions of %1$s and Mondu GmbH for the purchase on account payment model.

Since you have chosen the payment method to purchase on account with payment via %2$s through Mondu, the invoice amount will be debited from your bank account on the due date.

Before the amount is debited from your account, you will receive notice of the direct debit. Kindly make sure you have sufficient funds in your account." msgstr "Deze factuur is opgesteld in overeenstemming met de algemene voorwaarden van %s en Mondu GmbH voor het betaalmodel aankoop op rekening.

Aangezien u heeft gekozen voor de betaalmethode aankoop op rekening met de betaling via %2$s via Mondu, zal het factuurbedrag op de vervaldatum van uw bankrekening worden afgeschreven.

Voordat het bedrag van uw rekening wordt afgeschreven, ontvangt u bericht over de automatische incasso. Zorg ervoor dat u voldoende saldo op uw rekening heeft staan." #. translators: %1$s: Company %2$s: direct debit -#: views/pdf/mondu-invoice-section.php:107 +#: views/pdf/mondu-invoice-section.php:110 msgid "This invoice was created in accordance with the general terms and conditions of %1$s and Mondu GmbH for the instalment payment model.

Since you have chosen the instalment payment method via %2$s through Mondu, the individual installments will be debited from your bank account on the due date.

Before the amounts are debited from your account, you will receive notice regarding the direct debit. Kindly make sure you have sufficient funds in your account. In the event of changes to your order, the instalment plan will be adjusted to reflect the new order total." msgstr "Deze factuur is gemaakt in overeenstemming met de algemene voorwaarden van %s en Mondu GmbH voor het termijnbetaling betalingsmodel.

Aangezien u heeft gekozen voor de termijn betalingsmethode via %2$s via Mondu, worden de individuele bedragen voor elke betalingstermijnen op de vervaldatum van uw bankrekening afgeschreven.

Voordat de bedragen van uw rekening worden afgeschreven, ontvangt u bericht over de automatische incasso. Zorg ervoor dat u voldoende geld op uw rekening heeft staan. Voor het geval dat er wijzigingen in uw bestelling plaats vindt, wordt het afbetalingsplan aangepast aan het nieuwe orderbedrag." diff --git a/languages/mondu.pot b/languages/mondu.pot index 8fa39c5..fe5b150 100644 --- a/languages/mondu.pot +++ b/languages/mondu.pot @@ -9,7 +9,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2023-09-04T11:36:15+00:00\n" +"POT-Creation-Date: 2023-09-08T08:33:52+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.8.1\n" "X-Domain: mondu\n" @@ -67,7 +67,7 @@ msgid "Production" msgstr "" #: src/Mondu/Admin/Option/Account.php:70 -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:216 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:220 #: src/Mondu/Plugin.php:328 #: src/Mondu/Plugin.php:379 msgid "Yes" @@ -78,7 +78,7 @@ msgid "Send line items only for orders" msgstr "" #: src/Mondu/Admin/Option/Account.php:72 -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:216 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:220 msgid "No" msgstr "" @@ -105,53 +105,53 @@ msgstr "" msgid "Unexpected API response format." msgstr "" -#: src/Mondu/Mondu/Controllers/WebhooksController.php:48 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:47 msgid "Signature mismatch." msgstr "" -#: src/Mondu/Mondu/Controllers/WebhooksController.php:86 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:85 msgid "Something happened on our end." msgstr "" -#: src/Mondu/Mondu/Controllers/WebhooksController.php:98 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:117 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:136 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:159 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:178 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:196 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:214 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:97 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:116 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:135 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:158 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:177 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:195 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:213 msgid "Required params missing." msgstr "" -#: src/Mondu/Mondu/Controllers/WebhooksController.php:107 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:106 msgid "Mondu order is on pending state." msgstr "" -#: src/Mondu/Mondu/Controllers/WebhooksController.php:126 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:125 msgid "Mondu order is on authorized state." msgstr "" -#: src/Mondu/Mondu/Controllers/WebhooksController.php:145 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:144 msgid "Mondu order is on confirmed state." msgstr "" -#: src/Mondu/Mondu/Controllers/WebhooksController.php:168 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:167 msgid "Mondu order is on declined state." msgstr "" -#: src/Mondu/Mondu/Controllers/WebhooksController.php:187 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:186 msgid "Mondu invoice is on created state." msgstr "" -#: src/Mondu/Mondu/Controllers/WebhooksController.php:205 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:204 msgid "Mondu invoice is on complete state." msgstr "" -#: src/Mondu/Mondu/Controllers/WebhooksController.php:223 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:222 msgid "Mondu invoice is on canceled state." msgstr "" -#: src/Mondu/Mondu/Controllers/WebhooksController.php:241 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:240 msgid "Not Found" msgstr "" @@ -208,73 +208,73 @@ msgstr "" msgid "Corrupt Mondu order!" msgstr "" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:144 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:145 #: views/pdf/mondu-invoice-section.php:36 msgid "Account holder" msgstr "" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:148 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:149 #: views/pdf/mondu-invoice-section.php:40 msgid "Bank" msgstr "" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:153 -#: views/pdf/mondu-invoice-section.php:45 -msgid "IBAN" +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:155 +#: views/pdf/mondu-invoice-section.php:46 +msgid "Account number" msgstr "" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:159 -#: views/pdf/mondu-invoice-section.php:51 -msgid "BIC" +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:161 +#: views/pdf/mondu-invoice-section.php:52 +msgid "Sort code" msgstr "" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:165 -#: views/pdf/mondu-invoice-section.php:57 -msgid "Account number" +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:168 +#: views/pdf/mondu-invoice-section.php:59 +msgid "IBAN" msgstr "" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:171 -#: views/pdf/mondu-invoice-section.php:63 -msgid "Sort code" +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:174 +#: views/pdf/mondu-invoice-section.php:65 +msgid "BIC" msgstr "" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:177 -#: views/pdf/mondu-invoice-section.php:73 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:181 +#: views/pdf/mondu-invoice-section.php:76 msgid "Payment term" msgstr "" #. translators: %s: Days -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:178 -#: views/pdf/mondu-invoice-section.php:74 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:182 +#: views/pdf/mondu-invoice-section.php:77 msgid "%s Days" msgstr "" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:203 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:207 msgid "Invoice state" msgstr "" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:207 -#: views/pdf/mondu-invoice-section.php:69 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:211 +#: views/pdf/mondu-invoice-section.php:72 msgid "Invoice number" msgstr "" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:211 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:215 msgid "Total" msgstr "" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:215 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:219 msgid "Paid out" msgstr "" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:231 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:235 msgid "Cancel Invoice" msgstr "" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:244 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:248 msgid "Credit Notes" msgstr "" -#: src/Mondu/Mondu/Presenters/PaymentInfo.php:250 +#: src/Mondu/Mondu/Presenters/PaymentInfo.php:254 msgid "Tax" msgstr "" @@ -394,26 +394,26 @@ msgstr "" msgid "This invoice was created in accordance with the general terms and conditions of %s and Mondu GmbH for the purchase on account payment model. Please pay debt-discharging to the following account:" msgstr "" -#: views/pdf/mondu-invoice-section.php:68 +#: views/pdf/mondu-invoice-section.php:71 msgid "Purpose" msgstr "" -#: views/pdf/mondu-invoice-section.php:84 -#: views/pdf/mondu-invoice-section.php:101 -msgid "SEPA direct debit" +#: views/pdf/mondu-invoice-section.php:87 +#: views/pdf/mondu-invoice-section.php:104 +msgid "direct debit" msgstr "" -#: views/pdf/mondu-invoice-section.php:84 -#: views/pdf/mondu-invoice-section.php:101 -msgid "direct debit" +#: views/pdf/mondu-invoice-section.php:87 +#: views/pdf/mondu-invoice-section.php:104 +msgid "SEPA direct debit" msgstr "" #. translators: %1$s: Company %2$s: direct debit -#: views/pdf/mondu-invoice-section.php:90 +#: views/pdf/mondu-invoice-section.php:93 msgid "This invoice was created in accordance with the general terms and conditions of %1$s and Mondu GmbH for the purchase on account payment model.

Since you have chosen the payment method to purchase on account with payment via %2$s through Mondu, the invoice amount will be debited from your bank account on the due date.

Before the amount is debited from your account, you will receive notice of the direct debit. Kindly make sure you have sufficient funds in your account." msgstr "" #. translators: %1$s: Company %2$s: direct debit -#: views/pdf/mondu-invoice-section.php:107 +#: views/pdf/mondu-invoice-section.php:110 msgid "This invoice was created in accordance with the general terms and conditions of %1$s and Mondu GmbH for the instalment payment model.

Since you have chosen the instalment payment method via %2$s through Mondu, the individual installments will be debited from your bank account on the due date.

Before the amounts are debited from your account, you will receive notice regarding the direct debit. Kindly make sure you have sufficient funds in your account. In the event of changes to your order, the instalment plan will be adjusted to reflect the new order total." msgstr "" diff --git a/src/Mondu/Mondu/Controllers/WebhooksController.php b/src/Mondu/Mondu/Controllers/WebhooksController.php index 2dd425a..1a32720 100644 --- a/src/Mondu/Mondu/Controllers/WebhooksController.php +++ b/src/Mondu/Mondu/Controllers/WebhooksController.php @@ -143,7 +143,7 @@ private function handle_confirmed( $params ) { $order->add_order_note( esc_html( sprintf( __( 'Mondu order is on confirmed state.', 'mondu' ) ) ), false ); - if ( in_array( $order->get_status(), [ 'pending', 'on-hold' ] )) { + if ( in_array( $order->get_status(), [ 'pending', 'on-hold' ] ) ) { $order->update_status('wc-processing', __('Processing', 'woocommerce')); } diff --git a/src/Mondu/Mondu/MonduRequestWrapper.php b/src/Mondu/Mondu/MonduRequestWrapper.php index d1d6e99..bf3eed4 100644 --- a/src/Mondu/Mondu/MonduRequestWrapper.php +++ b/src/Mondu/Mondu/MonduRequestWrapper.php @@ -259,7 +259,12 @@ public function order_refunded( $order_id, $refund_id ) { $mondu_invoice_id = get_post_meta($order->get_id(), Plugin::INVOICE_ID_KEY, true); if ( !$mondu_invoice_id ) { - Helper::log([ 'skipping_credit_note_creation' => [ 'order' => $order_id, 'refund' => $refund_id ] ]); + Helper::log([ + 'skipping_credit_note_creation' => [ + 'order' => $order_id, + 'refund' => $refund_id, + ], + ]); return; } diff --git a/src/Mondu/Mondu/Presenters/PaymentInfo.php b/src/Mondu/Mondu/Presenters/PaymentInfo.php index 7063cee..5862831 100644 --- a/src/Mondu/Mondu/Presenters/PaymentInfo.php +++ b/src/Mondu/Mondu/Presenters/PaymentInfo.php @@ -131,6 +131,7 @@ public function get_mondu_payment_html() { $bank_account = $this->order_data['bank_account']; $net_terms = $this->get_mondu_net_term(); + $mondu_uk_buyer = $bank_account['account_number'] && $bank_account['sort_code']; if ( $bank_account ) { ?> @@ -148,29 +149,32 @@ public function get_mondu_payment_html() { :

- -

- : - -

- - -

- : - -

- - -

- : - -

- - -

- : - -

+ + +

+ : + +

+ + +

+ : + +

+ + + +

+ : + +

+ + +

+ : + +

+

@@ -274,6 +278,7 @@ public function get_mondu_wcpdf_section_html() { $bank_account = $this->order_data['bank_account']; $invoice_number = Helper::get_invoice_number( $this->order ); $net_terms = $this->get_mondu_net_term(); + $mondu_uk_buyer = $bank_account['account_number'] && $bank_account['sort_code']; include $file; } diff --git a/src/Mondu/Mondu/Support/Helper.php b/src/Mondu/Mondu/Support/Helper.php index ca7ecaa..d8b1279 100644 --- a/src/Mondu/Mondu/Support/Helper.php +++ b/src/Mondu/Mondu/Support/Helper.php @@ -123,7 +123,7 @@ public static function get_order_from_order_number( $order_number ) { [ 'key' => '_order_number', 'value' => $order_number, - 'comparison' => '=' + 'comparison' => '=', ], ], ]); diff --git a/views/pdf/mondu-invoice-section.php b/views/pdf/mondu-invoice-section.php index f28c81a..d90f4cc 100644 --- a/views/pdf/mondu-invoice-section.php +++ b/views/pdf/mondu-invoice-section.php @@ -40,29 +40,32 @@ : - - - : - - - - - - : - - - - - - : - - - - - - : - - + + + + : + + + + + + : + + + + + + + : + + + + + + : + + + : @@ -81,7 +84,7 @@ } if ( 'mondu_direct_debit' === $payment_method ) { - $payment_name = $bank_account['iban'] ? __('SEPA direct debit', 'mondu') : __('direct debit', 'mondu'); + $payment_name = $mondu_uk_buyer ? __('direct debit', 'mondu') : __('SEPA direct debit', 'mondu'); ?>