Describe the bug
The "DiscountedPrice" class of CommerceTools SDK has a property named "value". This property is of "Money" type. In the Money class, "fractionDigits" property is missing.
In the SDK's Cart response from carts endpoint, we see that in discounted price we do not have fraction digits. Whereas in normal price like total price we have it.
As a result, the raw cart response from CT(the one received from Impex API) has fraction digits in it but the SDK omits this value, and we cannot use fraction digits in our java logic.
To Reproduce
Create a cart with discount applied on a line item.
Get the cart from Impex API and through SDK
Check for lineItems --> variant --> prices --> discounted --> value property.
The cart response from Impex API has discountedPrice with fractionDigits.
The cart response received through SDK in CartImpl does not has discountedPrice with fractionDigits.
Expected behavior
In the "DiscountedPrice" section of Cart response, we should get the fraction digits and the SDK should not omit this information.
Screenshots/Code snippet
If applicable, add screenshots or code samples to help explain your problem.
Stack information (please complete the following information):
Java: 11
SDK: 6.4.0
Additional context
Add any other context about the problem here.
Describe the bug The "DiscountedPrice" class of CommerceTools SDK has a property named "value". This property is of "Money" type. In the Money class, "fractionDigits" property is missing.
In the SDK's Cart response from carts endpoint, we see that in discounted price we do not have fraction digits. Whereas in normal price like total price we have it. As a result, the raw cart response from CT(the one received from Impex API) has fraction digits in it but the SDK omits this value, and we cannot use fraction digits in our java logic.
To Reproduce
Expected behavior In the "DiscountedPrice" section of Cart response, we should get the fraction digits and the SDK should not omit this information.
Screenshots/Code snippet If applicable, add screenshots or code samples to help explain your problem.
Stack information (please complete the following information):
Additional context Add any other context about the problem here.