Skip to content

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

FieldTypeDescription
cartCartThe cart that was created
cartErrors[CartCreateNamedError!]Error details if the cart could not be created

CartDeleteResponse

Response for deleting a cart

FieldTypeDescription
currentCartCartThe 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

FieldTypeDescription
cartCartThe cart under its new name
cartErrors[CartRenameError!]Error details if the cart could not be renamed

CartResult

Paginated result containing carts

FieldTypeDescription
items[Cart!]!Carts in the current page
paginationPagination!Where this page sits within the full result set

CartSetCurrentResponse

Response for choosing the current cart

FieldTypeDescription
cartCartThe 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

ACTIVETouched within the archiving period
ARCHIVEDUntouched 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.