Multiple carts types
The types the multiple carts domain defines, with the fields other domains add to them.
Objects
CartCreateNamedResponse
Response for creating a named cart
| Field | Type | Description |
|---|---|---|
cart | Cart | The cart that was created |
cartErrors | [CartCreateNamedError!] | Error details if the cart could not be created |
CartDeleteResponse
Response for deleting a cart
| Field | Type | Description |
|---|---|---|
currentCart | Cart | The cart that is current now the delete has happened. Deleting the current cart promotes another one, and this says which, so a client is never left pointing at a deleted cart nor has to refetch to find out where it is. Null when the caller has no cart left. |
cartErrors | [CartDeleteError!] | Error details if the cart could not be deleted |
CartRenameResponse
Response for renaming a cart
| Field | Type | Description |
|---|---|---|
cart | Cart | The cart under its new name |
cartErrors | [CartRenameError!] | Error details if the cart could not be renamed |
CartResult
Paginated result containing carts
| Field | Type | Description |
|---|---|---|
items | [Cart!]! | Carts in the current page |
pagination | Pagination! | Where this page sits within the full result set |
CartSetCurrentResponse
Response for choosing the current cart
| Field | Type | Description |
|---|---|---|
cart | Cart | The cart that is now current. Write this into the cart query. |
cartErrors | [CartSetCurrentError!] | Error details if the cart could not be made current |
Enums
CartStatusType
Whether a cart is in use
ACTIVE | Touched within the archiving period |
ARCHIVED | Untouched for longer than the archiving period |
Unions
CartCreateNamedError
Error union for creating a named cart
One of ValidationError or CartError.
CartDeleteError
Error union for cart delete
One of ValidationError or CartError.
CartRenameError
Error union for cart rename
One of ValidationError or CartError.
CartSetCurrentError
Error union for cart set current
One of ValidationError or CartError.

