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

To fix: Error code returning for currency that is not onboarded #4012

Open
PhyuSinMyat8 opened this issue Oct 2, 2024 · 0 comments
Open
Assignees
Labels
vNext vNext Platform Development (inline with RefArch)

Comments

@PhyuSinMyat8
Copy link

PhyuSinMyat8 commented Oct 2, 2024

Summary:

When performing a transaction with a currency that is not onboarded in the hub, but exists in the real world (e.g., THB), the system returns 4000 error code wrongly.
image.png

Severity:
Medium

Priority:
Medium

Expected Behavior
When performing a transaction with a currency that is not onboarded in the hub, but exists in the real world (e.g., THB), the system should return the following error message during the postSendMoney call:

{"errorInformation":{"errorCode":"3100","errorDescription":"must be equal to one of the allowed values - path: /body/amount/currency","extensionList":{"extension":[{"key":"keyword","value":"enum"},{"key":"instancePath","value":"/body/amount/currency"},{"key":"allowedValues","value":"[\"EUR\", \"USD\", \"MMK\", \"MXN\"]"}]}}}

Steps to Reproduce

  • Make a transaction with "THB" currency

Specifications
Version: 0.5.42 - dev
Platform: Mojaloop
Type of testing: QA testing
Bug found/raised by: Phyu Sin Myat

Notes:
Severity when opened: Medium
Priority when opened: Medium

@PhyuSinMyat8 PhyuSinMyat8 added the vNext vNext Platform Development (inline with RefArch) label Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vNext vNext Platform Development (inline with RefArch)
Projects
None yet
Development

No branches or pull requests

2 participants