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

[Cart Operations] Create Empty Cart #118

Closed
paliarush opened this issue Jul 3, 2018 · 1 comment
Closed

[Cart Operations] Create Empty Cart #118

paliarush opened this issue Jul 3, 2018 · 1 comment
Assignees

Comments

@paliarush
Copy link
Contributor

paliarush commented Jul 3, 2018

Implement mutation for empty cart creation by the guest/customer user.

Cart ID is expected in the response. For the guest it should be hashed.

AC:

  • createEmptyCart mutation is declared. Should accept no arguments and return cart ID of type String. See example of mutation declaration
  • For guest (no token provided via Authorization header), the following service should be used \Magento\Quote\Api\GuestCartManagementInterface::createEmptyCart
  • For customer (valid customer token is provided via Authorization header), the followigng service should be used \Magento\Quote\Api\CartManagementInterface::createEmptyCartForCustomer
  • Changes are covered with web API functional tests. See \Magento\GraphQl\TestModule\GraphQlMutationTest::testMutation as an example.
@naydav
Copy link
Contributor

naydav commented Sep 11, 2018

#166

@naydav naydav closed this as completed Sep 11, 2018
@naydav naydav changed the title [Mutations] Cart Operations > Create Empty Cart [Cart Operations] Create Empty Cart Dec 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants