Skip to content
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

Technical cancel api fix #322

Merged
merged 1 commit into from
Mar 24, 2020

Conversation

dbaneman
Copy link
Contributor

Description
This fixes a couple small issues with the technical-cancel API.

Tested scenarios
After vendoring this change into our application, I successfully sent a technical-cancel request and saw the expected response code in the API response.

I encountered two problems when trying to send a TechnicalCancelRequest using
the Modification service:
- ClassCastException when calling setters on TechnicalCancelRequest because
  it's incorrectly trying to cast it as a CancelOrRefundRequest
- Missing "response" field when deserializing the result because the
  ModificationResult was missing an enum for "[technical-cancel-received]"
@coveralls
Copy link

coveralls commented Mar 23, 2020

Coverage Status

Coverage increased (+0.004%) to 24.546% when pulling 4b348cc on dbaneman:technical-cancel-api-fix into 57f03a4 on Adyen:develop.

@AlexandrosMor
Copy link
Contributor

Hello @dbaneman,

We would like to thank you for the PR, is it possible to add unit test related to your code?

regards,
Alexandros

@andrei-dediu andrei-dediu merged commit 20bdb8b into Adyen:develop Mar 24, 2020
@rikterbeek
Copy link
Contributor

Hi @dbaneman,

Again thanks for the PR! We have merged the code we will add some extra testing on our end to spot the inconsistencies.

Regards,
Rik
Adyen

@dbaneman dbaneman deleted the technical-cancel-api-fix branch March 30, 2020 18:19
@dbaneman
Copy link
Contributor Author

Great -- thanks for the fast response on this, @rikterbeek ! One last note on this: you may also want to add "TECHNICAL_CANCEL" to the list of event codes on https://docs.adyen.com/development-resources/notifications/understand-notifications#event-codes

Best,
Dan

@rikterbeek rikterbeek mentioned this pull request Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants