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

Quickpay API returns "BadRequest" on Refund when using RefundPaymentRequestParams with default vat_rate #26

Open
aksaniandriy opened this issue Jul 3, 2024 · 0 comments

Comments

@aksaniandriy
Copy link

In RefundPaymentRequestParams class, vat_rate property type is nullable int.
However, when vat_rate is not set in the instance of RefundPaymentRequestParams, PaymentService.RefundPayment method returns "BadRequest" with the following body:
{
"message": "Validation error",
"errors": {
"vat_rate": [
"is empty"
]
},
"error_code": null
}

My assumption is that vat_rate was made nullable, but RestSharp json serializer adds it to the request body event if it is null.

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

No branches or pull requests

1 participant