Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

[Cart Operations] Coupons #64

Closed
misha-kotov opened this issue May 22, 2018 · 1 comment
Closed

[Cart Operations] Coupons #64

misha-kotov opened this issue May 22, 2018 · 1 comment
Assignees
Labels

Comments

@misha-kotov
Copy link

misha-kotov commented May 22, 2018

As a Magento developer, I need to manipulate the shopping cart via GraphQL so that I can build basic ecommerce experiences for shoppers on the front-end using only GraphQL.

GraphQL needs to provide sufficient mutations (ways to create/update/delete data) for a developer to build out the storefront checkout experience for a shopper.

Use cases:

  • Both guest and registered shoppers can add and remove coupon codes to/from their shopping cart

Acceptance criteria:

  • Proposed schema is here
  • GraphQL provides a mutation through which the coupons can be added/removed on a shopper's cart in checkout
  • When a coupon is already applied to the cart and user tries to apply another, give an error message: "A coupon is already applied to the cart. Please remove it to apply another."
  • Changes are covered with web API functional tests. See \Magento\GraphQl\Catalog\ProductViewTest::testQueryAllFieldsSimpleProduct as an example.

Assumptions:

  • A coupon cannot be updated in place (only removed and re-added)
  • A cart can have only one coupon applied at any time (Cannot add multiple coupon codes to the same cart)

My Account area impacted:

  • Cart
@misha-kotov misha-kotov added for-grooming This issue needs to be discussed before it can be worked on additional-coverage labels May 22, 2018
@paliarush paliarush added small and removed for-grooming This issue needs to be discussed before it can be worked on labels May 23, 2018
@rogyar rogyar self-assigned this Aug 16, 2018
magento-engcom-team pushed a commit that referenced this issue Aug 26, 2018
MAGETWO-91493: MDC Framework Issues. Message passed as a service to T…
@naydav
Copy link
Contributor

naydav commented Sep 20, 2018

#163

@naydav naydav closed this as completed Sep 20, 2018
@naydav naydav added this to the Release: 2.3.1 milestone Dec 7, 2018
@naydav naydav added the 2.3.1 label Dec 7, 2018
@naydav naydav changed the title [Mutations] Cart Operations > Coupons [Cart Operations] Coupons Dec 12, 2018
@naydav naydav modified the milestone: Release: 2.3.1 Dec 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants