reactioncommerce / api-plugin-carts

Carts plugin for the Reaction API
GNU General Public License v3.0
1 stars 14 forks source link

feat: allow applied cart surcharges to have any shape #6

Closed aldeed closed 4 years ago

aldeed commented 4 years ago

Type: feature

Changes

Companion to https://github.com/reactioncommerce/api-plugin-surcharges/pull/3

Applied surcharge fields are no longer validated when being applied to a cart. 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 https://github.com/reactioncommerce/api-plugin-surcharges/pull/3

rc-publisher commented 4 years ago

:tada: This PR is included in version 1.1.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: