{
  "openapi": "3.1.0",
  "info": {
    "title": "Edin: API-ul magazinului",
    "version": "1.0.0",
    "summary": "Meniul, prețul coșului, comanda și contul clientului, pentru site-ul de comenzi al unui restaurant.",
    "description": "API-ul cu care site-ul de comenzi al unui restaurant citește meniul, cere prețul coșului, plasează comanda și deschide contul clientului. Toate cererile se trimit de pe serverul site-ului, cu cheia magazinului. Ghidul de integrare, pașii comenzii și regulile sunt pe pagina de start a documentației.\n\nAPI-ul se schimbă numai prin adăugare: câmpuri noi în răspuns, câmpuri opționale noi în cerere, rute noi. Ce se retrage rămâne funcțional și este marcat `deprecated`."
  },
  "servers": [
    {
      "url": "https://api.edin.ro",
      "description": "Producție"
    }
  ],
  "security": [
    {
      "storefrontKey": []
    }
  ],
  "tags": [
    {
      "name": "Magazinul",
      "description": "Punctele de lucru, meniul, intervalele comenzii programate, adresa de livrare și firma pentru factură."
    },
    {
      "name": "Comanda",
      "description": "Prețul coșului, plasarea comenzii, pagina ei și anularea comenzii programate."
    },
    {
      "name": "Contul clientului",
      "description": "Intrarea în cont cu cod sau cu o platformă, datele clientului, adresele și comenzile lui. Rutele contului cer sesiunea clientului în `X-Storefront-Session`."
    },
    {
      "name": "Carduri cadou",
      "description": "Oferta, cumpărarea și soldul cardurilor cadou."
    }
  ],
  "paths": {
    "/storefront/locations": {
      "get": {
        "operationId": "StorefrontController.listLocations",
        "summary": "Punctele de lucru ale magazinului",
        "description": "Punctele de lucru la care are acces cheia, cu programul și modurile de comandă. Este primul pas al oricărei comenzi: `id`-ul de aici este `locationId` în cererile următoare.",
        "tags": [
          "Magazinul"
        ],
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorefrontLocationsResponseOutput"
                }
              }
            }
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": []
          }
        ]
      }
    },
    "/storefront/menu": {
      "get": {
        "operationId": "StorefrontController.menu",
        "summary": "Meniul unui punct de lucru",
        "description": "Categoriile, produsele cu opțiunile lor, meniurile combo și promoțiile automate, la ora cererii. Prețurile sunt cu TVA inclus, ca sumă zecimală cu monedă (`\"25.00\"`, `RON`).",
        "tags": [
          "Magazinul"
        ],
        "parameters": [
          {
            "name": "location",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
              "description": "Punctul de lucru, `id` din `GET /storefront/locations`."
            }
          }
        ],
        "x-query": {
          "$ref": "#/components/schemas/StorefrontMenuQuery"
        },
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorefrontMenuResponseOutput"
                }
              }
            }
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": []
          }
        ]
      }
    },
    "/storefront/slots": {
      "get": {
        "operationId": "StorefrontController.slots",
        "summary": "Intervalele comenzii programate",
        "description": "Zilele și intervalele de 15 minute în care se poate programa o comandă. Intervalele pline sunt marcate. Începutul unui interval se trimite în `scheduledFor`.",
        "tags": [
          "Magazinul"
        ],
        "parameters": [
          {
            "name": "location",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
            }
          }
        ],
        "x-query": {
          "$ref": "#/components/schemas/StorefrontSlotsQuery"
        },
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorefrontSlotsResponse"
                }
              }
            }
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": []
          }
        ]
      }
    },
    "/storefront/address-check": {
      "post": {
        "operationId": "StorefrontController.checkAddress",
        "summary": "Verifică adresa de livrare",
        "description": "Spune dacă adresa este într-o zonă de livrare (`delivers`), în afara zonelor (`outside_zones`) sau negăsită (`not_found`), cu punctul de lucru care livrează și condițiile livrării.",
        "tags": [
          "Magazinul"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StorefrontAddressCheckRequest"
              }
            }
          }
        },
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorefrontAddressCheckResponse"
                }
              }
            }
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": []
          }
        ]
      }
    },
    "/storefront/company": {
      "get": {
        "operationId": "StorefrontController.lookupCompany",
        "summary": "Caută firma după CUI",
        "description": "Datele firmei de la ANAF, pentru factura pe firmă. Răspunde mereu 200, cu rezultatul în `status`: firma găsită, CUI greșit, firmă necunoscută sau ANAF indisponibil.",
        "tags": [
          "Magazinul"
        ],
        "parameters": [
          {
            "name": "vatId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 20
            }
          }
        ],
        "x-query": {
          "$ref": "#/components/schemas/StorefrontCompanyLookupQuery"
        },
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorefrontCompanyLookupResponseOutput"
                }
              }
            }
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": []
          }
        ]
      }
    },
    "/storefront/quote": {
      "post": {
        "operationId": "StorefrontController.quote",
        "summary": "Prețul coșului",
        "description": "Serverul calculează prețul liniilor, reducerile, taxa de livrare și TVA-ul. Un preț trimis în cerere este ignorat. Afișează totalurile din acest răspuns, nu le calcula pe site.",
        "tags": [
          "Comanda"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StorefrontQuoteRequest"
              }
            }
          }
        },
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorefrontQuoteResponseOutput"
                }
              }
            }
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": []
          },
          {
            "storefrontKey": [],
            "customerSession": []
          }
        ]
      }
    },
    "/storefront/orders": {
      "post": {
        "operationId": "StorefrontController.placeOrder",
        "summary": "Plasează comanda",
        "description": "Serverul calculează din nou prețul și nu folosește nicio sumă din cerere. O cerere cu aceeași `idempotencyKey` primește aceeași comandă. Dacă coșul nu se poate comanda, răspunsul este 409, cu motivul în `reason` și prețul actual în `quote`. La plata online, trimite clientul la `paymentUrl`.",
        "tags": [
          "Comanda"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StorefrontPlaceOrderRequest"
              }
            }
          }
        },
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Comanda nu se poate plasa așa cum este (`error.code`: `STOREFRONT_ORDER_REFUSED`, cu `reason` și prețul actual în `quote`, în `error.details`). Sau `idempotencyKey` a fost trimisă cu alt coș (`error.code`: `STOREFRONT_ORDER_IDEMPOTENCY_CONFLICT`).",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ApiErrorResponse"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "details": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/StorefrontOrderRefusalDetails"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ]
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorefrontPlaceOrderResponseOutput"
                }
              }
            }
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": []
          },
          {
            "storefrontKey": [],
            "customerSession": []
          }
        ]
      }
    },
    "/storefront/orders/{id}": {
      "get": {
        "operationId": "StorefrontController.order",
        "summary": "Pagina comenzii",
        "description": "Starea comenzii, liniile și totalurile. `token` este `accessToken` din răspunsul la plasarea comenzii.",
        "tags": [
          "Comanda"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          }
        ],
        "x-query": {
          "$ref": "#/components/schemas/StorefrontOrderQuery"
        },
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorefrontOrderOutput"
                }
              }
            }
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": []
          }
        ]
      }
    },
    "/storefront/orders/{id}/cancel": {
      "post": {
        "operationId": "StorefrontController.cancelOrder",
        "summary": "Anulează comanda programată",
        "description": "Clientul anulează comanda programată din pagina comenzii, până la ora limită. Dacă comanda nu se mai poate anula, răspunsul este 409.",
        "tags": [
          "Comanda"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StorefrontCancelOrderRequest"
              }
            }
          }
        },
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorefrontOrderOutput"
                }
              }
            }
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": []
          }
        ]
      }
    },
    "/storefront/account": {
      "get": {
        "operationId": "StorefrontAccountController.profile",
        "summary": "Contul clientului",
        "tags": [
          "Contul clientului"
        ],
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerAccount"
                }
              }
            }
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": [],
            "customerSession": []
          }
        ]
      },
      "patch": {
        "operationId": "StorefrontAccountController.rename",
        "summary": "Schimbă numele clientului",
        "tags": [
          "Contul clientului"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCustomerAccountRequest"
              }
            }
          }
        },
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerAccount"
                }
              }
            }
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": [],
            "customerSession": []
          }
        ]
      },
      "delete": {
        "operationId": "StorefrontAccountController.deleteAccount",
        "summary": "Șterge contul",
        "description": "Datele personale ale clientului se anonimizează. Comenzile se păstrează, fără datele personale.",
        "tags": [
          "Contul clientului"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteCustomerAccountRequest"
              }
            }
          }
        },
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit, fără corp."
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": [],
            "customerSession": []
          }
        ]
      }
    },
    "/storefront/account/addresses": {
      "get": {
        "operationId": "StorefrontAccountController.addresses",
        "summary": "Adresele clientului",
        "tags": [
          "Contul clientului"
        ],
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerAddressListResponseOutput"
                }
              }
            }
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": [],
            "customerSession": []
          }
        ]
      },
      "post": {
        "operationId": "StorefrontAccountController.addAddress",
        "summary": "Adaugă o adresă",
        "tags": [
          "Contul clientului"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveCustomerAddressRequest"
              }
            }
          }
        },
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerAddressOutput"
                }
              }
            }
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": [],
            "customerSession": []
          }
        ]
      }
    },
    "/storefront/account/addresses/{addressId}": {
      "put": {
        "operationId": "StorefrontAccountController.updateAddress",
        "summary": "Modifică o adresă",
        "tags": [
          "Contul clientului"
        ],
        "parameters": [
          {
            "name": "addressId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveCustomerAddressRequest"
              }
            }
          }
        },
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerAddressOutput"
                }
              }
            }
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": [],
            "customerSession": []
          }
        ]
      },
      "delete": {
        "operationId": "StorefrontAccountController.archiveAddress",
        "summary": "Șterge o adresă",
        "tags": [
          "Contul clientului"
        ],
        "parameters": [
          {
            "name": "addressId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit, fără corp."
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": [],
            "customerSession": []
          }
        ]
      }
    },
    "/storefront/account/billing": {
      "put": {
        "operationId": "StorefrontAccountController.saveBilling",
        "summary": "Salvează datele de facturare",
        "tags": [
          "Contul clientului"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveCustomerBillingProfileRequest"
              }
            }
          }
        },
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerAccount"
                }
              }
            }
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": [],
            "customerSession": []
          }
        ]
      },
      "delete": {
        "operationId": "StorefrontAccountController.deleteBilling",
        "summary": "Șterge datele de facturare",
        "tags": [
          "Contul clientului"
        ],
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerAccount"
                }
              }
            }
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": [],
            "customerSession": []
          }
        ]
      }
    },
    "/storefront/account/code": {
      "post": {
        "operationId": "StorefrontAccountController.requestCode",
        "summary": "Trimite codul de intrare în cont",
        "description": "Trimite un cod de șase cifre prin SMS sau prin e-mail, la destinația din cerere. Răspunsul este 202.",
        "tags": [
          "Contul clientului"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerCodeRequest"
              }
            }
          }
        },
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerCodeSent"
                }
              }
            }
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": []
          }
        ]
      }
    },
    "/storefront/account/code/verify": {
      "post": {
        "operationId": "StorefrontAccountController.verifyCode",
        "summary": "Intră în cont cu codul",
        "description": "Verifică codul primit și deschide sesiunea clientului. `token` din răspuns se trimite în antetul `X-Storefront-Session` la rutele contului.",
        "tags": [
          "Contul clientului"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerCodeVerifyRequest"
              }
            }
          }
        },
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorefrontSession"
                }
              }
            }
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": []
          }
        ]
      }
    },
    "/storefront/account/contact/code": {
      "post": {
        "operationId": "StorefrontAccountController.requestContactChange",
        "summary": "Trimite codul pentru noul telefon sau e-mail",
        "tags": [
          "Contul clientului"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerCodeRequest"
              }
            }
          }
        },
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerCodeSent"
                }
              }
            }
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": [],
            "customerSession": []
          }
        ]
      }
    },
    "/storefront/account/contact/verify": {
      "post": {
        "operationId": "StorefrontAccountController.confirmContactChange",
        "summary": "Confirmă noul telefon sau e-mail",
        "tags": [
          "Contul clientului"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerCodeVerifyRequest"
              }
            }
          }
        },
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerAccount"
                }
              }
            }
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": [],
            "customerSession": []
          }
        ]
      }
    },
    "/storefront/account/marketing": {
      "put": {
        "operationId": "StorefrontAccountController.marketing",
        "summary": "Acordul pentru mesajele de marketing",
        "tags": [
          "Contul clientului"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerMarketingConsentRequest"
              }
            }
          }
        },
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerAccount"
                }
              }
            }
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": [],
            "customerSession": []
          }
        ]
      }
    },
    "/storefront/account/orders": {
      "get": {
        "operationId": "StorefrontAccountController.orderHistory",
        "summary": "Comenzile clientului",
        "description": "Istoricul comenzilor plasate din cont, pe pagini.",
        "tags": [
          "Contul clientului"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "default": 20,
              "type": "integer",
              "minimum": 1,
              "maximum": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          }
        ],
        "x-query": {
          "$ref": "#/components/schemas/StorefrontAccountOrdersQuery"
        },
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorefrontAccountOrdersResponseOutput"
                }
              }
            }
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": [],
            "customerSession": []
          }
        ]
      }
    },
    "/storefront/account/orders/{orderId}/reorder": {
      "post": {
        "operationId": "StorefrontAccountController.reorder",
        "summary": "Comandă din nou",
        "description": "Liniile unei comenzi vechi, la prețurile de azi. O linie care nu se mai poate comanda are `problem` și nu se pune în coș.",
        "tags": [
          "Contul clientului"
        ],
        "parameters": [
          {
            "name": "orderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StorefrontReorderRequest"
              }
            }
          }
        },
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorefrontReorderResponseOutput"
                }
              }
            }
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": [],
            "customerSession": []
          }
        ]
      }
    },
    "/storefront/account/sign-out": {
      "post": {
        "operationId": "StorefrontAccountController.signOut",
        "summary": "Ieși din cont",
        "description": "Închide sesiunea din antetul `X-Storefront-Session`.",
        "tags": [
          "Contul clientului"
        ],
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit, fără corp."
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": [],
            "customerSession": []
          }
        ]
      }
    },
    "/storefront/auth/{provider}": {
      "post": {
        "operationId": "StorefrontAccountController.exchange",
        "summary": "Intră în cont cu o platformă",
        "description": "Verifică tokenul primit de la platformă și deschide sesiunea clientului.",
        "tags": [
          "Contul clientului"
        ],
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StorefrontAuthExchangeRequest"
              }
            }
          }
        },
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorefrontSession"
                }
              }
            }
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": []
          }
        ]
      }
    },
    "/storefront/auth/providers": {
      "get": {
        "operationId": "StorefrontAccountController.authProviders",
        "summary": "Platformele de intrare în cont",
        "description": "Platformele activate de firmă (Google, Apple, Facebook), cu identificatorul public necesar butonului de intrare.",
        "tags": [
          "Contul clientului"
        ],
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorefrontAuthProvidersResponse"
                }
              }
            }
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": []
          }
        ]
      }
    },
    "/storefront/gift-cards": {
      "post": {
        "operationId": "StorefrontGiftCardsController.purchase",
        "summary": "Cumpără un card cadou",
        "tags": [
          "Carduri cadou"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StorefrontGiftCardPurchaseRequest"
              }
            }
          }
        },
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Comanda nu se poate plasa așa cum este (`error.code`: `STOREFRONT_ORDER_REFUSED`, cu `reason` și prețul actual în `quote`, în `error.details`). Sau `idempotencyKey` a fost trimisă cu alt coș (`error.code`: `STOREFRONT_ORDER_IDEMPOTENCY_CONFLICT`).",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ApiErrorResponse"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "details": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/StorefrontOrderRefusalDetails"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ]
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorefrontGiftCardPurchaseResponse"
                }
              }
            }
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": []
          }
        ]
      }
    },
    "/storefront/gift-cards/{code}": {
      "get": {
        "operationId": "StorefrontGiftCardsController.balance",
        "summary": "Soldul unui card cadou",
        "description": "Pentru un cod necunoscut, răspunsul este 404.",
        "tags": [
          "Carduri cadou"
        ],
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GiftCardBalance"
                }
              }
            }
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": []
          }
        ]
      }
    },
    "/storefront/gift-cards/offer": {
      "get": {
        "operationId": "StorefrontGiftCardsController.offer",
        "summary": "Oferta de carduri cadou",
        "description": "Sumele propuse, minimul, maximul și valabilitatea în luni ale unui card cadou cumpărat la un punct de lucru.",
        "tags": [
          "Carduri cadou"
        ],
        "parameters": [
          {
            "name": "location",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
            }
          }
        ],
        "x-query": {
          "$ref": "#/components/schemas/StorefrontGiftCardOfferQuery"
        },
        "responses": {
          "401": {
            "description": "Cheia magazinului lipsește sau nu este validă (`error.code`: `STOREFRONT_KEY_INVALID`). Sau sesiunea clientului lipsește, a expirat ori a fost închisă (`error.code`: `STOREFRONT_SESSION_INVALID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri. Limitele se aplică pe cheie și pe IP-ul vizitatorului din `X-Forwarded-For`. Reîncearcă după numărul de secunde din `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Numărul de secunde după care se poate trimite din nou cererea.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "2XX": {
            "description": "Cererea a reușit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorefrontGiftCardOffer"
                }
              }
            }
          },
          "4XX": {
            "description": "Cererea a fost refuzată.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "storefrontKey": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ApiErrorResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "const": false
          },
          "error": {
            "type": "object",
            "properties": {
              "statusCode": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "code": {
                "type": "string"
              },
              "message": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                ]
              },
              "error": {
                "type": "string"
              },
              "details": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "timestamp": {
                "type": "string"
              },
              "path": {
                "type": "string"
              },
              "requestId": {
                "type": "string"
              }
            },
            "required": [
              "statusCode",
              "message",
              "error",
              "timestamp",
              "path"
            ]
          }
        },
        "required": [
          "success",
          "error"
        ]
      },
      "CustomerAccount": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "type": [
              "string",
              "null"
            ]
          },
          "billing": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CustomerBillingProfile"
              },
              {
                "type": "null"
              }
            ]
          },
          "marketingConsent": {
            "type": "boolean"
          },
          "linkedProviders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontAuthProvider"
            }
          }
        },
        "required": [
          "id",
          "name",
          "phone",
          "email",
          "billing",
          "marketingConsent",
          "linkedProviders"
        ],
        "additionalProperties": false
      },
      "CustomerAddressListResponseOutput": {
        "type": "object",
        "properties": {
          "addresses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerAddressOutput"
            }
          }
        },
        "required": [
          "addresses"
        ]
      },
      "CustomerAddressOutput": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
          },
          "customerId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
          },
          "label": {
            "type": [
              "string",
              "null"
            ]
          },
          "address": {
            "$ref": "#/components/schemas/PostalAddressOutput"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "customerId",
          "label",
          "address",
          "createdAt",
          "updatedAt"
        ]
      },
      "CustomerBillingProfile": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string"
          },
          "taxId": {
            "type": "string"
          },
          "tradeRegisterNumber": {
            "type": [
              "string",
              "null"
            ]
          },
          "address": {
            "type": "string"
          }
        },
        "required": [
          "companyName",
          "taxId",
          "tradeRegisterNumber",
          "address"
        ],
        "additionalProperties": false
      },
      "CustomerCodeChannel": {
        "type": "string",
        "enum": [
          "phone",
          "email"
        ]
      },
      "CustomerCodeRequest": {
        "type": "object",
        "properties": {
          "channel": {
            "$ref": "#/components/schemas/CustomerCodeChannel"
          },
          "destination": {
            "type": "string",
            "minLength": 3,
            "maxLength": 255
          }
        },
        "required": [
          "channel",
          "destination"
        ],
        "additionalProperties": false
      },
      "CustomerCodeSent": {
        "type": "object",
        "properties": {
          "expiresAt": {
            "type": "string"
          },
          "resendAfterSeconds": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "expiresAt",
          "resendAfterSeconds"
        ],
        "additionalProperties": false
      },
      "CustomerCodeVerifyRequest": {
        "type": "object",
        "properties": {
          "channel": {
            "$ref": "#/components/schemas/CustomerCodeChannel"
          },
          "destination": {
            "type": "string",
            "minLength": 3,
            "maxLength": 255
          },
          "code": {
            "type": "string",
            "pattern": "^\\d{6}$"
          }
        },
        "required": [
          "channel",
          "destination",
          "code"
        ],
        "additionalProperties": false
      },
      "CustomerMarketingConsentRequest": {
        "type": "object",
        "properties": {
          "granted": {
            "type": "boolean"
          }
        },
        "required": [
          "granted"
        ],
        "additionalProperties": false
      },
      "DeleteCustomerAccountRequest": {
        "type": "object",
        "properties": {
          "confirm": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "confirm"
        ],
        "additionalProperties": false
      },
      "GeoPoint": {
        "type": "object",
        "properties": {
          "latitude": {
            "type": "number",
            "minimum": -90,
            "maximum": 90
          },
          "longitude": {
            "type": "number",
            "minimum": -180,
            "maximum": 180
          }
        },
        "required": [
          "latitude",
          "longitude"
        ],
        "additionalProperties": false
      },
      "GiftCardAmountText": {
        "type": "string",
        "pattern": "^\\d{1,5}(\\.\\d{1,2})?$"
      },
      "GiftCardBalance": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/GiftCardState"
          },
          "balance": {
            "$ref": "#/components/schemas/MoneyAmount"
          },
          "expiresAt": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "code",
          "state",
          "balance",
          "expiresAt"
        ]
      },
      "GiftCardRefusal": {
        "type": "string",
        "enum": [
          "not_found",
          "pending",
          "cancelled",
          "expired",
          "empty",
          "insufficient",
          "currency"
        ]
      },
      "GiftCardState": {
        "type": "string",
        "enum": [
          "pending",
          "active",
          "empty",
          "expired",
          "cancelled"
        ]
      },
      "InvoiceAddress": {
        "type": "object",
        "properties": {
          "countryCode": {
            "type": "string",
            "minLength": 2,
            "maxLength": 2
          },
          "county": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "city": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "street": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "streetNumber": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40
              },
              {
                "type": "null"
              }
            ]
          },
          "postalCode": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 20
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "countryCode",
          "county",
          "city",
          "street"
        ],
        "additionalProperties": false
      },
      "InvoiceAddressOutput": {
        "type": "object",
        "properties": {
          "countryCode": {
            "type": "string",
            "minLength": 2,
            "maxLength": 2
          },
          "county": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "city": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "street": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "streetNumber": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40
              },
              {
                "type": "null"
              }
            ]
          },
          "postalCode": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 20
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "countryCode",
          "county",
          "city",
          "street",
          "streetNumber",
          "postalCode"
        ]
      },
      "MoneyAmount": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "string",
            "pattern": "^-?\\d+\\.\\d{2}$"
          },
          "currency": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3
          }
        },
        "required": [
          "amount",
          "currency"
        ]
      },
      "PostalAddress": {
        "type": "object",
        "properties": {
          "street": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "streetNumber": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 20
              },
              {
                "type": "null"
              }
            ]
          },
          "block": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 20
              },
              {
                "type": "null"
              }
            ]
          },
          "staircase": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 20
              },
              {
                "type": "null"
              }
            ]
          },
          "floor": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 10
              },
              {
                "type": "null"
              }
            ]
          },
          "apartment": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 20
              },
              {
                "type": "null"
              }
            ]
          },
          "city": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "directions": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500
              },
              {
                "type": "null"
              }
            ]
          },
          "latitude": {
            "type": "number",
            "minimum": -90,
            "maximum": 90
          },
          "longitude": {
            "type": "number",
            "minimum": -180,
            "maximum": 180
          }
        },
        "required": [
          "street",
          "city",
          "latitude",
          "longitude"
        ],
        "additionalProperties": false
      },
      "PostalAddressOutput": {
        "type": "object",
        "properties": {
          "street": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "streetNumber": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 20
              },
              {
                "type": "null"
              }
            ]
          },
          "block": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 20
              },
              {
                "type": "null"
              }
            ]
          },
          "staircase": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 20
              },
              {
                "type": "null"
              }
            ]
          },
          "floor": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 10
              },
              {
                "type": "null"
              }
            ]
          },
          "apartment": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 20
              },
              {
                "type": "null"
              }
            ]
          },
          "city": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "directions": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500
              },
              {
                "type": "null"
              }
            ]
          },
          "latitude": {
            "type": "number",
            "minimum": -90,
            "maximum": 90
          },
          "longitude": {
            "type": "number",
            "minimum": -180,
            "maximum": 180
          }
        },
        "required": [
          "street",
          "streetNumber",
          "block",
          "staircase",
          "floor",
          "apartment",
          "city",
          "directions",
          "latitude",
          "longitude"
        ]
      },
      "PromotionCodeRefusal": {
        "type": "string",
        "enum": [
          "not_found",
          "disabled",
          "not_started",
          "expired",
          "stopped",
          "outside_hours",
          "wrong_channel",
          "wrong_location",
          "wrong_order_type",
          "not_for_customer",
          "first_order_only",
          "customer_required",
          "used_up",
          "already_used",
          "below_minimum",
          "promotion_exclusive",
          "promotion_better",
          "manual_exclusive",
          "nothing_to_discount"
        ]
      },
      "PromotionOrderType": {
        "type": "string",
        "enum": [
          "dine_in",
          "takeaway",
          "delivery"
        ]
      },
      "SaveCustomerAddressRequest": {
        "type": "object",
        "properties": {
          "label": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              {
                "type": "null"
              }
            ]
          },
          "address": {
            "$ref": "#/components/schemas/PostalAddress"
          }
        },
        "required": [
          "address"
        ],
        "additionalProperties": false
      },
      "SaveCustomerAddressRequestOutput": {
        "type": "object",
        "properties": {
          "label": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              {
                "type": "null"
              }
            ]
          },
          "address": {
            "$ref": "#/components/schemas/PostalAddressOutput"
          }
        },
        "required": [
          "label",
          "address"
        ]
      },
      "SaveCustomerBillingProfileRequest": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "taxId": {
            "type": "string",
            "pattern": "^(RO)?\\s?\\d{2,10}$"
          },
          "tradeRegisterNumber": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40
              },
              {
                "type": "null"
              }
            ]
          },
          "address": {
            "type": "string",
            "minLength": 3,
            "maxLength": 300
          }
        },
        "required": [
          "companyName",
          "taxId",
          "address"
        ],
        "additionalProperties": false
      },
      "SaveCustomerBillingProfileRequestOutput": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "taxId": {
            "type": "string",
            "pattern": "^(RO)?\\s?\\d{2,10}$"
          },
          "tradeRegisterNumber": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40
              },
              {
                "type": "null"
              }
            ]
          },
          "address": {
            "type": "string",
            "minLength": 3,
            "maxLength": 300
          }
        },
        "required": [
          "companyName",
          "taxId",
          "tradeRegisterNumber",
          "address"
        ]
      },
      "StorefrontAccountOrderOutput": {
        "type": "object",
        "properties": {
          "order": {
            "$ref": "#/components/schemas/StorefrontOrderOutput"
          },
          "accessToken": {
            "type": "string"
          }
        },
        "required": [
          "order",
          "accessToken"
        ]
      },
      "StorefrontAccountOrdersQuery": {
        "type": "object",
        "properties": {
          "limit": {
            "default": 20,
            "type": "integer",
            "minimum": 1,
            "maximum": 50
          },
          "offset": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        }
      },
      "StorefrontAccountOrdersQueryOutput": {
        "type": "object",
        "properties": {
          "limit": {
            "default": 20,
            "type": "integer",
            "minimum": 1,
            "maximum": 50
          },
          "offset": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "limit",
          "offset"
        ]
      },
      "StorefrontAccountOrdersResponseOutput": {
        "type": "object",
        "properties": {
          "orders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontAccountOrderOutput"
            }
          },
          "total": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "orders",
          "total"
        ]
      },
      "StorefrontAddressCheckRequest": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string",
            "minLength": 3,
            "maxLength": 200
          },
          "point": {
            "default": null,
            "anyOf": [
              {
                "$ref": "#/components/schemas/GeoPoint"
              },
              {
                "type": "null"
              }
            ]
          },
          "locationId": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              {
                "type": "null"
              }
            ]
          },
          "productsTotal": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "address"
        ]
      },
      "StorefrontAddressCheckRequestOutput": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string",
            "minLength": 3,
            "maxLength": 200
          },
          "point": {
            "default": null,
            "anyOf": [
              {
                "$ref": "#/components/schemas/GeoPoint"
              },
              {
                "type": "null"
              }
            ]
          },
          "locationId": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              {
                "type": "null"
              }
            ]
          },
          "productsTotal": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "pattern": "^\\d{1,9}(?:\\.\\d{1,2})?$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "address",
          "point",
          "locationId",
          "productsTotal"
        ]
      },
      "StorefrontAddressCheckResponse": {
        "type": "object",
        "properties": {
          "outcome": {
            "$ref": "#/components/schemas/StorefrontAddressOutcome"
          },
          "point": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GeoPoint"
              },
              {
                "type": "null"
              }
            ]
          },
          "location": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StorefrontAddressLocation"
              },
              {
                "type": "null"
              }
            ]
          },
          "delivery": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StorefrontDeliveryTerms"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "outcome",
          "point",
          "location",
          "delivery"
        ],
        "additionalProperties": false
      },
      "StorefrontAddressLocation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
          },
          "name": {
            "type": "string"
          },
          "phone": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "phone"
        ],
        "additionalProperties": false
      },
      "StorefrontAddressOutcome": {
        "type": "string",
        "enum": [
          "delivers",
          "outside_zones",
          "not_found"
        ]
      },
      "StorefrontAuthExchangeRequest": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "redirectUri": {
            "type": "string",
            "maxLength": 500,
            "format": "uri"
          },
          "nonce": {
            "type": "string",
            "minLength": 16,
            "maxLength": 128
          },
          "name": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 120
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "code",
          "redirectUri",
          "nonce"
        ],
        "additionalProperties": false
      },
      "StorefrontAuthExchangeRequestOutput": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "redirectUri": {
            "type": "string",
            "maxLength": 500,
            "format": "uri"
          },
          "nonce": {
            "type": "string",
            "minLength": 16,
            "maxLength": 128
          },
          "name": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 120
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "code",
          "redirectUri",
          "nonce",
          "name"
        ]
      },
      "StorefrontAuthProvider": {
        "type": "string",
        "enum": [
          "google",
          "apple",
          "facebook"
        ]
      },
      "StorefrontAuthProvidersResponse": {
        "type": "object",
        "properties": {
          "providers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "provider": {
                  "$ref": "#/components/schemas/StorefrontAuthProvider"
                },
                "clientId": {
                  "type": "string"
                }
              },
              "required": [
                "provider",
                "clientId"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "providers"
        ],
        "additionalProperties": false
      },
      "StorefrontBundleComponent": {
        "type": "object",
        "properties": {
          "productId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
          },
          "name": {
            "type": "string"
          },
          "quantity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "productId",
          "name",
          "quantity"
        ],
        "additionalProperties": false
      },
      "StorefrontBundleOutput": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "price": {
            "$ref": "#/components/schemas/MoneyAmount"
          },
          "available": {
            "type": "boolean"
          },
          "unavailableReason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StorefrontUnavailableReason"
              },
              {
                "type": "null"
              }
            ]
          },
          "availableFrom": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "availableUntil": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "components": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontBundleComponent"
            }
          }
        },
        "required": [
          "id",
          "slug",
          "name",
          "price",
          "available",
          "unavailableReason",
          "availableFrom",
          "availableUntil",
          "components"
        ]
      },
      "StorefrontCancelOrderRequest": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          }
        },
        "required": [
          "token"
        ],
        "additionalProperties": false
      },
      "StorefrontCartLineInput": {
        "type": "object",
        "properties": {
          "productId": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              {
                "type": "null"
              }
            ]
          },
          "bundleId": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              {
                "type": "null"
              }
            ]
          },
          "quantity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 99
          },
          "modifierOptionIds": {
            "default": [],
            "maxItems": 50,
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
            }
          },
          "note": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "quantity"
        ]
      },
      "StorefrontCartLineInputOutput": {
        "type": "object",
        "properties": {
          "productId": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              {
                "type": "null"
              }
            ]
          },
          "bundleId": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              {
                "type": "null"
              }
            ]
          },
          "quantity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 99
          },
          "modifierOptionIds": {
            "default": [],
            "maxItems": 50,
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
            }
          },
          "note": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "productId",
          "bundleId",
          "quantity",
          "modifierOptionIds",
          "note"
        ]
      },
      "StorefrontCartLineProblem": {
        "type": "string",
        "enum": [
          "not_on_menu",
          "not_offered_today",
          "sold_out",
          "outside_hours",
          "no_price",
          "invalid_options"
        ]
      },
      "StorefrontCategoryOutput": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "parentId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              {
                "type": "null"
              }
            ]
          },
          "products": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontProductOutput"
            }
          }
        },
        "required": [
          "id",
          "slug",
          "name",
          "description",
          "parentId",
          "products"
        ]
      },
      "StorefrontClosedReason": {
        "type": "string",
        "enum": [
          "not_configured",
          "paused",
          "outside_hours"
        ]
      },
      "StorefrontCompanyLookupQuery": {
        "type": "object",
        "properties": {
          "vatId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20
          }
        },
        "required": [
          "vatId"
        ],
        "additionalProperties": false
      },
      "StorefrontCompanyLookupResponseOutput": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "const": "found"
              },
              "company": {
                "type": "object",
                "properties": {
                  "vatId": {
                    "type": "string"
                  },
                  "vatPayer": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "tradeRegistry": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "address": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/InvoiceAddressOutput"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "inactive": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "vatId",
                  "vatPayer",
                  "name",
                  "tradeRegistry",
                  "address",
                  "inactive"
                ]
              }
            },
            "required": [
              "status",
              "company"
            ]
          },
          {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "const": "invalid"
              }
            },
            "required": [
              "status"
            ]
          },
          {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "const": "unknown"
              }
            },
            "required": [
              "status"
            ]
          },
          {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "const": "unavailable"
              }
            },
            "required": [
              "status"
            ]
          }
        ]
      },
      "StorefrontDeliveryTerms": {
        "type": "object",
        "properties": {
          "zone": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "deliveryFee": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MoneyAmount"
              },
              {
                "type": "null"
              }
            ]
          },
          "minimumOrder": {
            "$ref": "#/components/schemas/MoneyAmount"
          },
          "freeDeliveryAbove": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MoneyAmount"
              },
              {
                "type": "null"
              }
            ]
          },
          "estimatedMinutes": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "freeDelivery": {
            "type": "boolean"
          },
          "belowMinimumBy": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MoneyAmount"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "zone",
          "deliveryFee",
          "minimumOrder",
          "freeDeliveryAbove",
          "estimatedMinutes",
          "freeDelivery",
          "belowMinimumBy"
        ],
        "additionalProperties": false
      },
      "StorefrontFulfillment": {
        "type": "string",
        "enum": [
          "delivery",
          "pickup"
        ]
      },
      "StorefrontGiftCardOffer": {
        "type": "object",
        "properties": {
          "available": {
            "type": "boolean"
          },
          "amounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MoneyAmount"
            }
          },
          "min": {
            "$ref": "#/components/schemas/MoneyAmount"
          },
          "max": {
            "$ref": "#/components/schemas/MoneyAmount"
          },
          "validityMonths": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "available",
          "amounts",
          "min",
          "max",
          "validityMonths"
        ]
      },
      "StorefrontGiftCardOfferQuery": {
        "type": "object",
        "properties": {
          "location": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
          }
        },
        "required": [
          "location"
        ]
      },
      "StorefrontGiftCardPurchaseRequest": {
        "type": "object",
        "properties": {
          "locationId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
          },
          "amount": {
            "$ref": "#/components/schemas/GiftCardAmountText"
          },
          "buyer": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "email": {
                "type": "string",
                "maxLength": 254,
                "format": "email",
                "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
              }
            },
            "required": [
              "name",
              "email"
            ],
            "additionalProperties": false
          },
          "recipient": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "email": {
                "type": "string",
                "maxLength": 254,
                "format": "email",
                "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
              }
            },
            "required": [
              "name",
              "email"
            ],
            "additionalProperties": false
          },
          "message": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "locationId",
          "amount",
          "buyer",
          "recipient"
        ],
        "additionalProperties": false
      },
      "StorefrontGiftCardPurchaseRequestOutput": {
        "type": "object",
        "properties": {
          "locationId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
          },
          "amount": {
            "$ref": "#/components/schemas/GiftCardAmountText"
          },
          "buyer": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "email": {
                "type": "string",
                "maxLength": 254,
                "format": "email",
                "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
              }
            },
            "required": [
              "name",
              "email"
            ]
          },
          "recipient": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "email": {
                "type": "string",
                "maxLength": 254,
                "format": "email",
                "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
              }
            },
            "required": [
              "name",
              "email"
            ]
          },
          "message": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "locationId",
          "amount",
          "buyer",
          "recipient",
          "message"
        ]
      },
      "StorefrontGiftCardPurchaseResponse": {
        "type": "object",
        "properties": {
          "purchaseId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
          },
          "amount": {
            "$ref": "#/components/schemas/MoneyAmount"
          },
          "paymentUrl": {
            "type": "string"
          }
        },
        "required": [
          "purchaseId",
          "amount",
          "paymentUrl"
        ]
      },
      "StorefrontHoursInterval": {
        "type": "object",
        "properties": {
          "day": {
            "type": "integer",
            "minimum": 1,
            "maximum": 7
          },
          "opens": {
            "type": "string",
            "pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d$"
          },
          "closes": {
            "type": "string",
            "pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d$"
          }
        },
        "required": [
          "day",
          "opens",
          "closes"
        ],
        "additionalProperties": false
      },
      "StorefrontInvoiceCompanyRequest": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "const": "company"
          },
          "vatId": {
            "type": "string",
            "minLength": 2,
            "maxLength": 20
          },
          "name": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "minLength": 2,
                "maxLength": 255
              },
              {
                "type": "null"
              }
            ]
          },
          "tradeRegistry": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ]
          },
          "address": {
            "default": null,
            "anyOf": [
              {
                "$ref": "#/components/schemas/InvoiceAddress"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "kind",
          "vatId"
        ],
        "additionalProperties": false
      },
      "StorefrontInvoiceCompanyRequestOutput": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "const": "company"
          },
          "vatId": {
            "type": "string",
            "minLength": 2,
            "maxLength": 20
          },
          "name": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "minLength": 2,
                "maxLength": 255
              },
              {
                "type": "null"
              }
            ]
          },
          "tradeRegistry": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ]
          },
          "address": {
            "default": null,
            "anyOf": [
              {
                "$ref": "#/components/schemas/InvoiceAddressOutput"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "kind",
          "vatId",
          "name",
          "tradeRegistry",
          "address"
        ]
      },
      "StorefrontInvoicePersonRequest": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "const": "person"
          },
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 255
          },
          "address": {
            "$ref": "#/components/schemas/InvoiceAddress"
          }
        },
        "required": [
          "kind",
          "name",
          "address"
        ],
        "additionalProperties": false
      },
      "StorefrontInvoicePersonRequestOutput": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "const": "person"
          },
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 255
          },
          "address": {
            "$ref": "#/components/schemas/InvoiceAddressOutput"
          }
        },
        "required": [
          "kind",
          "name",
          "address"
        ]
      },
      "StorefrontInvoiceRequest": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/StorefrontInvoiceCompanyRequest"
          },
          {
            "$ref": "#/components/schemas/StorefrontInvoicePersonRequest"
          }
        ]
      },
      "StorefrontInvoiceRequestOutput": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/StorefrontInvoiceCompanyRequestOutput"
          },
          {
            "$ref": "#/components/schemas/StorefrontInvoicePersonRequestOutput"
          }
        ]
      },
      "StorefrontLocationOutput": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
          },
          "name": {
            "type": "string"
          },
          "address": {
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "$ref": "#/components/schemas/StorefrontLocationStatus"
          },
          "closedReason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StorefrontClosedReason"
              },
              {
                "type": "null"
              }
            ]
          },
          "weeklyHours": {
            "$ref": "#/components/schemas/StorefrontWeeklyHours"
          },
          "timeZone": {
            "type": "string"
          },
          "estimatedMinutes": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "pickup": {
            "default": null,
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "estimatedMinutes": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "estimatedMinutes"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "scheduling": {
            "default": null,
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "daysAhead": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "cancelMinutes": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "daysAhead",
                  "cancelMinutes"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "paymentMethods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontPaymentMethod"
            }
          }
        },
        "required": [
          "id",
          "name",
          "address",
          "phone",
          "status",
          "closedReason",
          "weeklyHours",
          "timeZone",
          "estimatedMinutes",
          "pickup",
          "scheduling",
          "paymentMethods"
        ]
      },
      "StorefrontLocationStatus": {
        "type": "string",
        "enum": [
          "open",
          "paused",
          "closed"
        ]
      },
      "StorefrontLocationsResponseOutput": {
        "type": "object",
        "properties": {
          "locations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontLocationOutput"
            }
          }
        },
        "required": [
          "locations"
        ]
      },
      "StorefrontMenuQuery": {
        "type": "object",
        "properties": {
          "location": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
            "description": "Punctul de lucru, `id` din `GET /storefront/locations`."
          }
        },
        "required": [
          "location"
        ],
        "examples": [
          {
            "location": "0b9d3a52-6c1e-4f3a-9a52-2f0c7d4e8a11"
          }
        ]
      },
      "StorefrontMenuResponseOutput": {
        "type": "object",
        "properties": {
          "locationId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
          },
          "currency": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3
          },
          "timeZone": {
            "default": "Europe/Bucharest",
            "type": "string",
            "minLength": 1
          },
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontCategoryOutput"
            }
          },
          "uncategorized": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontProductOutput"
            }
          },
          "modifierGroups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontModifierGroup"
            }
          },
          "bundles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontBundleOutput"
            }
          },
          "promotions": {
            "default": [],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontPromotionOutput"
            }
          },
          "tags": {
            "default": [],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontTag"
            }
          }
        },
        "required": [
          "locationId",
          "currency",
          "timeZone",
          "categories",
          "uncategorized",
          "modifierGroups",
          "bundles",
          "promotions",
          "tags"
        ]
      },
      "StorefrontModifierGroup": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
          },
          "name": {
            "type": "string"
          },
          "minSelected": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "maxSelected": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991
          },
          "options": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontModifierOption"
            }
          }
        },
        "required": [
          "id",
          "name",
          "minSelected",
          "maxSelected",
          "options"
        ],
        "additionalProperties": false
      },
      "StorefrontModifierOption": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
          },
          "name": {
            "type": "string"
          },
          "priceDelta": {
            "$ref": "#/components/schemas/MoneyAmount"
          },
          "available": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "priceDelta",
          "available"
        ],
        "additionalProperties": false
      },
      "StorefrontOrderLine": {
        "type": "object",
        "properties": {
          "productId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              {
                "type": "null"
              }
            ]
          },
          "bundleId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "quantity": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "modifierOptionIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
            }
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "unitPrice": {
            "$ref": "#/components/schemas/MoneyAmount"
          },
          "lineTotal": {
            "$ref": "#/components/schemas/MoneyAmount"
          }
        },
        "required": [
          "productId",
          "bundleId",
          "name",
          "quantity",
          "modifierOptionIds",
          "note",
          "unitPrice",
          "lineTotal"
        ],
        "additionalProperties": false
      },
      "StorefrontOrderOutput": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
          },
          "locationId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
          },
          "status": {
            "$ref": "#/components/schemas/StorefrontOrderStatus"
          },
          "paymentMethod": {
            "$ref": "#/components/schemas/StorefrontPaymentMethod"
          },
          "currency": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontOrderLine"
            }
          },
          "productsTotal": {
            "$ref": "#/components/schemas/MoneyAmount"
          },
          "feeLines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontQuoteFeeLine"
            }
          },
          "total": {
            "$ref": "#/components/schemas/MoneyAmount"
          },
          "placedAt": {
            "type": "string"
          },
          "expiresAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "sentToKitchenAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "fulfillment": {
            "default": "delivery",
            "$ref": "#/components/schemas/StorefrontFulfillment"
          },
          "estimatedReadyAt": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "estimatedDeliveryAt": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "deliveryAddress": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "readyAt": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "onTheWayAt": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "deliveredAt": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "scheduledFor": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "cancellableUntil": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "invoice": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "company",
                  "person"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "orderCode": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "locationId",
          "status",
          "paymentMethod",
          "currency",
          "lines",
          "productsTotal",
          "feeLines",
          "total",
          "placedAt",
          "expiresAt",
          "sentToKitchenAt",
          "fulfillment",
          "estimatedReadyAt",
          "estimatedDeliveryAt",
          "deliveryAddress",
          "readyAt",
          "onTheWayAt",
          "deliveredAt",
          "scheduledFor",
          "cancellableUntil",
          "invoice",
          "orderCode"
        ]
      },
      "StorefrontOrderQuery": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          }
        },
        "required": [
          "token"
        ]
      },
      "StorefrontOrderRefusal": {
        "type": "string",
        "enum": [
          "not_orderable",
          "payment_method_unavailable",
          "online_payment_unavailable",
          "online_payment_failed",
          "online_payment_too_far",
          "promotion_code_unavailable",
          "gift_card_unavailable",
          "invoice_vat_id_invalid",
          "invoice_company_unknown",
          "invoice_details_missing"
        ]
      },
      "StorefrontOrderRefusalDetails": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "const": "STOREFRONT_ORDER_REFUSED"
          },
          "reason": {
            "$ref": "#/components/schemas/StorefrontOrderRefusal"
          },
          "quote": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StorefrontQuoteResponse"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "code",
          "reason",
          "quote"
        ],
        "additionalProperties": false
      },
      "StorefrontOrderRefusalDetailsOutput": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "const": "STOREFRONT_ORDER_REFUSED"
          },
          "reason": {
            "$ref": "#/components/schemas/StorefrontOrderRefusal"
          },
          "quote": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StorefrontQuoteResponseOutput"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "code",
          "reason",
          "quote"
        ]
      },
      "StorefrontOrderStatus": {
        "type": "string",
        "enum": [
          "awaiting_payment",
          "awaiting_dispatch",
          "scheduled",
          "sent_to_kitchen",
          "rejected",
          "expired",
          "cancelled"
        ]
      },
      "StorefrontPaymentMethod": {
        "type": "object",
        "properties": {
          "key": {
            "$ref": "#/components/schemas/StorefrontPaymentMethodKey"
          },
          "label": {
            "type": "string"
          },
          "settlement": {
            "$ref": "#/components/schemas/StorefrontPaymentSettlement"
          }
        },
        "required": [
          "key",
          "label",
          "settlement"
        ],
        "additionalProperties": false
      },
      "StorefrontPaymentMethodKey": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64
      },
      "StorefrontPaymentSettlement": {
        "type": "string",
        "enum": [
          "on_delivery",
          "online"
        ]
      },
      "StorefrontPlaceOrderRequest": {
        "type": "object",
        "properties": {
          "idempotencyKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 64,
            "pattern": "^[A-Za-z0-9_-]+$",
            "description": "Cheia coșului, aleasă de site o dată pe coș. O cerere cu aceeași cheie primește aceeași comandă. Aceeași cheie trimisă cu alt coș este refuzată."
          },
          "locationId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
            "description": "Punctul de lucru, `id` din `GET /storefront/locations`."
          },
          "lines": {
            "minItems": 1,
            "maxItems": 50,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontCartLineInput"
            },
            "description": "Liniile coșului, fără prețuri. Serverul calculează din nou prețul."
          },
          "customer": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "phone": {
                "type": "string",
                "minLength": 6,
                "maxLength": 32
              },
              "email": {
                "default": null,
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 255,
                    "format": "email",
                    "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "phone"
            ],
            "description": "Clientul care comandă. Se caută după numărul de telefon, iar dacă nu există, se adaugă ca client nou."
          },
          "fulfillment": {
            "default": "delivery",
            "description": "`delivery` (implicit) înseamnă livrare la adresă, `pickup` înseamnă ridicare din local.",
            "$ref": "#/components/schemas/StorefrontFulfillment"
          },
          "delivery": {
            "default": null,
            "description": "Adresa de livrare, obligatorie la `delivery`. La `pickup` se ignoră.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/PostalAddress"
              },
              {
                "type": "null"
              }
            ]
          },
          "note": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500
              },
              {
                "type": "null"
              }
            ]
          },
          "paymentMethodKey": {
            "description": "Metoda de plată, `key` din `paymentMethods` ale punctului de lucru.",
            "$ref": "#/components/schemas/StorefrontPaymentMethodKey"
          },
          "consents": {
            "type": "object",
            "properties": {
              "terms": {
                "type": "boolean",
                "const": true
              },
              "marketing": {
                "default": false,
                "type": "boolean"
              },
              "feedback": {
                "default": false,
                "type": "boolean"
              }
            },
            "required": [
              "terms"
            ]
          },
          "scheduledFor": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "invoice": {
            "default": null,
            "anyOf": [
              {
                "$ref": "#/components/schemas/StorefrontInvoiceRequest"
              },
              {
                "type": "null"
              }
            ]
          },
          "code": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 60
              },
              {
                "type": "null"
              }
            ]
          },
          "giftCardCode": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "idempotencyKey",
          "locationId",
          "lines",
          "customer",
          "paymentMethodKey",
          "consents"
        ],
        "examples": [
          {
            "idempotencyKey": "cos-7f3a9c2e41",
            "locationId": "0b9d3a52-6c1e-4f3a-9a52-2f0c7d4e8a11",
            "lines": [
              {
                "productId": "5a1c2e7f-3b4d-4c6e-8f9a-0b1c2d3e4f50",
                "bundleId": null,
                "quantity": 2,
                "modifierOptionIds": [],
                "note": null
              }
            ],
            "customer": {
              "name": "Ana Popescu",
              "phone": "+40722123456",
              "email": "ana@example.com"
            },
            "fulfillment": "delivery",
            "delivery": {
              "street": "Strada Lungă",
              "streetNumber": "12",
              "block": null,
              "staircase": null,
              "floor": null,
              "apartment": null,
              "city": "Brașov",
              "directions": "Interfon 17",
              "latitude": 45.6427,
              "longitude": 25.5887
            },
            "note": null,
            "paymentMethodKey": "cash",
            "consents": {
              "terms": true,
              "marketing": false,
              "feedback": false
            },
            "scheduledFor": null,
            "invoice": null,
            "code": null,
            "giftCardCode": null
          }
        ]
      },
      "StorefrontPlaceOrderRequestOutput": {
        "type": "object",
        "properties": {
          "idempotencyKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 64,
            "pattern": "^[A-Za-z0-9_-]+$",
            "description": "Cheia coșului, aleasă de site o dată pe coș. O cerere cu aceeași cheie primește aceeași comandă. Aceeași cheie trimisă cu alt coș este refuzată."
          },
          "locationId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
            "description": "Punctul de lucru, `id` din `GET /storefront/locations`."
          },
          "lines": {
            "minItems": 1,
            "maxItems": 50,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontCartLineInputOutput"
            },
            "description": "Liniile coșului, fără prețuri. Serverul calculează din nou prețul."
          },
          "customer": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "phone": {
                "type": "string",
                "minLength": 6,
                "maxLength": 32
              },
              "email": {
                "default": null,
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 255,
                    "format": "email",
                    "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "phone",
              "email"
            ],
            "description": "Clientul care comandă. Se caută după numărul de telefon, iar dacă nu există, se adaugă ca client nou."
          },
          "fulfillment": {
            "default": "delivery",
            "description": "`delivery` (implicit) înseamnă livrare la adresă, `pickup` înseamnă ridicare din local.",
            "$ref": "#/components/schemas/StorefrontFulfillment"
          },
          "delivery": {
            "default": null,
            "description": "Adresa de livrare, obligatorie la `delivery`. La `pickup` se ignoră.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/PostalAddressOutput"
              },
              {
                "type": "null"
              }
            ]
          },
          "note": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500
              },
              {
                "type": "null"
              }
            ]
          },
          "paymentMethodKey": {
            "description": "Metoda de plată, `key` din `paymentMethods` ale punctului de lucru.",
            "$ref": "#/components/schemas/StorefrontPaymentMethodKey"
          },
          "consents": {
            "type": "object",
            "properties": {
              "terms": {
                "type": "boolean",
                "const": true
              },
              "marketing": {
                "default": false,
                "type": "boolean"
              },
              "feedback": {
                "default": false,
                "type": "boolean"
              }
            },
            "required": [
              "terms",
              "marketing",
              "feedback"
            ]
          },
          "scheduledFor": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "invoice": {
            "default": null,
            "anyOf": [
              {
                "$ref": "#/components/schemas/StorefrontInvoiceRequestOutput"
              },
              {
                "type": "null"
              }
            ]
          },
          "code": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 60
              },
              {
                "type": "null"
              }
            ]
          },
          "giftCardCode": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "idempotencyKey",
          "locationId",
          "lines",
          "customer",
          "fulfillment",
          "delivery",
          "note",
          "paymentMethodKey",
          "consents",
          "scheduledFor",
          "invoice",
          "code",
          "giftCardCode"
        ],
        "examples": [
          {
            "idempotencyKey": "cos-7f3a9c2e41",
            "locationId": "0b9d3a52-6c1e-4f3a-9a52-2f0c7d4e8a11",
            "lines": [
              {
                "productId": "5a1c2e7f-3b4d-4c6e-8f9a-0b1c2d3e4f50",
                "bundleId": null,
                "quantity": 2,
                "modifierOptionIds": [],
                "note": null
              }
            ],
            "customer": {
              "name": "Ana Popescu",
              "phone": "+40722123456",
              "email": "ana@example.com"
            },
            "fulfillment": "delivery",
            "delivery": {
              "street": "Strada Lungă",
              "streetNumber": "12",
              "block": null,
              "staircase": null,
              "floor": null,
              "apartment": null,
              "city": "Brașov",
              "directions": "Interfon 17",
              "latitude": 45.6427,
              "longitude": 25.5887
            },
            "note": null,
            "paymentMethodKey": "cash",
            "consents": {
              "terms": true,
              "marketing": false,
              "feedback": false
            },
            "scheduledFor": null,
            "invoice": null,
            "code": null,
            "giftCardCode": null
          }
        ]
      },
      "StorefrontPlaceOrderResponseOutput": {
        "type": "object",
        "properties": {
          "order": {
            "$ref": "#/components/schemas/StorefrontOrderOutput"
          },
          "accessToken": {
            "type": "string"
          },
          "paymentUrl": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "order",
          "accessToken",
          "paymentUrl"
        ]
      },
      "StorefrontProductOutput": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "portionLabel": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "labels": {
            "default": [],
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "tags": {
            "default": [],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontTag"
            }
          },
          "imageUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "price": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MoneyAmount"
              },
              {
                "type": "null"
              }
            ]
          },
          "compareAtPrice": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MoneyAmount"
              },
              {
                "type": "null"
              }
            ]
          },
          "allergens": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "celery",
                "crustaceans",
                "eggs",
                "fish",
                "gluten",
                "lupin",
                "milk",
                "molluscs",
                "mustard",
                "peanuts",
                "sesame",
                "soy",
                "sulphites",
                "sulfur_dioxide",
                "tree_nuts"
              ]
            }
          },
          "available": {
            "type": "boolean"
          },
          "unavailableReason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StorefrontUnavailableReason"
              },
              {
                "type": "null"
              }
            ]
          },
          "availableFrom": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "availableUntil": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "modifierGroupIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
            }
          },
          "promotionIds": {
            "default": [],
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
            }
          }
        },
        "required": [
          "id",
          "slug",
          "name",
          "description",
          "portionLabel",
          "labels",
          "tags",
          "imageUrl",
          "price",
          "compareAtPrice",
          "allergens",
          "available",
          "unavailableReason",
          "availableFrom",
          "availableUntil",
          "modifierGroupIds",
          "promotionIds"
        ]
      },
      "StorefrontPromotionBenefit": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "percent"
              },
              "percent": {
                "type": "number"
              }
            },
            "required": [
              "kind",
              "percent"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "amount"
              },
              "amount": {
                "$ref": "#/components/schemas/MoneyAmount"
              }
            },
            "required": [
              "kind",
              "amount"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "nth"
              },
              "nth": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "percent": {
                "type": "number"
              }
            },
            "required": [
              "kind",
              "nth",
              "percent"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "buy_get"
              },
              "buyQuantity": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "getQuantity": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "percent": {
                "type": "number"
              }
            },
            "required": [
              "kind",
              "buyQuantity",
              "getQuantity",
              "percent"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "free_delivery"
              }
            },
            "required": [
              "kind"
            ],
            "additionalProperties": false
          }
        ]
      },
      "StorefrontPromotionOutput": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "scope": {
            "type": "string",
            "enum": [
              "products",
              "order",
              "delivery"
            ]
          },
          "benefit": {
            "$ref": "#/components/schemas/StorefrontPromotionBenefit"
          },
          "minOrder": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MoneyAmount"
              },
              {
                "type": "null"
              }
            ]
          },
          "hours": {
            "$ref": "#/components/schemas/StorefrontWeeklyHours"
          },
          "lastDay": {
            "type": [
              "string",
              "null"
            ]
          },
          "orderTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PromotionOrderType"
            }
          },
          "firstOrderOnly": {
            "type": "boolean"
          },
          "getProductIds": {
            "default": [],
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
            }
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "scope",
          "benefit",
          "minOrder",
          "hours",
          "lastDay",
          "orderTypes",
          "firstOrderOnly",
          "getProductIds"
        ]
      },
      "StorefrontQuoteCode": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "refusal": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PromotionCodeRefusal"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "code",
          "refusal"
        ],
        "additionalProperties": false
      },
      "StorefrontQuoteDelivery": {
        "type": "object",
        "properties": {
          "outcome": {
            "type": "string",
            "enum": [
              "delivers",
              "outside_zones",
              "not_found"
            ]
          },
          "zone": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "fee": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MoneyAmount"
              },
              {
                "type": "null"
              }
            ]
          },
          "freeDelivery": {
            "type": "boolean"
          },
          "freeDeliveryAbove": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MoneyAmount"
              },
              {
                "type": "null"
              }
            ]
          },
          "minimumOrder": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MoneyAmount"
              },
              {
                "type": "null"
              }
            ]
          },
          "estimatedMinutes": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "outcome",
          "zone",
          "fee",
          "freeDelivery",
          "freeDeliveryAbove",
          "minimumOrder",
          "estimatedMinutes"
        ],
        "additionalProperties": false
      },
      "StorefrontQuoteDiscount": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "amount": {
            "$ref": "#/components/schemas/MoneyAmount"
          },
          "lineIndex": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "default": "promotion",
            "type": "string",
            "enum": [
              "promotion",
              "code"
            ]
          }
        },
        "required": [
          "label",
          "amount",
          "lineIndex"
        ],
        "additionalProperties": false
      },
      "StorefrontQuoteDiscountOutput": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "amount": {
            "$ref": "#/components/schemas/MoneyAmount"
          },
          "lineIndex": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "default": "promotion",
            "type": "string",
            "enum": [
              "promotion",
              "code"
            ]
          }
        },
        "required": [
          "label",
          "amount",
          "lineIndex",
          "source"
        ]
      },
      "StorefrontQuoteFeeLine": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "amount": {
            "$ref": "#/components/schemas/MoneyAmount"
          },
          "vatRatePercent": {
            "type": "number"
          }
        },
        "required": [
          "label",
          "amount",
          "vatRatePercent"
        ],
        "additionalProperties": false
      },
      "StorefrontQuoteGiftCard": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "amount": {
            "$ref": "#/components/schemas/MoneyAmount"
          },
          "refusal": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GiftCardRefusal"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "code",
          "amount",
          "refusal"
        ],
        "additionalProperties": false
      },
      "StorefrontQuoteLine": {
        "type": "object",
        "properties": {
          "productId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              {
                "type": "null"
              }
            ]
          },
          "bundleId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "modifierOptionIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
            }
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "unitPrice": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MoneyAmount"
              },
              {
                "type": "null"
              }
            ]
          },
          "lineTotal": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MoneyAmount"
              },
              {
                "type": "null"
              }
            ]
          },
          "listTotal": {
            "default": null,
            "anyOf": [
              {
                "$ref": "#/components/schemas/MoneyAmount"
              },
              {
                "type": "null"
              }
            ]
          },
          "problem": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StorefrontCartLineProblem"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "productId",
          "bundleId",
          "name",
          "quantity",
          "modifierOptionIds",
          "note",
          "unitPrice",
          "lineTotal",
          "problem"
        ],
        "additionalProperties": false
      },
      "StorefrontQuoteLineOutput": {
        "type": "object",
        "properties": {
          "productId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              {
                "type": "null"
              }
            ]
          },
          "bundleId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "modifierOptionIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
            }
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "unitPrice": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MoneyAmount"
              },
              {
                "type": "null"
              }
            ]
          },
          "lineTotal": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MoneyAmount"
              },
              {
                "type": "null"
              }
            ]
          },
          "listTotal": {
            "default": null,
            "anyOf": [
              {
                "$ref": "#/components/schemas/MoneyAmount"
              },
              {
                "type": "null"
              }
            ]
          },
          "problem": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StorefrontCartLineProblem"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "productId",
          "bundleId",
          "name",
          "quantity",
          "modifierOptionIds",
          "note",
          "unitPrice",
          "lineTotal",
          "listTotal",
          "problem"
        ]
      },
      "StorefrontQuoteRefusal": {
        "type": "object",
        "properties": {
          "reason": {
            "$ref": "#/components/schemas/StorefrontQuoteRefusalReason"
          },
          "missing": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MoneyAmount"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "reason",
          "missing"
        ],
        "additionalProperties": false
      },
      "StorefrontQuoteRefusalReason": {
        "type": "string",
        "enum": [
          "closed",
          "empty",
          "scheduling_unavailable",
          "slot_unavailable",
          "slot_full",
          "pickup_unavailable",
          "address_required",
          "address_not_found",
          "outside_zones",
          "below_minimum"
        ]
      },
      "StorefrontQuoteRequest": {
        "type": "object",
        "properties": {
          "locationId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
            "description": "Punctul de lucru, `id` din `GET /storefront/locations`."
          },
          "lines": {
            "minItems": 1,
            "maxItems": 50,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontCartLineInput"
            },
            "description": "Liniile coșului, fără prețuri: un produs sau un meniu combo pe linie."
          },
          "fulfillment": {
            "default": "delivery",
            "description": "`delivery` (implicit) înseamnă livrare la adresă, `pickup` înseamnă ridicare din local.",
            "$ref": "#/components/schemas/StorefrontFulfillment"
          },
          "delivery": {
            "default": null,
            "description": "Adresa de livrare, scrisă pe un singur rând, cu punctul pe hartă din `address-check`. Fără adresă, prețul nu include taxa de livrare.",
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "address": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 200
                  },
                  "point": {
                    "default": null,
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/GeoPoint"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "address"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "scheduledFor": {
            "default": null,
            "description": "Începutul unui interval din `GET /storefront/slots`, pentru o comandă programată. `null` (implicit) înseamnă că comanda se pregătește cât mai curând.",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "default": null,
            "description": "Codul de reducere.",
            "anyOf": [
              {
                "type": "string",
                "maxLength": 60
              },
              {
                "type": "null"
              }
            ]
          },
          "giftCardCode": {
            "default": null,
            "description": "Codul cardului cadou cu care se plătește.",
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "locationId",
          "lines"
        ],
        "examples": [
          {
            "locationId": "0b9d3a52-6c1e-4f3a-9a52-2f0c7d4e8a11",
            "lines": [
              {
                "productId": "5a1c2e7f-3b4d-4c6e-8f9a-0b1c2d3e4f50",
                "bundleId": null,
                "quantity": 2,
                "modifierOptionIds": [],
                "note": "fără ceapă"
              }
            ],
            "fulfillment": "delivery",
            "delivery": {
              "address": "Strada Lungă 12, Brașov",
              "point": {
                "latitude": 45.6427,
                "longitude": 25.5887
              }
            },
            "scheduledFor": null,
            "code": null,
            "giftCardCode": null
          }
        ]
      },
      "StorefrontQuoteRequestOutput": {
        "type": "object",
        "properties": {
          "locationId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
            "description": "Punctul de lucru, `id` din `GET /storefront/locations`."
          },
          "lines": {
            "minItems": 1,
            "maxItems": 50,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontCartLineInputOutput"
            },
            "description": "Liniile coșului, fără prețuri: un produs sau un meniu combo pe linie."
          },
          "fulfillment": {
            "default": "delivery",
            "description": "`delivery` (implicit) înseamnă livrare la adresă, `pickup` înseamnă ridicare din local.",
            "$ref": "#/components/schemas/StorefrontFulfillment"
          },
          "delivery": {
            "default": null,
            "description": "Adresa de livrare, scrisă pe un singur rând, cu punctul pe hartă din `address-check`. Fără adresă, prețul nu include taxa de livrare.",
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "address": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 200
                  },
                  "point": {
                    "default": null,
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/GeoPoint"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "address",
                  "point"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "scheduledFor": {
            "default": null,
            "description": "Începutul unui interval din `GET /storefront/slots`, pentru o comandă programată. `null` (implicit) înseamnă că comanda se pregătește cât mai curând.",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "default": null,
            "description": "Codul de reducere.",
            "anyOf": [
              {
                "type": "string",
                "maxLength": 60
              },
              {
                "type": "null"
              }
            ]
          },
          "giftCardCode": {
            "default": null,
            "description": "Codul cardului cadou cu care se plătește.",
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "locationId",
          "lines",
          "fulfillment",
          "delivery",
          "scheduledFor",
          "code",
          "giftCardCode"
        ],
        "examples": [
          {
            "locationId": "0b9d3a52-6c1e-4f3a-9a52-2f0c7d4e8a11",
            "lines": [
              {
                "productId": "5a1c2e7f-3b4d-4c6e-8f9a-0b1c2d3e4f50",
                "bundleId": null,
                "quantity": 2,
                "modifierOptionIds": [],
                "note": "fără ceapă"
              }
            ],
            "fulfillment": "delivery",
            "delivery": {
              "address": "Strada Lungă 12, Brașov",
              "point": {
                "latitude": 45.6427,
                "longitude": 25.5887
              }
            },
            "scheduledFor": null,
            "code": null,
            "giftCardCode": null
          }
        ]
      },
      "StorefrontQuoteResponse": {
        "type": "object",
        "properties": {
          "locationId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
          },
          "currency": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontQuoteLine"
            }
          },
          "productsTotal": {
            "$ref": "#/components/schemas/MoneyAmount"
          },
          "discounts": {
            "default": [],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontQuoteDiscount"
            }
          },
          "code": {
            "default": null,
            "anyOf": [
              {
                "$ref": "#/components/schemas/StorefrontQuoteCode"
              },
              {
                "type": "null"
              }
            ]
          },
          "fulfillment": {
            "default": "delivery",
            "$ref": "#/components/schemas/StorefrontFulfillment"
          },
          "delivery": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StorefrontQuoteDelivery"
              },
              {
                "type": "null"
              }
            ]
          },
          "pickup": {
            "default": null,
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "estimatedMinutes": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "estimatedMinutes"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "scheduledFor": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "feeLines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontQuoteFeeLine"
            }
          },
          "taxLines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontQuoteTaxLine"
            }
          },
          "vat": {
            "$ref": "#/components/schemas/MoneyAmount"
          },
          "total": {
            "$ref": "#/components/schemas/MoneyAmount"
          },
          "giftCard": {
            "default": null,
            "anyOf": [
              {
                "$ref": "#/components/schemas/StorefrontQuoteGiftCard"
              },
              {
                "type": "null"
              }
            ]
          },
          "toPay": {
            "default": null,
            "anyOf": [
              {
                "$ref": "#/components/schemas/MoneyAmount"
              },
              {
                "type": "null"
              }
            ]
          },
          "orderable": {
            "type": "boolean"
          },
          "refusals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontQuoteRefusal"
            }
          }
        },
        "required": [
          "locationId",
          "currency",
          "lines",
          "productsTotal",
          "delivery",
          "feeLines",
          "taxLines",
          "vat",
          "total",
          "orderable",
          "refusals"
        ],
        "additionalProperties": false
      },
      "StorefrontQuoteResponseOutput": {
        "type": "object",
        "properties": {
          "locationId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
          },
          "currency": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontQuoteLineOutput"
            }
          },
          "productsTotal": {
            "$ref": "#/components/schemas/MoneyAmount"
          },
          "discounts": {
            "default": [],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontQuoteDiscountOutput"
            }
          },
          "code": {
            "default": null,
            "anyOf": [
              {
                "$ref": "#/components/schemas/StorefrontQuoteCode"
              },
              {
                "type": "null"
              }
            ]
          },
          "fulfillment": {
            "default": "delivery",
            "$ref": "#/components/schemas/StorefrontFulfillment"
          },
          "delivery": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StorefrontQuoteDelivery"
              },
              {
                "type": "null"
              }
            ]
          },
          "pickup": {
            "default": null,
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "estimatedMinutes": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "estimatedMinutes"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "scheduledFor": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "feeLines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontQuoteFeeLine"
            }
          },
          "taxLines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontQuoteTaxLine"
            }
          },
          "vat": {
            "$ref": "#/components/schemas/MoneyAmount"
          },
          "total": {
            "$ref": "#/components/schemas/MoneyAmount"
          },
          "giftCard": {
            "default": null,
            "anyOf": [
              {
                "$ref": "#/components/schemas/StorefrontQuoteGiftCard"
              },
              {
                "type": "null"
              }
            ]
          },
          "toPay": {
            "default": null,
            "anyOf": [
              {
                "$ref": "#/components/schemas/MoneyAmount"
              },
              {
                "type": "null"
              }
            ]
          },
          "orderable": {
            "type": "boolean"
          },
          "refusals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontQuoteRefusal"
            }
          }
        },
        "required": [
          "locationId",
          "currency",
          "lines",
          "productsTotal",
          "discounts",
          "code",
          "fulfillment",
          "delivery",
          "pickup",
          "scheduledFor",
          "feeLines",
          "taxLines",
          "vat",
          "total",
          "giftCard",
          "toPay",
          "orderable",
          "refusals"
        ]
      },
      "StorefrontQuoteTaxLine": {
        "type": "object",
        "properties": {
          "vatRatePercent": {
            "type": "number"
          },
          "gross": {
            "$ref": "#/components/schemas/MoneyAmount"
          },
          "net": {
            "$ref": "#/components/schemas/MoneyAmount"
          },
          "vat": {
            "$ref": "#/components/schemas/MoneyAmount"
          }
        },
        "required": [
          "vatRatePercent",
          "gross",
          "net",
          "vat"
        ],
        "additionalProperties": false
      },
      "StorefrontReorderLineOutput": {
        "type": "object",
        "properties": {
          "line": {
            "$ref": "#/components/schemas/StorefrontCartLineInputOutput"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "problem": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StorefrontCartLineProblem"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "line",
          "name",
          "problem"
        ]
      },
      "StorefrontReorderRequest": {
        "type": "object",
        "properties": {
          "locationId": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "StorefrontReorderRequestOutput": {
        "type": "object",
        "properties": {
          "locationId": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "locationId"
        ]
      },
      "StorefrontReorderResponseOutput": {
        "type": "object",
        "properties": {
          "locationId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontReorderLineOutput"
            }
          }
        },
        "required": [
          "locationId",
          "lines"
        ]
      },
      "StorefrontSession": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "minLength": 32
          },
          "expiresAt": {
            "type": "string"
          },
          "account": {
            "$ref": "#/components/schemas/CustomerAccount"
          }
        },
        "required": [
          "token",
          "expiresAt",
          "account"
        ],
        "additionalProperties": false
      },
      "StorefrontSlot": {
        "type": "object",
        "properties": {
          "startsAt": {
            "type": "string"
          },
          "available": {
            "type": "boolean"
          }
        },
        "required": [
          "startsAt",
          "available"
        ],
        "additionalProperties": false
      },
      "StorefrontSlotDay": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "slots": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontSlot"
            }
          }
        },
        "required": [
          "date",
          "slots"
        ],
        "additionalProperties": false
      },
      "StorefrontSlotsQuery": {
        "type": "object",
        "properties": {
          "location": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
          }
        },
        "required": [
          "location"
        ],
        "additionalProperties": false
      },
      "StorefrontSlotsResponse": {
        "type": "object",
        "properties": {
          "locationId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
          },
          "timeZone": {
            "type": "string"
          },
          "days": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StorefrontSlotDay"
            }
          }
        },
        "required": [
          "locationId",
          "timeZone",
          "days"
        ],
        "additionalProperties": false
      },
      "StorefrontTag": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "slug",
          "name"
        ],
        "additionalProperties": false
      },
      "StorefrontUnavailableReason": {
        "type": "string",
        "enum": [
          "sold_out",
          "not_offered_today",
          "outside_hours",
          "no_price"
        ]
      },
      "StorefrontWeeklyHours": {
        "maxItems": 70,
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/StorefrontHoursInterval"
        }
      },
      "UpdateCustomerAccountRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "storefrontKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "Cheia magazinului, emisă de firmă din Operations Hub. Se trimite numai de pe serverul site-ului, niciodată din browser."
      },
      "customerSession": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Storefront-Session",
        "description": "Sesiunea clientului intrat în cont: `token` din răspunsul intrării în cont (`/storefront/account/code/verify` sau `/storefront/auth/{provider}`)."
      }
    }
  }
}
