{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Cart",
  "title": "Cart",
  "type": "object",
  "description": "Cart information.",
  "properties": {
    "grandTotal": {
      "type": "integer",
      "description": "Total payment value.",
      "example": 0
    },
    "relationName": {
      "type": "string",
      "description": "Represents the relationship between the client and the store.",
      "example": "loyalty-program"
    },
    "redemptionCode": {
      "type": "string",
      "description": "Gift card identification code used at checkout. Minimum of 6 characters.",
      "example": "***********ASDQ"
    },
    "discounts": {
      "type": "integer",
      "description": "Discounts value.",
      "example": 20
    },
    "shipping": {
      "type": "integer",
      "description": "Shipping value.",
      "example": 2
    },
    "taxes": {
      "type": "integer",
      "description": "Taxes value.",
      "example": 0
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Item"
      },
      "description": "Items information."
    },
    "itemsTotal": {
      "type": "integer",
      "description": "Total items value.",
      "example": 200
    }
  }
}