Fix(connector): [BOA/CYBS] make rsync status optional #4599
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type of Change
Description
BOA's Rsync response may or may not contain status. But status is a mandatory field in the connector response, hence when the connector response do not contain status, it results in a de serialization error.
This PR fixes the de-serialization error, by marking refund status as pending if connector do not send us the status.
Hotfix for #4570
How did you test it?
1.Create a card payment with BOA
Response
Response
Response - Should not give a De-serialization error
Response
Response
Response
Note: there is no particular scenario where status is not sent in rsync connector response. This can happen randomly
Checklist
cargo +nightly fmt --all
cargo clippy