Skip to content

Change monetary amounts to BigDecimal #151

@arkhadi

Description

@arkhadi

Prerequisites

Put an X between the brackets on this line if you have done all the following:

  • [X ] Reproduced the problem or exposed a new need
  • [X ] Checked the GitHub existing issues

Description

When working with monetary amounts in Java it is recommended to avoid the use of Long or Double as they may introduce rounding issues. BigDecimal is the recommended type for monetary amounts. Explanation can be found here

Steps to Reproduce

Expected behavior:

Amount values parsing to BigDecimal from Json.

Actual behavior:

Double being used.

Reproduces how often:

Every time as it is in all the classes.

Versions

Latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions