diff --git a/CHANGELOG.md b/CHANGELOG.md
index d91867a..0a5c92c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,28 +1,18 @@
-# 6.1.5
-- Support for Shopware 6.6.3.1 and Vue 3
+# 5.0.11
+- Fixed plugin upgrade dependency error
-# 6.1.4
-- Improved plugin's settings form
-- Support for Shopware 6.6.2.0
-
-# 6.1.3
+# 5.0.10
- Solvency check support for Powerpay and MF Group Invoice payment methods
- Improved handling of abandoned transactions
-# 6.1.2
+# 5.0.9
- Fixed redirect to confirmation page after reload
-# 6.1.1
-- Fixed deprecated OrderNotFoundException
-
-# 6.1.0
+# 5.0.8
- Fixed checkout issues after deactivating/activating plugin
- Fixed plugin uninstall action
- Fixed invoice payment method email function when order is shipped
-# 6.0.0
-- Support for Shopware 6.6
-
# 5.0.7
- Fix for refunds when a discount code is used
diff --git a/CHANGELOG_de-DE.md b/CHANGELOG_de-DE.md
index fedd378..ad716a4 100644
--- a/CHANGELOG_de-DE.md
+++ b/CHANGELOG_de-DE.md
@@ -1,28 +1,18 @@
-# 6.1.5
-- Unterstützung von Shopware 6.6.3.1 und Vue 3
+# 5.0.11
+- Plugin-Upgrade-Abhängigkeitsfehler behoben
-# 6.1.4
-- Das Einstellungsformular des Plugins wurde verbessert
-- Unterstützung von Shopware 6.6.2.0
-
-# 6.1.3
+# 5.0.10
- Unterstützung der Bonitätsprüfung für die Zahlungsmethoden Powerpay und MF Group Invoice
- Verbesserte Handhabung abgebrochener Transaktionen
-# 6.1.2
+# 5.0.9
- Die Weiterleitung zur Bestätigungsseite nach dem Neuladen wurde behoben
-# 6.1.1
-- Fixed deprecated OrderNotFoundException
-
-# 6.1.0
+# 5.0.8
- Checkout-Probleme nach dem Deaktivieren/Aktivieren des Plugins behoben
- Plugin-Deinstallationsaktion behoben
- Die E-Mail-Funktion für die Rechnungszahlungsmethode beim Versand der Bestellung wurde korrigiert
-# 6.0.0
-- Unterstützung von Shopware 6.6
-
# 5.0.7
- Fix für Rückerstattungen, wenn ein Rabattcode verwendet wird
diff --git a/README.md b/README.md
index b0fdebd..d8ac0e9 100644
--- a/README.md
+++ b/README.md
@@ -3,22 +3,13 @@
PostFinanceCheckout Payment for Shopware 6
=============================
-The PostFinanceCheckout Payment plugin wraps around the PostFinanceCheckout API. This library facilitates your interaction with various services such as transactions.
-Please note that this plugin is for versions 6.5 and 6.6. For the 6.4 plugin please visit [our Shopware 6.4 plugin](https://github.com/pfpayments/shopware-6-4).
+The PostFinanceCheckout Payment plugin wraps around the PostFinanceCheckout API. This library facilitates your interaction with various services such as transactions. Please not this plugin is for version 6.5.
+For the 6.4 plugin please visit https://github.com/pfpayments/shopware-6-4
## Requirements
-- Shopware 6.5.x or Shopware 6.6.x. See table below.
-- PHP minimum version supported by the each shop version.
-
-## Supported versions
-
-___________________________________________________________________________________
-| Shopware 6 version | Plugin major version | Supported until |
-|-------------------------------|------------------------|------------------------|
-| Shopware 6.6.x | 6.x | Further notice |
-| Shopware 6.5.x | 5.x | October 2024 |
------------------------------------------------------------------------------------
+- PHP 7.4 - 8.2
+- Shopware 6.5.x
## Installation
@@ -53,7 +44,7 @@ Uncompress the zip file you download, and include the autoloader in your project
```bash
# unzip to ShopwareInstallDir/custom/plugins/PostFinanceCheckoutPayment
-composer require postfinancecheckout/sdk 4.2.0
+composer require postfinancecheckout/sdk 4.2.2
php bin/console plugin:refresh
php bin/console plugin:install --activate --clearCache PostFinanceCheckoutPayment
```
@@ -71,8 +62,8 @@ tail -f var/log/postfinancecheckout_payment*.log
## Documentation
-[Documentation](https://plugin-documentation.postfinance-checkout.ch/pfpayments/shopware-6/6.1.5/docs/en/documentation.html)
+[Documentation](https://plugin-documentation.postfinance-checkout.ch/pfpayments/shopware-6/5.0.11/docs/en/documentation.html)
## License
-Please see the [license file](https://github.com/pfpayments/shopware-6/blob/master/LICENSE.txt) for more information.
+Please see the [license file](https://github.com/pfpayments/shopware-6/blob/master/LICENSE.txt) for more information.
\ No newline at end of file
diff --git a/composer.json b/composer.json
index 37ada3c..3a5a142 100644
--- a/composer.json
+++ b/composer.json
@@ -11,8 +11,8 @@
}
},
"conflict": {
- "shopware/administration": "<6.6.0.0,>=7",
- "shopware/storefront": "<6.6.0.0,>=7"
+ "shopware/administration": "<6.5.0.0,>=7",
+ "shopware/storefront": "<6.5.0.0,>=7"
},
"description": "PostFinanceCheckout integration for Shopware 6",
"extra": {
@@ -56,11 +56,11 @@
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
- "php": ">=8.2",
- "shopware/core": "6.6.*",
- "shopware/storefront": "6.6.*",
- "postfinancecheckout/sdk": "4.2.0"
+ "php": ">=7.4",
+ "shopware/core": "6.5.*",
+ "shopware/storefront": "6.5.*",
+ "postfinancecheckout/sdk": "4.2.2"
},
"type": "shopware-platform-plugin",
- "version": "6.1.5"
+ "version": "5.0.11"
}
\ No newline at end of file
diff --git a/docs/en/documentation.html b/docs/en/documentation.html
index 1c6c0f2..69ceee6 100644
--- a/docs/en/documentation.html
+++ b/docs/en/documentation.html
@@ -23,7 +23,7 @@
\n{% endblock %}\n',inject:["PostFinanceCheckoutTransactionService","PostFinanceCheckoutRefundService","repositoryFactory"],mixins:[I.getByName("notification")],data(){return{transactionData:{transactions:[],refunds:[]},transaction:{},lineItems:[],refundableQuantity:0,isLoading:!0,orderId:"",currency:"",modalType:"",refundAmount:0,refundableAmount:0,currentLineItem:"",refundLineItem:[]}},metaInfo(){return{title:this.$tc("postfinancecheckout-order.header")}},computed:{dateFilter(){return y.getByName("date")},relatedResourceColumns(){return[{property:"paymentMethodName",label:this.$tc("postfinancecheckout-order.transactionHistory.types.payment_method"),rawData:!0},{property:"state",label:this.$tc("postfinancecheckout-order.transactionHistory.types.state"),rawData:!0},{property:"currency",label:this.$tc("postfinancecheckout-order.transactionHistory.types.currency"),rawData:!0},{property:"authorized_amount",label:this.$tc("postfinancecheckout-order.transactionHistory.types.authorized_amount"),rawData:!0},{property:"id",label:this.$tc("postfinancecheckout-order.transactionHistory.types.transaction"),rawData:!0},{property:"customerId",label:this.$tc("postfinancecheckout-order.transactionHistory.types.customer"),rawData:!0}]},lineItemColumns(){return[{property:"uniqueId",label:this.$tc("postfinancecheckout-order.lineItem.types.uniqueId"),rawData:!0,visible:!1,primary:!0},{property:"name",label:this.$tc("postfinancecheckout-order.lineItem.types.name"),rawData:!0},{property:"quantity",label:this.$tc("postfinancecheckout-order.lineItem.types.quantity"),rawData:!0},{property:"amountIncludingTax",label:this.$tc("postfinancecheckout-order.lineItem.types.amountIncludingTax"),rawData:!0},{property:"type",label:this.$tc("postfinancecheckout-order.lineItem.types.type"),rawData:!0},{property:"taxAmount",label:this.$tc("postfinancecheckout-order.lineItem.types.taxAmount"),rawData:!0},{property:"refundableQuantity",rawData:!0,visible:!1}]},refundColumns(){return[{property:"id",label:this.$tc("postfinancecheckout-order.refund.types.id"),rawData:!0,visible:!0,primary:!0},{property:"amount",label:this.$tc("postfinancecheckout-order.refund.types.amount"),rawData:!0},{property:"state",label:this.$tc("postfinancecheckout-order.refund.types.state"),rawData:!0},{property:"createdOn",label:this.$tc("postfinancecheckout-order.refund.types.createdOn"),rawData:!0}]}},watch:{$route(){this.resetDataAttributes(),this.createdComponent()}},created(){this.createdComponent()},methods:{createdComponent(){this.orderId=this.$route.params.id;let e=this.repositoryFactory.create("order"),t=new E(1,1);t.addAssociation("transactions"),t.getAssociation("transactions").addSorting(E.sort("createdAt","DESC")),e.get(this.orderId,w.api,t).then(e=>{this.order=e,this.isLoading=!1;var t=0,n=0;let a=e.transactions[0].customFields.postfinancecheckout_transaction_id;this.PostFinanceCheckoutTransactionService.getTransactionData(e.salesChannelId,a).then(e=>{this.currency=e.transactions[0].currency,e.transactions[0].authorized_amount=v.format.currency(e.transactions[0].authorizationAmount,this.currency),e.refunds.forEach(e=>{n=parseFloat(parseFloat(n)+parseFloat(e.amount)),e.amount=v.format.currency(e.amount,this.currency),e.reductions.forEach(e=>{void 0===this.refundLineItem[e.lineItemUniqueId]?this.refundLineItem[e.lineItemUniqueId]=e.quantityReduction:this.refundLineItem[e.lineItemUniqueId]+=e.quantityReduction})}),e.transactions[0].lineItems.forEach(e=>{e.amountIncludingTax=v.format.currency(e.amountIncludingTax,this.currency),e.taxAmount=v.format.currency(e.taxAmount,this.currency),t=parseFloat(parseFloat(t)+parseFloat(e.unitPriceIncludingTax*e.quantity)),e.refundableQuantity=parseInt(parseInt(e.quantity)-parseInt(this.refundLineItem[e.uniqueId]||0))}),this.lineItems=e.transactions[0].lineItems,this.transactionData=e,this.transaction=this.transactionData.transactions[0],this.refundAmount=Number(this.transactionData.transactions[0].amountIncludingTax),this.refundableAmount=parseFloat(parseFloat(t)-parseFloat(n))}).catch(e=>{try{this.createNotificationError({title:this.$tc("postfinancecheckout-order.paymentDetails.error.title"),message:e.message,autoClose:!1})}catch(t){this.createNotificationError({title:this.$tc("postfinancecheckout-order.paymentDetails.error.title"),message:e.message,autoClose:!1})}finally{this.isLoading=!1}})})},downloadPackingSlip(){window.open(this.PostFinanceCheckoutTransactionService.getPackingSlip(this.transaction.metaData.salesChannelId,this.transaction.id),"_blank")},downloadInvoice(){window.open(this.PostFinanceCheckoutTransactionService.getInvoiceDocument(this.transaction.metaData.salesChannelId,this.transaction.id),"_blank")},resetDataAttributes(){this.transactionData={transactions:[],refunds:[]},this.lineItems=[],this.refundLineItem=[],this.isLoading=!0},spawnModal(e,t,n){this.modalType=e,this.currentLineItem=t,this.refundableQuantity=n},closeModal(){this.modalType=""},lineItemRefund(e){this.isLoading=!0,this.PostFinanceCheckoutRefundService.createRefund(this.transactionData.transactions[0].metaData.salesChannelId,this.transactionData.transactions[0].id,0,e).then(()=>{this.createNotificationSuccess({title:this.$tc("postfinancecheckout-order.refundAction.successTitle"),message:this.$tc("postfinancecheckout-order.refundAction.successMessage")}),this.isLoading=!1,this.$emit("modal-close"),this.$nextTick(()=>{this.$router.replace(`${this.$route.path}?hash=${v.createId()}`)})}).catch(e=>{try{this.createNotificationError({title:e.response.data.errors[0].title,message:e.response.data.errors[0].detail,autoClose:!1})}catch(t){this.createNotificationError({title:e.title,message:e.message,autoClose:!1})}finally{this.isLoading=!1,this.$emit("modal-close"),this.$nextTick(()=>{this.$router.replace(`${this.$route.path}?hash=${v.createId()}`)})}})}}});var F=JSON.parse('{"postfinancecheckout-order":{"buttons":{"label":{"completion":"Abschluss","download-invoice":"Rechnung herunterladen","download-packing-slip":"Packzettel herunterladen","refund":"Eine neue R\xfcckerstattung erstellen","void":"Genehmigung annullieren","refund-whole-line-item":"Gesamte Werbebuchung erstatten","refund-line-item-by-quantity":"R\xfcckerstattung nach Menge"}},"captureAction":{"button":{"text":"Zahlung erfassen"},"currentAmount":"Betrag","isFinal":"Dies ist die endg\xfcltige Verbuchung","maxAmount":"Maximaler Betrag","successMessage":"Ihre Verbuchung war erfolgreich","successTitle":"Erfolg"},"general":{"title":"Bestellungen"},"header":"PostFinanceCheckout Payment","lineItem":{"cardTitle":"Einzelposten","types":{"amountIncludingTax":"Betrag","name":"Name","quantity":"Anzahl","taxAmount":"Steuern","type":"Typ","uniqueId":"Eindeutige ID"}},"modal":{"title":{"capture":"Erfassen","refund":"Neue Gutschrift","void":"Autorisierung aufheben"}},"paymentDetails":{"cardTitle":"Zahlung","error":{"title":"Fehler beim Abrufen von Zahlungsdetails von PostFinanceCheckout"}},"refund":{"cardTitle":"Gutschriften","refundAmount":{"label":"Gutschriftsbetrag"},"refundQuantity":{"label":"Refund Menge"},"types":{"amount":"Betrag","createdOn":"Erstellt am","id":"ID","state":"Staat"}},"refundAction":{"confirmButton":{"text":"Ausf\xfchren"},"refundAmount":{"label":"Betrag","placeholder":"Einen Betrag eingeben"},"successMessage":"Ihre R\xfcckerstattung war erfolgreich","successTitle":"Erfolg","maxAvailableItemsToRefund":"Maximal Verf\xfcgbare Artikel zum Erstatten"},"transactionHistory":{"cardTitle":"Einzelheiten","types":{"authorized_amount":"Autorisierter Betrag","currency":"W\xe4hrung","customer":"Kunde","payment_method":"Zahlungsweise","state":"Staat","transaction":"Transaktion"},"customerId":"Customer ID","customerName":"Customer Name","creditCardHolder":"Kreditkarteninhaber","paymentMethod":"Zahlungsart","paymentMethodBrand":"Marke der Zahlungsmethode","PseudoCreditCardNumber":"Pseudo-Kreditkartennummer","CardExpire":"Karte verf\xe4llt"},"voidAction":{"confirm":{"button":{"cancel":"Nein","confirm":"Autorisierung aufheben"},"message":"Wollen Sie diese Zahlung wirklich stornieren?"},"successMessage":"Die Zahlung wurde erfolgreich annulliert","successTitle":"Erfolg"}}}'),S=JSON.parse('{"postfinancecheckout-order":{"buttons":{"label":{"completion":"Complete","download-invoice":"Download Invoice","download-packing-slip":"Download Packing Slip","refund":"Create a new refund","void":"Cancel authorization","refund-whole-line-item":"Refund whole line item","refund-line-item-by-quantity":"Refund by quantity"}},"captureAction":{"button":{"text":"Capture payment"},"currentAmount":"Amount","isFinal":"This is final capture","maxAmount":"Maximum amount","successMessage":"Your capture was successful.","successTitle":"Success"},"general":{"title":"Orders"},"header":"PostFinanceCheckout Payment","lineItem":{"cardTitle":"Line Items","types":{"amountIncludingTax":"Amount","name":"Name","quantity":"Quantity","taxAmount":"Taxes","type":"Type","uniqueId":"Unique ID"}},"modal":{"title":{"capture":"Capture","refund":"New refund","void":"Cancel authorization"}},"paymentDetails":{"cardTitle":"Payment","error":{"title":"Error fetching payment details from PostFinanceCheckout"}},"refund":{"cardTitle":"Refunds","refundAmount":{"label":"Refund Amount"},"refundQuantity":{"label":"Refund Quantity"},"types":{"amount":"Amount","createdOn":"Created On","id":"ID","state":"State"}},"refundAction":{"confirmButton":{"text":"Execute"},"refundAmount":{"label":"Amount","placeholder":"Enter a amount"},"successMessage":"Your refund was successful.","successTitle":"Success","maxAvailableItemsToRefund":"Maximum available items to refund"},"transactionHistory":{"cardTitle":"Details","types":{"authorized_amount":"Authorized Amount","currency":"Currency","customer":"Customer","payment_method":"Payment Method","state":"State","transaction":"Transaction"},"customerId":"Customer ID","customerName":"Customer Name","creditCardHolder":"Credit Card Holder","paymentMethod":"Payment Method","paymentMethodBrand":"Payment Method Brand","PseudoCreditCardNumber":"Pseudo Credit Card Number","CardExpire":"Card Expire"},"voidAction":{"confirm":{"button":{"cancel":"No","confirm":"Cancel authorization"},"message":"Do you really want to cancel this payment?"},"successMessage":"The payment was successfully voided.","successTitle":"Success"}}}'),T=JSON.parse('{"postfinancecheckout-order":{"buttons":{"label":{"completion":"Termin\xe9e","download-invoice":"T\xe9l\xe9charger la facture","download-packing-slip":"T\xe9l\xe9charger le bordereau d\'exp\xe9dition","refund":"Cr\xe9er un nouveau remboursement","void":"Annulez l\'autorisation","refund-whole-line-item":"Remboursement de la ligne enti\xe8re","refund-line-item-by-quantity":"Remboursement par quantit\xe9"}},"captureAction":{"button":{"text":"Capture du paiement"},"currentAmount":"Montant","isFinal":"C\'est la capture finale","maxAmount":"Montant maximal","successMessage":"Votre capture a \xe9t\xe9 r\xe9ussie.","successTitle":"Succ\xe8s"},"general":{"title":"Commandes"},"header":"PostFinanceCheckout Paiement","lineItem":{"cardTitle":"Articles de ligne","types":{"amountIncludingTax":"Montant","name":"Nom","quantity":"Quantit\xe9","taxAmount":"Taxes","type":"Type","uniqueId":"ID unique"}},"modal":{"title":{"capture":"Capture","refund":"Nouveau remboursement","void":"Annulez l\'autorisation"}},"paymentDetails":{"cardTitle":"Paiement","error":{"title":"Erreur dans la r\xe9cup\xe9ration des d\xe9tails du paiement \xe0 partir de PostFinanceCheckout"}},"refund":{"cardTitle":"Remboursements","refundAmount":{"label":"Montant du remboursement"},"refundQuantity":{"label":"Quantit\xe9 \xe0 rembourser"},"types":{"amount":"Montant","createdOn":"Cr\xe9\xe9 le","id":"ID","state":"\xc9tat"}},"refundAction":{"confirmButton":{"text":"Ex\xe9cutez"},"refundAmount":{"label":"Montant","placeholder":"Entrez un montant"},"successMessage":"Votre remboursement a \xe9t\xe9 effectu\xe9 avec succ\xe8s.","successTitle":"Succ\xe8s","maxAvailableItemsToRefund":"Nombre maximum d\'articles disponibles pour le remboursement"},"transactionHistory":{"cardTitle":"D\xe9tails","types":{"authorized_amount":"Montant autoris\xe9","currency":"Monnaie","customer":"Client","payment_method":"Mode de paiement","state":"\xc9tat","transaction":"Transaction"},"customerId":"Customer ID","customerName":"Customer Name","creditCardHolder":"Titulaire de la carte de cr\xe9dit","paymentMethod":"Mode de paiement","paymentMethodBrand":"Marque du mode de paiement","PseudoCreditCardNumber":"Pseudo num\xe9ro de carte de cr\xe9dit","CardExpire":"La carte expire"},"voidAction":{"confirm":{"button":{"cancel":"Non","confirm":"Annulez l\'autorisation"},"message":"Voulez-vous vraiment annuler ce paiement?"},"successMessage":"Le paiement a \xe9t\xe9 annul\xe9 avec succ\xe8s.","successTitle":"Succ\xe8s"}}}'),P=JSON.parse('{"postfinancecheckout-order":{"buttons":{"label":{"completion":"Completato","download-invoice":"Scarica fattura","download-packing-slip":"Scarica distinta di imballaggio","refund":"Crea un nuovo rimborso","void":"Annulla autorizzazione","refund-whole-line-item":"Rimborso intera riga","refund-line-item-by-quantity":"Rimborso per quantit\xe0"}},"captureAction":{"button":{"text":"Cattura pagamento"},"currentAmount":"Importo","isFinal":"Questa \xe8 la cattura finale","maxAmount":"Importo massimo","successMessage":"La tua cattura ha avuto successo.","successTitle":"Successo"},"general":{"title":"Ordini"},"header":"Pagamento PostFinanceCheckout","lineItem":{"cardTitle":"Articoli di linea","types":{"amountIncludingTax":"Importo","name":"Nome","quantity":"Quantit\xe0","taxAmount":"Tasse","type":"Tipo","uniqueId":"ID unico"}},"modal":{"title":{"capture":"Cattura","refund":"Nuovo rimborso","void":"Annulla autorizzazione"}},"paymentDetails":{"cardTitle":"Pagamento","error":{"title":"Errore nel recupero dei dettagli del pagamento da PostFinanceCheckout"}},"refund":{"cardTitle":"Rimborsi","refundAmount":{"label":"Importo del rimborso"},"refundQuantity":{"label":"Quantit\xe0 di rimborso"},"types":{"amount":"Importo","createdOn":"Creato il","id":"ID","state":"Stato"}},"refundAction":{"confirmButton":{"text":"Esegui"},"refundAmount":{"label":"Importo","placeholder":"Inserisci un importo"},"successMessage":"Il tuo rimborso \xe8 andato a buon fine.","successTitle":"Successo","maxAvailableItemsToRefund":"Numero massimo di articoli disponibili da rimborsare"},"transactionHistory":{"cardTitle":"Dettagli","types":{"authorized_amount":"Importo autorizzato","currency":"Valuta","customer":"Cliente","payment_method":"Metodo di pagamento","state":"Stato","transaction":"Transazione"},"customerId":"Customer ID","customerName":"Customer Name","creditCardHolder":"Proprietario della carta di credito","paymentMethod":"Metodo di pagamento","paymentMethodBrand":"Metodo di pagamento Marca","PseudoCreditCardNumber":"Numero di carta di credito pseudo","CardExpire":"La carta scade"},"voidAction":{"confirm":{"button":{"cancel":"No","confirm":"Annulla autorizzazione"},"message":"Vuoi davvero annullare questo pagamento?"},"successMessage":"Il pagamento \xe8 stato annullato con successo.","successTitle":"Successo"}}}');let{Module:N}=Shopware;N.register("postfinancecheckout-order",{type:"plugin",name:"PostFinanceCheckout",title:"postfinancecheckout-order.general.title",description:"postfinancecheckout-order.general.descriptionTextModule",version:"1.0.1",targetVersion:"1.0.1",color:"#2b52ff",snippets:{"de-DE":F,"en-GB":S,"fr-FR":T,"it-IT":P},routeMiddleware(e,t){"sw.order.detail"===t.name&&t.children.push({component:"postfinancecheckout-order-detail",name:"postfinancecheckout.order.detail",isChildren:!0,path:"/sw/order/postfinancecheckout/detail/:id"}),e(t)}}),n(360);let D="PostFinanceCheckoutPayment.config";var A={CONFIG_DOMAIN:D,CONFIG_APPLICATION_KEY:D+".applicationKey",CONFIG_EMAIL_ENABLED:D+".emailEnabled",CONFIG_INTEGRATION:D+".integration",CONFIG_LINE_ITEM_CONSISTENCY_ENABLED:D+".lineItemConsistencyEnabled",CONFIG_SPACE_ID:D+".spaceId",CONFIG_SPACE_VIEW_ID:D+".spaceViewId",CONFIG_STOREFRONT_INVOICE_DOWNLOAD_ENABLED:D+".storefrontInvoiceDownloadEnabled",CONFIG_USER_ID:D+".userId",CONFIG_STOREFRONT_WEBHOOKS_UPDATE_ENABLED:D+".storefrontWebhooksUpdateEnabled",CONFIG_STOREFRONT_PAYMENTS_UPDATE_ENABLED:D+".storefrontPaymentsUpdateEnabled"};let{Component:O,Mixin:x}=Shopware;O.register("postfinancecheckout-settings",{template:'{% block postfinancecheckout_settings %}\n\n\n {% block postfinancecheckout_settings_header %}\n \n
\n \n {% endblock %}\n\n \n {% endblock %}\n\n {% block postfinancecheckout_settings_content_card_loading %}\n \n {% endblock %}\n \n {% endblock %}\n\n \n {% endblock %}\n\n{% endblock %}',inject:["acl","PostFinanceCheckoutConfigurationService"],mixins:[x.getByName("notification"),x.getByName("sw-inline-snippet")],data(){return{config:{},isLoading:!1,isTesting:!1,isSaveSuccessful:!1,applicationKeyFilled:!1,applicationKeyErrorState:!1,spaceIdFilled:!1,spaceIdErrorState:!1,userIdFilled:!1,userIdErrorState:!1,isSetDefaultPaymentSuccessful:!1,isSettingDefaultPaymentMethods:!1,configIntegrationDefaultValue:"iframe",configEmailEnabledDefaultValue:!0,configLineItemConsistencyEnabledDefaultValue:!0,configStorefrontInvoiceDownloadEnabledEnabledDefaultValue:!0,configStorefrontWebhooksUpdateEnabledDefaultValue:!0,configStorefrontPaymentsUpdateEnabledDefaultValue:!0,...A}},props:{isLoading:{type:Boolean,required:!0}},metaInfo(){return{title:this.$createTitle()}},created(){this.$on("check-api-connection-event",this.onCheckApiConnection)},beforeDestroy(){this.$off("check-api-connection-event",this.onCheckApiConnection)},watch:{config:{handler(e){let t=this.$refs.configComponent.allConfigs.null;null===this.$refs.configComponent.selectedSalesChannelId?(this.applicationKeyFilled=!!this.config[this.CONFIG_APPLICATION_KEY],this.spaceIdFilled=!!this.config[this.CONFIG_SPACE_ID],this.userIdFilled=!!this.config[this.CONFIG_USER_ID],this.CONFIG_INTEGRATION in this.config||(this.config[this.CONFIG_INTEGRATION]=this.configIntegrationDefaultValue),this.CONFIG_EMAIL_ENABLED in this.config||(this.config[this.CONFIG_EMAIL_ENABLED]=this.configEmailEnabledDefaultValue),this.CONFIG_LINE_ITEM_CONSISTENCY_ENABLED in this.config||(this.config[this.CONFIG_LINE_ITEM_CONSISTENCY_ENABLED]=this.configLineItemConsistencyEnabledDefaultValue),this.CONFIG_STOREFRONT_INVOICE_DOWNLOAD_ENABLED in this.config||(this.config[this.CONFIG_STOREFRONT_INVOICE_DOWNLOAD_ENABLED]=this.configStorefrontInvoiceDownloadEnabledEnabledDefaultValue),this.CONFIG_STOREFRONT_WEBHOOKS_UPDATE_ENABLED in this.config||(this.config[this.CONFIG_STOREFRONT_WEBHOOKS_UPDATE_ENABLED]=this.configStorefrontWebhooksUpdateEnabledDefaultValue),this.CONFIG_STOREFRONT_PAYMENTS_UPDATE_ENABLED in this.config||(this.config[this.CONFIG_STOREFRONT_PAYMENTS_UPDATE_ENABLED]=this.configStorefrontPaymentsUpdateEnabledDefaultValue)):(this.applicationKeyFilled=!!this.config[this.CONFIG_APPLICATION_KEY]||!!t[this.CONFIG_APPLICATION_KEY],this.spaceIdFilled=!!this.config[this.CONFIG_SPACE_ID]||!!t[this.CONFIG_SPACE_ID],this.userIdFilled=!!this.config[this.CONFIG_USER_ID]||!!t[this.CONFIG_USER_ID],this.CONFIG_INTEGRATION in this.config&&this.CONFIG_INTEGRATION in t||(this.config[this.CONFIG_INTEGRATION]=this.configIntegrationDefaultValue),this.CONFIG_EMAIL_ENABLED in this.config&&this.CONFIG_EMAIL_ENABLED in t||(this.config[this.CONFIG_EMAIL_ENABLED]=this.configEmailEnabledDefaultValue),this.CONFIG_LINE_ITEM_CONSISTENCY_ENABLED in this.config&&this.CONFIG_LINE_ITEM_CONSISTENCY_ENABLED in t||(this.config[this.CONFIG_LINE_ITEM_CONSISTENCY_ENABLED]=this.configLineItemConsistencyEnabledDefaultValue),this.CONFIG_STOREFRONT_INVOICE_DOWNLOAD_ENABLED in this.config&&this.CONFIG_STOREFRONT_INVOICE_DOWNLOAD_ENABLED in t||(this.config[this.CONFIG_STOREFRONT_INVOICE_DOWNLOAD_ENABLED]=this.configStorefrontInvoiceDownloadEnabledEnabledDefaultValue),this.CONFIG_STOREFRONT_WEBHOOKS_UPDATE_ENABLED in this.config&&this.CONFIG_STOREFRONT_WEBHOOKS_UPDATE_ENABLED in t||(this.config[this.CONFIG_STOREFRONT_WEBHOOKS_UPDATE_ENABLED]=this.configStorefrontWebhooksUpdateEnabledDefaultValue),this.CONFIG_STOREFRONT_PAYMENTS_UPDATE_ENABLED in this.config&&this.CONFIG_STOREFRONT_PAYMENTS_UPDATE_ENABLED in t||(this.config[this.CONFIG_STOREFRONT_PAYMENTS_UPDATE_ENABLED]=this.configStorefrontPaymentsUpdateEnabledDefaultValue)),this.$emit("salesChannelChanged"),this.$emit("update:value",e)},deep:!0}},methods:{checkTextFieldInheritance(e){return"string"!=typeof e||e.length<=0},checkNumberFieldInheritance(e){return"number"!=typeof e||e.length<=0},checkBoolFieldInheritance(e){return"boolean"!=typeof e},getInheritValue(e){return null==this.selectedSalesChannelId?this.actualConfigData[e]:this.allConfigs.null[e]},onSave(){if(!(this.spaceIdFilled&&this.userIdFilled&&this.applicationKeyFilled)){this.setErrorStates();return}this.save()},save(){this.isLoading=!0,this.$refs.configComponent.save().then(e=>{e&&(this.config=e),this.registerWebHooks(),this.synchronizePaymentMethodConfiguration(),this.installOrderDeliveryStates()}).catch(e=>{console.error("Error:",e),this.isLoading=!1})},registerWebHooks(){if(!1===this.config[this.CONFIG_STOREFRONT_WEBHOOKS_UPDATE_ENABLED])return!1;this.PostFinanceCheckoutConfigurationService.registerWebHooks(this.$refs.configComponent.selectedSalesChannelId).then(()=>{this.createNotificationSuccess({title:this.$tc("postfinancecheckout-settings.settingForm.titleSuccess"),message:this.$tc("postfinancecheckout-settings.settingForm.messageWebHookUpdated")})}).catch(e=>{this.createNotificationError({title:this.$tc("postfinancecheckout-settings.settingForm.titleError"),message:this.$tc("postfinancecheckout-settings.settingForm.messageWebHookError")}),this.isLoading=!1,console.error("Error:",e)})},synchronizePaymentMethodConfiguration(){if(!1===this.config[this.CONFIG_STOREFRONT_PAYMENTS_UPDATE_ENABLED])return!1;this.PostFinanceCheckoutConfigurationService.synchronizePaymentMethodConfiguration(this.$refs.configComponent.selectedSalesChannelId).then(()=>{this.createNotificationSuccess({title:this.$tc("postfinancecheckout-settings.settingForm.titleSuccess"),message:this.$tc("postfinancecheckout-settings.settingForm.messagePaymentMethodConfigurationUpdated")}),this.isLoading=!1}).catch(e=>{this.createNotificationError({title:this.$tc("postfinancecheckout-settings.settingForm.titleError"),message:this.$tc("postfinancecheckout-settings.settingForm.messagePaymentMethodConfigurationError")}),this.isLoading=!1,console.error("Error:",e)})},installOrderDeliveryStates(){this.PostFinanceCheckoutConfigurationService.installOrderDeliveryStates().then(()=>{this.createNotificationSuccess({title:this.$tc("postfinancecheckout-settings.settingForm.titleSuccess"),message:this.$tc("postfinancecheckout-settings.settingForm.messageOrderDeliveryStateUpdated")}),this.isLoading=!1}).catch(()=>{this.createNotificationError({title:this.$tc("postfinancecheckout-settings.settingForm.titleError"),message:this.$tc("postfinancecheckout-settings.settingForm.messageOrderDeliveryStateError")}),this.isLoading=!1})},onSetPaymentMethodDefault(){this.isSettingDefaultPaymentMethods=!0,this.PostFinanceCheckoutConfigurationService.setPostFinanceCheckoutAsSalesChannelPaymentDefault(this.$refs.configComponent.selectedSalesChannelId).then(()=>{this.isSettingDefaultPaymentMethods=!1,this.isSetDefaultPaymentSuccessful=!0,this.createNotificationSuccess({title:this.$tc("postfinancecheckout-settings.settingForm.titleSuccess"),message:this.$tc("postfinancecheckout-settings.salesChannelCard.messageDefaultPaymentUpdated")})})},setErrorStates(){let e={code:1,detail:this.$tc("postfinancecheckout-settings.messageNotBlank")};this.spaceIdFilled||(this.spaceIdErrorState=e),this.userIdFilled||(this.userIdErrorState=e),this.applicationKeyFilled||(this.applicationKeyErrorState=e)},onCheckApiConnection(e){let{spaceId:t,userId:n,applicationKey:a}=e;this.isTesting=!0,this.PostFinanceCheckoutConfigurationService.checkApiConnection(t,n,a).then(e=>{200===e.result?this.createNotificationSuccess({title:this.$tc("postfinancecheckout-settings.settingForm.credentials.alert.title"),message:this.$tc("postfinancecheckout-settings.settingForm.credentials.alert.successMessage")}):this.createNotificationError({title:this.$tc("postfinancecheckout-settings.settingForm.credentials.alert.title"),message:this.$tc("postfinancecheckout-settings.settingForm.credentials.alert.errorMessage")}),this.isTesting=!1}).catch(()=>{this.createNotificationError({title:this.$tc("postfinancecheckout-settings.settingForm.credentials.alert.title"),message:this.$tc("postfinancecheckout-settings.settingForm.credentials.alert.errorMessage")}),this.isTesting=!1})}}});let{Component:$,Mixin:L}=Shopware;$.register("sw-postfinancecheckout-credentials",{template:'{% block postfinancecheckout_settings_content_card_channel_config_credentials %}\n \n\n {% block postfinancecheckout_settings_content_card_channel_config_credentials_card_container %}\n \n\n {% block postfinancecheckout_settings_content_card_channel_config_credentials_card_container_settings %}\n
\n \n\n\n',name:"PostFinanceCheckoutAdvancedOptions",inject:["acl"],mixins:[U.getByName("notification")],props:{actualConfigData:{type:Object,required:!0},allConfigs:{type:Object,required:!0},selectedSalesChannelId:{required:!0},isLoading:{type:Boolean,required:!0}},data(){return{...A}},methods:{checkTextFieldInheritance(e){return"string"!=typeof e||e.length<=0},checkNumberFieldInheritance(e){return"number"!=typeof e||e.length<=0},checkBoolFieldInheritance(e){return"boolean"!=typeof e}}});var q=JSON.parse('{"sw-privileges":{"permissions":{"parents":{"postfinancecheckout":"PostFinanceCheckout plugin"},"postfinancecheckout":{"label":"PostFinanceCheckout berechtigungen"}}},"postfinancecheckout-settings":{"general":{"descriptionTextModule":"PostFinanceCheckout-Einstellungen","mainMenuItemGeneral":"PostFinanceCheckout"},"header":"PostFinanceCheckout","messageNotBlank":"Dieser Wert sollte nicht leer sein.","salesChannelCard":{"button":{"description":"Klicken Sie auf diese Schaltfl\xe4che, um PostFinanceCheckout als Standard-Zahlungsabwickler im ausgew\xe4hlten Vertriebskanal festzulegen","label":"PostFinanceCheckout als Standard-Zahlungsabwickler festlegen"},"messageDefaultPaymentError":"PostFinanceCheckout als Standard-Zahlungsabwickler konnte nicht festgelegt werden..","messageDefaultPaymentUpdated":"PostFinanceCheckout als Standard-Zahlungsabwickler wurde festgelegt."},"settingForm":{"credentials":{"applicationKey":{"label":"Application Key","tooltipText":"Der Anwendungsschl\xfcssel wird verwendet, um dieses Plugin mit der API PostFinanceCheckout zu authentifizieren."},"cardTitle":"Anmeldedaten","spaceId":{"label":"Space ID","tooltipText":"Die Space ID wird verwendet, um dieses Plugin mit der API PostFinanceCheckout zu authentifizieren."},"userId":{"label":"User ID","tooltipText":"Die Benutzer-ID wird verwendet, um dieses Plugin mit der PostFinanceCheckout-API zu authentifizieren."},"button":{"description":"Klicken Sie auf diese Schaltfl\xe4che, um die PostFinanceCheckout API zu testen","label":"API Verbindung testen"},"alert":{"title":"API-Test","successMessage":"Die Verbindung wurde erfolgreich getestet.","errorMessage":"Die Verbindung ist fehlgeschlagen. Versuchen Sie es erneut."}},"messageSaveSuccess":"PostFinanceCheckout-Einstellungen wurden gespeichert.","messageOrderDeliveryStateError":"PostFinanceCheckout OrderDeliveryState konnte nicht gespeichert werden.","messageOrderDeliveryStateUpdated":"PostFinanceCheckout OrderDeliveryState wurde aktualisiert.","messagePaymentMethodConfigurationError":"PostFinanceCheckout PaymentMethodConfiguration konnte nicht gespeichert werden. Bitte \xfcberpr\xfcfen Sie Ihre Anmeldedaten.","messagePaymentMethodConfigurationUpdated":"PostFinanceCheckout PaymentMethodConfiguration wurde registriert.","messageWebHookError":"PostFinanceCheckout WebHook konnte nicht gespeichert werden. Bitte \xfcberpr\xfcfen Sie Ihre Zugangsdaten.","messageWebHookUpdated":"PostFinanceCheckout WebHook wurde aktualisiert.","options":{"cardTitle":"Optionen","emailEnabled":{"label":"Auftragsbest\xe4tigung per E-Mail senden","tooltipText":"Wenn diese Einstellung aktiviert ist, erhalten Ihre Kunden eine E-Mail von Ihrem Gesch\xe4ft, wenn die Zahlung ihrer Bestellung autorisiert ist."},"integration":{"label":"Integration","options":{"iframe":"Iframe","payment_page":"Payment Page"},"tooltipText":"Integration"},"lineItemConsistencyEnabled":{"label":"Konsistenz der Einzelposten","tooltipText":"Wenn diese Option aktiviert ist, stimmen die Summen der Einzelposten in PostFinanceCheckoutPayment immer mit der Shopware-Bestellsumme \xfcberein."},"spaceViewId":{"label":"Space View ID","tooltipText":"Space View ID"}},"save":"Speichern","storefrontOptions":{"cardTitle":"Storefront-Optionen","invoiceDownloadEnabled":{"label":"Rechnung Download","tooltipText":"Wenn diese Einstellung aktiviert ist, k\xf6nnen Ihre Kunden Auftragsrechnungen von PostFinanceCheckout herunterladen."}},"advancedOptions":{"cardTitle":"Erweiterte-Optionen","webhooksUpdateEnabled":{"label":"Webhooks-Update","tooltipText":"Wenn diese Einstellung aktiviert ist, wird das Webhook-Update ausgel\xf6st, wenn Sie die Einstellungen speichern"},"paymentsUpdateEnabled":{"label":"Payments-Update","tooltipText":"Wenn diese Einstellung aktiviert ist, wird die Aktualisierung der Zahlungsmethoden ausgel\xf6st, wenn Sie die Einstellungen speichern"}},"titleError":"Fehler","titleSuccess":"Erfolg"}}}'),H=JSON.parse('{"sw-privileges":{"permissions":{"parents":{"postfinancecheckout":"PostFinanceCheckout plugin"},"postfinancecheckout":{"label":"PostFinanceCheckout permissions"}}},"postfinancecheckout-settings":{"general":{"descriptionTextModule":"PostFinanceCheckout settings","mainMenuItemGeneral":"PostFinanceCheckout"},"header":"PostFinanceCheckout","messageNotBlank":"This value should not be blank.","salesChannelCard":{"button":{"description":"Click this button to set PostFinanceCheckout as default payment handler in the selected SalesChannel","label":"Set PostFinanceCheckout as default payment handler"},"messageDefaultPaymentError":"PostFinanceCheckout as default payment could not be set.","messageDefaultPaymentUpdated":"PostFinanceCheckout as default payment has been set."},"settingForm":{"credentials":{"applicationKey":{"label":"Application Key","tooltipText":"The Application Key is used to authenticate this plugin with the PostFinanceCheckout API."},"cardTitle":"Credentials","spaceId":{"label":"Space ID","tooltipText":"The space ID is used to authenticate this plugin with the PostFinanceCheckout API."},"userId":{"label":"User ID","tooltipText":"The user ID is used to authenticate this plugin with the PostFinanceCheckout API."},"button":{"description":"Click this button to test the PostFinanceCheckout API","label":"API connection test"},"alert":{"title":"API Test","successMessage":"The connection was successfully tested.","errorMessage":"The connection was failed. Try it again."}},"messageSaveSuccess":"PostFinanceCheckout settings have been saved.","messageOrderDeliveryStateError":"PostFinanceCheckout OrderDeliveryState could not be saved.","messageOrderDeliveryStateUpdated":"PostFinanceCheckout OrderDeliveryState has been updated.","messagePaymentMethodConfigurationError":"PostFinanceCheckout PaymentMethodConfiguration could not be saved. Please check your credentials.","messagePaymentMethodConfigurationUpdated":"PostFinanceCheckout PaymentMethodConfiguration has been registered.","messageWebHookError":"PostFinanceCheckout WebHook could not be saved. Please check your credentials.","messageWebHookUpdated":"PostFinanceCheckout WebHook has been updated.","options":{"cardTitle":"Options","emailEnabled":{"label":"Send order confirmation email","tooltipText":"If this setting is enabled your customers will receive an email from your store when their order payment is authorised"},"integration":{"label":"Integration","options":{"iframe":"Iframe","payment_page":"Payment Page"},"tooltipText":"Integration"},"lineItemConsistencyEnabled":{"label":"Line item consistency","tooltipText":"If this option is enabled line item totals in PostFinanceCheckoutPayment will always match Shopware order total"},"spaceViewId":{"label":"Space View ID","tooltipText":"Space View ID"}},"save":"Save","storefrontOptions":{"cardTitle":"Storefront Options","invoiceDownloadEnabled":{"label":"Invoice Download","tooltipText":"If this setting is enabled your customers will be able to download order invoices from PostFinanceCheckout"}},"advancedOptions":{"cardTitle":"Advanced Options","webhooksUpdateEnabled":{"label":"Webhooks Update","tooltipText":"If this setting is enabled webhook update will be triggered when you save settings"},"paymentsUpdateEnabled":{"label":"Payments Update","tooltipText":"If this setting is enabled payment methods update will be triggered when you save settings"}},"titleError":"Error","titleSuccess":"Success"}}}'),W=JSON.parse('{"sw-privileges":{"permissions":{"parents":{"postfinancecheckout":"PostFinanceCheckout brancher"},"postfinancecheckout":{"label":"PostFinanceCheckout autorisations"}}},"postfinancecheckout-settings":{"general":{"descriptionTextModule":"Param\xe8tres de PostFinanceCheckout","mainMenuItemGeneral":"PostFinanceCheckout"},"header":"PostFinanceCheckout","messageNotBlank":"Cette valeur ne doit pas \xeatre vide.","salesChannelCard":{"button":{"description":"Cliquez sur ce bouton pour d\xe9finir PostFinanceCheckout comme gestionnaire de paiement par d\xe9faut dans le canal de vente s\xe9lectionn\xe9.","label":"D\xe9finir PostFinanceCheckout comme gestionnaire de paiement par d\xe9faut"},"messageDefaultPaymentError":"PostFinanceCheckout comme paiement par d\xe9faut n\'a pas pu \xeatre d\xe9fini.","messageDefaultPaymentUpdated":"PostFinanceCheckout comme paiement par d\xe9faut a \xe9t\xe9 d\xe9fini."},"settingForm":{"credentials":{"applicationKey":{"label":"Application Key","tooltipText":"La cl\xe9 d\'application est utilis\xe9e pour authentifier ce plugin avec l\'API."},"cardTitle":"R\xe9f\xe9rences","spaceId":{"label":"Space ID","tooltipText":"L\'ID de l\'espace est utilis\xe9 pour authentifier ce plugin avec l\'API PostFinanceCheckout.."},"userId":{"label":"User ID","tooltipText":"L\'ID utilisateur est utilis\xe9 pour authentifier ce plugin avec l\'API PostFinanceCheckout."},"button":{"description":"Cliquez sur ce bouton pour tester l\'API PostFinanceCheckout.","label":"Test de connexion \xe0 l\'API"},"alert":{"title":"Test API","successMessage":"La connexion a \xe9t\xe9 test\xe9e avec succ\xe8s.","errorMessage":"La connexion a \xe9chou\xe9. R\xe9essayez."}},"messageSaveSuccess":"Les param\xe8tres de PostFinanceCheckout ont \xe9t\xe9 enregistr\xe9s.","messageOrderDeliveryStateError":"Les param\xe8tres de PostFinanceCheckout OrderDeliveryState n\'ont pas pu \xeatre enregistr\xe9s.","messageOrderDeliveryStateUpdated":"PostFinanceCheckout OrderDeliveryState a \xe9t\xe9 mis \xe0 jour.","messagePaymentMethodConfigurationError":"PostFinanceCheckout PaymentMethodConfiguration n\'a pas pu \xeatre enregistr\xe9. Veuillez v\xe9rifier vos informations d\'identification.","messagePaymentMethodConfigurationUpdated":"PostFinanceCheckout PaymentMethodConfiguration a \xe9t\xe9 enregistr\xe9.","messageWebHookError":"PostFinanceCheckout WebHook n\'a pas pu \xeatre enregistr\xe9. Veuillez v\xe9rifier vos informations d\'identification.","messageWebHookUpdated":"PostFinanceCheckout WebHook a \xe9t\xe9 mis \xe0 jour.","options":{"cardTitle":"Options","emailEnabled":{"label":"Envoyer un e-mail de confirmation de commande","tooltipText":"If this setting is enabled your customers will receive an email from your store when their order payment is authorised"},"integration":{"label":"Integration","options":{"iframe":"Iframe","payment_page":"Page de paiement"},"tooltipText":"Integration"},"lineItemConsistencyEnabled":{"label":"Coh\xe9rence des postes de ligne","tooltipText":"Si cette option est activ\xe9e, les totaux des articles dans PostFinanceCheckoutPayment correspondront toujours au total de la commande Shopware."},"spaceViewId":{"label":"Space View ID","tooltipText":"Space View ID"}},"save":"Enregistrer","storefrontOptions":{"cardTitle":"Storefront Options","invoiceDownloadEnabled":{"label":"T\xe9l\xe9chargement de facture","tooltipText":"Si ce param\xe8tre est activ\xe9, vos clients pourront t\xe9l\xe9charger les factures de commande depuis PostFinanceCheckout"}},"advancedOptions":{"cardTitle":"Options avanc\xe9es","webhooksUpdateEnabled":{"label":"Mise \xe0 jour des webhooks","tooltipText":"Si ce param\xe8tre est activ\xe9, la mise \xe0 jour des webhooks sera d\xe9clench\xe9e lorsque vous enregistrerez les param\xe8tres."},"paymentsUpdateEnabled":{"label":"Mise \xe0 jour des paiements","tooltipText":"Si ce param\xe8tre est activ\xe9, la mise \xe0 jour des m\xe9thodes de paiement sera d\xe9clench\xe9e lorsque vous enregistrez les param\xe8tres."}},"titleError":"Erreur","titleSuccess":"Succ\xe8s"}}}'),K=JSON.parse('{"sw-privileges":{"permissions":{"parents":{"postfinancecheckout":"PostFinanceCheckout brancher"},"postfinancecheckout":{"label":"PostFinanceCheckout autorisations"}}},"postfinancecheckout-settings":{"general":{"descriptionTextModule":"Impostazioni PostFinanceCheckout","mainMenuItemGeneral":"PostFinanceCheckout"},"header":"PostFinanceCheckout","messageNotBlank":"Questo valore non dovrebbe essere vuoto.","salesChannelCard":{"button":{"description":"Fai clic su questo pulsante per impostare PostFinanceCheckout come gestore di pagamento predefinito nel SalesChannel selezionato","label":"Imposta PostFinanceCheckout come gestore di pagamento predefinito"},"messageDefaultPaymentError":"Non \xe8 stato possibile impostare PostFinanceCheckout come pagamento predefinito.","messageDefaultPaymentUpdated":"PostFinanceCheckout come pagamento predefinito \xe8 stato impostato."},"settingForm":{"credentials":{"applicationKey":{"label":"Chiave di applicazione","tooltipText":"La chiave dell\'applicazione \xe8 usata per autenticare questo plugin con l\'API PostFinanceCheckout."},"cardTitle":"Credenziali","spaceId":{"label":"ID spazio","tooltipText":"L\'ID dello spazio \xe8 usato per autenticare questo plugin con l\'API PostFinanceCheckout."},"userId":{"label":"ID utente","tooltipText":"L\'ID utente \xe8 usato per autenticare questo plugin con l\'API PostFinanceCheckout."},"button":{"description":"Fare clic su questo pulsante per testare l\'API PostFinanceCheckout.","label":"Test di connessione API"},"alert":{"title":"Test API","successMessage":"La connessione \xe8 stata testata con successo.","errorMessage":"La connessione \xe8 fallita. Riprovare."}},"messageSaveSuccess":"Le impostazioni di PostFinanceCheckout sono state salvate.","messageOrderDeliveryStateError":"PostFinanceCheckout OrderDeliveryState non pu\xf2 essere salvato.","messageOrderDeliveryStateUpdated":"PostFinanceCheckout OrderDeliveryState \xe8 stato aggiornato.","messagePaymentMethodConfigurationError":"PostFinanceCheckout PaymentMethodConfiguration non pu\xf2 essere salvato. Per favore controlla le tue credenziali.","messagePaymentMethodConfigurationUpdated":"PostFinanceCheckout PaymentMethodConfiguration \xe8 stato registrato.","messageWebHookError":"PostFinanceCheckout WebHook non pu\xf2 essere salvato. Per favore controlla le tue credenziali.","messageWebHookUpdated":"PostFinanceCheckout WebHook \xe8 stato aggiornato.","options":{"cardTitle":"Opzioni","emailEnabled":{"label":"Invia email di conferma dell\'ordine","tooltipText":"Se questa impostazione \xe8 abilitata i tuoi clienti riceveranno un\'email dal tuo negozio quando il pagamento del loro ordine sar\xe0 autorizzato"},"integration":{"label":"Integrazione","options":{"iframe":"Iframe","payment_page":"Pagina di pagamento"},"tooltipText":"Integrazione"},"lineItemConsistencyEnabled":{"label":"Coerenza dell\'elemento linea","tooltipText":"Se questa opzione \xe8 abilitata i totali degli articoli in PostFinanceCheckoutPayment corrisponderanno sempre al totale dell\'ordine Shopware"},"spaceViewId":{"label":"ID della vista spazio","tooltipText":"ID della vista spaziale"}},"save":"Salva","storefrontOptions":{"cardTitle":"Opzioni vetrina","invoiceDownloadEnabled":{"label":"Scaricamento fattura","tooltipText":"Se questa impostazione \xe8 abilitata i tuoi clienti potranno scaricare le fatture degli ordini da PostFinanceCheckout"}},"advancedOptions":{"cardTitle":"Opzioni avanzate","webhooksUpdateEnabled":{"label":"Aggiornamento webhooks","tooltipText":"Se questa impostazione \xe8 abilitata l\'aggiornamento dei webhook sar\xe0 attivato quando si salvano le impostazioni"},"paymentsUpdateEnabled":{"label":"Aggiornamento pagamenti","tooltipText":"Se questa impostazione \xe8 abilitata l\'aggiornamento dei metodi di pagamento verr\xe0 attivato quando si salvano le impostazioni"}},"titleError":"Errore","titleSuccess":"Successo"}}}');let{Module:Y}=Shopware;Y.register("postfinancecheckout-settings",{type:"plugin",name:"PostFinanceCheckout",title:"postfinancecheckout-settings.general.descriptionTextModule",description:"postfinancecheckout-settings.general.descriptionTextModule",color:"#28d8ff",icon:"default-action-settings",version:"1.0.1",targetVersion:"1.0.1",snippets:{"de-DE":q,"en-GB":H,"fr-FR":W,"it-IT":K},routes:{index:{component:"postfinancecheckout-settings",path:"index",meta:{parentPath:"sw.settings.index",privilege:"postfinancecheckout.viewer"},props:{default:e=>({hash:e.params.hash})}}},settingsItem:{group:"plugins",to:"postfinancecheckout.settings.index",iconComponent:"sw-postfinancecheckout-settings-icon",backgroundEnabled:!0,privilege:"postfinancecheckout.viewer"}});let j=Shopware.Classes.ApiService;var Q=class extends j{constructor(e,t,n="postfinancecheckout"){super(e,t,n)}registerWebHooks(e=null){let t=this.getBasicHeaders(),n=`${Shopware.Context.api.apiPath}/_action/${this.getApiBasePath()}/configuration/register-web-hooks`;return this.httpClient.post(n,{salesChannelId:e},{headers:t}).then(e=>j.handleResponse(e))}checkApiConnection(e=null,t=null,n=null){let a=this.getBasicHeaders(),i=`${Shopware.Context.api.apiPath}/_action/${this.getApiBasePath()}/configuration/check-api-connection`;return this.httpClient.post(i,{spaceId:e,userId:t,applicationId:n},{headers:a}).then(e=>j.handleResponse(e))}setPostFinanceCheckoutAsSalesChannelPaymentDefault(e=null){let t=this.getBasicHeaders(),n=`${Shopware.Context.api.apiPath}/_action/${this.getApiBasePath()}/configuration/set-postfinancecheckout-as-sales-channel-payment-default`;return this.httpClient.post(n,{salesChannelId:e},{headers:t}).then(e=>j.handleResponse(e))}synchronizePaymentMethodConfiguration(e=null){let t=this.getBasicHeaders(),n=`${Shopware.Context.api.apiPath}/_action/${this.getApiBasePath()}/configuration/synchronize-payment-method-configuration`;return this.httpClient.post(n,{salesChannelId:e},{headers:t}).then(e=>j.handleResponse(e))}installOrderDeliveryStates(){let e=this.getBasicHeaders(),t=`${Shopware.Context.api.apiPath}/_action/${this.getApiBasePath()}/configuration/install-order-delivery-states`;return this.httpClient.post(t,{},{headers:e}).then(e=>j.handleResponse(e))}};let Z=Shopware.Classes.ApiService;var J=class extends Z{constructor(e,t,n="postfinancecheckout"){super(e,t,n)}createRefund(e,t,n,a){let i=this.getBasicHeaders(),o=`${Shopware.Context.api.apiPath}/_action/${this.getApiBasePath()}/refund/create-refund/`;return this.httpClient.post(o,{salesChannelId:e,transactionId:t,quantity:n,lineItemId:a},{headers:i}).then(e=>Z.handleResponse(e))}createRefundByAmount(e,t,n){let a=this.getBasicHeaders(),i=`${Shopware.Context.api.apiPath}/_action/${this.getApiBasePath()}/refund/create-refund-by-amount/`;return this.httpClient.post(i,{salesChannelId:e,transactionId:t,refundableAmount:n},{headers:a}).then(e=>Z.handleResponse(e))}};let X=Shopware.Classes.ApiService;var ee=class extends X{constructor(e,t,n="postfinancecheckout"){super(e,t,n)}getTransactionData(e,t){let n=this.getBasicHeaders(),a=`${Shopware.Context.api.apiPath}/_action/${this.getApiBasePath()}/transaction/get-transaction-data/`;return this.httpClient.post(a,{salesChannelId:e,transactionId:t},{headers:n}).then(e=>X.handleResponse(e))}getInvoiceDocument(e,t){return`${Shopware.Context.api.apiPath}/_action/${this.getApiBasePath()}/transaction/get-invoice-document/${e}/${t}`}getPackingSlip(e,t){return`${Shopware.Context.api.apiPath}/_action/${this.getApiBasePath()}/transaction/get-packing-slip/${e}/${t}`}};let et=Shopware.Classes.ApiService;var en=class extends et{constructor(e,t,n="postfinancecheckout"){super(e,t,n)}createTransactionCompletion(e,t){let n=this.getBasicHeaders(),a=`${Shopware.Context.api.apiPath}/_action/${this.getApiBasePath()}/transaction-completion/create-transaction-completion/`;return this.httpClient.post(a,{salesChannelId:e,transactionId:t},{headers:n}).then(e=>et.handleResponse(e))}};let ea=Shopware.Classes.ApiService;var ei=class extends ea{constructor(e,t,n="postfinancecheckout"){super(e,t,n)}createTransactionVoid(e,t){let n=this.getBasicHeaders(),a=`${Shopware.Context.api.apiPath}/_action/${this.getApiBasePath()}/transaction-void/create-transaction-void/`;return this.httpClient.post(a,{salesChannelId:e,transactionId:t},{headers:n}).then(e=>ea.handleResponse(e))}};let{Application:eo}=Shopware;eo.addServiceProvider("PostFinanceCheckoutConfigurationService",e=>new Q(eo.getContainer("init").httpClient,e.loginService)),eo.addServiceProvider("PostFinanceCheckoutRefundService",e=>new J(eo.getContainer("init").httpClient,e.loginService)),eo.addServiceProvider("PostFinanceCheckoutTransactionService",e=>new ee(eo.getContainer("init").httpClient,e.loginService)),eo.addServiceProvider("PostFinanceCheckoutTransactionCompletionService",e=>new en(eo.getContainer("init").httpClient,e.loginService)),eo.addServiceProvider("PostFinanceCheckoutTransactionVoidService",e=>new ei(eo.getContainer("init").httpClient,e.loginService))}()})();
\ No newline at end of file
+!function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=(window.__sw__.assetPath + '/bundles/postfinancecheckoutpayment/'),n(n.s="7jUT")}({"7jUT":function(t,e,n){"use strict";n.r(e);n("H/5X");var o=Shopware,i=o.Component,a=o.Context,r=Shopware.Data.Criteria;i.override("sw-order-detail",{template:'{% block sw_order_detail_content_tabs_general %}\n {% parent %}\n\n\n\t{{ $tc(\'postfinancecheckout-order.header\') }}\n\n{% endblock %}\n\n{% block sw_order_detail_actions_slot_smart_bar_actions %}\n\n\t{% parent %}\n\n{% endblock %}\n',data:function(){return{isPostFinanceCheckoutPayment:!1}},computed:{isEditable:function(){return!this.isPostFinanceCheckoutPayment||"postfinancecheckout.order.detail"!==this.$route.name},showTabs:function(){return!0}},watch:{orderId:{deep:!0,handler:function(){var t=this;if(this.orderId){var e=this.repositoryFactory.create("order"),n=new r(1,1);n.addAssociation("transactions"),e.get(this.orderId,a.api,n).then((function(e){if(e.amountTotal<=0||e.transactions.length<=0||!e.transactions[0].paymentMethodId)t.setIsPostFinanceCheckoutPayment(null);else{var n=e.transactions[0].paymentMethodId;null!=n&&t.setIsPostFinanceCheckoutPayment(n)}}))}else this.setIsPostFinanceCheckoutPayment(null)},immediate:!0}},methods:{setIsPostFinanceCheckoutPayment:function(t){var e=this;t&&this.repositoryFactory.create("payment_method").get(t,a.api).then((function(t){e.isPostFinanceCheckoutPayment="handler_postfinancecheckoutpayment_postfinancecheckoutpaymenthandler"===t.formattedHandlerIdentifier}))}}});var c=Shopware,s=c.Component,l=c.Mixin,u=c.Filter,d=c.Utils;s.register("postfinancecheckout-order-action-completion",{template:'{% block postfinancecheckout_order_action_completion %}\n\n\n\t{% block postfinancecheckout_order_action_completion_amount %}\n\t\t\n\t{% endblock %}\n\n\t{% block postfinancecheckout_order_action_completion_confirm_button %}\n\t\n\t\t\n\t\t\t{{ $tc(\'postfinancecheckout-order.refundAction.confirmButton.text\') }}\n\t\t\n\t\n\t{% endblock %}\n\n\t\n\n{% endblock %}\n',inject:["PostFinanceCheckoutTransactionCompletionService"],mixins:[l.getByName("notification")],props:{transactionData:{type:Object,required:!0}},data:function(){return{isLoading:!0,isCompletion:!1}},computed:{dateFilter:function(){return u.getByName("date")}},created:function(){this.createdComponent()},methods:{createdComponent:function(){this.isLoading=!1},completion:function(){var t=this;this.isCompletion&&(this.isLoading=!0,this.PostFinanceCheckoutTransactionCompletionService.createTransactionCompletion(this.transactionData.transactions[0].metaData.salesChannelId,this.transactionData.transactions[0].id).then((function(){t.createNotificationSuccess({title:t.$tc("postfinancecheckout-order.captureAction.successTitle"),message:t.$tc("postfinancecheckout-order.captureAction.successMessage")}),t.isLoading=!1,t.$emit("modal-close"),t.$nextTick((function(){t.$router.replace("".concat(t.$route.path,"?hash=").concat(d.createId()))}))})).catch((function(e){try{t.createNotificationError({title:e.response.data.errors[0].title,message:e.response.data.errors[0].detail,autoClose:!1})}catch(n){t.createNotificationError({title:e.title,message:e.message,autoClose:!1})}finally{t.isLoading=!1,t.$emit("modal-close"),t.$nextTick((function(){t.$router.replace("".concat(t.$route.path,"?hash=").concat(d.createId()))}))}})))}}});var p=Shopware,f=p.Component,h=p.Mixin,m=p.Filter,g=p.Utils;f.register("postfinancecheckout-order-action-refund",{template:'{% block postfinancecheckout_order_action_refund %}\n\n\n\t{% block postfinancecheckout_order_action_refund_amount %}\n\n\t\t\n\t\t\n\n\t\t
\n\t\n\n\n',name:"PostFinanceCheckoutAdvancedOptions",mixins:[mt.getByName("notification")],props:{actualConfigData:{type:Object,required:!0},allConfigs:{type:Object,required:!0},selectedSalesChannelId:{required:!0},isLoading:{type:Boolean,required:!0}},data:function(){return function(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:"postfinancecheckout";return bt(this,a),i.call(this,t,e,n)}return e=a,(n=[{key:"registerWebHooks",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.getBasicHeaders(),n="".concat(Shopware.Context.api.apiPath,"/_action/").concat(this.getApiBasePath(),"/configuration/register-web-hooks");return this.httpClient.post(n,{salesChannelId:t},{headers:e}).then((function(t){return It.handleResponse(t)}))}},{key:"checkApiConnection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=this.getBasicHeaders(),i="".concat(Shopware.Context.api.apiPath,"/_action/").concat(this.getApiBasePath(),"/configuration/check-api-connection");return this.httpClient.post(i,{spaceId:t,userId:e,applicationId:n},{headers:o}).then((function(t){return It.handleResponse(t)}))}},{key:"setPostFinanceCheckoutAsSalesChannelPaymentDefault",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.getBasicHeaders(),n="".concat(Shopware.Context.api.apiPath,"/_action/").concat(this.getApiBasePath(),"/configuration/set-postfinancecheckout-as-sales-channel-payment-default");return this.httpClient.post(n,{salesChannelId:t},{headers:e}).then((function(t){return It.handleResponse(t)}))}},{key:"synchronizePaymentMethodConfiguration",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.getBasicHeaders(),n="".concat(Shopware.Context.api.apiPath,"/_action/").concat(this.getApiBasePath(),"/configuration/synchronize-payment-method-configuration");return this.httpClient.post(n,{salesChannelId:t},{headers:e}).then((function(t){return It.handleResponse(t)}))}},{key:"installOrderDeliveryStates",value:function(){var t=this.getBasicHeaders(),e="".concat(Shopware.Context.api.apiPath,"/_action/").concat(this.getApiBasePath(),"/configuration/install-order-delivery-states");return this.httpClient.post(e,{},{headers:t}).then((function(t){return It.handleResponse(t)}))}}])&&yt(e.prototype,n),o&&yt(e,o),Object.defineProperty(e,"prototype",{writable:!1}),a}(It);function Ot(t){return(Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function St(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Et(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"postfinancecheckout";return St(this,a),i.call(this,t,e,n)}return e=a,(n=[{key:"createRefund",value:function(t,e,n,o){var i=this.getBasicHeaders(),a="".concat(Shopware.Context.api.apiPath,"/_action/").concat(this.getApiBasePath(),"/refund/create-refund/");return this.httpClient.post(a,{salesChannelId:t,transactionId:e,quantity:n,lineItemId:o},{headers:i}).then((function(t){return Dt.handleResponse(t)}))}},{key:"createRefundByAmount",value:function(t,e,n){var o=this.getBasicHeaders(),i="".concat(Shopware.Context.api.apiPath,"/_action/").concat(this.getApiBasePath(),"/refund/create-refund-by-amount/");return this.httpClient.post(i,{salesChannelId:t,transactionId:e,refundableAmount:n},{headers:o}).then((function(t){return Dt.handleResponse(t)}))}}])&&Et(e.prototype,n),o&&Et(e,o),Object.defineProperty(e,"prototype",{writable:!1}),a}(Dt);function xt(t){return(xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Lt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $t(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"postfinancecheckout";return Lt(this,a),i.call(this,t,e,n)}return e=a,(n=[{key:"getTransactionData",value:function(t,e){var n=this.getBasicHeaders(),o="".concat(Shopware.Context.api.apiPath,"/_action/").concat(this.getApiBasePath(),"/transaction/get-transaction-data/");return this.httpClient.post(o,{salesChannelId:t,transactionId:e},{headers:n}).then((function(t){return Gt.handleResponse(t)}))}},{key:"getInvoiceDocument",value:function(t,e){return"".concat(Shopware.Context.api.apiPath,"/_action/").concat(this.getApiBasePath(),"/transaction/get-invoice-document/").concat(t,"/").concat(e)}},{key:"getPackingSlip",value:function(t,e){return"".concat(Shopware.Context.api.apiPath,"/_action/").concat(this.getApiBasePath(),"/transaction/get-packing-slip/").concat(t,"/").concat(e)}}])&&$t(e.prototype,n),o&&$t(e,o),Object.defineProperty(e,"prototype",{writable:!1}),a}(Gt);function qt(t){return(qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ut(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ht(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"postfinancecheckout";return Ut(this,a),i.call(this,t,e,n)}return e=a,(n=[{key:"createTransactionCompletion",value:function(t,e){var n=this.getBasicHeaders(),o="".concat(Shopware.Context.api.apiPath,"/_action/").concat(this.getApiBasePath(),"/transaction-completion/create-transaction-completion/");return this.httpClient.post(o,{salesChannelId:t,transactionId:e},{headers:n}).then((function(t){return Qt.handleResponse(t)}))}}])&&Ht(e.prototype,n),o&&Ht(e,o),Object.defineProperty(e,"prototype",{writable:!1}),a}(Qt);function Jt(t){return(Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function te(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"postfinancecheckout";return Xt(this,a),i.call(this,t,e,n)}return e=a,(n=[{key:"createTransactionVoid",value:function(t,e){var n=this.getBasicHeaders(),o="".concat(Shopware.Context.api.apiPath,"/_action/").concat(this.getApiBasePath(),"/transaction-void/create-transaction-void/");return this.httpClient.post(o,{salesChannelId:t,transactionId:e},{headers:n}).then((function(t){return ae.handleResponse(t)}))}}])&&te(e.prototype,n),o&&te(e,o),Object.defineProperty(e,"prototype",{writable:!1}),a}(ae),ce=Shopware.Application;ce.addServiceProvider("PostFinanceCheckoutConfigurationService",(function(t){var e=ce.getContainer("init");return new wt(e.httpClient,t.loginService)})),ce.addServiceProvider("PostFinanceCheckoutRefundService",(function(t){var e=ce.getContainer("init");return new At(e.httpClient,t.loginService)})),ce.addServiceProvider("PostFinanceCheckoutTransactionService",(function(t){var e=ce.getContainer("init");return new Vt(e.httpClient,t.loginService)})),ce.addServiceProvider("PostFinanceCheckoutTransactionCompletionService",(function(t){var e=ce.getContainer("init");return new Zt(e.httpClient,t.loginService)})),ce.addServiceProvider("PostFinanceCheckoutTransactionVoidService",(function(t){var e=ce.getContainer("init");return new re(e.httpClient,t.loginService)}))},"H/5X":function(t,e,n){var o=n("l/BR");o.__esModule&&(o=o.default),"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);(0,n("ydqr").default)("40cc2cf3",o,!0,{})},Prwv:function(t){t.exports=JSON.parse('{"postfinancecheckout-order":{"buttons":{"label":{"completion":"Terminée","download-invoice":"Télécharger la facture","download-packing-slip":"Télécharger le bordereau d\'expédition","refund":"Créer un nouveau remboursement","void":"Annulez l\'autorisation","refund-whole-line-item":"Remboursement de la ligne entière","refund-line-item-by-quantity":"Remboursement par quantité"}},"captureAction":{"button":{"text":"Capture du paiement"},"currentAmount":"Montant","isFinal":"C\'est la capture finale","maxAmount":"Montant maximal","successMessage":"Votre capture a été réussie.","successTitle":"Succès"},"general":{"title":"Commandes"},"header":"PostFinanceCheckout Paiement","lineItem":{"cardTitle":"Articles de ligne","types":{"amountIncludingTax":"Montant","name":"Nom","quantity":"Quantité","taxAmount":"Taxes","type":"Type","uniqueId":"ID unique"}},"modal":{"title":{"capture":"Capture","refund":"Nouveau remboursement","void":"Annulez l\'autorisation"}},"paymentDetails":{"cardTitle":"Paiement","error":{"title":"Erreur dans la récupération des détails du paiement à partir de PostFinanceCheckout"}},"refund":{"cardTitle":"Remboursements","refundAmount":{"label":"Montant du remboursement"},"refundQuantity":{"label":"Quantité à rembourser"},"types":{"amount":"Montant","createdOn":"Créé le","id":"ID","state":"État"}},"refundAction":{"confirmButton":{"text":"Exécutez"},"refundAmount":{"label":"Montant","placeholder":"Entrez un montant"},"successMessage":"Votre remboursement a été effectué avec succès.","successTitle":"Succès","maxAvailableItemsToRefund":"Nombre maximum d\'articles disponibles pour le remboursement"},"transactionHistory":{"cardTitle":"Détails","types":{"authorized_amount":"Montant autorisé","currency":"Monnaie","customer":"Client","payment_method":"Mode de paiement","state":"État","transaction":"Transaction"},"customerId":"Customer ID","customerName":"Customer Name","creditCardHolder":"Titulaire de la carte de crédit","paymentMethod":"Mode de paiement","paymentMethodBrand":"Marque du mode de paiement","PseudoCreditCardNumber":"Pseudo numéro de carte de crédit","CardExpire":"La carte expire"},"voidAction":{"confirm":{"button":{"cancel":"Non","confirm":"Annulez l\'autorisation"},"message":"Voulez-vous vraiment annuler ce paiement?"},"successMessage":"Le paiement a été annulé avec succès.","successTitle":"Succès"}}}')},"f0m+":function(t){t.exports=JSON.parse('{"postfinancecheckout-order":{"buttons":{"label":{"completion":"Completato","download-invoice":"Scarica fattura","download-packing-slip":"Scarica distinta di imballaggio","refund":"Crea un nuovo rimborso","void":"Annulla autorizzazione","refund-whole-line-item":"Rimborso intera riga","refund-line-item-by-quantity":"Rimborso per quantità"}},"captureAction":{"button":{"text":"Cattura pagamento"},"currentAmount":"Importo","isFinal":"Questa è la cattura finale","maxAmount":"Importo massimo","successMessage":"La tua cattura ha avuto successo.","successTitle":"Successo"},"general":{"title":"Ordini"},"header":"Pagamento PostFinanceCheckout","lineItem":{"cardTitle":"Articoli di linea","types":{"amountIncludingTax":"Importo","name":"Nome","quantity":"Quantità","taxAmount":"Tasse","type":"Tipo","uniqueId":"ID unico"}},"modal":{"title":{"capture":"Cattura","refund":"Nuovo rimborso","void":"Annulla autorizzazione"}},"paymentDetails":{"cardTitle":"Pagamento","error":{"title":"Errore nel recupero dei dettagli del pagamento da PostFinanceCheckout"}},"refund":{"cardTitle":"Rimborsi","refundAmount":{"label":"Importo del rimborso"},"refundQuantity":{"label":"Quantità di rimborso"},"types":{"amount":"Importo","createdOn":"Creato il","id":"ID","state":"Stato"}},"refundAction":{"confirmButton":{"text":"Esegui"},"refundAmount":{"label":"Importo","placeholder":"Inserisci un importo"},"successMessage":"Il tuo rimborso è andato a buon fine.","successTitle":"Successo","maxAvailableItemsToRefund":"Numero massimo di articoli disponibili da rimborsare"},"transactionHistory":{"cardTitle":"Dettagli","types":{"authorized_amount":"Importo autorizzato","currency":"Valuta","customer":"Cliente","payment_method":"Metodo di pagamento","state":"Stato","transaction":"Transazione"},"customerId":"Customer ID","customerName":"Customer Name","creditCardHolder":"Proprietario della carta di credito","paymentMethod":"Metodo di pagamento","paymentMethodBrand":"Metodo di pagamento Marca","PseudoCreditCardNumber":"Numero di carta di credito pseudo","CardExpire":"La carta scade"},"voidAction":{"confirm":{"button":{"cancel":"No","confirm":"Annulla autorizzazione"},"message":"Vuoi davvero annullare questo pagamento?"},"successMessage":"Il pagamento è stato annullato con successo.","successTitle":"Successo"}}}')},"l/BR":function(t,e,n){},"l/bh":function(t,e,n){var o=n("nAKd");o.__esModule&&(o=o.default),"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);(0,n("ydqr").default)("5075f35e",o,!0,{})},lcqu:function(t){t.exports=JSON.parse('{"postfinancecheckout-order":{"buttons":{"label":{"completion":"Abschluss","download-invoice":"Rechnung herunterladen","download-packing-slip":"Packzettel herunterladen","refund":"Eine neue Rückerstattung erstellen","void":"Genehmigung annullieren","refund-whole-line-item":"Gesamte Werbebuchung erstatten","refund-line-item-by-quantity":"Rückerstattung nach Menge"}},"captureAction":{"button":{"text":"Zahlung erfassen"},"currentAmount":"Betrag","isFinal":"Dies ist die endgültige Verbuchung","maxAmount":"Maximaler Betrag","successMessage":"Ihre Verbuchung war erfolgreich","successTitle":"Erfolg"},"general":{"title":"Bestellungen"},"header":"PostFinanceCheckout Payment","lineItem":{"cardTitle":"Einzelposten","types":{"amountIncludingTax":"Betrag","name":"Name","quantity":"Anzahl","taxAmount":"Steuern","type":"Typ","uniqueId":"Eindeutige ID"}},"modal":{"title":{"capture":"Erfassen","refund":"Neue Gutschrift","void":"Autorisierung aufheben"}},"paymentDetails":{"cardTitle":"Zahlung","error":{"title":"Fehler beim Abrufen von Zahlungsdetails von PostFinanceCheckout"}},"refund":{"cardTitle":"Gutschriften","refundAmount":{"label":"Gutschriftsbetrag"},"refundQuantity":{"label":"Refund Menge"},"types":{"amount":"Betrag","createdOn":"Erstellt am","id":"ID","state":"Staat"}},"refundAction":{"confirmButton":{"text":"Ausführen"},"refundAmount":{"label":"Betrag","placeholder":"Einen Betrag eingeben"},"successMessage":"Ihre Rückerstattung war erfolgreich","successTitle":"Erfolg","maxAvailableItemsToRefund":"Maximal Verfügbare Artikel zum Erstatten"},"transactionHistory":{"cardTitle":"Einzelheiten","types":{"authorized_amount":"Autorisierter Betrag","currency":"Währung","customer":"Kunde","payment_method":"Zahlungsweise","state":"Staat","transaction":"Transaktion"},"customerId":"Customer ID","customerName":"Customer Name","creditCardHolder":"Kreditkarteninhaber","paymentMethod":"Zahlungsart","paymentMethodBrand":"Marke der Zahlungsmethode","PseudoCreditCardNumber":"Pseudo-Kreditkartennummer","CardExpire":"Karte verfällt"},"voidAction":{"confirm":{"button":{"cancel":"Nein","confirm":"Autorisierung aufheben"},"message":"Wollen Sie diese Zahlung wirklich stornieren?"},"successMessage":"Die Zahlung wurde erfolgreich annulliert","successTitle":"Erfolg"}}}')},nAKd:function(t,e,n){},p84r:function(t,e){Shopware.Service("privileges").addPrivilegeMappingEntry({category:"permissions",parent:"postfinancecheckout",key:"postfinancecheckout",roles:{viewer:{privileges:["sales_channel:read","sales_channel_payment_method:read","system_config:read"],dependencies:[]},editor:{privileges:["sales_channel:update","sales_channel_payment_method:create","sales_channel_payment_method:update","system_config:update","system_config:create","system_config:delete"],dependencies:["postfinancecheckout.viewer"]}}}),Shopware.Service("privileges").addPrivilegeMappingEntry({category:"permissions",parent:null,key:"sales_channel",roles:{viewer:{privileges:["sales_channel_payment_method:read"]},editor:{privileges:["payment_method:update"]},creator:{privileges:["payment_method:create","shipping_method:create","delivery_time:create"]},deleter:{privileges:["payment_method:delete"]}}})},xDp5:function(t){t.exports=JSON.parse('{"postfinancecheckout-order":{"buttons":{"label":{"completion":"Complete","download-invoice":"Download Invoice","download-packing-slip":"Download Packing Slip","refund":"Create a new refund","void":"Cancel authorization","refund-whole-line-item":"Refund whole line item","refund-line-item-by-quantity":"Refund by quantity"}},"captureAction":{"button":{"text":"Capture payment"},"currentAmount":"Amount","isFinal":"This is final capture","maxAmount":"Maximum amount","successMessage":"Your capture was successful.","successTitle":"Success"},"general":{"title":"Orders"},"header":"PostFinanceCheckout Payment","lineItem":{"cardTitle":"Line Items","types":{"amountIncludingTax":"Amount","name":"Name","quantity":"Quantity","taxAmount":"Taxes","type":"Type","uniqueId":"Unique ID"}},"modal":{"title":{"capture":"Capture","refund":"New refund","void":"Cancel authorization"}},"paymentDetails":{"cardTitle":"Payment","error":{"title":"Error fetching payment details from PostFinanceCheckout"}},"refund":{"cardTitle":"Refunds","refundAmount":{"label":"Refund Amount"},"refundQuantity":{"label":"Refund Quantity"},"types":{"amount":"Amount","createdOn":"Created On","id":"ID","state":"State"}},"refundAction":{"confirmButton":{"text":"Execute"},"refundAmount":{"label":"Amount","placeholder":"Enter a amount"},"successMessage":"Your refund was successful.","successTitle":"Success","maxAvailableItemsToRefund":"Maximum available items to refund"},"transactionHistory":{"cardTitle":"Details","types":{"authorized_amount":"Authorized Amount","currency":"Currency","customer":"Customer","payment_method":"Payment Method","state":"State","transaction":"Transaction"},"customerId":"Customer ID","customerName":"Customer Name","creditCardHolder":"Credit Card Holder","paymentMethod":"Payment Method","paymentMethodBrand":"Payment Method Brand","PseudoCreditCardNumber":"Pseudo Credit Card Number","CardExpire":"Card Expire"},"voidAction":{"confirm":{"button":{"cancel":"No","confirm":"Cancel authorization"},"message":"Do you really want to cancel this payment?"},"successMessage":"The payment was successfully voided.","successTitle":"Success"}}}')},ydqr:function(t,e,n){"use strict";function o(t,e){for(var n=[],o={},i=0;in.parts.length&&(o.parts.length=n.parts.length)}else{var r=[];for(i=0;i