From c8e21f6e4ad378f2ca1d2570ba741a0ec5c29b4c Mon Sep 17 00:00:00 2001 From: Frederik Rommel Date: Thu, 18 Jul 2024 11:24:36 +0200 Subject: [PATCH] rebuild administration --- .../administration/js/payone-payment.js | 896 +----------------- src/Resources/public/static/css/170.css | 3 + src/Resources/public/static/css/170.css.map | 1 + src/Resources/public/static/css/279.css | 3 + src/Resources/public/static/css/279.css.map | 1 + src/Resources/public/static/css/651.css | 3 + src/Resources/public/static/css/651.css.map | 1 + src/Resources/public/static/css/711.css | 3 + src/Resources/public/static/css/711.css.map | 1 + src/Resources/public/static/css/811.css | 3 + src/Resources/public/static/css/811.css.map | 1 + src/Resources/public/static/css/907.css | 3 + src/Resources/public/static/css/907.css.map | 1 + src/Resources/public/static/css/942.css | 3 + src/Resources/public/static/css/942.css.map | 1 + src/Resources/public/static/css/992.css | 3 + src/Resources/public/static/css/992.css.map | 1 + .../public/static/js/00d86068c7552ec3bf48.js | 2 + .../static/js/00d86068c7552ec3bf48.js.map | 1 + .../public/static/js/187f39a64b9957fa0cd6.js | 2 + .../static/js/187f39a64b9957fa0cd6.js.map | 1 + .../public/static/js/1c870eadabd11b1444dd.js | 2 + .../static/js/1c870eadabd11b1444dd.js.map | 1 + .../public/static/js/276c4c47a1a173f31cd7.js | 2 + .../static/js/276c4c47a1a173f31cd7.js.map | 1 + .../public/static/js/59d5ce77b63618b27b43.js | 2 + .../static/js/59d5ce77b63618b27b43.js.map | 1 + .../public/static/js/7e23a5e4b0d177361736.js | 2 + .../static/js/7e23a5e4b0d177361736.js.map | 1 + .../public/static/js/88ebe4106c45f8e09973.js | 2 + .../static/js/88ebe4106c45f8e09973.js.map | 1 + .../public/static/js/90e1be9e63b90051b4e0.js | 2 + .../static/js/90e1be9e63b90051b4e0.js.map | 1 + .../public/static/js/9513aefe3911f011d98e.js | 2 + .../static/js/9513aefe3911f011d98e.js.map | 1 + .../public/static/js/9a9c94e3696f57409503.js | 2 + .../static/js/9a9c94e3696f57409503.js.map | 1 + .../public/static/js/9c3c58b7356b2afb9b90.js | 2 + .../static/js/9c3c58b7356b2afb9b90.js.map | 1 + .../public/static/js/adb8e862ec68f99ef358.js | 2 + .../static/js/adb8e862ec68f99ef358.js.map | 1 + .../public/static/js/cc8f6abd2622c7902e9f.js | 2 + .../static/js/cc8f6abd2622c7902e9f.js.map | 1 + .../public/static/js/edcaee145c1d462652d0.js | 2 + .../static/js/edcaee145c1d462652d0.js.map | 1 + .../public/static/js/payone-payment.js.map | 1 + 46 files changed, 77 insertions(+), 894 deletions(-) create mode 100644 src/Resources/public/static/css/170.css create mode 100644 src/Resources/public/static/css/170.css.map create mode 100644 src/Resources/public/static/css/279.css create mode 100644 src/Resources/public/static/css/279.css.map create mode 100644 src/Resources/public/static/css/651.css create mode 100644 src/Resources/public/static/css/651.css.map create mode 100644 src/Resources/public/static/css/711.css create mode 100644 src/Resources/public/static/css/711.css.map create mode 100644 src/Resources/public/static/css/811.css create mode 100644 src/Resources/public/static/css/811.css.map create mode 100644 src/Resources/public/static/css/907.css create mode 100644 src/Resources/public/static/css/907.css.map create mode 100644 src/Resources/public/static/css/942.css create mode 100644 src/Resources/public/static/css/942.css.map create mode 100644 src/Resources/public/static/css/992.css create mode 100644 src/Resources/public/static/css/992.css.map create mode 100644 src/Resources/public/static/js/00d86068c7552ec3bf48.js create mode 100644 src/Resources/public/static/js/00d86068c7552ec3bf48.js.map create mode 100644 src/Resources/public/static/js/187f39a64b9957fa0cd6.js create mode 100644 src/Resources/public/static/js/187f39a64b9957fa0cd6.js.map create mode 100644 src/Resources/public/static/js/1c870eadabd11b1444dd.js create mode 100644 src/Resources/public/static/js/1c870eadabd11b1444dd.js.map create mode 100644 src/Resources/public/static/js/276c4c47a1a173f31cd7.js create mode 100644 src/Resources/public/static/js/276c4c47a1a173f31cd7.js.map create mode 100644 src/Resources/public/static/js/59d5ce77b63618b27b43.js create mode 100644 src/Resources/public/static/js/59d5ce77b63618b27b43.js.map create mode 100644 src/Resources/public/static/js/7e23a5e4b0d177361736.js create mode 100644 src/Resources/public/static/js/7e23a5e4b0d177361736.js.map create mode 100644 src/Resources/public/static/js/88ebe4106c45f8e09973.js create mode 100644 src/Resources/public/static/js/88ebe4106c45f8e09973.js.map create mode 100644 src/Resources/public/static/js/90e1be9e63b90051b4e0.js create mode 100644 src/Resources/public/static/js/90e1be9e63b90051b4e0.js.map create mode 100644 src/Resources/public/static/js/9513aefe3911f011d98e.js create mode 100644 src/Resources/public/static/js/9513aefe3911f011d98e.js.map create mode 100644 src/Resources/public/static/js/9a9c94e3696f57409503.js create mode 100644 src/Resources/public/static/js/9a9c94e3696f57409503.js.map create mode 100644 src/Resources/public/static/js/9c3c58b7356b2afb9b90.js create mode 100644 src/Resources/public/static/js/9c3c58b7356b2afb9b90.js.map create mode 100644 src/Resources/public/static/js/adb8e862ec68f99ef358.js create mode 100644 src/Resources/public/static/js/adb8e862ec68f99ef358.js.map create mode 100644 src/Resources/public/static/js/cc8f6abd2622c7902e9f.js create mode 100644 src/Resources/public/static/js/cc8f6abd2622c7902e9f.js.map create mode 100644 src/Resources/public/static/js/edcaee145c1d462652d0.js create mode 100644 src/Resources/public/static/js/edcaee145c1d462652d0.js.map create mode 100644 src/Resources/public/static/js/payone-payment.js.map diff --git a/src/Resources/public/administration/js/payone-payment.js b/src/Resources/public/administration/js/payone-payment.js index 46e7b601..66d5d8b7 100755 --- a/src/Resources/public/administration/js/payone-payment.js +++ b/src/Resources/public/administration/js/payone-payment.js @@ -1,894 +1,2 @@ -(()=>{var Ye=Object.defineProperty;var i=(e,t)=>()=>(e&&(t=e(e=0)),t);var r=(e,t)=>{for(var a in t)Ye(e,a,{get:t[a],enumerable:!0})};var v,A=i(()=>{v=`{% block payone_payment_plugin_icon %} - -{% endblock %} -`});var S=i(()=>{});var T={};r(T,{default:()=>Ke});var Ke,C=i(()=>{A();S();Ke={template:v,computed:{assetFilter(){return Shopware.Filter.getByName("asset")}}}});var x=i(()=>{});var E,I=i(()=>{E=`{% block payone_ratepay_profile_configurations %} -
- - - - - -
-{% endblock %} -`});var $={};r($,{default:()=>Ve});var Ve,D=i(()=>{x();I();Ve={template:E,inject:["PayonePaymentSettingsService"],props:{value:{type:Object,required:!1,default(){return{}}},name:{type:String,required:!0}},data(){return{isLoading:!1,configuration:this.value}},created(){this.createdComponent()},destroyed(){this.destroyedComponent()},computed:{profileConfigurations(){let e=this.name,t=[];for(let a in this.configuration){let n="",o="";switch(e){case"PayonePayment.settings.ratepayDebitProfileConfigurations":n=this.configuration[a]["tx-limit-elv-min"],o=this.configuration[a]["tx-limit-elv-max"];break;case"PayonePayment.settings.ratepayInstallmentProfileConfigurations":n=this.configuration[a]["tx-limit-installment-min"],o=this.configuration[a]["tx-limit-installment-max"];break;case"PayonePayment.settings.ratepayInvoicingProfileConfigurations":n=this.configuration[a]["tx-limit-invoice-min"],o=this.configuration[a]["tx-limit-invoice-max"];break;default:return}let s={shopId:a,shopCurrency:this.configuration[a].currency,invoiceCountry:this.configuration[a]["country-code-billing"],shippingCountry:this.configuration[a]["country-code-delivery"],minBasket:n,maxBasket:o};t.push(s)}return t}},methods:{createdComponent(){this.$root.$on("payone-ratepay-profiles-update-result",this.onProfilesUpdateResult)},destroyedComponent(){this.$root.$off("payone-ratepay-profiles-update-result")},onProfilesUpdateResult(e){e.updates[this.name]&&(this.configuration=e.updates[this.name])}}}});var L=i(()=>{});var O,N=i(()=>{O=`{% block payone_ratepay_profiles %} -
- {% block payone_ratepay_shop_ids %} -

{{ $tc('payone-payment.general.headlines.ratepayProfiles') }}

- - - {% block payone_ratepay_shop_ids_actions %} - - - {% block payone_ratepay_shop_ids_create_actions %} -
- - {{ $tc('payone-payment.general.actions.addShop') }} - -
- {% endblock %} -
- {% endblock %} - - {% block payone_ratepay_shop_ids_grid %} - - {% block payone_ratepay_shop_ids_grid_columns %} - {% block payone_ratepay_shop_ids_grid_column_status %} - - {% endblock %} - - {% block payone_ratepay_shop_ids_bulk_actions %} - - {% endblock %} - {% endblock %} - - {% endblock %} - - {% block payone_ratepay_shop_ids_error %} - - {{ $tc('payone-payment.general.errors.existingShopId') }} - - - - {{ $tc('payone-payment.general.errors.emptyInputs') }} - - {% endblock %} -
- {% endblock %} -
-{% endblock %} -`});var R={};r(R,{default:()=>Qe});var He,Qe,F=i(()=>{L();N();({Utils:He}=Shopware),Qe={template:O,props:{value:{type:Array,required:!1,default(){return[]}},name:{type:String,required:!0}},data(){return{selectedItems:{},newItem:null,showDuplicateAlert:!1,showEmptyAlert:!1,profiles:this.value}},computed:{getLineItemColumns(){return[{property:"shopId",dataIndex:"shopId",label:this.$tc("payone-payment.general.label.shopId"),allowResize:!1,inlineEdit:"string",width:"200px",primary:!0},{property:"currency",dataIndex:"currency",label:this.$tc("payone-payment.general.label.currency"),allowResize:!1,inlineEdit:"string",width:"200px",primary:!0},{property:"error",label:this.$tc("payone-payment.general.label.error"),allowResize:!1,width:"100px",primary:!0}]}},watch:{profiles(e){this.$emit("update:value",e),this.$emit("input",e),this.$emit("change",e)}},created(){this.createdComponent()},destroyed(){this.destroyedComponent()},methods:{createdComponent(){this.$root.$on("payone-ratepay-profiles-update-result",this.onProfilesUpdateResult)},destroyedComponent(){this.$root.$off("payone-ratepay-profiles-update-result")},onProfilesUpdateResult(e){if(e.updates[this.name]&&(this.profiles=e.updates[this.name]),e.errors[this.name])for(let t of e.errors[this.name])this.profiles.push(t)},onInlineEditCancel(e){e.shopId===""&&e.currency===""&&this.profiles.forEach(function(t,a,n){t.id===e.id&&n.splice(a,1)}),this.$emit("item-cancel")},onInlineEditSave(e){if(e.shopId!==""&&e.currency!==""){this.showEmptyAlert=!1;let t=!1;this.profiles.forEach(function(a){a.id!==e.id&&a.shopId===e.shopId&&(t=!0)}),t?(this.showDuplicateAlert=!0,this.$nextTick(()=>{this.$refs.shopIdsDataGrid.currentInlineEditId=e.id,this.$refs.shopIdsDataGrid.enableInlineEdit()})):this.showDuplicateAlert=!1}else this.showEmptyAlert=!0,this.$nextTick(()=>{this.$refs.shopIdsDataGrid.currentInlineEditId=e.id,this.$refs.shopIdsDataGrid.enableInlineEdit()});this.$emit("update-list",this.profiles)},createNewLineItem(){let e=!1;if(e=this.profiles.length===0,e){this.createLine();return}this.profiles[this.profiles.length-1].shopId!==""&&this.createLine()},createLine(){let e=He.createId();this.profiles.push({id:e,shopId:"",currency:""}),this.$nextTick(()=>{this.$refs.shopIdsDataGrid.currentInlineEditId=e,this.$refs.shopIdsDataGrid.enableInlineEdit()})},onDeleteSelectedItem(e){this.profiles=this.profiles.filter(t=>t.shopId!==e.shopId),this.$emit("deleted",this.profiles)}}}});var q,M=i(()=>{q=`{% block payone_payment %} - - {% block payone_payment_header %} - - {% endblock %} - - {% block payone_payment_actions %} - - {% endblock %} - - {% block payone_payment_settings_content %} - - {% endblock %} - -{% endblock %} -`});var B=i(()=>{});var z={};r(z,{default:()=>Xe});var Y,Xe,G=i(()=>{M();B();({Mixin:Y}=Shopware),Xe={template:q,mixins:[Y.getByName("notification"),Y.getByName("sw-inline-snippet")],inject:["PayonePaymentSettingsService"],data(){return{isLoading:!1,isTesting:!1,isSaveSuccessful:!1,isTestSuccessful:!1,isApplePayCertConfigured:!0,isSupportModalOpen:!1,stateMachineTransitionActions:[],displayStatusMapping:{}}},created(){this.createdComponent()},metaInfo(){return{title:this.$createTitle()}},methods:{createdComponent(){this.PayonePaymentSettingsService.hasApplePayCert().then(e=>{this.isApplePayCertConfigured=e})},saveFinish(){this.isSaveSuccessful=!1},testFinish(){this.isTestSuccessful=!1},getConfigValue(e){let t=this.$refs.systemConfig.actualConfigData,a=t.null,n=this.$refs.systemConfig.currentSalesChannelId;return n===null?t.null[`PayonePayment.settings.${e}`]:t[n][`PayonePayment.settings.${e}`]||a[`PayonePayment.settings.${e}`]},getPaymentConfigValue(e,t){let a=e.charAt(0).toUpperCase()+e.slice(1);return this.getConfigValue(t+a)||this.getConfigValue(e)},onSave(){this.isSaveSuccessful=!1,this.isLoading=!0,this.$refs.systemConfig.saveAll().then(e=>{this.handleRatepayProfileUpdates(e),this.isSaveSuccessful=!0}).finally(()=>{this.isLoading=!1})},onTest(){this.isTesting=!0,this.isTestSuccessful=!1;let e={};this.$refs.systemConfig.config.forEach(t=>{let a=t.name.match(/^payment_(.+)$/),n=a?a[1]:null;n&&(e[n]={merchantId:this.getPaymentConfigValue("merchantId",n),accountId:this.getPaymentConfigValue("accountId",n),portalId:this.getPaymentConfigValue("portalId",n),portalKey:this.getPaymentConfigValue("portalKey",n)})}),this.PayonePaymentSettingsService.validateApiCredentials(e).then(t=>{let a=t.testCount,n=t.credentialsValid,o=t.errors;if(n)this.createNotificationSuccess({title:this.$tc("payone-payment.settingsForm.titleSuccess"),message:a>0?this.$tc("payone-payment.settingsForm.messageTestSuccess"):this.$tc("payone-payment.settingsForm.messageTestNoTestedPayments")}),this.isTestSuccessful=!0;else for(let s in o)if(o.hasOwnProperty(s)){this.createNotificationError({title:this.$tc("payone-payment.settingsForm.titleError"),message:this.$tc("payone-payment.settingsForm.messageTestError."+s)});let l=o[s];typeof l=="string"&&this.createNotificationError({title:this.$tc("payone-payment.settingsForm.titleError"),message:l})}}).finally(t=>{this.createNotificationError({title:this.$tc("payone-payment.settingsForm.titleError"),message:this.$tc("payone-payment.settingsForm.messageTestError.general")}),this.isTesting=!1})},handleRatepayProfileUpdates(e){let t=this.$refs.systemConfig.currentSalesChannelId;if(e.payoneRatepayProfilesUpdateResult&&e.payoneRatepayProfilesUpdateResult[t]){let a=e.payoneRatepayProfilesUpdateResult[t];this.$root.$emit("payone-ratepay-profiles-update-result",a),Array.isArray(a.errors)||this.createNotificationError({title:this.$tc("payone-payment.settingsForm.titleError"),message:this.$tc("payone-payment.settingsForm.messageSaveError.ratepayProfilesUpdateFailed")})}}}}});var U,K=i(()=>{U=`{% block payone_notification_target_detail %} - - - {% block payone_notification_target_detail_header %} - - {% endblock %} - - {% block payone_notification_target_detail_actions %} - - {% endblock %} - - - - -{% endblock %} -`});var V={};r(V,{default:()=>it});var nt,it,j=i(()=>{K();({Mixin:nt}=Shopware),it={template:U,inject:["repositoryFactory"],mixins:[nt.getByName("notification")],shortcuts:{"SYSTEMKEY+S":"onSave",ESCAPE:"onCancel"},props:{notificationTargetId:{type:String,required:!1,default:null}},data(){return{notificationTarget:null,isLoading:!1,isSaveSuccessful:!1,processSuccess:!1}},metaInfo(){return{title:this.$createTitle(this.identifier)}},computed:{notificationTargetIsLoading(){return this.isLoading||this.notificationTarget==null},notificationTargetRepository(){return this.repositoryFactory.create("payone_payment_notification_target")}},watch:{notificationTargetId(){this.createdComponent()}},created(){this.createdComponent()},methods:{createdComponent(){if(this.notificationTargetId){this.loadEntityData();return}Shopware.State.commit("context/resetLanguageToDefault"),this.notificationTarget=this.notificationTargetRepository.create(Shopware.Context.api)},loadEntityData(){this.isLoading=!0,this.notificationTargetRepository.get(this.notificationTargetId,Shopware.Context.api).then(e=>{this.isLoading=!1,this.notificationTarget=e,e.txactions!==null&&(e.txactions.length||(this.notificationTarget.txactions=null))})},isInvalid(){return this.notificationTarget.isBasicAuth!==!0||this.notificationTarget.username&&this.notificationTarget.password?!1:(this.createNotificationError({message:this.$tc("global.notification.notificationSaveErrorMessageRequiredFieldsInvalid")}),!0)},onSave(){this.isInvalid()||(this.isLoading=!0,this.notificationTargetRepository.save(this.notificationTarget,Shopware.Context.api).then(()=>{if(this.isLoading=!1,this.isSaveSuccessful=!0,this.notificationTargetId===null){this.$router.push({name:"payone.notification.target.detail",params:{id:this.notificationTarget.id}});return}this.loadEntityData()}).catch(e=>{throw this.isLoading=!1,this.createNotificationError({message:this.$tc("global.notification.notificationSaveErrorMessageRequiredFieldsInvalid")}),e}))},onCancel(){this.$router.push({name:"payone.notification.target.list"})}}}});var Q,H=i(()=>{Q=`{% block payone_notification_target_list %} - - - {% block payone_notification_target_list_smart_bar_header %} - - {% endblock %} - - {% block payone_notification_target_list_actions %} - - {% endblock %} - - {% block payone_notification_target_list_content %} - - {% endblock %} - - {% block payone_notification_target_list_sidebar %} - - {% endblock %} - -{% endblock %} -`});var J={};r(J,{default:()=>lt});var rt,st,lt,X=i(()=>{H();({Mixin:rt,Data:{Criteria:st}}=Shopware),lt={template:Q,inject:["repositoryFactory"],mixins:[rt.getByName("listing")],data(){return{isLoading:!1,items:null,sortBy:"createdAt",criteriaLimit:500,criteriaPage:1,limit:500}},metaInfo(){return{title:this.$createTitle()}},computed:{notificationTargetColumns(){return[{dataIndex:"url",property:"url",label:"payonePayment.notificationTarget.columns.url",primary:!0},{dataIndex:"isBasicAuth",property:"isBasicAuth",label:"payonePayment.notificationTarget.columns.isBasicAuth"},{property:"txactions",label:"payonePayment.notificationTarget.columns.txactions"}]},repository(){return this.repositoryFactory.create("payone_payment_notification_target")},criteria(){return new st(this.criteriaPage,this.criteriaLimit)}},created(){this.createdComponent()},methods:{renderTxactions(e){return e===null||!e.length?"":e.join(", ")},createdComponent(){this.getList()},getList(){this.isLoading=!0;let e={...Shopware.Context.api,inheritance:!0};return this.repository.search(this.criteria,e).then(t=>{this.total=t.total,this.items=t,this.isLoading=!1})},onDelete(e){this.$refs.listing.deleteItem(e),this.getList()}}}});var te,ee=i(()=>{te=`{% block payone_payment_payment_details %} -
- - - {{ $tc('sw-order.payone-payment.capture.buttonTitle') }} - - - - - - -
- - - - - - -
- - -
-
-{% endblock %} -`});var ae=i(()=>{});var ie={};r(ie,{default:()=>pt});var dt,ne,pt,oe=i(()=>{ee();ae();({Mixin:dt,Filter:ne}=Shopware),pt={template:te,mixins:[dt.getByName("notification")],inject:["PayonePaymentService"],props:{order:{type:Object,required:!0},transaction:{type:Object,required:!0}},data(){return{isLoading:!1,hasError:!1,showCaptureModal:!1,isCaptureSuccessful:!1,captureAmount:0,includeShippingCosts:!1,items:[]}},computed:{currencyFilter(){return ne.getByName("currency")},payoneCurrencyFilter(){return ne.getByName("payone_currency")},orderTotalPrice(){return this.transaction.amount.totalPrice},decimalPrecision(){if(!this.order||!this.order.currency)return 2;if(this.order.currency.decimalPrecision)return this.order.currency.decimalPrecision;if(this.order.currency.itemRounding)return this.order.currency.itemRounding.decimals},capturedAmount(){return this.toFixedPrecision((this.transaction?.extensions?.payonePaymentOrderTransactionData?.capturedAmount??0)/100)},remainingAmount(){return this.toFixedPrecision(this.orderTotalPrice-this.capturedAmount)},buttonEnabled(){return this.transaction?.extensions?.payonePaymentOrderTransactionData?this.remainingAmount>0||this.transaction.extensions.payonePaymentOrderTransactionData.allowCapture:!1},selectedItems(){return this.items.filter(e=>e.selected&&e.quantity>0)},hasRemainingShippingCosts(){return this.order.shippingCosts.totalPrice<=0?!1:this.toFixedPrecision(this.capturedAmount+this.order.shippingCosts.totalPrice)<=this.orderTotalPrice}},methods:{toFixedPrecision(e){return Math.round(e*10**this.decimalPrecision)/10**this.decimalPrecision},calculateActionAmount(){let e=0;this.selectedItems.forEach(t=>{e+=t.unit_price*t.quantity}),this.captureAmount=this.toFixedPrecision(e>this.remainingAmount?this.remainingAmount:e)},openCaptureModal(){this.showCaptureModal=!0,this.isCaptureSuccessful=!1,this.initItems()},initItems(){this.items=this.order.lineItems.map(e=>{let t=e.quantity-(e.customFields?.payone_captured_quantity??0);return{id:e.id,quantity:t,maxQuantity:t,unit_price:e.unitPrice,selected:!1,product:e.label,disabled:t<=0}}),this.order.shippingCosts.totalPrice>0&&this.items.push({id:"shipping",quantity:1,maxQuantity:1,unit_price:this.order.shippingCosts.totalPrice,selected:!1,disabled:!1,product:this.$tc("sw-order.payone-payment.modal.shippingCosts")})},closeCaptureModal(){this.showCaptureModal=!1},onCaptureFinished(){this.isCaptureSuccessful=!1},captureOrder(){let e={orderTransactionId:this.transaction.id,payone_order_id:this.transaction.extensions.payonePaymentOrderTransactionData.transactionId,salesChannel:this.order.salesChannel,amount:this.captureAmount,orderLines:[],complete:this.captureAmount===this.remainingAmount,includeShippingCosts:!1};this.isLoading=!0,this.selectedItems.forEach(t=>{if(t.id==="shipping")e.includeShippingCosts=!0;else{let a=this.order.lineItems.find(n=>n.id===t.id);if(a){let n={...a};n.quantity=t.quantity,n.total_amount=n.unit_price*n.quantity,n.total_tax_amount=n.total_amount-n.total_amount/(1+n.tax_rate/100),e.orderLines.push(n)}}}),this.remainingAmount({id:t.id,quantity:t.quantity-(t.customFields?.payone_captured_quantity??0),unit_price:t.unitPrice,selected:!1})),this.executeCapture(e)},executeCapture(e){this.PayonePaymentService.capturePayment(e).then(()=>{this.createNotificationSuccess({title:this.$tc("sw-order.payone-payment.capture.successTitle"),message:this.$tc("sw-order.payone-payment.capture.successMessage")}),this.isCaptureSuccessful=!0}).catch(t=>{this.createNotificationError({title:this.$tc("sw-order.payone-payment.capture.errorTitle"),message:t.message}),this.isCaptureSuccessful=!1}).finally(()=>{this.isLoading=!1,this.closeCaptureModal(),this.$nextTick().then(()=>{this.$emit("reload")})})}},watch:{items:{handler(){this.calculateActionAmount()},deep:!0}}}});var se,re=i(()=>{se=`{% block payone_payment_details %} -
- - - - - -
-{% endblock %} -`});var le=i(()=>{});var ce={};r(ce,{default:()=>yt});var mt,yt,de=i(()=>{re();le();({Filter:mt}=Shopware),yt={template:se,props:{items:{type:Array,required:!0},order:{type:Object,required:!0}},computed:{currencyFilter:()=>mt.getByName("currency"),orderItemColumns(){return[{property:"product",label:this.$tc("sw-order.payone-payment.modal.columns.product"),rawData:!0},{property:"quantity",label:this.$tc("sw-order.payone-payment.modal.columns.quantity"),rawData:!0},{property:"price",label:this.$tc("sw-order.payone-payment.modal.columns.price"),rawData:!0}]}},methods:{updateSelection(e){let t=Object.keys(e);this.items.forEach(a=>{a.selected=t.includes(a.id)})}}}});var ue,pe=i(()=>{ue=`{% block payone_payment_management %} -
- -
-{% endblock %} -`});var me=i(()=>{});var ye={};r(ye,{default:()=>bt});var ft,gt,m,bt,he=i(()=>{pe();me();({Mixin:ft,Filter:gt}=Shopware),{Criteria:m}=Shopware.Data,bt={template:ue,inject:["acl","PayonePaymentService","repositoryFactory"],mixins:[ft.getByName("notification")],props:{order:{type:Object,required:!0}},data(){return{notificationForwards:null}},computed:{dateFilter(){return gt.getByName("date")},payoneTransactions:function(){return this.order.transactions.filter(e=>this.isPayoneTransaction(e)).sort((e,t)=>e.createdAtt.createdAt?-1:0)},notificationForwardRepository(){return this.repositoryFactory.create("payone_payment_notification_forward")},notificationTargetColumns(){return[{property:"txaction",type:"text",width:"100px"},{property:"notificationTarget.url",type:"text"},{property:"response",width:"100px"},{property:"updatedAt",align:"right",type:"date"}]}},methods:{isPayoneTransaction(e){return!e.extensions||!e.extensions.payonePaymentOrderTransactionData||!e.extensions.payonePaymentOrderTransactionData.transactionId?!1:e.extensions.payonePaymentOrderTransactionData.transactionId},isActiveTransaction(e){return e.stateMachineState.technicalName!=="cancelled"},hasNotificationForwards(e){return this.notificationForwards===null?(this.getNotificationForwards(e),!1):this.notificationForwards.length>0},getNotificationForwards(e){let t=new m;return t.addAssociation("notificationTarget"),t.addSorting(m.sort("updatedAt","DESC",!0)),t.addFilter(m.equals("transactionId",e.id)),t.setLimit(500),this.notificationForwardRepository.search(t,Shopware.Context.api).then(a=>{this.notificationForwards=a})},requeue(e,t){let a={notificationForwardId:e.id};this.PayonePaymentService.requeueNotificationForward(a).then(()=>{this.createNotificationSuccess({title:this.$tc("payonePayment.notificationTarget.actions.requeue"),message:this.$tc("payonePayment.notificationTarget.messages.success")}),this.getNotificationForwards(t)}).catch(n=>{this.createNotificationError({title:this.$tc("payonePayment.notificationTarget.actions.requeue"),message:n.message})}).finally(()=>{this.$nextTick().then(()=>{this.$emit("reload")})})},can(e){try{return this.acl.can(e)}catch{return!0}},reloadEntityData(){this.$emit("reload-entity-data")},getPayoneCardType(e){let t=e.extensions.payonePaymentOrderTransactionData?.additionalData?.card_type;return t?this.$tc("sw-order.payone-payment.creditCard.cardTypes."+t):null}}}});var ge,fe=i(()=>{ge=`{% block payone_payment_order_action_log %} - - - - - - - - - - - - - - - -{% endblock %} -`});var be={};r(be,{default:()=>_t});var y,d,_t,we=i(()=>{fe();({Criteria:y}=Shopware.Data),{Filter:d}=Shopware,_t={template:ge,inject:["repositoryFactory"],props:{order:{type:Object,required:!0}},data(){return{orderActionLogs:[],isLoading:!1,showRequestDetails:null,showResponseDetails:null}},computed:{orderActionLogRepository(){return this.repositoryFactory.create("payone_payment_order_action_log")},dateFilter(){return d.getByName("date")},currencyFilter(){return d.getByName("currency")},assetFilter(){return d.getByName("asset")},payoneCurrencyFilter(){return d.getByName("payone_currency")},orderActionLogColumns(){return[{property:"transactionId",label:this.$tc("sw-order.payone-payment.orderActionLog.columnTitleTransactionId")},{property:"request",label:this.$tc("sw-order.payone-payment.orderActionLog.columnTitleRequest")},{property:"response",label:this.$tc("sw-order.payone-payment.orderActionLog.columnTitleResponse")},{property:"amount",label:this.$tc("sw-order.payone-payment.orderActionLog.columnTitleAmount")},{property:"requestDateTime",label:this.$tc("sw-order.payone-payment.orderActionLog.columnTitleRequestDateTime")}]},keyValueColumns(){return[{property:"key",label:this.$tc("sw-order.payone-payment.orderActionLog.columnTitleKey")},{property:"value",label:this.$tc("sw-order.payone-payment.orderActionLog.columnTitleValue")}]}},created(){this.createdComponent()},methods:{createdComponent(){this.getOrderActionLogs()},reloadActionLogs(){this.getOrderActionLogs()},getOrderActionLogs(){let e=new y;return e.addFilter(y.equals("orderId",this.order.id)),e.addSorting(y.sort("requestDateTime","ASC",!0)),this.isLoading=!0,this.orderActionLogRepository.search(e,Shopware.Context.api).then(t=>{this.orderActionLogs=t,this.isLoading=!1})},openRequest(e){this.showRequestDetails=e.requestDetails},openResponse(e){this.showResponseDetails=e.responseDetails},onCloseRequestModal(){this.showRequestDetails=null},onCloseResponseModal(){this.showResponseDetails=null},toKeyValueSource(e){let t=[];for(let a in e)t.push({key:a,value:e[a]});return t.sort((a,n)=>a.key.localeCompare(n.key)),t},downloadAsTxt(e,t,a){let n=document.createElement("a");n.href="data:text/plain;charset=utf-8,"+encodeURIComponent(JSON.stringify(e,null,4)),n.download=`PAYONE-${t}-${a}.txt`,n.dispatchEvent(new MouseEvent("click")),n.remove()}}}});var Pe,_e=i(()=>{Pe=`{% block payone_payment_webhook_log %} - - - - - - - - - - - - - -{% endblock %} -`});var Ae={};r(Ae,{default:()=>kt});var h,ke,kt,ve=i(()=>{_e();({Criteria:h}=Shopware.Data),{Filter:ke}=Shopware,kt={template:Pe,inject:["repositoryFactory"],props:{order:{type:Object,required:!0}},data(){return{webhookLogs:[],isLoading:!1,showWebhookDetails:null}},computed:{webhookLogRepository(){return this.repositoryFactory.create("payone_payment_webhook_log")},assetFilter(){return ke.getByName("asset")},dateFilter(){return ke.getByName("date")},webhookLogColumns(){return[{property:"transactionId",label:this.$tc("sw-order.payone-payment.webhookLog.columnTitleTransactionId")},{property:"transactionState",label:this.$tc("sw-order.payone-payment.webhookLog.columnTitleTransactionState")},{property:"sequenceNumber",label:this.$tc("sw-order.payone-payment.webhookLog.columnTitleSequenceNumber")},{property:"clearingType",label:this.$tc("sw-order.payone-payment.webhookLog.columnTitleClearingType")},{property:"webhookDateTime",label:this.$tc("sw-order.payone-payment.webhookLog.columnTitleWebhookDateTime")}]},keyValueColumns(){return[{property:"key",label:this.$tc("sw-order.payone-payment.webhookLog.columnTitleKey")},{property:"value",label:this.$tc("sw-order.payone-payment.webhookLog.columnTitleValue")}]}},created(){this.createdComponent()},methods:{createdComponent(){this.getWebhookLogs()},reloadWebhookLogs(){this.getWebhookLogs()},getWebhookLogs(){let e=new h;return e.addFilter(h.equals("orderId",this.order.id)),e.addSorting(h.sort("webhookDateTime","ASC",!0)),this.isLoading=!0,this.webhookLogRepository.search(e,Shopware.Context.api).then(t=>{this.webhookLogs=t,this.isLoading=!1})},openDetails(e){this.showWebhookDetails=e.webhookDetails},onCloseWebhookModal(){this.showWebhookDetails=null},toKeyValueSource(e){let t=[];for(let a in e)t.push({key:a,value:e[a]});return t.sort((a,n)=>a.key.localeCompare(n.key)),t},downloadAsTxt(e,t,a){let n=document.createElement("a");n.href="data:text/plain;charset=utf-8,"+encodeURIComponent(JSON.stringify(e,null,4)),n.download=`PAYONE-${t}-${a}.txt`,n.dispatchEvent(new MouseEvent("click")),n.remove()}}}});var Te,Se=i(()=>{Te=`{% block payone_payment_payment_details %} -
- - - {{ $tc('sw-order.payone-payment.refund.buttonTitle') }} - - - - - - -
- - - - - - -
- - -
-
-{% endblock %} -`});var Ce=i(()=>{});var Ie={};r(Ie,{default:()=>St});var vt,xe,St,Ee=i(()=>{Se();Ce();({Mixin:vt,Filter:xe}=Shopware),St={template:Te,mixins:[vt.getByName("notification")],inject:["PayonePaymentService"],props:{order:{type:Object,required:!0},transaction:{type:Object,required:!0}},data(){return{isLoading:!1,hasError:!1,showRefundModal:!1,isRefundSuccessful:!1,refundAmount:0,includeShippingCosts:!1,items:[]}},computed:{currencyFilter(){return xe.getByName("currency")},payoneCurrencyFilter(){return xe.getByName("payone_currency")},orderTotalPrice(){return this.transaction.amount.totalPrice},decimalPrecision(){if(!this.order||!this.order.currency)return 2;if(this.order.currency.decimalPrecision)return this.order.currency.decimalPrecision;if(this.order.currency.itemRounding)return this.order.currency.itemRounding.decimals},transactionData(){return this.transaction?.extensions?.payonePaymentOrderTransactionData??{capturedAmount:0,refundedAmount:0,allowRefund:!1}},capturedAmount(){return this.toFixedPrecision((this.transaction?.extensions?.payonePaymentOrderTransactionData?.capturedAmount??0)/100)},remainingAmount(){return(this.transactionData.capturedAmount??0)-(this.transactionData.refundedAmount??0)},refundedAmount(){return this.transactionData.refundedAmount??0},buttonEnabled(){return this.transaction?.extensions?.payonePaymentOrderTransactionData?this.remainingAmount>0||this.transactionData.allowRefund:!1},selectedItems(){return this.items.filter(e=>e.selected&&e.quantity>0)},hasRemainingRefundableShippingCosts(){return this.order.shippingCosts.totalPrice<=0?!1:this.toFixedPrecision(this.refundedAmount+this.order.shippingCosts.totalPrice)<=this.capturedAmount}},methods:{toFixedPrecision(e){return Math.round(e*10**this.decimalPrecision)/10**this.decimalPrecision},calculateActionAmount(){let e=0;this.selectedItems.forEach(t=>{e+=t.unit_price*t.quantity}),this.refundAmount=this.toFixedPrecision(e>this.remainingAmount?this.remainingAmount:e)},openRefundModal(){this.showRefundModal=!0,this.isRefundSuccessful=!1,this.initItems()},initItems(){this.items=this.order.lineItems.map(e=>{let t=this.getRefundableQuantityOfItem(e);return{id:e.id,quantity:t,maxQuantity:t,unit_price:e.unitPrice,selected:!1,product:e.label,disabled:t<=0}}),this.order.shippingCosts.totalPrice>0&&this.items.push({id:"shipping",quantity:1,maxQuantity:1,unit_price:this.order.shippingCosts.totalPrice,selected:!1,disabled:!1,product:this.$tc("sw-order.payone-payment.modal.shippingCosts")})},closeRefundModal(){this.showRefundModal=!1},onRefundFinished(){this.isRefundSuccessful=!1},refundOrder(){let e={orderTransactionId:this.transaction.id,payone_order_id:this.transaction.extensions.payonePaymentOrderTransactionData.transactionId,salesChannel:this.order.salesChannel,amount:this.refundAmount,orderLines:[],complete:this.refundAmount===this.maxRefundAmount,includeShippingCosts:!1};this.isLoading=!0,this.selectedItems.forEach(t=>{if(t.id==="shipping")e.includeShippingCosts=!0;else{let a=this.order.lineItems.find(n=>n.id===t.id);if(a){let n={...a};n.quantity=t.quantity,n.total_amount=n.unit_price*n.quantity,n.total_tax_amount=n.total_amount-n.total_amount/(1+n.tax_rate/100),e.orderLines.push(n)}}}),this.remainingAmount({id:t.id,quantity:this.getRefundableQuantityOfItem(t),unit_price:t.unitPrice,selected:!1})),this.executeRefund(e)},executeRefund(e){this.PayonePaymentService.refundPayment(e).then(()=>{this.createNotificationSuccess({title:this.$tc("sw-order.payone-payment.refund.successTitle"),message:this.$tc("sw-order.payone-payment.refund.successMessage")}),this.isRefundSuccessful=!0}).catch(t=>{this.createNotificationError({title:this.$tc("sw-order.payone-payment.refund.errorTitle"),message:t.message}),this.isRefundSuccessful=!1}).finally(()=>{this.isLoading=!1,this.closeRefundModal(),this.$nextTick().then(()=>{this.$emit("reload")})})}},watch:{items:{handler(){this.calculateActionAmount()},deep:!0}}}});var De,$e=i(()=>{De=`{% block sw_order_detail_payone %} -
- {% block sw_order_detail_payone_general %} - - {% endblock %} - - {% block sw_order_detail_payone_order_action_log %} - - {% endblock %} - - {% block sw_order_detail_payone_webhook_log %} - - {% endblock %} -
-{% endblock %} -`});var Le={};r(Le,{default:()=>It});var Ct,xt,It,Ne=i(()=>{$e();({Component:Ct}=Shopware),{mapState:xt}=Ct.getComponentHelper(),It={template:De,props:{orderId:{type:String,required:!0}},computed:{...xt("swOrderDetail",["order"])},methods:{reloadEntityData(){this.$refs.payoneOrderActionLogs.reloadActionLogs(),this.$refs.payoneWebhookLogs.reloadWebhookLogs(),this.$emit("reload-entity-data")}}}});var Re,Oe=i(()=>{Re=`{% block sw_order_detail_content_tabs_extension %} - {% parent %} - - {% block sw_order_detail_content_tabs_payone %} - - {{ $tc('sw-order.detail.payone') }} - - {% endblock %} - -{% endblock %}`});var Fe={};r(Fe,{default:()=>$t});var $t,Me=i(()=>{Oe();$t={template:Re,methods:{hasPayoneTransaction(e){let t=this,a=!1;return e.transactions?(e.transactions.map(function(n){t.isPayoneTransaction(n)&&t.isActiveTransaction(n)&&(a=!0)}),a):!1},isPayoneTransaction(e){return!e.extensions||!e.extensions.payonePaymentOrderTransactionData||!e.extensions.payonePaymentOrderTransactionData.transactionId?!1:e.extensions.payonePaymentOrderTransactionData.transactionId},isActiveTransaction(e){return e.stateMachineState.technicalName!=="cancelled"}}}});var w={"payone-payment":{title:"PAYONE",general:{mainMenuItemGeneral:"PAYONE",descriptionTextModule:"Einstellungen f\xFCr PAYONE",headlines:{ratepayProfiles:"Profile",ratepayProfileConfigurations:"Profile Konfigurationen"},label:{shopId:"Shop-ID",currency:"W\xE4hrung",error:"Status",invoiceCountry:"Rechnungsland",shippingCountry:"Lieferland",minBasket:"Min. Warenkorb",maxBasket:"Max. Warenkorb",reloadConfigInfo:"Profile-Konfigurationen werden beim Speichern der Plugin-Einstellungen automatisch aktualisiert."},actions:{addShop:"Shop-ID hinzuf\xFCgen"},errors:{existingShopId:"Die eingegebene ShopId existiert bereits.",emptyInputs:"Bitte f\xFCllen Sie alle Eingabefelder aus."}},settingsForm:{save:"Speichern",test:"API-Zugangsdaten testen",titleSuccess:"Erfolg",titleError:"Fehler",labelShowSpecificStatusMapping:"Statusmappingkonfiguration einblenden",helpTextShowSpecificStatusMapping:"Sie k\xF6nnen f\xFCr jede Zahlungsart ein spezifisches Statusmapping konfigurieren. Existiert eine solche Konfiguration nicht, wird auf die allgemeine Konfiguration zur\xFCckgegriffen.",messageSaveError:{ratepayProfilesUpdateFailed:"Mindestens ein Ratepay Profil konnte nicht erfolgreich gespeichert werden, bitte pr\xFCfen Sie Ihre Konfiguration."},messageTestSuccess:"Die API-Zugangsdaten wurden erfolgreich validiert.",messageTestNoTestedPayments:"Bei der Pr\xFCfung wurden keine Zahlarten getestet, weil keine der PAYONE Zahlarten aktiviert ist. Bitte aktivieren Sie mindestens eine PAYONE Zahlart unter Einstellungen --> Shop --> Zahlungsarten.",messageTestError:{general:"Die API-Zugangsdaten konnten nicht validiert werden.",creditCard:"Die API-Zugangsdaten f\xFCr PAYONE Kreditkarte sind nicht korrekt.",prepayment:"Die API-Zugangsdaten f\xFCr PAYONE Vorkasse sind nicht korrekt.",debit:"Die API-Zugangsdaten f\xFCr PAYONE Lastschrift sind nicht korrekt.",paypalExpress:"Die API-Zugangsdaten f\xFCr PAYONE PayPal Express sind nicht korrekt.",paypal:"Die API-Zugangsdaten f\xFCr PAYONE PayPal sind nicht korrekt.",payolutionInstallment:"Die API-Zugangsdaten f\xFCr PAYONE Unzer Ratenkauf sind nicht korrekt.",payolutionInvoicing:"Die API-Zugangsdaten f\xFCr PAYONE Unzer Rechnungskauf sind nicht korrekt.",payolutionDebit:"Die API-Zugangsdaten f\xFCr PAYONE Unzer Lastschrift sind nicht korrekt.",sofort:"Die API-Zugangsdaten f\xFCr PAYONE Sofort \xDCberweisung sind nicht korrekt.",eps:"Die API-Zugangsdaten f\xFCr PAYONE eps \xDCberweisung sind nicht korrekt.",iDeal:"Die API-Zugangsdaten f\xFCr PAYONE iDEAL sind nicht korrekt.",secureInvoice:"Die API-Zugangsdaten f\xFCr PAYONE Gesicherter Rechnungskauf sind nicht korrekt.",openInvoice:"Die API-Zugangsdaten f\xFCr PAYONE Rechnungskauf sind nicht korrekt.",paydirekt:"Die API-Zugangsdaten f\xFCr PAYONE paydirekt sind nicht korrekt.",trustly:"Die API-Zugangsdaten f\xFCr PAYONE Trustly sind nicht korrekt.",applePay:"Die API-Zugangsdaten f\xFCr PAYONE Apple Pay sind nicht korrekt.",bancontact:"Die API-Zugangsdaten f\xFCr PAYONE Bancontact sind nicht korrekt.",ratepayDebit:"Die API-Zugangsdaten f\xFCr PAYONE Ratepay Lastschrift sind nicht korrekt.",ratepayInstallment:"Die API-Zugangsdaten f\xFCr PAYONE Ratepay Ratenzahlung sind nicht korrekt.",ratepayInvoicing:"Die API-Zugangsdaten f\xFCr PAYONE Ratepay Rechnungskauf sind nicht korrekt.",klarnaInvoice:"Die API-Zugangsdaten f\xFCr PAYONE Klarna Rechnung sind nicht korrekt.",klarnaDirectDebit:"Die API-Zugangsdaten f\xFCr PAYONE Klarna Sofort bezahlen sind nicht korrekt.",klarnaInstallment:"Die API-Zugangsdaten f\xFCr PAYONE Klarna Ratenkauf sind nicht korrekt.",przelewy24:"Die API-Zugangsdaten f\xFCr PAYONE Przelewy24 sind nicht korrekt.",weChatPay:"Die API-Zugangsdaten f\xFCr PAYONE WeChat Pay sind nicht korrekt.",postfinanceCard:"Die API-Zugangsdaten f\xFCr PAYONE Postfinance (Card) sind nicht korrekt.",postfinanceWallet:"Die API-Zugangsdaten f\xFCr PAYONE Postfinance (Wallet) sind nicht korrekt.",alipay:"Die API-Zugangsdaten f\xFCr PAYONE Alipay sind nicht korrekt.",securedInvoice:"Die API-Zugangsdaten f\xFCr PAYONE Gesicherter Rechnungskauf sind nicht korrekt.",securedInstallment:"Die API-Zugangsdaten f\xFCr PAYONE Gesicherter Ratenkauf sind nicht korrekt.",securedDirectDebit:"Die API-Zugangsdaten f\xFCr PAYONE Gesicherte Lastschrift sind nicht korrekt.",amazonPay:"Die API-Zugangsdaten f\xFCr PAYONE Amazon Pay sind nicht korrekt.",amazonPayExpress:"Die API-Zugangsdaten f\xFCr PAYONE Amazon Pay sind nicht korrekt."}},supportModal:{menuButton:"Support",title:"Wie k\xF6nnen wir Ihnen helfen?",documentation:{description:"Lesen Sie unsere Online-Dokumentation",button:"Dokumentation"},support:{description:"Kontaktieren Sie unseren Support",button:"Technischer Support"},repository:{description:"Melden Sie Fehler und Verbesserungen",button:"GitHub"},testdata:{description:"Erstellen Sie hier Ihre pers\xF6nlichen Testdaten",button:"Testdaten"}},applePay:{cert:{notification:`F\xFCr die Nutzung von ApplePay ist ein Zertifikat/Key-Paar zur Authentifizierung des Merchants erforderlich. Die Anlage eines solchen Zertifikats wird hier beschrieben:
- https://docs.payone.com/display/public/PLATFORM/Special+Remarks+-+Apple+Pay#SpecialRemarks-ApplePay-Onboarding

- - Erstellen Sie im Anschluss unter Verwendung des folgenden Befehls eine PEM-Datei des Zertifikates:
-
openssl x509 -inform der -in merchant_id.cer -out merchant_id.pem

- Hinterlegen Sie das Zertifikat (merchant_id.pem) und den Key (merchant_id.key) in folgendem Verzeichnis:
-
%shopwareRoot%/config/apple-pay-cert
`}},transitionActionNames:{cancel:"Stornieren",complete:"Abschlie\xDFen",pay:"Bezahlen",pay_partially:"Teilweise bezahlen",process:"Durchf\xFChren",refund:"R\xFCckerstatten",refund_partially:"Teilweise r\xFCckerstatten",remind:"Erinnern",reopen:"Wieder \xF6ffnen",retour:"Retoure",retour_partially:"Teilweise retounieren",ship:"Versenden",ship_partially:"Teilweise versenden"},messageNotBlank:"Dieser Wert darf nicht leer sein.",error:{transaction:{notFound:"Es wurde keine passende Transaktion gefundend",orderNotFound:"Es wurde keine passende Bestellung gefundend"}}},"sw-privileges":{additional_permissions:{Payone:{label:"PAYONE",payone_order_management:"PAYONE Transaktionsmanagement"}}}};var _={"payone-payment":{title:"PAYONE",general:{mainMenuItemGeneral:"PAYONE",descriptionTextModule:"Settings for PAYONE",headlines:{ratepayProfiles:"Profile",ratepayProfileConfigurations:"Profile configuration"},label:{shopId:"Shop-ID",currency:"Currency",error:"Status",invoiceCountry:"Invoice Country",shippingCountry:"Shipping Country",minBasket:"Min. Basket",maxBasket:"Max. Basket",reloadConfigInfo:"Profile-Configuration got automatically updated during saving the plugin configuration"},actions:{addShop:"Add Shop-ID"},errors:{existingShopId:"The entered shop-id already exists.",emptyInputs:"Please fill all input fields."}},settingsForm:{save:"Save",test:"Test API Credentials",titleSuccess:"Success",titleError:"Error",labelShowSpecificStatusMapping:"Display state mapping configuration",helpTextShowSpecificStatusMapping:"If not configured the general status mapping config will be applied.",messageSaveError:{ratepayProfilesUpdateFailed:"At least one Ratepay profile could not be saved successfully, please check your configuration."},messageTestSuccess:"The API credentials were verified successfully.",messageTestNoTestedPayments:"No payment methods were tested during the check because none of the PAYONE payment methods are activated. Please activate at least one PAYONE payment method under Settings --> Shop --> Payment.",messageTestError:{general:"The API credentials could not be verified successfully.",creditCard:"The API credentials for PAYONE Credit Card are not valid.",prepayment:"The API credentials for PAYONE Prepayment are not valid.",debit:"The API credentials for PAYONE Direct Debit are not valid.",paypalExpress:"The API credentials for PAYONE PayPal Express are not valid.",paypal:"The API credentials for PAYONE PayPal are not valid.",payolutionInstallment:"The API credentials for PAYONE Unzer Ratenkauf are not valid.",payolutionInvoicing:"The API credentials for PAYONE Unzer Rechnungskauf are not valid.",payolutionDebit:"The API credentials for PAYONE Unzer Lastschrift are not valid.",sofort:"The API credentials for PAYONE Sofort are not valid.",eps:"The API credentials for PAYONE eps are not valid.",iDeal:"The API credentials for PAYONE iDEAL are not valid.",secureInvoice:"The API credentials for PAYONE Secure Invoice are not valid.",openInvoice:"The API credentials for PAYONE Invoice are not valid.",paydirekt:"The API credentials for PAYONE paydirekt are not valid.",trustly:"The API credentials for PAYONE Trustly are not valid.",applePay:"The API credentials for PAYONE Apple Pay are not valid.",bancontact:"The API credentials for PAYONE Bancontact payment are not valid.",ratepayDebit:"The API credentials for PAYONE Ratepay Direct Debit payment are not valid.",ratepayInstallment:"The API credentials for PAYONE Ratepay Installments payment are not valid.",ratepayInvoicing:"The API credentials for PAYONE Ratepay Open Invoice payment are not valid.",klarnaInvoice:"The API credentials for PAYONE Klarna Rechnung are not valid.",klarnaDirectDebit:"The API credentials for PAYONE Klarna Sofort bezahlen are not valid.",klarnaInstallment:"The API credentials for PAYONE Klarna Ratenkauf are not valid.",przelewy24:"The API credentials for PAYONE Przelewy24 are not valid.",weChatPay:"The API credentials for PAYONE WeChat Pay are not valid.",postfinanceCard:"The API credentials for PAYONE Postfinance (Card) are not valid.",postfinanceWallet:"The API credentials for PAYONE Postfinance (Wallet) are not valid.",alipay:"The API credentials for PAYONE Alipay are not valid.",securedInvoice:"The API credentials for PAYONE Secured Invoice are not valid.",securedInstallment:"The API credentials for PAYONE Secured Installment are not valid.",securedDirectDebit:"The API credentials for PAYONE Secured Direct Debit are not valid.",amazonPay:"The API credentials for PAYONE Amazon pay are not valid.",amazonPayExpress:"The API credentials for PAYONE Amazon pay are not valid."}},supportModal:{menuButton:"Support",title:"How Can We Help You?",documentation:{description:"Read our online manual",button:"Online Manual"},support:{description:"Contact our technical support",button:"Tech Support"},repository:{description:"Report errors on GitHub",button:"GitHub"},testdata:{description:"Create your personal test data here",button:"Test Data"}},applePay:{cert:{notification:`The ApplePay merchant authentication requires a certificate/key-pair. Further information:
- https://docs.payone.com/display/public/PLATFORM/Special+Remarks+-+Apple+Pay#SpecialRemarks-ApplePay-Onboarding

- - Create a pem-File afterwards by using the following command:
-
openssl x509 -inform der -in merchant_id.cer -out merchant_id.pem

- Copy certificate (merchant_id.pem) and key (merchant_id.key) file into the following folder:
-
%shopwareRoot%/config/apple-pay-cert
`}},transitionActionNames:{cancel:"Cancel",complete:"Complete",pay:"Pay",pay_partially:"Pay partially",process:"Process",refund:"Refund",refund_partially:"Refund partially",remind:"Remind",reopen:"Reopen",retour:"Retour",retour_partially:"Retour partially",ship:"Ship",ship_partially:"Ship partially"},messageNotBlank:"This field must not be empty.",error:{transaction:{notFound:"No matching transaction could be found",orderNotFound:"No matching order could be found"}}},"sw-privileges":{additional_permissions:{Payone:{label:"PAYONE",payone_order_management:"PAYONE transaction management"}}}};var{Filter:P}=Shopware;P.register("payone_currency",(e,t,a)=>e===null?"-":(e/=100,P.getByName("currency")(e,t,a)));var{Component:Ze,Utils:k}=Shopware;Ze.extend("payone-payment-settings","sw-system-config",{inject:["PayonePaymentSettingsService"],methods:{_getShowPaymentStatusFieldsFieldName(e){return`PayonePayment.settings.${e}_show_status_mapping`},async readConfig(){this.stateMaschineOptions=await this.PayonePaymentSettingsService.getStateMachineTransitionActions().then(e=>e.data.map(t=>{let a=`payone-payment.transitionActionNames.${t.label}`,n=this.$t(a);return n===a&&(n=t.label),{id:t.value,name:n}})),await this.$super("readConfig"),this.config.forEach(e=>{let t=e.name.match(/^payment_(.*)$/),a=t?t[1]:null;a&&(this.addApiConfigurationFieldsToPaymentSettingCard(e,a),this.addPaymentStatusFieldsToPaymentSettingCard(e,a)),(e.name.startsWith("payment_")||e.name==="status_mapping")&&(e.setShowFields=n=>{e.showFields=n,e.elements.forEach(o=>{o.hidden=!n}),this.showPaymentStatusFieldsBasedOnToggle(e)},e.setShowFields(!1))})},addApiConfigurationFieldsToPaymentSettingCard(e,t){let a=["merchantId","accountId","portalId","portalKey"],n=this.config.find(s=>s.name==="basic_configuration"),o=[];n.elements.forEach(s=>{let l=s.name.match(/\.([^.]+)$/),c=l?l[1]:null;if(!c||!a.includes(c))return;let u=k.object.cloneDeep(s);u.name=s.name.replace("."+c,"."+t+(c[0].toUpperCase()+c.slice(1))),u.config.helpText={"en-GB":"The basic configuration value is used, if nothing is entered here.","de-DE":"Es wird der Wert aus der Grundeinstellung verwendet, wenn hier kein Wert eingetragen ist."},o.push(u)}),e.elements=o.concat(e.elements)},addPaymentStatusFieldsToPaymentSettingCard(e,t){e.elements.push({config:{componentName:"sw-switch-field",label:{"en-GB":"Display state mapping configuration","de-DE":"Statusmappingkonfiguration einblenden"},helpText:{"en-GB":"If not configured the general status mapping config will be applied.","de-DE":"Sie k\xF6nnen f\xFCr jede Zahlungsart ein spezifisches Statusmapping konfigurieren. Existiert eine solche Konfiguration nicht, wird auf die allgemeine Konfiguration zur\xFCckgegriffen."}},name:this._getShowPaymentStatusFieldsFieldName(e.name)}),this.config.find(n=>n.name==="status_mapping").elements.forEach(n=>{let o=k.object.cloneDeep(n);o.name=n.name.replace(".paymentStatus",`.${t}PaymentStatus`),e.elements.push(o)})},getElementBind(e,t){let a=this.$super("getElementBind",e,t);return(e.name.includes("PaymentStatus")||e.name.includes(".paymentStatus"))&&(a.config.options=this.stateMaschineOptions),a},getInheritWrapperBind(e){let t=this.$super("getInheritWrapperBind",e);return t.hidden=e.hidden,t},showPaymentStatusFieldsBasedOnToggle(e){let t=this.actualConfigData[this.currentSalesChannelId];if(!t)return;let a=t[this._getShowPaymentStatusFieldsFieldName(e.name)];e.elements.forEach(n=>{n.name.includes("PaymentStatus")&&(n.hidden=!a)})},emitConfig(){this.config.forEach(e=>this.showPaymentStatusFieldsBasedOnToggle(e)),this.$super("emitConfig")}}});Shopware.Component.register("payone-payment-plugin-icon",()=>Promise.resolve().then(()=>(C(),T)));Shopware.Component.register("payone-ratepay-profile-configurations",()=>Promise.resolve().then(()=>(D(),$)));Shopware.Component.register("payone-ratepay-profiles",()=>Promise.resolve().then(()=>(F(),R)));Shopware.Component.register("payone-settings",()=>Promise.resolve().then(()=>(G(),z)));Shopware.Module.register("payone-payment",{type:"plugin",name:"PayonePayment",title:"payone-payment.general.mainMenuItemGeneral",description:"payone-payment.general.descriptionTextModule",version:"1.0.0",targetVersion:"1.0.0",icon:"regular-cog",snippets:{"de-DE":w,"en-GB":_},routeMiddleware(e,t){e(t)},routes:{index:{component:"payone-settings",path:"index",meta:{parentPath:"sw.settings.index"}}},settingsItem:[{name:"payone-payment",to:"payone.payment.index",label:"payone-payment.general.mainMenuItemGeneral",group:"plugins",iconComponent:"payone-payment-plugin-icon",backgroundEnabled:!1}]});var Z={payonePayment:{notificationTarget:{module:{title:"Payone Notificationweiterleitungen",buttonTitle:"Notifications"},list:{title:"Notificationweiterleitungen",empty:"Keine Eintr\xE4ge",buttonCreate:"Weiterleitungsziel anlegen"},detail:{headline:"Notificationweiterleitung",placeholder:{url:"Url",username:"Benutzer",password:"Passwort"},label:{url:"Url",isBasicAuth:"Basic Auth",txactions:"txactions",buttonSave:"Speichern",buttonCancel:"Abbrechen",username:"Benutzer",password:"Passwort"}},columns:{url:"Url",isBasicAuth:"Basic Auth",txactions:"txactions"},actions:{requeue:"Erneut senden"},messages:{success:"Die Weiterleitung wurde erfolgreich in Auftrag gegeben."}}}};var W={payonePayment:{notificationTarget:{module:{title:"Payone notification forward",buttonTitle:"Notifications"},list:{title:"Notification forward",empty:"No entries",buttonCreate:"Add new notification target"},detail:{headline:"Notification forward",placeholder:{url:"Url",username:"Username",password:"Password"},label:{url:"Url",isBasicAuth:"Basic Auth",txactions:"txactions",buttonSave:"Save",buttonCancel:"Cancel",username:"Username",password:"Password"}},columns:{url:"Url",isBasicAuth:"Basic Auth",txactions:"txactions"},actions:{requeue:"Requeue"},messages:{success:"The notification forward has been successfully queued."}}}};Shopware.Component.register("payone-notification-target-detail",Promise.resolve().then(()=>(j(),V)));Shopware.Component.register("payone-notification-target-list",Promise.resolve().then(()=>(X(),J)));Shopware.Module.register("payone-notification-target",{type:"plugin",name:"PayoneNotificationTarget",title:"payonePayment.notificationTarget.module.title",description:"payonePayment.notificationTarget.module.title",icon:"regular-cog",snippets:{"de-DE":Z,"en-GB":W},routes:{list:{component:"payone-notification-target-list",path:"list"},detail:{component:"payone-notification-target-detail",path:"detail/:id",props:{default(e){return{notificationTargetId:e.params.id}}},meta:{parentPath:"payone.notification.target.list"}},create:{component:"payone-notification-target-detail",path:"create",meta:{parentPath:"payone.notification.target.list"}}}});Shopware.Component.register("payone-capture-button",()=>Promise.resolve().then(()=>(oe(),ie)));Shopware.Component.register("payone-order-items",()=>Promise.resolve().then(()=>(de(),ce)));Shopware.Component.register("payone-payment-management",()=>Promise.resolve().then(()=>(he(),ye)));Shopware.Component.register("payone-payment-order-action-log",()=>Promise.resolve().then(()=>(we(),be)));Shopware.Component.register("payone-payment-webhook-log",()=>Promise.resolve().then(()=>(ve(),Ae)));Shopware.Component.register("payone-refund-button",()=>Promise.resolve().then(()=>(Ee(),Ie)));Shopware.Component.register("sw-order-detail-payone",()=>Promise.resolve().then(()=>(Ne(),Le)));Shopware.Component.override("sw-order-detail",()=>Promise.resolve().then(()=>(Me(),Fe)));Shopware.Module.register("sw-order-detail-tab-payone",{routeMiddleware(e,t){t.name==="sw.order.detail"&&t.children.push({name:"sw.order.detail.payone",path:"payone",component:"sw-order-detail-payone",meta:{parentPath:"sw.order.detail",meta:{parentPath:"sw.order.index",privilege:"order.viewer"}}}),e(t)}});var{Application:qe}=Shopware,p=Shopware.Classes.ApiService,f=class extends p{constructor(t,a,n="payone"){super(t,a,n)}requeueNotificationForward(t){let a=`_action/${this.getApiBasePath()}/requeue-forward`;return this.httpClient.post(a,t,{headers:this.getBasicHeaders()}).then(n=>p.handleResponse(n))}capturePayment(t){let a=`_action/${this.getApiBasePath()}/capture-payment`;return this.httpClient.post(a,t,{headers:this.getBasicHeaders()}).then(n=>p.handleResponse(n))}refundPayment(t){let a=`_action/${this.getApiBasePath()}/refund-payment`;return this.httpClient.post(a,t,{headers:this.getBasicHeaders()}).then(n=>p.handleResponse(n))}};qe.addServiceProvider("PayonePaymentService",e=>{let t=qe.getContainer("init");return new f(t.httpClient,e.loginService)});var{Application:Be}=Shopware,g=Shopware.Classes.ApiService,b=class extends g{constructor(t,a,n="payone_payment"){super(t,a,n)}validateApiCredentials(t){let a=this.getBasicHeaders();return this.httpClient.post(`_action/${this.getApiBasePath()}/validate-api-credentials`,{credentials:t},{headers:a}).then(n=>g.handleResponse(n))}getStateMachineTransitionActions(){let t=this.getBasicHeaders();return this.httpClient.get(`_action/${this.getApiBasePath()}/get-state-machine-transition-actions`,{headers:t}).then(a=>g.handleResponse(a))}hasApplePayCert(){let t=this.getBasicHeaders();return this.httpClient.get(`_action/${this.getApiBasePath()}/check-apple-pay-cert`,{headers:t}).catch(()=>!1).then(a=>!!a)}};Be.addServiceProvider("PayonePaymentSettingsService",e=>{let t=Be.getContainer("init");return new b(t.httpClient,e.loginService)});try{Shopware.Service("privileges").addPrivilegeMappingEntry({category:"additional_permissions",parent:null,key:"Payone",roles:{payone_order_management:{privileges:["order_transaction:update","order_line_item:update","state_machine_history:create",Shopware.Service("privileges").getPrivileges("order.viewer")],dependencies:[]}}})}catch{}})(); +(function(){var e,t,n,a,i,r,o,s,l,d,p,c,u={352:function(){try{Shopware.Service("privileges").addPrivilegeMappingEntry({category:"additional_permissions",parent:null,key:"Payone",roles:{payone_order_management:{privileges:["order_transaction:update","order_line_item:update","state_machine_history:create",Shopware.Service("privileges").getPrivileges("order.viewer")],dependencies:[]}}})}catch(e){}},309:function(){let{Application:e}=Shopware,t=Shopware.Classes.ApiService;class n extends t{constructor(e,t,n="payone_payment"){super(e,t,n)}validateApiCredentials(e){let n=this.getBasicHeaders();return this.httpClient.post(`_action/${this.getApiBasePath()}/validate-api-credentials`,{credentials:e},{headers:n}).then(e=>t.handleResponse(e))}getStateMachineTransitionActions(){let e=this.getBasicHeaders();return this.httpClient.get(`_action/${this.getApiBasePath()}/get-state-machine-transition-actions`,{headers:e}).then(e=>t.handleResponse(e))}hasApplePayCert(){let e=this.getBasicHeaders();return this.httpClient.get(`_action/${this.getApiBasePath()}/check-apple-pay-cert`,{headers:e}).catch(()=>!1).then(e=>!!e)}}e.addServiceProvider("PayonePaymentSettingsService",t=>new n(e.getContainer("init").httpClient,t.loginService))},437:function(){let{Application:e}=Shopware,t=Shopware.Classes.ApiService;class n extends t{constructor(e,t,n="payone"){super(e,t,n)}requeueNotificationForward(e){let n=`_action/${this.getApiBasePath()}/requeue-forward`;return this.httpClient.post(n,e,{headers:this.getBasicHeaders()}).then(e=>t.handleResponse(e))}capturePayment(e){let n=`_action/${this.getApiBasePath()}/capture-payment`;return this.httpClient.post(n,e,{headers:this.getBasicHeaders()}).then(e=>t.handleResponse(e))}refundPayment(e){let n=`_action/${this.getApiBasePath()}/refund-payment`;return this.httpClient.post(n,e,{headers:this.getBasicHeaders()}).then(e=>t.handleResponse(e))}}e.addServiceProvider("PayonePaymentService",t=>new n(e.getContainer("init").httpClient,t.loginService))},38:function(){let{Component:e,Utils:t}=Shopware;e.extend("payone-payment-settings","sw-system-config",{inject:["PayonePaymentSettingsService"],methods:{_getShowPaymentStatusFieldsFieldName(e){return`PayonePayment.settings.${e}_show_status_mapping`},async readConfig(){this.stateMaschineOptions=await this.PayonePaymentSettingsService.getStateMachineTransitionActions().then(e=>e.data.map(e=>{let t=`payone-payment.transitionActionNames.${e.label}`,n=this.$t(t);return n===t&&(n=e.label),{id:e.value,name:n}})),await this.$super("readConfig"),this.config.forEach(e=>{let t=e.name.match(/^payment_(.*)$/),n=t?t[1]:null;n&&(this.addApiConfigurationFieldsToPaymentSettingCard(e,n),this.addPaymentStatusFieldsToPaymentSettingCard(e,n)),(e.name.startsWith("payment_")||"status_mapping"===e.name)&&(e.setShowFields=t=>{e.showFields=t,e.elements.forEach(e=>{e.hidden=!t}),this.showPaymentStatusFieldsBasedOnToggle(e)},e.setShowFields(!1))})},addApiConfigurationFieldsToPaymentSettingCard(e,n){let a=["merchantId","accountId","portalId","portalKey"],i=this.config.find(e=>"basic_configuration"===e.name),r=[];i.elements.forEach(e=>{let i=e.name.match(/\.([^.]+)$/),o=i?i[1]:null;if(!o||!a.includes(o))return;let s=t.object.cloneDeep(e);s.name=e.name.replace("."+o,"."+n+(o[0].toUpperCase()+o.slice(1))),s.config.helpText={"en-GB":"The basic configuration value is used, if nothing is entered here.","de-DE":"Es wird der Wert aus der Grundeinstellung verwendet, wenn hier kein Wert eingetragen ist."},r.push(s)}),e.elements=r.concat(e.elements)},addPaymentStatusFieldsToPaymentSettingCard(e,n){e.elements.push({config:{componentName:"sw-switch-field",label:{"en-GB":"Display state mapping configuration","de-DE":"Statusmappingkonfiguration einblenden"},helpText:{"en-GB":"If not configured the general status mapping config will be applied.","de-DE":"Sie k\xf6nnen f\xfcr jede Zahlungsart ein spezifisches Statusmapping konfigurieren. Existiert eine solche Konfiguration nicht, wird auf die allgemeine Konfiguration zur\xfcckgegriffen."}},name:this._getShowPaymentStatusFieldsFieldName(e.name)}),this.config.find(e=>"status_mapping"===e.name).elements.forEach(a=>{let i=t.object.cloneDeep(a);i.name=a.name.replace(".paymentStatus",`.${n}PaymentStatus`),e.elements.push(i)})},getElementBind(e,t){let n=this.$super("getElementBind",e,t);return(e.name.includes("PaymentStatus")||e.name.includes(".paymentStatus"))&&(n.config.options=this.stateMaschineOptions),n},getInheritWrapperBind(e){let t=this.$super("getInheritWrapperBind",e);return t.hidden=e.hidden,t},showPaymentStatusFieldsBasedOnToggle(e){let t=this.actualConfigData[this.currentSalesChannelId];if(!t)return;let n=t[this._getShowPaymentStatusFieldsFieldName(e.name)];e.elements.forEach(e=>{e.name.includes("PaymentStatus")&&(e.hidden=!n)})},emitConfig(){this.config.forEach(e=>this.showPaymentStatusFieldsBasedOnToggle(e)),this.$super("emitConfig")}}})},914:function(){let{Filter:e}=Shopware;e.register("payone_currency",(t,n,a)=>null===t?"-":(t/=100,e.getByName("currency")(t,n,a)))},988:function(e,t,n){Shopware.Component.register("payone-capture-button",()=>n.e(279).then(n.bind(n,279))),Shopware.Component.register("payone-order-items",()=>n.e(170).then(n.bind(n,170))),Shopware.Component.register("payone-payment-management",()=>n.e(651).then(n.bind(n,651))),Shopware.Component.register("payone-payment-order-action-log",()=>n.e(287).then(n.bind(n,287))),Shopware.Component.register("payone-payment-webhook-log",()=>n.e(567).then(n.bind(n,567))),Shopware.Component.register("payone-refund-button",()=>n.e(992).then(n.bind(n,992))),Shopware.Component.register("sw-order-detail-payone",()=>n.e(167).then(n.bind(n,167))),Shopware.Component.override("sw-order-detail",()=>n.e(536).then(n.bind(n,536))),Shopware.Module.register("sw-order-detail-tab-payone",{routeMiddleware(e,t){"sw.order.detail"===t.name&&t.children.push({name:"sw.order.detail.payone",path:"payone",component:"sw-order-detail-payone",meta:{parentPath:"sw.order.detail",meta:{parentPath:"sw.order.index",privilege:"order.viewer"}}}),e(t)}})}},h={};function g(e){var t=h[e];if(void 0!==t)return t.exports;var n=h[e]={id:e,exports:{}};return u[e](n,n.exports,g),n.exports}g.m=u,g.d=function(e,t){for(var n in t)g.o(t,n)&&!g.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},g.f={},g.e=function(e){return Promise.all(Object.keys(g.f).reduce(function(t,n){return g.f[n](e,t),t},[]))},g.u=function(e){return"static/js/"+({167:"90e1be9e63b90051b4e0",170:"9a9c94e3696f57409503",279:"7e23a5e4b0d177361736",287:"9c3c58b7356b2afb9b90",301:"59d5ce77b63618b27b43",355:"88ebe4106c45f8e09973",536:"187f39a64b9957fa0cd6",567:"00d86068c7552ec3bf48",651:"adb8e862ec68f99ef358",711:"cc8f6abd2622c7902e9f",811:"edcaee145c1d462652d0",907:"1c870eadabd11b1444dd",942:"9513aefe3911f011d98e",992:"276c4c47a1a173f31cd7"})[e]+".js"},g.miniCssF=function(e){return"static/css/"+e+".css"},g.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e={},t="administration:",g.l=function(n,a,i,r){if(e[n]){e[n].push(a);return}if(void 0!==i)for(var o,s,l=document.getElementsByTagName("script"),d=0;d Shop --> Zahlungsarten.","messageTestError":{"general":"Die API-Zugangsdaten konnten nicht validiert werden.","creditCard":"Die API-Zugangsdaten f\xfcr PAYONE Kreditkarte sind nicht korrekt.","prepayment":"Die API-Zugangsdaten f\xfcr PAYONE Vorkasse sind nicht korrekt.","debit":"Die API-Zugangsdaten f\xfcr PAYONE Lastschrift sind nicht korrekt.","paypalExpress":"Die API-Zugangsdaten f\xfcr PAYONE PayPal Express sind nicht korrekt.","paypal":"Die API-Zugangsdaten f\xfcr PAYONE PayPal sind nicht korrekt.","payolutionInstallment":"Die API-Zugangsdaten f\xfcr PAYONE Unzer Ratenkauf sind nicht korrekt.","payolutionInvoicing":"Die API-Zugangsdaten f\xfcr PAYONE Unzer Rechnungskauf sind nicht korrekt.","payolutionDebit":"Die API-Zugangsdaten f\xfcr PAYONE Unzer Lastschrift sind nicht korrekt.","sofort":"Die API-Zugangsdaten f\xfcr PAYONE Sofort \xdcberweisung sind nicht korrekt.","eps":"Die API-Zugangsdaten f\xfcr PAYONE eps \xdcberweisung sind nicht korrekt.","iDeal":"Die API-Zugangsdaten f\xfcr PAYONE iDEAL sind nicht korrekt.","secureInvoice":"Die API-Zugangsdaten f\xfcr PAYONE Gesicherter Rechnungskauf sind nicht korrekt.","openInvoice":"Die API-Zugangsdaten f\xfcr PAYONE Rechnungskauf sind nicht korrekt.","paydirekt":"Die API-Zugangsdaten f\xfcr PAYONE paydirekt sind nicht korrekt.","trustly":"Die API-Zugangsdaten f\xfcr PAYONE Trustly sind nicht korrekt.","applePay":"Die API-Zugangsdaten f\xfcr PAYONE Apple Pay sind nicht korrekt.","bancontact":"Die API-Zugangsdaten f\xfcr PAYONE Bancontact sind nicht korrekt.","ratepayDebit":"Die API-Zugangsdaten f\xfcr PAYONE Ratepay Lastschrift sind nicht korrekt.","ratepayInstallment":"Die API-Zugangsdaten f\xfcr PAYONE Ratepay Ratenzahlung sind nicht korrekt.","ratepayInvoicing":"Die API-Zugangsdaten f\xfcr PAYONE Ratepay Rechnungskauf sind nicht korrekt.","klarnaInvoice":"Die API-Zugangsdaten f\xfcr PAYONE Klarna Rechnung sind nicht korrekt.","klarnaDirectDebit":"Die API-Zugangsdaten f\xfcr PAYONE Klarna Sofort bezahlen sind nicht korrekt.","klarnaInstallment":"Die API-Zugangsdaten f\xfcr PAYONE Klarna Ratenkauf sind nicht korrekt.","przelewy24":"Die API-Zugangsdaten f\xfcr PAYONE Przelewy24 sind nicht korrekt.","weChatPay":"Die API-Zugangsdaten f\xfcr PAYONE WeChat Pay sind nicht korrekt.","postfinanceCard":"Die API-Zugangsdaten f\xfcr PAYONE Postfinance (Card) sind nicht korrekt.","postfinanceWallet":"Die API-Zugangsdaten f\xfcr PAYONE Postfinance (Wallet) sind nicht korrekt.","alipay":"Die API-Zugangsdaten f\xfcr PAYONE Alipay sind nicht korrekt.","securedInvoice":"Die API-Zugangsdaten f\xfcr PAYONE Gesicherter Rechnungskauf sind nicht korrekt.","securedInstallment":"Die API-Zugangsdaten f\xfcr PAYONE Gesicherter Ratenkauf sind nicht korrekt.","securedDirectDebit":"Die API-Zugangsdaten f\xfcr PAYONE Gesicherte Lastschrift sind nicht korrekt.","amazonPay":"Die API-Zugangsdaten f\xfcr PAYONE Amazon Pay sind nicht korrekt.","amazonPayExpress":"Die API-Zugangsdaten f\xfcr PAYONE Amazon Pay sind nicht korrekt."}},"supportModal":{"menuButton":"Support","title":"Wie k\xf6nnen wir Ihnen helfen?","documentation":{"description":"Lesen Sie unsere Online-Dokumentation","button":"Dokumentation"},"support":{"description":"Kontaktieren Sie unseren Support","button":"Technischer Support"},"repository":{"description":"Melden Sie Fehler und Verbesserungen","button":"GitHub"},"testdata":{"description":"Erstellen Sie hier Ihre pers\xf6nlichen Testdaten","button":"Testdaten"}},"applePay":{"cert":{"notification":"F\xfcr die Nutzung von ApplePay ist ein Zertifikat/Key-Paar zur Authentifizierung des Merchants erforderlich. Die Anlage eines solchen Zertifikats wird hier beschrieben:
\\n https://docs.payone.com/display/public/PLATFORM/Special+Remarks+-+Apple+Pay#SpecialRemarks-ApplePay-Onboarding

\\n\\n Erstellen Sie im Anschluss unter Verwendung des folgenden Befehls eine PEM-Datei des Zertifikates:
\\n
openssl x509 -inform der -in merchant_id.cer -out merchant_id.pem

\\n Hinterlegen Sie das Zertifikat (merchant_id.pem) und den Key (merchant_id.key) in folgendem Verzeichnis:
\\n
%shopwareRoot%/config/apple-pay-cert
"}},"transitionActionNames":{"cancel":"Stornieren","complete":"Abschlie\xdfen","pay":"Bezahlen","pay_partially":"Teilweise bezahlen","process":"Durchf\xfchren","refund":"R\xfcckerstatten","refund_partially":"Teilweise r\xfcckerstatten","remind":"Erinnern","reopen":"Wieder \xf6ffnen","retour":"Retoure","retour_partially":"Teilweise retounieren","ship":"Versenden","ship_partially":"Teilweise versenden"},"messageNotBlank":"Dieser Wert darf nicht leer sein.","error":{"transaction":{"notFound":"Es wurde keine passende Transaktion gefundend","orderNotFound":"Es wurde keine passende Bestellung gefundend"}}},"sw-privileges":{"additional_permissions":{"Payone":{"label":"PAYONE","payone_order_management":"PAYONE Transaktionsmanagement"}}}}'),d=JSON.parse('{"payone-payment":{"title":"PAYONE","general":{"mainMenuItemGeneral":"PAYONE","descriptionTextModule":"Settings for PAYONE","headlines":{"ratepayProfiles":"Profile","ratepayProfileConfigurations":"Profile configuration"},"label":{"shopId":"Shop-ID","currency":"Currency","error":"Status","invoiceCountry":"Invoice Country","shippingCountry":"Shipping Country","minBasket":"Min. Basket","maxBasket":"Max. Basket","reloadConfigInfo":"Profile-Configuration got automatically updated during saving the plugin configuration"},"actions":{"addShop":"Add Shop-ID"},"errors":{"existingShopId":"The entered shop-id already exists.","emptyInputs":"Please fill all input fields."}},"settingsForm":{"save":"Save","test":"Test API Credentials","titleSuccess":"Success","titleError":"Error","labelShowSpecificStatusMapping":"Display state mapping configuration","helpTextShowSpecificStatusMapping":"If not configured the general status mapping config will be applied.","messageSaveError":{"ratepayProfilesUpdateFailed":"At least one Ratepay profile could not be saved successfully, please check your configuration."},"messageTestSuccess":"The API credentials were verified successfully.","messageTestNoTestedPayments":"No payment methods were tested during the check because none of the PAYONE payment methods are activated. Please activate at least one PAYONE payment method under Settings --> Shop --> Payment.","messageTestError":{"general":"The API credentials could not be verified successfully.","creditCard":"The API credentials for PAYONE Credit Card are not valid.","prepayment":"The API credentials for PAYONE Prepayment are not valid.","debit":"The API credentials for PAYONE Direct Debit are not valid.","paypalExpress":"The API credentials for PAYONE PayPal Express are not valid.","paypal":"The API credentials for PAYONE PayPal are not valid.","payolutionInstallment":"The API credentials for PAYONE Unzer Ratenkauf are not valid.","payolutionInvoicing":"The API credentials for PAYONE Unzer Rechnungskauf are not valid.","payolutionDebit":"The API credentials for PAYONE Unzer Lastschrift are not valid.","sofort":"The API credentials for PAYONE Sofort are not valid.","eps":"The API credentials for PAYONE eps are not valid.","iDeal":"The API credentials for PAYONE iDEAL are not valid.","secureInvoice":"The API credentials for PAYONE Secure Invoice are not valid.","openInvoice":"The API credentials for PAYONE Invoice are not valid.","paydirekt":"The API credentials for PAYONE paydirekt are not valid.","trustly":"The API credentials for PAYONE Trustly are not valid.","applePay":"The API credentials for PAYONE Apple Pay are not valid.","bancontact":"The API credentials for PAYONE Bancontact payment are not valid.","ratepayDebit":"The API credentials for PAYONE Ratepay Direct Debit payment are not valid.","ratepayInstallment":"The API credentials for PAYONE Ratepay Installments payment are not valid.","ratepayInvoicing":"The API credentials for PAYONE Ratepay Open Invoice payment are not valid.","klarnaInvoice":"The API credentials for PAYONE Klarna Rechnung are not valid.","klarnaDirectDebit":"The API credentials for PAYONE Klarna Sofort bezahlen are not valid.","klarnaInstallment":"The API credentials for PAYONE Klarna Ratenkauf are not valid.","przelewy24":"The API credentials for PAYONE Przelewy24 are not valid.","weChatPay":"The API credentials for PAYONE WeChat Pay are not valid.","postfinanceCard":"The API credentials for PAYONE Postfinance (Card) are not valid.","postfinanceWallet":"The API credentials for PAYONE Postfinance (Wallet) are not valid.","alipay":"The API credentials for PAYONE Alipay are not valid.","securedInvoice":"The API credentials for PAYONE Secured Invoice are not valid.","securedInstallment":"The API credentials for PAYONE Secured Installment are not valid.","securedDirectDebit":"The API credentials for PAYONE Secured Direct Debit are not valid.","amazonPay":"The API credentials for PAYONE Amazon pay are not valid.","amazonPayExpress":"The API credentials for PAYONE Amazon pay are not valid."}},"supportModal":{"menuButton":"Support","title":"How Can We Help You?","documentation":{"description":"Read our online manual","button":"Online Manual"},"support":{"description":"Contact our technical support","button":"Tech Support"},"repository":{"description":"Report errors on GitHub","button":"GitHub"},"testdata":{"description":"Create your personal test data here","button":"Test Data"}},"applePay":{"cert":{"notification":"The ApplePay merchant authentication requires a certificate/key-pair. Further information:
\\n https://docs.payone.com/display/public/PLATFORM/Special+Remarks+-+Apple+Pay#SpecialRemarks-ApplePay-Onboarding

\\n\\n Create a pem-File afterwards by using the following command:
\\n
openssl x509 -inform der -in merchant_id.cer -out merchant_id.pem

\\n Copy certificate (merchant_id.pem) and key (merchant_id.key) file into the following folder:
\\n
%shopwareRoot%/config/apple-pay-cert
"}},"transitionActionNames":{"cancel":"Cancel","complete":"Complete","pay":"Pay","pay_partially":"Pay partially","process":"Process","refund":"Refund","refund_partially":"Refund partially","remind":"Remind","reopen":"Reopen","retour":"Retour","retour_partially":"Retour partially","ship":"Ship","ship_partially":"Ship partially"},"messageNotBlank":"This field must not be empty.","error":{"transaction":{"notFound":"No matching transaction could be found","orderNotFound":"No matching order could be found"}}},"sw-privileges":{"additional_permissions":{"Payone":{"label":"PAYONE","payone_order_management":"PAYONE transaction management"}}}}'),g(914),g(38),Shopware.Component.register("payone-payment-plugin-icon",()=>g.e(711).then(g.bind(g,711))),Shopware.Component.register("payone-ratepay-profile-configurations",()=>g.e(942).then(g.bind(g,942))),Shopware.Component.register("payone-ratepay-profiles",()=>g.e(907).then(g.bind(g,907))),Shopware.Component.register("payone-settings",()=>g.e(811).then(g.bind(g,811))),Shopware.Module.register("payone-payment",{type:"plugin",name:"PayonePayment",title:"payone-payment.general.mainMenuItemGeneral",description:"payone-payment.general.descriptionTextModule",version:"1.0.0",targetVersion:"1.0.0",icon:"regular-cog",snippets:{"de-DE":l,"en-GB":d},routeMiddleware(e,t){e(t)},routes:{index:{component:"payone-settings",path:"index",meta:{parentPath:"sw.settings.index"}}},settingsItem:[{name:"payone-payment",to:"payone.payment.index",label:"payone-payment.general.mainMenuItemGeneral",group:"plugins",iconComponent:"payone-payment-plugin-icon",backgroundEnabled:!1}]}),p=JSON.parse('{"payonePayment":{"notificationTarget":{"module":{"title":"Payone Notificationweiterleitungen","buttonTitle":"Notifications"},"list":{"title":"Notificationweiterleitungen","empty":"Keine Eintr\xe4ge","buttonCreate":"Weiterleitungsziel anlegen"},"detail":{"headline":"Notificationweiterleitung","placeholder":{"url":"Url","username":"Benutzer","password":"Passwort"},"label":{"url":"Url","isBasicAuth":"Basic Auth","txactions":"txactions","buttonSave":"Speichern","buttonCancel":"Abbrechen","username":"Benutzer","password":"Passwort"}},"columns":{"url":"Url","isBasicAuth":"Basic Auth","txactions":"txactions"},"actions":{"requeue":"Erneut senden"},"messages":{"success":"Die Weiterleitung wurde erfolgreich in Auftrag gegeben."}}}}'),c=JSON.parse('{"payonePayment":{"notificationTarget":{"module":{"title":"Payone notification forward","buttonTitle":"Notifications"},"list":{"title":"Notification forward","empty":"No entries","buttonCreate":"Add new notification target"},"detail":{"headline":"Notification forward","placeholder":{"url":"Url","username":"Username","password":"Password"},"label":{"url":"Url","isBasicAuth":"Basic Auth","txactions":"txactions","buttonSave":"Save","buttonCancel":"Cancel","username":"Username","password":"Password"}},"columns":{"url":"Url","isBasicAuth":"Basic Auth","txactions":"txactions"},"actions":{"requeue":"Requeue"},"messages":{"success":"The notification forward has been successfully queued."}}}}'),Shopware.Component.register("payone-notification-target-detail",g.e(301).then(g.bind(g,301))),Shopware.Component.register("payone-notification-target-list",g.e(355).then(g.bind(g,355))),Shopware.Module.register("payone-notification-target",{type:"plugin",name:"PayoneNotificationTarget",title:"payonePayment.notificationTarget.module.title",description:"payonePayment.notificationTarget.module.title",icon:"regular-cog",snippets:{"de-DE":p,"en-GB":c},routes:{list:{component:"payone-notification-target-list",path:"list"},detail:{component:"payone-notification-target-detail",path:"detail/:id",props:{default(e){return{notificationTargetId:e.params.id}}},meta:{parentPath:"payone.notification.target.list"}},create:{component:"payone-notification-target-detail",path:"create",meta:{parentPath:"payone.notification.target.list"}}}}),g(988),g(437),g(309),g(352)})(); +//# sourceMappingURL=payone-payment.js.map \ No newline at end of file diff --git a/src/Resources/public/static/css/170.css b/src/Resources/public/static/css/170.css new file mode 100644 index 00000000..2d6b9e21 --- /dev/null +++ b/src/Resources/public/static/css/170.css @@ -0,0 +1,3 @@ +.payone-order-items .sw-data-grid__bulk{display:none} + +/*# sourceMappingURL=170.css.map*/ \ No newline at end of file diff --git a/src/Resources/public/static/css/170.css.map b/src/Resources/public/static/css/170.css.map new file mode 100644 index 00000000..e220af86 --- /dev/null +++ b/src/Resources/public/static/css/170.css.map @@ -0,0 +1 @@ +{"version":3,"file":"static/css/170.css","mappings":"AAAA,wCACE,a","sources":["webpack://administration/../../../../../../custom/plugins/PayonePayment/src/Resources/app/administration/src/module/sw-order/component/payone-order-items/payone-order-items.scss"],"sourcesContent":[".payone-order-items .sw-data-grid__bulk {\n display: none;\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/src/Resources/public/static/css/279.css b/src/Resources/public/static/css/279.css new file mode 100644 index 00000000..93a9d313 --- /dev/null +++ b/src/Resources/public/static/css/279.css @@ -0,0 +1,3 @@ +.payone-payment-detail--capture-modal .sw-modal__body{padding:0}.payone-payment-detail--capture-modal .sw-modal__footer{border-top:1px solid #d1d9e0}.payone-payment-detail--capture-modal .payone-payment-detail--capture-modal--content,.payone-payment-detail--capture-modal .payone-payment-detail--refund-modal--content{padding:20px 30px}.payone-payment-detail--capture-modal .payone-payment-detail--capture-modal--checkbox-shipping-costs{margin-top:3.5rem} + +/*# sourceMappingURL=279.css.map*/ \ No newline at end of file diff --git a/src/Resources/public/static/css/279.css.map b/src/Resources/public/static/css/279.css.map new file mode 100644 index 00000000..54fb549d --- /dev/null +++ b/src/Resources/public/static/css/279.css.map @@ -0,0 +1 @@ +{"version":3,"file":"static/css/279.css","mappings":"AAGE,sDACE,UAGF,wDACE,6BAGF,yKACE,kBAGF,qGACI,kB","sources":["webpack://administration/../../../../../../custom/plugins/PayonePayment/src/Resources/app/administration/src/module/sw-order/component/payone-capture-button/payone-capture-button.scss"],"sourcesContent":["@import \"~scss/variables\";\n\n.payone-payment-detail--capture-modal {\n .sw-modal__body {\n padding: 0;\n }\n\n .sw-modal__footer {\n border-top: 1px solid $color-gray-300;\n }\n\n .payone-payment-detail--capture-modal--content, .payone-payment-detail--refund-modal--content {\n padding: 20px 30px;\n }\n\n .payone-payment-detail--capture-modal--checkbox-shipping-costs {\n margin-top: 3.5rem;\n }\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/src/Resources/public/static/css/651.css b/src/Resources/public/static/css/651.css new file mode 100644 index 00000000..a68210b5 --- /dev/null +++ b/src/Resources/public/static/css/651.css @@ -0,0 +1,3 @@ +.payone-payment-management-card{line-height:15px}.payone-payment-management-card .payone-payment-management-notification-forwards{margin-top:30px}.payone-payment-management-card dt,.payone-payment-management-card dd{padding:0;border-bottom:none}.payone-payment-management-card dt{font-weight:600}.payone-payment-management-card dt:not(:first-child),.payone-payment-management-card dt:only-of-type{padding-top:10px} + +/*# sourceMappingURL=651.css.map*/ \ No newline at end of file diff --git a/src/Resources/public/static/css/651.css.map b/src/Resources/public/static/css/651.css.map new file mode 100644 index 00000000..a3380463 --- /dev/null +++ b/src/Resources/public/static/css/651.css.map @@ -0,0 +1 @@ +{"version":3,"file":"static/css/651.css","mappings":"AAAA,gCAKI,iBAJA,iFACI,gBAKJ,sEACE,UACA,mBAGF,mCACE,gBAEA,qGACE,iB","sources":["webpack://administration/../../../../../../custom/plugins/PayonePayment/src/Resources/app/administration/src/module/sw-order/component/payone-payment-management/payone-payment-management.scss"],"sourcesContent":[".payone-payment-management-card {\n .payone-payment-management-notification-forwards {\n margin-top: 30px;\n }\n\n line-height: 15px;\n\n dt, dd {\n padding: 0;\n border-bottom: none;\n }\n\n dt {\n font-weight: 600;\n\n &:not(:first-child), &:only-of-type{\n padding-top: 10px;\n }\n }\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/src/Resources/public/static/css/711.css b/src/Resources/public/static/css/711.css new file mode 100644 index 00000000..3834cbb9 --- /dev/null +++ b/src/Resources/public/static/css/711.css @@ -0,0 +1,3 @@ +.payone-payment-plugin-icon{height:100%} + +/*# sourceMappingURL=711.css.map*/ \ No newline at end of file diff --git a/src/Resources/public/static/css/711.css.map b/src/Resources/public/static/css/711.css.map new file mode 100644 index 00000000..e5910edb --- /dev/null +++ b/src/Resources/public/static/css/711.css.map @@ -0,0 +1 @@ +{"version":3,"file":"static/css/711.css","mappings":"AAAA,4BACI,Y","sources":["webpack://administration/../../../../../../custom/plugins/PayonePayment/src/Resources/app/administration/src/module/payone-payment/component/payone-payment-plugin-icon/payone-payment-plugin-icon.scss"],"sourcesContent":[".payone-payment-plugin-icon {\n height: 100%;\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/src/Resources/public/static/css/811.css b/src/Resources/public/static/css/811.css new file mode 100644 index 00000000..f132a28e --- /dev/null +++ b/src/Resources/public/static/css/811.css @@ -0,0 +1,3 @@ +.payone-feedback__col{padding:0 10px;text-align:center;border-left:1px solid #888;display:flex;flex-direction:column;justify-content:space-between}.payone-feedback__icon{margin-bottom:25px}.payone-feedback__icon .sw-icon.sw-icon--large{width:50px;height:50px}.payone-feedback .payone-feedback__col:first-child{border-left:none}.payone-feedback .payone-feedback__desc{font-size:1.1em;letter-spacing:.75px;margin-bottom:25px}.payone-config__wrapper .sw-card .payone-config__collapsible-container{text-align:right}.payone-config__wrapper .sw-card .payone-config__collapsible-container:not(.collapsed){margin-bottom:22px}.payone-config__wrapper .sw-card .payone-config__collapsible-handle{cursor:pointer;color:#52667a;border:1px solid #d1d9e0;border-radius:4px;display:inline-block;width:28px;height:28px;line-height:0;padding:5px}.payone-config__wrapper .sw-card .payone-config__collapsible-handle:hover{background-color:#e3f3ff}.payone-config-reaload__btn{margin:15px 0} + +/*# sourceMappingURL=811.css.map*/ \ No newline at end of file diff --git a/src/Resources/public/static/css/811.css.map b/src/Resources/public/static/css/811.css.map new file mode 100644 index 00000000..873cfd4a --- /dev/null +++ b/src/Resources/public/static/css/811.css.map @@ -0,0 +1 @@ +{"version":3,"file":"static/css/811.css","mappings":"AAGI,sBACI,eACA,kBACA,2BACA,aACA,sBACA,8BAGJ,uBACI,mBAEA,+CACI,WACA,YAIR,mDACI,iBAGJ,wCACI,gBACA,qBACA,mBAMA,uEACI,iBAEA,uFACI,mBAIR,oEACI,eACA,aCRS,CDUT,yBACA,iBCwMY,CDtMZ,qBACA,WACA,YACA,cACA,YAEA,0EACI,wBCTU,CDe1B,4BACI,c","sources":["webpack://administration/../../../../../../custom/plugins/PayonePayment/src/Resources/app/administration/src/module/payone-payment/page/payone-settings/style.scss","webpack://administration/./src/app/assets/scss/variables.scss"],"sourcesContent":["@import \"~scss/variables\";\n\n.payone-feedback {\n &__col {\n padding: 0 10px;\n text-align: center;\n border-left: 1px solid #888;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n }\n\n &__icon {\n margin-bottom: 25px;\n\n .sw-icon.sw-icon--large {\n width: 50px;\n height: 50px;\n }\n }\n\n & &__col:first-child {\n border-left: none;\n }\n\n & &__desc {\n font-size: 1.1em;\n letter-spacing: .75px;\n margin-bottom: 25px;\n }\n}\n\n.payone-config__wrapper {\n .sw-card {\n .payone-config__collapsible-container {\n text-align: right;\n\n &:not(.collapsed) {\n margin-bottom: 22px;\n }\n }\n\n .payone-config__collapsible-handle {\n cursor: pointer;\n color: $color-darkgray-200;\n\n border: 1px solid $color-gray-300;\n border-radius: $border-radius-default;\n\n display: inline-block;\n width: 28px;\n height: 28px;\n line-height: 0;\n padding: 5px;\n\n &:hover {\n background-color: $color-shopware-brand-50;\n }\n }\n }\n}\n\n.payone-config-reaload__btn {\n margin: 15px 0;\n}\n","/* ------------------------------------\n * Administration variables\n * Table of contents\n *\n * 1. Primary colors\n * 2. Status colors\n * 3. Module colors\n * 4. Generic colors\n * 5. Gradients\n * 6. Typography\n * 7. Miscellaneous\n * 8. z-index\n * 9. Global widths\n * ------------------------------------ */\n\n/* ------------------------------------\n * 1. Primary colors\n * ------------------------------------ */\n\n// Gray\n// Color description: Grayish blue\n$color-gray-50: #f9fafb;\n$color-gray-100: #f0f2f5;\n$color-gray-200: #e0e6eb;\n$color-gray-300: #d1d9e0;\n$color-gray-400: #c2ccd6;\n$color-gray-500: #b3bfcc;\n$color-gray-600: #a3b3c2;\n$color-gray-700: #94a6b8;\n$color-gray-800: #8599ad;\n$color-gray-900: #758ca3;\n\n// Darkgray\n// Color description: Very dark grayish blue\n$color-darkgray-50: #667f99;\n$color-darkgray-100: #5c738a;\n$color-darkgray-200: #52667a;\n$color-darkgray-300: #47596b;\n$color-darkgray-400: #3d4c5c;\n$color-darkgray-500: #33404d;\n$color-darkgray-600: #29333d;\n$color-darkgray-700: #1f262e;\n$color-darkgray-800: #14191f;\n$color-darkgray-900: #0a0d0f;\n\n// Shopware brand\n// Color description: Vivid blue\n$color-shopware-brand-50: #e3f3ff;\n$color-shopware-brand-100: #bae2ff;\n$color-shopware-brand-200: #8ccfff;\n$color-shopware-brand-300: #5dbbff;\n$color-shopware-brand-400: #3badff;\n$color-shopware-brand-500: #189eff;\n$color-shopware-brand-600: #1596ff;\n$color-shopware-brand-700: #118cff;\n$color-shopware-brand-800: #0e82ff;\n$color-shopware-brand-900: #0870ff;\n\n// Menu\n// Color description: Very dark desaturated blue\n$color-menu-start: #303a4f;\n$color-menu-end: #2a3345;\n\n// Slate\n$color-neutrals-slate-100: #f1f5f9;\n\n/* ------------------------------------\n * 2. Status colors\n * ------------------------------------ */\n\n// Emerald\n// Color description: Moderate lime green\n$color-emerald-50: #e7f9e9;\n$color-emerald-100: #c3f1c8;\n$color-emerald-200: #9be8a3;\n$color-emerald-300: #73de7e;\n$color-emerald-400: #55d762;\n$color-emerald-500: #37d046;\n$color-emerald-600: #31cb3f;\n$color-emerald-700: #2ac437;\n$color-emerald-800: #23be2f;\n$color-emerald-900: #16b320;\n\n// Pumpkin Spice\n// Color description: Light orange\n$color-pumpkin-spice-50: #fff3e0;\n$color-pumpkin-spice-100: #ffe0b2;\n$color-pumpkin-spice-200: #ffcc80;\n$color-pumpkin-spice-300: #ffb74d;\n$color-pumpkin-spice-400: #ffa726;\n$color-pumpkin-spice-500: #ff9800;\n$color-pumpkin-spice-600: #fb8c00;\n$color-pumpkin-spice-700: #f57c00;\n$color-pumpkin-spice-800: #ef6c00;\n$color-pumpkin-spice-900: #e65100;\n\n// Crimson\n// Color description: Bright red\n$color-crimson-50: #fbe5ea;\n$color-crimson-100: #f5bfc9;\n$color-crimson-200: #ef94a6;\n$color-crimson-300: #e86982;\n$color-crimson-400: #e34967;\n$color-crimson-500: #de294c;\n$color-crimson-600: #da2445;\n$color-crimson-700: #d51f3c;\n$color-crimson-800: #d11933;\n$color-crimson-900: #c80f24;\n\n/* ------------------------------------\n * 3. Module colors\n * ------------------------------------ */\n\n// Yellow\n// Color description: Pure yellow\n// Marketing module\n$color-module-yellow-50: #fffae0;\n$color-module-yellow-100: #fff3b3;\n$color-module-yellow-200: #ffeb80;\n$color-module-yellow-300: #ffe34d;\n$color-module-yellow-400: #ffdd26;\n$color-module-yellow-500: #ffd700;\n$color-module-yellow-600: #ffd300;\n$color-module-yellow-700: #ffcd00;\n$color-module-yellow-800: #ffc700;\n$color-module-yellow-900: #ffbe00;\n\n// Orange\n// Color description: Soft orange\n// Customer module\n$color-module-orange-50: #fef1ec;\n$color-module-orange-100: #fddcd0;\n$color-module-orange-200: #fcc4b1;\n$color-module-orange-300: #faac91;\n$color-module-orange-400: #f99b7a;\n$color-module-orange-500: #f88962;\n$color-module-orange-600: #f7815a;\n$color-module-orange-700: #f67650;\n$color-module-orange-800: #f56c46;\n$color-module-orange-900: #f35934;\n\n// Pink\n// Color description: Very light pink\n// Content module\n$color-module-pink-50: #fff0f8;\n$color-module-pink-100: #ffdaed;\n$color-module-pink-200: #ffc2e1;\n$color-module-pink-300: #ffaad4;\n$color-module-pink-400: #ff97cb;\n$color-module-pink-500: #ff85c2;\n$color-module-pink-600: #ff7dbc;\n$color-module-pink-700: #ff72b4;\n$color-module-pink-800: #ff68ac;\n$color-module-pink-900: #ff559f;\n\n// Blue\n// Color description: Soft cyan\n// Dashboard module\n$color-module-blue-50: #edfafd;\n$color-module-blue-100: #d2f3fb;\n$color-module-blue-200: #b5ebf8;\n$color-module-blue-300: #97e2f5;\n$color-module-blue-400: #80dcf2;\n$color-module-blue-500: #6ad6f0;\n$color-module-blue-600: #62d1ee;\n$color-module-blue-700: #57ccec;\n$color-module-blue-800: #4dc6e9;\n$color-module-blue-900: #3cbce5;\n\n// Purple\n// Color description: Very soft blue\n// Order module\n$color-module-purple-50: #f4f2fd;\n$color-module-purple-100: #e3defb;\n$color-module-purple-200: #d0c9f8;\n$color-module-purple-300: #bdb3f5;\n$color-module-purple-400: #aea2f2;\n$color-module-purple-500: #a092f0;\n$color-module-purple-600: #988aee;\n$color-module-purple-700: #8e7fec;\n$color-module-purple-800: #8475e9;\n$color-module-purple-900: #7363e5;\n\n// Green\n// Color description: Soft cyan - lime green\n// Catalog module\n$color-module-green-50: #ebfaf4;\n$color-module-green-100: #cdf4e3;\n$color-module-green-200: #abecd1;\n$color-module-green-300: #89e4bf;\n$color-module-green-400: #70dfb1;\n$color-module-green-500: #57d9a3;\n$color-module-green-600: #4fd59b;\n$color-module-green-700: #46cf91;\n$color-module-green-800: #3cca88;\n$color-module-green-900: #2cc077;\n\n/* ------------------------------------\n * 4. Generic colors\n * ------------------------------------ */\n\n$color-white: #fff;\n$color-black: #000;\n$color-drag-select-box: rgba(0, 162, 255, 40%);\n\n/* ------------------------------------\n * 5. Gradients\n * ------------------------------------ */\n\n$gradient-action-button: linear-gradient(to bottom, #7793ae 0%, #6a849c 100%);\n\n/* ------------------------------------\n * 6. Typography\n * ------------------------------------ */\n\n// font-family\n$font-family-default: \"Inter\", -apple-system, blinkmacsystemfont, \"San Francisco\", \"Segoe UI\", roboto, \"Helvetica Neue\", sans-serif;\n$font-family-variables: \"Inter var\", -apple-system, blinkmacsystemfont, \"San Francisco\", \"Segoe UI\", roboto, \"Helvetica Neue\", sans-serif;\n$font-family-default-feature-settings: \"cv10\" on, \"cv05\" on, \"cv02\" on, \"cv07\" on, \"cv09\" on, \"cv04\" on, \"cv03\" on;\n\n// font-size\n$font-size-xxs: 12px;\n$font-size-xs: 14px;\n$font-size-s: 16px;\n$font-size-m: 18px;\n$font-size-l: 20px;\n$font-size-xl: 24px;\n$font-size-3xl: 28px;\n\n// weight\n$font-weight-regular: 400;\n$font-weight-medium: 500;\n$font-weight-semi-bold: 600;\n$font-weight-bold: 700;\n\n// line-height\n$line-height-auto: auto;\n$line-height-xs: 18px;\n$line-height-sm: 20px;\n$line-height-md: 24px;\n$line-height-lg: 28px;\n\n/* ------------------------------------\n * 7. Miscellaneous\n * ------------------------------------ */\n\n$border-radius-sm: 6px;\n$border-radius-default: 4px;\n$border-radius-md: 6px;\n$border-radius-lg: 8px;\n$border-radius-xl: 8px;\n$border-radius-pill: 100vh;\n$transparent-background-url: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAACVBMVEX39/f////+/v66RnnUAAAAM0lEQVQIHQXBwQ3AMAgEMC95SPRPpQxENuiete2HCqZRhWlkcV4kIIPb6MUWZpEHN+j9ARNGDXV0xoICAAAAAElFTkSuQmCC\");\n$asset-base-url: \"/administration/static/\";\n\n/* ------------------------------------\n * 8. z-index\n * ------------------------------------ */\n\n$z-index-loader: 400;\n$z-index-overlay: 300;\n$z-index-over-overlay: 350;\n$z-index-drag-select-box: 100;\n$z-index-sidebar: 200;\n$z-index-page-header: 550;\n$z-index-select-results: 600;\n$z-index-flyout: 700;\n$z-index-off-canvas: 750;\n$z-index-search-bar-results: 800;\n$z-index-sw-page-search-bar: 650;\n$z-index-modal: 1000;\n$z-index-context-menu: 1100;\n$z-index-tooltip: 1100;\n$z-index-notifications: 1200;\n$z-index-hover-image: 1300;\n$z-index-dragdrop: 1400;\n$z-index-help-sidebar: 1500;\n\n/* ------------------------------------\n * 8. Global widths\n * ------------------------------------ */\n$content-width: 960px;\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/src/Resources/public/static/css/907.css b/src/Resources/public/static/css/907.css new file mode 100644 index 00000000..0573a026 --- /dev/null +++ b/src/Resources/public/static/css/907.css @@ -0,0 +1,3 @@ +.payone-ratepay-profiles .sw-alert{margin:20px auto;width:100%} + +/*# sourceMappingURL=907.css.map*/ \ No newline at end of file diff --git a/src/Resources/public/static/css/907.css.map b/src/Resources/public/static/css/907.css.map new file mode 100644 index 00000000..48b5af96 --- /dev/null +++ b/src/Resources/public/static/css/907.css.map @@ -0,0 +1 @@ +{"version":3,"file":"static/css/907.css","mappings":"AACE,mCACE,iBACA,W","sources":["webpack://administration/../../../../../../custom/plugins/PayonePayment/src/Resources/app/administration/src/module/payone-payment/component/payone-ratepay-profiles/payone-ratepay-profiles.scss"],"sourcesContent":[".payone-ratepay-profiles {\n .sw-alert {\n margin: 20px auto;\n width: 100%;\n }\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/src/Resources/public/static/css/942.css b/src/Resources/public/static/css/942.css new file mode 100644 index 00000000..7e2031d8 --- /dev/null +++ b/src/Resources/public/static/css/942.css @@ -0,0 +1,3 @@ +.payone-ratepay-profile-configuration{margin-top:20px}.payone-ratepay-profile-configuration--headline{font-weight:600;margin-top:20px}.payone-ratepay-profile-configuration--items{display:grid;grid-template-columns:repeat(auto-fill, minmax(20rem, 1fr));gap:1rem}.payone-ratepay-profile-configuration .sw-description-list dt{text-align:right} + +/*# sourceMappingURL=942.css.map*/ \ No newline at end of file diff --git a/src/Resources/public/static/css/942.css.map b/src/Resources/public/static/css/942.css.map new file mode 100644 index 00000000..57a141be --- /dev/null +++ b/src/Resources/public/static/css/942.css.map @@ -0,0 +1 @@ +{"version":3,"file":"static/css/942.css","mappings":"AAAA,sCACI,gBAEA,gDACI,gBACA,gBAGJ,6CACI,aACA,4DACA,SAIA,8DACI,iB","sources":["webpack://administration/../../../../../../custom/plugins/PayonePayment/src/Resources/app/administration/src/module/payone-payment/component/payone-ratepay-profile-configurations/payone-ratepay-profile-configurations.scss"],"sourcesContent":[".payone-ratepay-profile-configuration {\n margin-top: 20px;\n\n &--headline {\n font-weight: 600;\n margin-top: 20px;\n }\n\n &--items {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));\n gap: 1rem;\n }\n\n .sw-description-list {\n dt {\n text-align: right;\n }\n }\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/src/Resources/public/static/css/992.css b/src/Resources/public/static/css/992.css new file mode 100644 index 00000000..408f0d73 --- /dev/null +++ b/src/Resources/public/static/css/992.css @@ -0,0 +1,3 @@ +.payone-payment-detail--refund-modal .sw-modal__body{padding:0}.payone-payment-detail--refund-modal .sw-modal__footer{border-top:1px solid #d1d9e0}.payone-payment-detail--refund-modal .payone-payment-detail--capture-modal--content,.payone-payment-detail--refund-modal .payone-payment-detail--refund-modal--content{padding:20px 30px} + +/*# sourceMappingURL=992.css.map*/ \ No newline at end of file diff --git a/src/Resources/public/static/css/992.css.map b/src/Resources/public/static/css/992.css.map new file mode 100644 index 00000000..83858703 --- /dev/null +++ b/src/Resources/public/static/css/992.css.map @@ -0,0 +1 @@ +{"version":3,"file":"static/css/992.css","mappings":"AAGE,qDACE,UAGF,uDACE,6BAGF,uKACE,kB","sources":["webpack://administration/../../../../../../custom/plugins/PayonePayment/src/Resources/app/administration/src/module/sw-order/component/payone-refund-button/payone-refund-button.scss"],"sourcesContent":["@import \"~scss/variables\";\n\n.payone-payment-detail--refund-modal {\n .sw-modal__body {\n padding: 0;\n }\n\n .sw-modal__footer {\n border-top: 1px solid $color-gray-300;\n }\n\n .payone-payment-detail--capture-modal--content, .payone-payment-detail--refund-modal--content {\n padding: 20px 30px;\n }\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/src/Resources/public/static/js/00d86068c7552ec3bf48.js b/src/Resources/public/static/js/00d86068c7552ec3bf48.js new file mode 100644 index 00000000..4b64d9d1 --- /dev/null +++ b/src/Resources/public/static/js/00d86068c7552ec3bf48.js @@ -0,0 +1,2 @@ +"use strict";(window["webpackJsonpPluginpayone-payment"]=window["webpackJsonpPluginpayone-payment"]||[]).push([[567],{567:function(e,o,t){t.r(o),t.d(o,{default:function(){return s}});let{Criteria:n}=Shopware.Data,{Filter:a}=Shopware;var s={template:'{% block payone_payment_webhook_log %}\n \n \n \n\n \n\n \n \n\n \n \n \n \n{% endblock %}\n',inject:["repositoryFactory"],props:{order:{type:Object,required:!0}},data(){return{webhookLogs:[],isLoading:!1,showWebhookDetails:null}},computed:{webhookLogRepository(){return this.repositoryFactory.create("payone_payment_webhook_log")},assetFilter(){return a.getByName("asset")},dateFilter(){return a.getByName("date")},webhookLogColumns(){return[{property:"transactionId",label:this.$tc("sw-order.payone-payment.webhookLog.columnTitleTransactionId")},{property:"transactionState",label:this.$tc("sw-order.payone-payment.webhookLog.columnTitleTransactionState")},{property:"sequenceNumber",label:this.$tc("sw-order.payone-payment.webhookLog.columnTitleSequenceNumber")},{property:"clearingType",label:this.$tc("sw-order.payone-payment.webhookLog.columnTitleClearingType")},{property:"webhookDateTime",label:this.$tc("sw-order.payone-payment.webhookLog.columnTitleWebhookDateTime")}]},keyValueColumns(){return[{property:"key",label:this.$tc("sw-order.payone-payment.webhookLog.columnTitleKey")},{property:"value",label:this.$tc("sw-order.payone-payment.webhookLog.columnTitleValue")}]}},created(){this.createdComponent()},methods:{createdComponent(){this.getWebhookLogs()},reloadWebhookLogs(){this.getWebhookLogs()},getWebhookLogs(){let e=new n;return e.addFilter(n.equals("orderId",this.order.id)),e.addSorting(n.sort("webhookDateTime","ASC",!0)),this.isLoading=!0,this.webhookLogRepository.search(e,Shopware.Context.api).then(e=>{this.webhookLogs=e,this.isLoading=!1})},openDetails(e){this.showWebhookDetails=e.webhookDetails},onCloseWebhookModal(){this.showWebhookDetails=null},toKeyValueSource(e){let o=[];for(let t in e)o.push({key:t,value:e[t]});return o.sort((e,o)=>e.key.localeCompare(o.key)),o},downloadAsTxt(e,o,t){let n=document.createElement("a");n.href="data:text/plain;charset=utf-8,"+encodeURIComponent(JSON.stringify(e,null,4)),n.download=`PAYONE-${o}-${t}.txt`,n.dispatchEvent(new MouseEvent("click")),n.remove()}}}}}]); +//# sourceMappingURL=00d86068c7552ec3bf48.js.map \ No newline at end of file diff --git a/src/Resources/public/static/js/00d86068c7552ec3bf48.js.map b/src/Resources/public/static/js/00d86068c7552ec3bf48.js.map new file mode 100644 index 00000000..0c6ed314 --- /dev/null +++ b/src/Resources/public/static/js/00d86068c7552ec3bf48.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/00d86068c7552ec3bf48.js","mappings":"uLAEA,GAAM,CAACA,SAAAA,CAAQ,CAAC,CAAGC,SAASC,IAAI,CAC1B,CAAEC,OAAAA,CAAM,CAAE,CAAGF,SAEnB,MAAe,CACXG,SCNW,0oFDQXC,OAAQ,CAAC,oBAAoB,CAE7BC,MAAO,CACHC,MAAO,CACHC,KAAMC,OACNC,SAAU,EACd,CACJ,EAEAC,OACI,MAAO,CACHC,YAAa,EAAE,CACfC,UAAW,GACXC,mBAAoB,IACxB,CACJ,EAEAC,SAAU,CACNC,uBACI,OAAO,IAAI,CAACC,iBAAiB,CAACC,MAAM,CAAC,6BACzC,EAEAC,cACI,OAAOhB,EAAOiB,SAAS,CAAC,QAC5B,EAEAC,aACI,OAAOlB,EAAOiB,SAAS,CAAC,OAC5B,EAEAE,oBACI,MAAO,CACH,CACIC,SAAU,gBACVC,MAAO,IAAI,CAACC,GAAG,CAAC,8DACpB,EACA,CACIF,SAAU,mBACVC,MAAO,IAAI,CAACC,GAAG,CAAC,iEACpB,EACA,CACIF,SAAU,iBACVC,MAAO,IAAI,CAACC,GAAG,CAAC,+DACpB,EACA,CACIF,SAAU,eACVC,MAAO,IAAI,CAACC,GAAG,CAAC,6DACpB,EACA,CACIF,SAAU,kBACVC,MAAO,IAAI,CAACC,GAAG,CAAC,gEACpB,EACH,EAGLC,kBACI,MAAO,CACH,CAACH,SAAU,MAAOC,MAAO,IAAI,CAACC,GAAG,CAAC,oDAAoD,EACtF,CAACF,SAAU,QAASC,MAAO,IAAI,CAACC,GAAG,CAAC,sDAAsD,EAC7F,CAET,EAEAE,UACI,IAAI,CAACC,gBAAgB,EACzB,EAEAC,QAAS,CACLD,mBACI,IAAI,CAACE,cAAc,EACvB,EAEAC,oBACI,IAAI,CAACD,cAAc,EACvB,EAEAA,iBACI,IAAME,EAAW,IAAIhC,EAKrB,OAJAgC,EAASC,SAAS,CAACjC,EAASkC,MAAM,CAAC,UAAW,IAAI,CAAC3B,KAAK,CAAC4B,EAAE,GAC3DH,EAASI,UAAU,CAACpC,EAASqC,IAAI,CAAC,kBAAmB,MAAO,KAE5D,IAAI,CAACxB,SAAS,CAAG,GACV,IAAI,CAACG,oBAAoB,CAACsB,MAAM,CAACN,EAAU/B,SAASsC,OAAO,CAACC,GAAG,EAAEC,IAAI,CAAC,IACzE,IAAI,CAAC7B,WAAW,CAAG8B,EACnB,IAAI,CAAC7B,SAAS,CAAG,EACrB,EACJ,EAEA8B,YAAYC,CAAU,EAClB,IAAI,CAAC9B,kBAAkB,CAAG8B,EAAWC,cAAc,EAGvDC,sBACI,IAAI,CAAChC,kBAAkB,CAAG,IAC9B,EAEAiC,iBAAiBC,CAAM,EACnB,IAAMrC,EAAO,EAAE,CAEf,IAAK,IAAMsC,KAAOD,EACdrC,EAAKuC,IAAI,CAAC,CAACD,IAAAA,EAAKE,MAAOH,CAAM,CAACC,EAAI,GAKtC,OAFAtC,EAAK0B,IAAI,CAAC,CAACe,EAAGC,IAAMD,EAAEH,GAAG,CAACK,aAAa,CAACD,EAAEJ,GAAG,GAEtCtC,CACX,EAEA4C,cAAcP,CAAM,CAAEQ,CAAU,CAAErB,CAAE,EAChC,IAAMsB,EAAOC,SAASC,aAAa,CAAC,IACpCF,CAAAA,EAAKG,IAAI,CAAG,iCAAmCC,mBAAmBC,KAAKC,SAAS,CAACf,EAAQ,KAAM,IAC/FS,EAAKO,QAAQ,CAAG,CAAC,OAAO,EAAER,EAAW,CAAC,EAAErB,EAAG,IAAI,CAAC,CAChDsB,EAAKQ,aAAa,CAAC,IAAIC,WAAW,UAClCT,EAAKU,MAAM,EACf,CACJ,CACJ,C","sources":["webpack://administration/../../../../../../custom/plugins/PayonePayment/src/Resources/app/administration/src/module/sw-order/component/payone-payment-webhook-log/index.js","webpack://administration/../../../../../../custom/plugins/PayonePayment/src/Resources/app/administration/src/module/sw-order/component/payone-payment-webhook-log/payone-payment-webhook-log.html.twig"],"sourcesContent":["import template from './payone-payment-webhook-log.html.twig';\n\nconst {Criteria} = Shopware.Data;\nconst { Filter } = Shopware;\n\nexport default {\n template,\n\n inject: ['repositoryFactory'],\n\n props: {\n order: {\n type: Object,\n required: true,\n },\n },\n\n data() {\n return {\n webhookLogs: [],\n isLoading: false,\n showWebhookDetails: null,\n };\n },\n\n computed: {\n webhookLogRepository() {\n return this.repositoryFactory.create('payone_payment_webhook_log');\n },\n\n assetFilter() {\n return Filter.getByName('asset');\n },\n\n dateFilter() {\n return Filter.getByName('date');\n },\n\n webhookLogColumns() {\n return [\n {\n property: 'transactionId',\n label: this.$tc('sw-order.payone-payment.webhookLog.columnTitleTransactionId')\n },\n {\n property: 'transactionState',\n label: this.$tc('sw-order.payone-payment.webhookLog.columnTitleTransactionState')\n },\n {\n property: 'sequenceNumber',\n label: this.$tc('sw-order.payone-payment.webhookLog.columnTitleSequenceNumber')\n },\n {\n property: 'clearingType',\n label: this.$tc('sw-order.payone-payment.webhookLog.columnTitleClearingType')\n },\n {\n property: 'webhookDateTime',\n label: this.$tc('sw-order.payone-payment.webhookLog.columnTitleWebhookDateTime')\n },\n ];\n },\n\n keyValueColumns() {\n return [\n {property: 'key', label: this.$tc('sw-order.payone-payment.webhookLog.columnTitleKey')},\n {property: 'value', label: this.$tc('sw-order.payone-payment.webhookLog.columnTitleValue')},\n ];\n },\n },\n\n created() {\n this.createdComponent();\n },\n\n methods: {\n createdComponent() {\n this.getWebhookLogs();\n },\n\n reloadWebhookLogs() {\n this.getWebhookLogs();\n },\n\n getWebhookLogs() {\n const criteria = new Criteria();\n criteria.addFilter(Criteria.equals('orderId', this.order.id));\n criteria.addSorting(Criteria.sort('webhookDateTime', 'ASC', true));\n\n this.isLoading = true;\n return this.webhookLogRepository.search(criteria, Shopware.Context.api).then((searchResult) => {\n this.webhookLogs = searchResult;\n this.isLoading = false;\n });\n },\n\n openDetails(webhookLog) {\n this.showWebhookDetails = webhookLog.webhookDetails;\n },\n\n onCloseWebhookModal() {\n this.showWebhookDetails = null;\n },\n\n toKeyValueSource(object) {\n const data = [];\n\n for (const key in object) {\n data.push({key, value: object[key]});\n }\n\n data.sort((a, b) => a.key.localeCompare(b.key));\n\n return data;\n },\n\n downloadAsTxt(object, objectType, id) {\n const link = document.createElement('a');\n link.href = 'data:text/plain;charset=utf-8,' + encodeURIComponent(JSON.stringify(object, null, 4));\n link.download = `PAYONE-${objectType}-${id}.txt`;\n link.dispatchEvent(new MouseEvent('click'));\n link.remove();\n },\n }\n};\n","export default \"{% block payone_payment_webhook_log %}\\n \\n 0\\\"\\n :showSelection=\\\"false\\\"\\n :dataSource=\\\"webhookLogs\\\"\\n :columns=\\\"webhookLogColumns\\\"\\n :isLoading=\\\"isLoading\\\"\\n >\\n \\n\\n \\n\\n \\n \\n\\n \\n \\n \\n \\n{% endblock %}\\n\";"],"names":["Criteria","Shopware","Data","Filter","template","inject","props","order","type","Object","required","data","webhookLogs","isLoading","showWebhookDetails","computed","webhookLogRepository","repositoryFactory","create","assetFilter","getByName","dateFilter","webhookLogColumns","property","label","$tc","keyValueColumns","created","createdComponent","methods","getWebhookLogs","reloadWebhookLogs","criteria","addFilter","equals","id","addSorting","sort","search","Context","api","then","searchResult","openDetails","webhookLog","webhookDetails","onCloseWebhookModal","toKeyValueSource","object","key","push","value","a","b","localeCompare","downloadAsTxt","objectType","link","document","createElement","href","encodeURIComponent","JSON","stringify","download","dispatchEvent","MouseEvent","remove"],"sourceRoot":""} \ No newline at end of file diff --git a/src/Resources/public/static/js/187f39a64b9957fa0cd6.js b/src/Resources/public/static/js/187f39a64b9957fa0cd6.js new file mode 100644 index 00000000..6f32f302 --- /dev/null +++ b/src/Resources/public/static/js/187f39a64b9957fa0cd6.js @@ -0,0 +1,2 @@ +"use strict";(window["webpackJsonpPluginpayone-payment"]=window["webpackJsonpPluginpayone-payment"]||[]).push([[536],{536:function(n,a,e){e.r(a),e.d(a,{default:function(){return t}});var t={template:'{% block sw_order_detail_content_tabs_extension %}\n {% parent %}\n\n {% block sw_order_detail_content_tabs_payone %}\n \n {{ $tc(\'sw-order.detail.payone\') }}\n \n {% endblock %}\n\n{% endblock %}',methods:{hasPayoneTransaction(n){let a=this,e=!1;return!!n.transactions&&(n.transactions.map(function(n){a.isPayoneTransaction(n)&&a.isActiveTransaction(n)&&(e=!0)}),e)},isPayoneTransaction(n){return!!n.extensions&&!!n.extensions.payonePaymentOrderTransactionData&&!!n.extensions.payonePaymentOrderTransactionData.transactionId&&n.extensions.payonePaymentOrderTransactionData.transactionId},isActiveTransaction(n){return"cancelled"!==n.stateMachineState.technicalName}}}}}]); +//# sourceMappingURL=187f39a64b9957fa0cd6.js.map \ No newline at end of file diff --git a/src/Resources/public/static/js/187f39a64b9957fa0cd6.js.map b/src/Resources/public/static/js/187f39a64b9957fa0cd6.js.map new file mode 100644 index 00000000..548d9c19 --- /dev/null +++ b/src/Resources/public/static/js/187f39a64b9957fa0cd6.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/187f39a64b9957fa0cd6.js","mappings":"uLAEA,MAAe,CACbA,SCHa,oiBDKbC,QAAS,CACPC,qBAAqBC,CAAK,EACxB,IAAIC,EAAK,IAAI,CACTC,EAAW,SAEf,EAAKF,EAAMG,YAAY,GAIvBH,EAAMG,YAAY,CAACC,GAAG,CAAC,SAASC,CAAW,EACrCJ,EAAGK,mBAAmB,CAACD,IAAgBJ,EAAGM,mBAAmB,CAACF,IAChEH,CAAAA,EAAW,EAAG,CAElB,GAGOA,EACT,EAEAI,oBAAoBD,CAAW,QAC7B,EAAKA,EAAYG,UAAU,IAAKH,EAAYG,UAAU,CAACC,iCAAiC,IAAKJ,EAAYG,UAAU,CAACC,iCAAiC,CAACC,aAAa,EAI5JL,EAAYG,UAAU,CAACC,iCAAiC,CAACC,aAAa,EAG/EH,oBAAoBF,CAAW,EAC7B,MAAOA,cAAAA,EAAYM,iBAAiB,CAACC,aAAa,CAEtD,CACF,C","sources":["webpack://administration/../../../../../../custom/plugins/PayonePayment/src/Resources/app/administration/src/module/sw-order/page/sw-order-detail/index.js","webpack://administration/../../../../../../custom/plugins/PayonePayment/src/Resources/app/administration/src/module/sw-order/page/sw-order-detail/sw-order-detail.html.twig"],"sourcesContent":["import template from './sw-order-detail.html.twig';\n\nexport default {\n template,\n\n methods: {\n hasPayoneTransaction(order) {\n let me = this;\n let isPayone = false;\n\n if (!order.transactions) {\n return false;\n }\n\n order.transactions.map(function(transaction) {\n if (me.isPayoneTransaction(transaction) && me.isActiveTransaction(transaction)) {\n isPayone = true;\n }\n });\n\n\n return isPayone;\n },\n\n isPayoneTransaction(transaction) {\n if (!transaction.extensions || !transaction.extensions.payonePaymentOrderTransactionData || !transaction.extensions.payonePaymentOrderTransactionData.transactionId) {\n return false;\n }\n\n return transaction.extensions.payonePaymentOrderTransactionData.transactionId;\n },\n\n isActiveTransaction(transaction) {\n return transaction.stateMachineState.technicalName !== 'cancelled';\n },\n }\n};\n","export default \"{% block sw_order_detail_content_tabs_extension %}\\n {% parent %}\\n\\n {% block sw_order_detail_content_tabs_payone %}\\n \\n {{ $tc('sw-order.detail.payone') }}\\n \\n {% endblock %}\\n\\n{% endblock %}\";"],"names":["template","methods","hasPayoneTransaction","order","me","isPayone","transactions","map","transaction","isPayoneTransaction","isActiveTransaction","extensions","payonePaymentOrderTransactionData","transactionId","stateMachineState","technicalName"],"sourceRoot":""} \ No newline at end of file diff --git a/src/Resources/public/static/js/1c870eadabd11b1444dd.js b/src/Resources/public/static/js/1c870eadabd11b1444dd.js new file mode 100644 index 00000000..7c7c5f36 --- /dev/null +++ b/src/Resources/public/static/js/1c870eadabd11b1444dd.js @@ -0,0 +1,2 @@ +(window["webpackJsonpPluginpayone-payment"]=window["webpackJsonpPluginpayone-payment"]||[]).push([[907],{221:function(){},907:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}}),n(978);let{Utils:r}=Shopware;var i={template:'{% block payone_ratepay_profiles %}\n
\n {% block payone_ratepay_shop_ids %}\n

{{ $tc(\'payone-payment.general.headlines.ratepayProfiles\') }}

\n \n\n {% block payone_ratepay_shop_ids_actions %}\n \n\n {% block payone_ratepay_shop_ids_create_actions %}\n
\n \n {{ $tc(\'payone-payment.general.actions.addShop\') }}\n \n
\n {% endblock %}\n
\n {% endblock %}\n\n {% block payone_ratepay_shop_ids_grid %}\n \n {% block payone_ratepay_shop_ids_grid_columns %}\n {% block payone_ratepay_shop_ids_grid_column_status %}\n \n {% endblock %}\n\n {% block payone_ratepay_shop_ids_bulk_actions %}\n \n {% endblock %}\n {% endblock %}\n \n {% endblock %}\n\n {% block payone_ratepay_shop_ids_error %}\n \n {{ $tc(\'payone-payment.general.errors.existingShopId\') }}\n \n\n \n {{ $tc(\'payone-payment.general.errors.emptyInputs\') }}\n \n {% endblock %}\n
\n {% endblock %}\n
\n{% endblock %}\n',props:{value:{type:Array,required:!1,default(){return[]}},name:{type:String,required:!0}},data(){return{selectedItems:{},newItem:null,showDuplicateAlert:!1,showEmptyAlert:!1,profiles:this.value}},computed:{getLineItemColumns(){return[{property:"shopId",dataIndex:"shopId",label:this.$tc("payone-payment.general.label.shopId"),allowResize:!1,inlineEdit:"string",width:"200px",primary:!0},{property:"currency",dataIndex:"currency",label:this.$tc("payone-payment.general.label.currency"),allowResize:!1,inlineEdit:"string",width:"200px",primary:!0},{property:"error",label:this.$tc("payone-payment.general.label.error"),allowResize:!1,width:"100px",primary:!0}]}},watch:{profiles(e){this.$emit("update:value",e),this.$emit("input",e),this.$emit("change",e)}},created(){this.createdComponent()},destroyed(){this.destroyedComponent()},methods:{createdComponent(){this.$root.$on("payone-ratepay-profiles-update-result",this.onProfilesUpdateResult)},destroyedComponent(){this.$root.$off("payone-ratepay-profiles-update-result")},onProfilesUpdateResult(e){if(e.updates[this.name]&&(this.profiles=e.updates[this.name]),e.errors[this.name])for(let t of e.errors[this.name])this.profiles.push(t)},onInlineEditCancel(e){""===e.shopId&&""===e.currency&&this.profiles.forEach(function(t,n,r){t.id===e.id&&r.splice(n,1)}),this.$emit("item-cancel")},onInlineEditSave(e){if(""!==e.shopId&&""!==e.currency){this.showEmptyAlert=!1;let t=!1;this.profiles.forEach(function(n){n.id!==e.id&&n.shopId===e.shopId&&(t=!0)}),t?(this.showDuplicateAlert=!0,this.$nextTick(()=>{this.$refs.shopIdsDataGrid.currentInlineEditId=e.id,this.$refs.shopIdsDataGrid.enableInlineEdit()})):this.showDuplicateAlert=!1}else this.showEmptyAlert=!0,this.$nextTick(()=>{this.$refs.shopIdsDataGrid.currentInlineEditId=e.id,this.$refs.shopIdsDataGrid.enableInlineEdit()});this.$emit("update-list",this.profiles)},createNewLineItem(){if(0===this.profiles.length){this.createLine();return}""!==this.profiles[this.profiles.length-1].shopId&&this.createLine()},createLine(){let e=r.createId();this.profiles.push({id:e,shopId:"",currency:""}),this.$nextTick(()=>{this.$refs.shopIdsDataGrid.currentInlineEditId=e,this.$refs.shopIdsDataGrid.enableInlineEdit()})},onDeleteSelectedItem(e){this.profiles=this.profiles.filter(t=>t.shopId!==e.shopId),this.$emit("deleted",this.profiles)}}}},978:function(e,t,n){var r=n(221);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),n(346).Z("25f10f6b",r,!0,{})},346:function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},i=0;in.parts.length&&(r.parts.length=n.parts.length)}else{for(var a=[],i=0;i {\n this.$refs.shopIdsDataGrid.currentInlineEditId = currentItem.id;\n this.$refs.shopIdsDataGrid.enableInlineEdit();\n });\n } else {\n this.showDuplicateAlert = false;\n }\n } else {\n this.showEmptyAlert = true;\n\n this.$nextTick(() => {\n this.$refs.shopIdsDataGrid.currentInlineEditId = currentItem.id;\n this.$refs.shopIdsDataGrid.enableInlineEdit();\n });\n }\n\n this.$emit('update-list', this.profiles);\n },\n\n createNewLineItem() {\n let emptyProfilesList = false;\n\n emptyProfilesList = this.profiles.length === 0;\n\n if(emptyProfilesList) {\n this.createLine();\n return;\n }\n\n if(this.profiles[this.profiles.length - 1].shopId !== \"\") {\n this.createLine();\n }\n },\n\n createLine() {\n const newId = Utils.createId();\n\n this.profiles.push({'id': newId, 'shopId': '', 'currency': '' });\n\n this.$nextTick(() => {\n this.$refs.shopIdsDataGrid.currentInlineEditId = newId;\n this.$refs.shopIdsDataGrid.enableInlineEdit();\n });\n },\n\n onDeleteSelectedItem(itemToDelete) {\n this.profiles = this.profiles.filter(currentItem => currentItem.shopId !== itemToDelete.shopId);\n\n this.$emit('deleted', this.profiles);\n },\n }\n};\n","export default \"{% block payone_ratepay_profiles %}\\n
\\n {% block payone_ratepay_shop_ids %}\\n

{{ $tc('payone-payment.general.headlines.ratepayProfiles') }}

\\n \\n\\n {% block payone_ratepay_shop_ids_actions %}\\n \\n\\n {% block payone_ratepay_shop_ids_create_actions %}\\n
\\n \\n {{ $tc('payone-payment.general.actions.addShop') }}\\n \\n
\\n {% endblock %}\\n
\\n {% endblock %}\\n\\n {% block payone_ratepay_shop_ids_grid %}\\n \\n {% block payone_ratepay_shop_ids_grid_columns %}\\n {% block payone_ratepay_shop_ids_grid_column_status %}\\n \\n {% endblock %}\\n\\n {% block payone_ratepay_shop_ids_bulk_actions %}\\n \\n {% endblock %}\\n {% endblock %}\\n \\n {% endblock %}\\n\\n {% block payone_ratepay_shop_ids_error %}\\n \\n {{ $tc('payone-payment.general.errors.existingShopId') }}\\n \\n\\n \\n {{ $tc('payone-payment.general.errors.emptyInputs') }}\\n \\n {% endblock %}\\n
\\n {% endblock %}\\n
\\n{% endblock %}\\n\";","// style-loader: Adds some css to the DOM by adding a