Skip to content

Add mutation to apply coupon code#113

Merged
rainerdema merged 2 commits intomasterfrom
rainerd/apply-coupon-code-mutation
Jun 12, 2020
Merged

Add mutation to apply coupon code#113
rainerdema merged 2 commits intomasterfrom
rainerd/apply-coupon-code-mutation

Conversation

@rainerdema
Copy link
Copy Markdown
Contributor

@rainerdema rainerdema commented May 15, 2020

Quick Info

Issue Schema updates New type/mutation
N/A 👍 👍
  • Add applyCouponCode mutation: This apply a coupon code to the current_order.

@rainerdema rainerdema force-pushed the rainerd/apply-coupon-code-mutation branch 4 times, most recently from 1de859c to 9c54fca Compare May 15, 2020 15:08
@rainerdema rainerdema self-assigned this May 22, 2020
@rainerdema rainerdema force-pushed the rainerd/apply-coupon-code-mutation branch 4 times, most recently from ab94890 to 0436261 Compare May 29, 2020 15:21
@rainerdema rainerdema force-pushed the rainerd/apply-coupon-code-mutation branch 3 times, most recently from 181a53a to 7759f9e Compare June 5, 2020 07:52
@rainerdema rainerdema marked this pull request as ready for review June 5, 2020 07:54
@rainerdema rainerdema force-pushed the rainerd/apply-coupon-code-mutation branch 2 times, most recently from f01f5ab to 7a0561d Compare June 5, 2020 09:25
@rainerdema rainerdema force-pushed the rainerd/apply-coupon-code-mutation branch 7 times, most recently from c5ae10d to 6fda15c Compare June 5, 2020 14:00
The mutation accepts the coupon code as input and applies the promotion
on the current order with the discounted total.

It raises a CanCan::AccessDenied exception in case the current ability
can't update the current order.
Using command "bundle exec rake schema:idl"
@rainerdema rainerdema force-pushed the rainerd/apply-coupon-code-mutation branch from 6fda15c to 06dd47b Compare June 5, 2020 14:12
Copy link
Copy Markdown
Contributor

@ChristianRimondi ChristianRimondi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔝

@rainerdema rainerdema merged commit 244d1fb into master Jun 12, 2020
@rainerdema rainerdema deleted the rainerd/apply-coupon-code-mutation branch June 12, 2020 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants