-
Notifications
You must be signed in to change notification settings - Fork 31
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
PROMO-1050 Add shipping discount action #358
base: main
Are you sure you want to change the base?
Conversation
939d4bc
to
cb53225
Compare
35523bf
to
fd39e6d
Compare
type: integer | ||
minimum: 1 | ||
required: | ||
- method_ids |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
discount
is probably required as well 😄
reference/promotions.v3.yml
Outdated
properties: | ||
discount: | ||
$ref: '#/components/schemas/Discount' | ||
as_total: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't notice this during initial UX review.
I'm wondering if this can be omitted to "per destination" for the 1st iteration ? distribute as a total amount is definitely doable engineering wise, but from past experience, it's also a source of rounding bugs, so we only want to take on the additional complexity when we're sure that the demand is there.
Probably worth asking JW to confirm if this is required for WD, if not, we can reduce the scope a bit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed! Let's see if we can limit it to per desitination then expand with this later if needed.
description: List of shipping method IDs to which the shipping discount can apply. | ||
items: | ||
type: integer | ||
minimum: 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to enforce some sort of sanity check maximum? Just so we don't inevitably have merchants finding creative ways to abuse this and potentially listing hundreds of shipping methods? We can always increase the limit if discover a legit use case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely!
PROMO-1050
What changed?
This is based on the mockup shown here:
Release notes draft
TBC
Anything else?
ping {names}