Skip to content

Added function definition for setAdditionalInformation in \Magento\Sa… #13455

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

koenner01
Copy link
Contributor

…les\Api\Data\OrderPaymentInterface

Description

When trying to run a paid order through a \Magento\Framework\Webapi\ServiceOutputProcessor it will fail because the 'additional_information' data has no corresponding setter defined in the interface.

The ServiceOutputProcessor tries to serialize the order object based on the (api) interfaces. When it reaches the serialization of the Payment object in the order the processor will fail when the object has data for 'additional_information' (normally this contains the payment method name).

The Magento\Sales\Api\Data\OrderPaymentInterface should contain a setAdditionalInformation function definition which will be implemented by the setAdditionalInformation function defined in Magento\Payment\Model\InfoInterface

Fixed Issues (if relevant)

  1. Magento\Sales\Api\Data\OrderPaymentInterface is missing a setter for 'additional_information' data #13222

Manual testing scenarios

  1. See description and testing scenario in original issue Magento\Sales\Api\Data\OrderPaymentInterface is missing a setter for 'additional_information' data #13222

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@rogyar rogyar self-assigned this Feb 3, 2018
@rogyar rogyar added this to the February 2018 milestone Feb 5, 2018
@magento-engcom-team
Copy link
Contributor

@koenner01 thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository.

@koenner01
Copy link
Contributor Author

@magento-engcom-team I accepted the invite, but I removed myself immediately after (because the spammage of notifications was going overboard). Thanks for the offer though!

@centerax
Copy link
Contributor

why is it on hold? can this be merged?

@okorshenko okorshenko modified the milestones: March 2018, April 2018 Apr 16, 2018
@rogyar
Copy link
Contributor

rogyar commented Apr 29, 2018

At the moment we cannot accept the solution since it causes backward compatibility issues (see http://devdocs.magento.com/guides/v2.0/contributor-guide/backward-compatible-development/). Thank you for the collaboration.

@rogyar rogyar closed this Apr 29, 2018
@hostep
Copy link
Contributor

hostep commented Apr 29, 2018

@rogyar: if the PR was targeted towards the 2.3-develop branch, would it then be accepted?

And BiC can't be ignored in this case? Since this PR actually fixes a serious oversight.

@rogyar
Copy link
Contributor

rogyar commented May 3, 2018

@hostep the issue is going resolved on the implementation level in further releases. Unfortunately, we cannot ignore BC in this case since it might cause problems with the existing installations. If some 3rd party extension implements the interface, we get the installation broken.

@hostep
Copy link
Contributor

hostep commented May 3, 2018

I think if it's a bug, BC can be ignored and if it's a new feature, the BC rules should be adhered. But whatever, we've patched in in our installation, others might then still run into this bug until it's fixed properly in a couple of months/years.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants