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

[Api] Denying usage of unexisting promotion coupon #12703

Conversation

Tomanhez
Copy link
Contributor

@Tomanhez Tomanhez commented Jun 9, 2021

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no

| License | MIT

@Tomanhez Tomanhez added the API APIs related issues and PRs. label Jun 9, 2021
@Tomanhez Tomanhez requested a review from a team as a code owner June 9, 2021 06:32
@Tomanhez Tomanhez changed the title [Api] Add tests and implementation [Api] Denying usage of unexisting promotion coupon Jun 9, 2021
@Tomanhez Tomanhez force-pushed the denying-usage-of-unexisting-promotion-coupon branch 2 times, most recently from 248258b to 55dd8dd Compare June 9, 2021 07:11
@Tomanhez Tomanhez force-pushed the denying-usage-of-unexisting-promotion-coupon branch 2 times, most recently from 0364306 to a00a8c8 Compare June 9, 2021 07:13
@Tomanhez Tomanhez force-pushed the denying-usage-of-unexisting-promotion-coupon branch from a00a8c8 to 0e73cad Compare June 9, 2021 07:46
@Zales0123 Zales0123 merged commit 91e4507 into Sylius:master Jun 9, 2021
@Zales0123
Copy link
Member

Thanks, Tomasz! 🎉

Zales0123 added a commit to Zales0123/Sylius that referenced this pull request Jun 9, 2021
GSadee added a commit that referenced this pull request Jun 9, 2021
…ales0123)

This PR was merged into the 1.11-dev branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | master
| Bug fix?        | no
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | 
| License         | MIT

I've also unified the validation message to always show that coupon code is invalid (from the perspective of a Customer, much more natural information than `Promotion is invalid` 💃)

Commits
-------

4fbbb31 [API] Import proper context to fix coupon invalidity checking
de57cf1 Validate coupon on promotion from another channel
4f2a5d9 Receiving no discount for not-in-time coupon promotion
274554c Receiving no discount for already used coupon promotion
4fbf939 Receiving no discount if coupon promotion rules are not fulfilled
bcc3354 Validator refactoring
70b2666 Unify invalid coupon/promotion validation message
831ab89 PromotionCouponEligbilityValidator refactoring
81bf5da Incorporate changes from #12703 into the checker
Tomanhez pushed a commit to Tomanhez/Sylius that referenced this pull request Jun 24, 2021
Tomanhez pushed a commit to Tomanhez/Sylius that referenced this pull request Jun 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API APIs related issues and PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants