Skip to content

Commit

Permalink
module version + xml sniffing
Browse files Browse the repository at this point in the history
  • Loading branch information
Lord Vollkorn committed Apr 29, 2021
1 parent 8334017 commit 964d823
Show file tree
Hide file tree
Showing 11 changed files with 233 additions and 68 deletions.
3 changes: 3 additions & 0 deletions RELEASE_NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
==== 1.3.6 ====
workaround for checkout sessions loss

==== 1.3.5 ====
Version update + bugfix

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}
],
"type": "magento2-module",
"version": "1.3.5",
"version": "1.3.6",
"license": [
"OSL-3.0"
],
Expand Down
175 changes: 152 additions & 23 deletions etc/adminhtml/system.xml

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
* @link https://www.i-ways.net
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
<default>
<iways_paypalplus>
<api>
Expand Down
6 changes: 4 additions & 2 deletions etc/csp_whitelist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@
<policies>
<policy id="base-uri">
<values>
<value id="https-www-paypalobjects-com" type="host">https://www.paypalobjects.com</value>
<value id="https-www-paypalobjects-com"
type="host">https://www.paypalobjects.com</value>
</values>
</policy>
<policy id="form-action">
<values>
<value id="https-www-sandbox-paypal-com" type="host">https://www.sandbox.paypal.com</value>
<value id="https-www-sandbox-paypal-com"
type="host">https://www.sandbox.paypal.com</value>
</values>
</policy>
</policies>
Expand Down
18 changes: 12 additions & 6 deletions etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,22 @@
* @link https://www.i-ways.net
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<preference for="Iways\PayPalPlus\Api\GuestPPPPaymentInformationManagementInterface" type="Iways\PayPalPlus\Model\PaymentInformationManagement\GuestPPPPaymentInformationManagement" />
<preference for="Iways\PayPalPlus\Api\PPPPaymentInformationManagementInterface" type="Iways\PayPalPlus\Model\PaymentInformationManagement\PPPPaymentInformationManagement" />
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<preference for="Iways\PayPalPlus\Api\GuestPPPPaymentInformationManagementInterface"
type="Iways\PayPalPlus\Model\PaymentInformationManagement\GuestPPPPaymentInformationManagement" />
<preference for="Iways\PayPalPlus\Api\PPPPaymentInformationManagementInterface"
type="Iways\PayPalPlus\Model\PaymentInformationManagement\PPPPaymentInformationManagement" />
<type name="Magento\Sales\Model\Order\Payment">
<plugin name="addPppAttributes" type="Iways\PayPalPlus\Plugin\Sales\Model\Order\PaymentPlugin" />
<plugin name="addPppAttributes"
type="Iways\PayPalPlus\Plugin\Sales\Model\Order\PaymentPlugin" />
</type>
<type name="Magento\Payment\Model\MethodList">
<plugin name="paymentAddPpp" type="Iways\PayPalPlus\Plugin\Payment\Model\MethodListPlugin" />
<plugin name="paymentAddPpp"
type="Iways\PayPalPlus\Plugin\Payment\Model\MethodListPlugin" />
</type>
<type name="Magento\Config\Model\Config\Structure\Element\Group">
<plugin name="dynamic_config_groups" type="Iways\PayPalPlus\Plugin\Config\Structure\Element\Group" />
<plugin name="dynamic_config_groups"
type="Iways\PayPalPlus\Plugin\Config\Structure\Element\Group" />
</type>
</config>
58 changes: 35 additions & 23 deletions etc/extension_attributes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,61 +17,73 @@
* @link https://www.i-ways.net
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Api/etc/extension_attributes.xsd">
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Api/etc/extension_attributes.xsd">
<extension_attributes for="Magento\Sales\Api\Data\OrderPaymentInterface">
<attribute code="ppp_reference_number" type="string">
<attribute code="ppp_reference_number"
type="string">
<resources>
<resource ref="Magento_Sales::actions_view"/>
<resource ref="Magento_Sales::actions_view" />
</resources>
</attribute>
<attribute code="ppp_instruction_type" type="string">
<attribute code="ppp_instruction_type"
type="string">
<resources>
<resource ref="Magento_Sales::actions_view"/>
<resource ref="Magento_Sales::actions_view" />
</resources>
</attribute>
<attribute code="ppp_payment_due_date" type="string">
<attribute code="ppp_payment_due_date"
type="string">
<resources>
<resource ref="Magento_Sales::actions_view"/>
<resource ref="Magento_Sales::actions_view" />
</resources>
</attribute>
<attribute code="ppp_note" type="string">
<attribute code="ppp_note"
type="string">
<resources>
<resource ref="Magento_Sales::actions_view"/>
<resource ref="Magento_Sales::actions_view" />
</resources>
</attribute>
<attribute code="ppp_bank_name" type="string">
<attribute code="ppp_bank_name"
type="string">
<resources>
<resource ref="Magento_Sales::actions_view"/>
<resource ref="Magento_Sales::actions_view" />
</resources>
</attribute>
<attribute code="ppp_account_holder_name" type="string">
<attribute code="ppp_account_holder_name"
type="string">
<resources>
<resource ref="Magento_Sales::actions_view"/>
<resource ref="Magento_Sales::actions_view"/>
</resources>
</attribute>
<attribute code="ppp_international_bank_account_number" type="string">
<attribute code="ppp_international_bank_account_number"
type="string">
<resources>
<resource ref="Magento_Sales::actions_view"/>
<resource ref="Magento_Sales::actions_view" />
</resources>
</attribute>
<attribute code="ppp_bank_identifier_code" type="string">
<attribute code="ppp_bank_identifier_code"
type="string">
<resources>
<resource ref="Magento_Sales::actions_view"/>
<resource ref="Magento_Sales::actions_view" />
</resources>
</attribute>
<attribute code="ppp_routing_number" type="string">
<attribute code="ppp_routing_number"
type="string">
<resources>
<resource ref="Magento_Sales::actions_view"/>
<resource ref="Magento_Sales::actions_view" />
</resources>
</attribute>
<attribute code="ppp_amount" type="string">
<attribute code="ppp_amount"
type="string">
<resources>
<resource ref="Magento_Sales::actions_view"/>
<resource ref="Magento_Sales::actions_view" />
</resources>
</attribute>
<attribute code="ppp_currency" type="string">
<attribute code="ppp_currency"
type="string">
<resources>
<resource ref="Magento_Sales::actions_view"/>
<resource ref="Magento_Sales::actions_view" />
</resources>
</attribute>
</extension_attributes>
Expand Down
9 changes: 6 additions & 3 deletions etc/frontend/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@
* @link https://www.i-ways.net
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Magento\Checkout\Model\CompositeConfigProvider">
<arguments>
<argument name="configProviders" xsi:type="array">
<item name="iways_paypalplus_payment_config_provider" xsi:type="object">Iways\PayPalPlus\Model\ConfigProvider</item>
<argument name="configProviders"
xsi:type="array">
<item name="iways_paypalplus_payment_config_provider"
xsi:type="object">Iways\PayPalPlus\Model\ConfigProvider</item>
</argument>
</arguments>
</type>
Expand Down
6 changes: 4 additions & 2 deletions etc/frontend/routes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
* @link https://www.i-ways.net
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
<router id="standard">
<route id="paypalplus" frontName="paypalplus">
<route id="paypalplus"
frontName="paypalplus">
<module name="Iways_PayPalPlus" />
</route>
</router>
Expand Down
6 changes: 4 additions & 2 deletions etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@
* @link https://www.i-ways.net
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Iways_PayPalPlus" setup_version="1.3.5">
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Iways_PayPalPlus"
setup_version="1.3.6">
<sequence>
<module name="Magento_Paypal" />
</sequence>
Expand Down
15 changes: 10 additions & 5 deletions etc/webapi.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,25 @@
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">
<!-- Managing payment guest information -->
<route url="/V1/guest-carts/:cartId/set-ppp-payment-information" method="POST">
<service class="Iways\PayPalPlus\Api\GuestPPPPaymentInformationManagementInterface" method="savePaymentInformation" />
<route url="/V1/guest-carts/:cartId/set-ppp-payment-information"
method="POST">
<service class="Iways\PayPalPlus\Api\GuestPPPPaymentInformationManagementInterface"
method="savePaymentInformation" />
<resources>
<resource ref="anonymous" />
</resources>
</route>
<!-- Managing My shipping information -->
<route url="/V1/carts/mine/set-ppp-payment-information" method="POST">
<service class="Iways\PayPalPlus\Api\PPPPaymentInformationManagementInterface" method="savePaymentInformation" />
<route url="/V1/carts/mine/set-ppp-payment-information"
method="POST">
<service class="Iways\PayPalPlus\Api\PPPPaymentInformationManagementInterface"
method="savePaymentInformation" />
<resources>
<resource ref="self" />
</resources>
<data>
<parameter name="cartId" force="true">%cart_id%</parameter>
<parameter name="cartId"
force="true">%cart_id%</parameter>
</data>
</route>
</routes>

0 comments on commit 964d823

Please sign in to comment.