paytrail / api-documentation

Paytrail Payment API documentation
MIT License
6 stars 11 forks source link

vatPercentage should support decimals #105

Closed JanMkl closed 3 months ago

JanMkl commented 5 months ago

Describe the bug

vatPercentage is defined in the API documentation to be an integer. Snippet from the OpenAPI3 documentation: vatPercentage: type: integer format: int64 example: 24 minimum: 0 maximum: 100 description: Item VAT percentage

Steps to Reproduce

Set a float and validate against the OpenAPI definition a type error produced.

Expected behaviour

The type should allow floats or other type of decimal numbers.

Actual behaviour

.

Screenshots

.

Additional context

.

atrotossavainen commented 5 months ago

See #28

loueranta-paytrail commented 3 months ago

@JanMkl & @atrotossavainen: The support for decimals in VAT has now been released.

Values between 0 and 100 are allowed with one number in decimal part.