Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Api] Denying usage of unexisting promotion coupon#12703

Merged
Zales0123 merged 1 commit into
Sylius:masterfrom
Tomanhez:denying-usage-of-unexisting-promotion-coupon
Jun 9, 2021
Merged

[Api] Denying usage of unexisting promotion coupon#12703
Zales0123 merged 1 commit into
Sylius:masterfrom
Tomanhez:denying-usage-of-unexisting-promotion-coupon

Conversation

@Tomanhez
Copy link
Copy Markdown
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
Comment thread src/Sylius/Bundle/PromotionBundle/Resources/translations/validators.en.yml Outdated
@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
Copy Markdown
Contributor

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.

2 participants