Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

feat: allow applied order surcharges to have any shape #7

Merged
merged 1 commit into from
Apr 28, 2020

Conversation

aldeed
Copy link
Contributor

@aldeed aldeed commented Apr 28, 2020

Type: feature

Changes

Companion to reactioncommerce/api-plugin-surcharges#3

Applied surcharge fields are no longer validated when being applied to an order. Any object with any fields is allowed. Responsibility is passed to the surcharges plugin to validate before returning them.

This makes it easier for plugins to override the AppliedSurcharge schema, since it is stored by both carts and orders.

Breaking changes

None

Testing

Probably easiest to merge after code review and test together with reactioncommerce/api-plugin-surcharges#3

Signed-off-by: Eric Dobbertin <eric@dairystatedesigns.com>
@aldeed aldeed requested a review from kieckhafer April 28, 2020 21:59
@kieckhafer kieckhafer merged commit da3ee36 into trunk Apr 28, 2020
@kieckhafer kieckhafer deleted the feat-black-box-surcharges branch April 28, 2020 22:12
@rc-publisher
Copy link
Collaborator

🎉 This PR is included in version 1.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@rc-publisher rc-publisher added the released Applied automatically by semantic-release label Apr 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
released Applied automatically by semantic-release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants