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

add missing price sets in order #313

Merged

Conversation

andypwarren
Copy link

@andypwarren andypwarren commented Dec 5, 2024

Some price sets were missing in the Order and TaxLine types which meant it wasn't possible to access the presentational amount.

Note it seems TotalDiscountSet was added but it was wrongly mapped to the JSON. It should be total_discounts_set not total_discount_set. I've left it in to avoid a breaking change (although it wont be working correctly if people are using it). Happy to remove it if that's best

Copy link
Collaborator

@oliver006 oliver006 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, looks good!

let's remove TotalDiscountSet as per your suggestion, I'm ok with this breaking backward compatibility, it was never working as intended.

order.go Outdated Show resolved Hide resolved
@andypwarren andypwarren force-pushed the feature/add-missing-fields branch from 8164a97 to 0e2df29 Compare December 6, 2024 09:20
@andypwarren andypwarren force-pushed the feature/add-missing-fields branch from 0e2df29 to e3c9ca8 Compare December 6, 2024 09:21
Copy link
Collaborator

@oliver006 oliver006 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@oliver006 oliver006 merged commit f644757 into bold-commerce:master Dec 6, 2024
3 checks passed
@andypwarren andypwarren deleted the feature/add-missing-fields branch December 6, 2024 16:19
@oliver006
Copy link
Collaborator

released as v4.7.0

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

Successfully merging this pull request may close these issues.

2 participants